/**
* Bundle builder v2.0.2/8859648
* Created at Wed Nov 22 2023 12:58:41 GMT+0000 (Coordinated Universal Time)
* -------------------
* Kaltura Player lib
* kaltura-ovp-player v3.14.4
* playkit-airplay v1.1.3
* playkit-downloads v1.0.4
* playkit-dual-screen v3.1.5
* playkit-hotspots v3.1.5
* playkit-image-player v1.2.5
* playkit-ivq v3.3.0
* playkit-kaltura-cuepoints v3.0.5
* playkit-kaltura-live v3.2.2
* playkit-kava v1.5.4
* playkit-navigation v3.3.1
* playkit-playlist v3.2.6
* playkit-share v1.1.10
* playkit-timeline v3.0.2
* playkit-ui-managers v1.3.5
* playkit-youtube v2.0.7
*/
var KalturaPlayer=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=324)}([function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t,n){var r;!function(i,a){"use strict";var o="model",s="name",l="type",u="vendor",c="version",p="mobile",d="tablet",f="smarttv",h=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},g=function(e,t){return"string"==typeof e&&-1!==y(t).indexOf(y(e))},y=function(e){return e.toLowerCase()},v=function(e,t){if("string"==typeof e)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),void 0===t?e:e.substring(0,255)},m=function(e,t){for(var n,r,i,a,o,s,l=0;l<t.length&&!o;){var u=t[l],c=t[l+1];for(n=r=0;n<u.length&&!o;)if(o=u[n++].exec(e))for(i=0;i<c.length;i++)s=o[++r],"object"==typeof(a=c[i])&&a.length>0?2===a.length?"function"==typeof a[1]?this[a[0]]=a[1].call(this,s):this[a[0]]=a[1]:3===a.length?"function"!=typeof a[1]||a[1].exec&&a[1].test?this[a[0]]=s?s.replace(a[1],a[2]):void 0:this[a[0]]=s?a[1].call(this,s,a[2]):void 0:4===a.length&&(this[a[0]]=s?a[3].call(this,s.replace(a[1],a[2])):void 0):this[a]=s||void 0;l+=2}},b=function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(g(t[n][r],e))return"?"===n?void 0:n}else if(g(t[n],e))return"?"===n?void 0:n;return e},_={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},E={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[c,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[c,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,c],[/opios[\/ ]+([\w\.]+)/i],[c,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[c,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[s,c],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[c,[s,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[c,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[c,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[c,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[c,[s,"IE"]],[/yabrowser\/([\w\.]+)/i],[c,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],c],[/\bfocus\/([\w\.]+)/i],[c,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[c,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[c,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[c,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[c,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[c,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[c,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],c],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,c],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],c],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,c],[/\bgsa\/([\w\.]+) .*safari\//i],[c,[s,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[c,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],c],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[c,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,c],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[c,[s,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[c,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[c,b,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,c],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],c],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[c,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",y]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",y]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",y]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[o,[u,"Samsung"],[l,d]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[o,[u,"Samsung"],[l,p]],[/\((ip(?:hone|od)[\w ]*);/i],[o,[u,"Apple"],[l,p]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[o,[u,"Apple"],[l,d]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[o,[u,"Huawei"],[l,d]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[o,[u,"Huawei"],[l,p]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[o,/_/g," "],[u,"Xiaomi"],[l,p]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[o,/_/g," "],[u,"Xiaomi"],[l,d]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[o,[u,"OPPO"],[l,p]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[o,[u,"Vivo"],[l,p]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[o,[u,"Realme"],[l,p]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[o,[u,"Motorola"],[l,p]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[o,[u,"Motorola"],[l,d]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[o,[u,"LG"],[l,d]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[o,[u,"LG"],[l,p]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[o,[u,"Lenovo"],[l,d]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[o,/_/g," "],[u,"Nokia"],[l,p]],[/(pixel c)\b/i],[o,[u,"Google"],[l,d]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[o,[u,"Google"],[l,p]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[u,"Sony"],[l,p]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[o,"Xperia Tablet"],[u,"Sony"],[l,d]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[o,[u,"OnePlus"],[l,p]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[o,[u,"Amazon"],[l,d]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[o,/(.+)/g,"Fire Phone $1"],[u,"Amazon"],[l,p]],[/(playbook);[-\w\),; ]+(rim)/i],[o,u,[l,d]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[o,[u,"BlackBerry"],[l,p]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[o,[u,"ASUS"],[l,d]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[o,[u,"ASUS"],[l,p]],[/(nexus 9)/i],[o,[u,"HTC"],[l,d]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[u,[o,/_/g," "],[l,p]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[o,[u,"Acer"],[l,d]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[o,[u,"Meizu"],[l,p]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[o,[u,"Sharp"],[l,p]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,o,[l,p]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,o,[l,d]],[/(surface duo)/i],[o,[u,"Microsoft"],[l,d]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[o,[u,"Fairphone"],[l,p]],[/(u304aa)/i],[o,[u,"AT&T"],[l,p]],[/\bsie-(\w*)/i],[o,[u,"Siemens"],[l,p]],[/\b(rct\w+) b/i],[o,[u,"RCA"],[l,d]],[/\b(venue[\d ]{2,7}) b/i],[o,[u,"Dell"],[l,d]],[/\b(q(?:mv|ta)\w+) b/i],[o,[u,"Verizon"],[l,d]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[o,[u,"Barnes & Noble"],[l,d]],[/\b(tm\d{3}\w+) b/i],[o,[u,"NuVision"],[l,d]],[/\b(k88) b/i],[o,[u,"ZTE"],[l,d]],[/\b(nx\d{3}j) b/i],[o,[u,"ZTE"],[l,p]],[/\b(gen\d{3}) b.+49h/i],[o,[u,"Swiss"],[l,p]],[/\b(zur\d{3}) b/i],[o,[u,"Swiss"],[l,d]],[/\b((zeki)?tb.*\b) b/i],[o,[u,"Zeki"],[l,d]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],o,[l,d]],[/\b(ns-?\w{0,9}) b/i],[o,[u,"Insignia"],[l,d]],[/\b((nxa|next)-?\w{0,9}) b/i],[o,[u,"NextBook"],[l,d]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],o,[l,p]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],o,[l,p]],[/\b(ph-1) /i],[o,[u,"Essential"],[l,p]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[o,[u,"Envizen"],[l,d]],[/\b(trio[-\w\. ]+) b/i],[o,[u,"MachSpeed"],[l,d]],[/\btu_(1491) b/i],[o,[u,"Rotor"],[l,d]],[/(shield[\w ]+) b/i],[o,[u,"Nvidia"],[l,d]],[/(sprint) (\w+)/i],[u,o,[l,p]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[u,"Microsoft"],[l,p]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[o,[u,"Zebra"],[l,d]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[o,[u,"Zebra"],[l,p]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,o,[l,"console"]],[/droid.+; (shield) bui/i],[o,[u,"Nvidia"],[l,"console"]],[/(playstation [345portablevi]+)/i],[o,[u,"Sony"],[l,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[o,[u,"Microsoft"],[l,"console"]],[/smart-tv.+(samsung)/i],[u,[l,f]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[u,"Samsung"],[l,f]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,"LG"],[l,f]],[/(apple) ?tv/i],[u,[o,"Apple TV"],[l,f]],[/crkey/i],[[o,"Chromecast"],[u,"Google"],[l,f]],[/droid.+aft(\w)( bui|\))/i],[o,[u,"Amazon"],[l,f]],[/\(dtv[\);].+(aquos)/i],[o,[u,"Sharp"],[l,f]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[u,v],[o,v],[l,f]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,f]],[/((pebble))app/i],[u,o,[l,"wearable"]],[/droid.+; (glass) \d/i],[o,[u,"Google"],[l,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[o,[u,"Zebra"],[l,"wearable"]],[/(quest( 2)?)/i],[o,[u,"Facebook"],[l,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[l,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[o,[l,p]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[o,[l,d]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,d]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,p]],[/(android[-\w\. ]{0,9});.+buil/i],[o,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[c,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[c,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[s,c],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[c,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,c],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[c,b,_]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[c,b,_]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[c,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[c,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[c,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,c],[/\(bb(10);/i],[c,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[c,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[c,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[c,[s,"webOS"]],[/crkey\/([\d\.]+)/i],[c,[s,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[s,"Chromium OS"],c],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,c],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],c],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[s,c]]},k=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof k))return new k(e,t).getResult();var n=e||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(E,t):E;return this.getBrowser=function(){var e,t={name:void 0,version:void 0};return m.call(t,n,r.browser),t.major="string"==typeof(e=t.version)?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,t},this.getCPU=function(){var e={architecture:void 0};return m.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return m.call(e,n,r.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return m.call(e,n,r.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return m.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n="string"==typeof e&&e.length>255?v(e,255):e,this},this.setUA(n),this};k.VERSION="1.0.2",k.BROWSER=h([s,c,"major"]),k.CPU=h(["architecture"]),k.DEVICE=h([o,u,l,"console",p,f,d,"wearable","embedded"]),k.ENGINE=k.OS=h([s,c]),void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=k),t.UAParser=k):n(4)?void 0===(r=function(){return k}.call(t,n,t,e))||(e.exports=r):void 0!==i&&(i.UAParser=k);var T=void 0!==i&&(i.jQuery||i.Zepto);if(T&&!T.ua){var A=new k;T.ua=A.getResult(),T.ua.get=function(){return A.getUA()},T.ua.set=function(e){A.setUA(e);var t=A.getResult();for(var n in t)T.ua[n]=t[n]}}}("object"==typeof window?window:this)},function(e,t,n){var r,i;
/*!
 * js-logger - http://github.com/jonnyreeves/js-logger
 * Jonny Reeves, http://jonnyreeves.co.uk/
 * js-logger may be freely distributed under the MIT license.
 */!function(a){"use strict";var o,s={VERSION:"1.6.0"},l={},u=function(e,t){return function(){return t.apply(e,arguments)}},c=function(){var e,t,n=arguments,r=n[0];for(t=1;t<n.length;t++)for(e in n[t])!(e in r)&&n[t].hasOwnProperty(e)&&(r[e]=n[t][e]);return r},p=function(e,t){return{value:e,name:t}};s.TRACE=p(1,"TRACE"),s.DEBUG=p(2,"DEBUG"),s.INFO=p(3,"INFO"),s.TIME=p(4,"TIME"),s.WARN=p(5,"WARN"),s.ERROR=p(8,"ERROR"),s.OFF=p(99,"OFF");var d=function(e){this.context=e,this.setLevel(e.filterLevel),this.log=this.info};d.prototype={setLevel:function(e){e&&"value"in e&&(this.context.filterLevel=e)},getLevel:function(){return this.context.filterLevel},enabledFor:function(e){var t=this.context.filterLevel;return e.value>=t.value},trace:function(){this.invoke(s.TRACE,arguments)},debug:function(){this.invoke(s.DEBUG,arguments)},info:function(){this.invoke(s.INFO,arguments)},warn:function(){this.invoke(s.WARN,arguments)},error:function(){this.invoke(s.ERROR,arguments)},time:function(e){"string"==typeof e&&e.length>0&&this.invoke(s.TIME,[e,"start"])},timeEnd:function(e){"string"==typeof e&&e.length>0&&this.invoke(s.TIME,[e,"end"])},invoke:function(e,t){o&&this.enabledFor(e)&&o(t,c({level:e},this.context))}};var f,h=new d({filterLevel:s.OFF});(f=s).enabledFor=u(h,h.enabledFor),f.trace=u(h,h.trace),f.debug=u(h,h.debug),f.time=u(h,h.time),f.timeEnd=u(h,h.timeEnd),f.info=u(h,h.info),f.warn=u(h,h.warn),f.error=u(h,h.error),f.log=f.info,s.setHandler=function(e){o=e},s.setLevel=function(e){for(var t in h.setLevel(e),l)l.hasOwnProperty(t)&&l[t].setLevel(e)},s.getLevel=function(){return h.getLevel()},s.get=function(e){return l[e]||(l[e]=new d(c({name:e},h.context)))},s.createDefaultHandler=function(e){(e=e||{}).formatter=e.formatter||function(e,t){t.name&&e.unshift("["+t.name+"]")};var t={},n=function(e,t){Function.prototype.apply.call(e,console,t)};return"undefined"==typeof console?function(){}:function(r,i){r=Array.prototype.slice.call(r);var a,o=console.log;i.level===s.TIME?(a=(i.name?"["+i.name+"] ":"")+r[0],"start"===r[1]?console.time?console.time(a):t[a]=(new Date).getTime():console.timeEnd?console.timeEnd(a):n(o,[a+": "+((new Date).getTime()-t[a])+"ms"])):(i.level===s.WARN&&console.warn?o=console.warn:i.level===s.ERROR&&console.error?o=console.error:i.level===s.INFO&&console.info?o=console.info:i.level===s.DEBUG&&console.debug?o=console.debug:i.level===s.TRACE&&console.trace&&(o=console.trace),e.formatter(r,i),n(o,r))}},s.useDefaults=function(e){s.setLevel(e&&e.defaultLevel||s.DEBUG),s.setHandler(s.createDefaultHandler(e))},void 0===(i="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=i)}()},function(e){e.exports=JSON.parse('{"heartbeatTimeout":30000}')},function(e){e.exports=JSON.parse('{"a":"data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE="}')},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){var r=n(6),i=n(7);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function o(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],l=t.base?s[0]+t.base:s[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var p=o(c),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==p?(a[p].references++,a[p].updater(d)):a.push({identifier:c,updater:g(d,t),references:1}),r.push(c)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var a=n.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=i(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,c=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=c(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function d(e,t,n){var r=n.css,i=n.media,a=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),a&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,h=0;function g(e,t){var n,r,i;if(t.singleton){var a=h++;n=f||(f=l(t)),r=p.bind(null,n,a,!1),i=p.bind(null,n,a,!0)}else n=l(t),r=d.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=o(n[r]);a[i].references--}for(var l=s(e,t),u=0;u<n.length;u++){var c=o(n[u]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=l}}}},function(e,t,n){(t=n(8)(!1)).push([e.i,".playkit-container {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  color: #fff;\n  outline: none;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  -webkit-tap-highlight-color: transparent;\n}\n\n.playkit-engine {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  top: 0;\n  left: 0;\n  object-fit: contain;\n}\n\n.playkit-engine video::-webkit-media-controls-panel,\n.playkit-engine video::-webkit-media-controls-panel-container,\n.playkit-engine video::-webkit-media-controls-start-playback-button,\n.playkit-engine video::-webkit-media-controls-play-button {\n  display: none;\n  -webkit-appearance: none;\n}\n\n.playkit-poster {\n  position: absolute;\n  display: block;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  background-size: contain;\n  background-position: center center;\n  background-repeat: no-repeat;\n  background-color: #000;\n  pointer-events: none;\n}\n\n.playkit-subtitles {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  right: 0;\n  left: 0;\n  pointer-events: none;\n  margin-bottom: 5px;\n}\n\n.playkit-black-cover {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  background-color: black;\n  pointer-events: none;\n}\n\n.playkit-size-iframe {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  border: 0;\n  z-index: -100;\n}\n\n.playkit-in-browser-fullscreen-mode {\n  width: 100% !important;\n  height: 100% !important;\n  position: fixed !important;\n  top: 0 !important;\n  left: 0 !important;\n  /*added for blocking element with fixed position which could be on the top of the player */\n  z-index: 999999 !important;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,a=e[1]||"",o=e[3];if(!o)return a;if(t&&"function"==typeof btoa){var s=(n=o,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[a].concat(l).concat([s]).join("\n")}return[a].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";n.r(t),n.d(t,"loadPlayer",(function(){return Bn})),n.d(t,"registerMediaSourceAdapter",(function(){return Lt})),n.d(t,"BaseMediaSourceAdapter",(function(){return yt})),n.d(t,"BaseMiddleware",(function(){return rt})),n.d(t,"Track",(function(){return re})),n.d(t,"VideoTrack",(function(){return ae})),n.d(t,"AudioTrack",(function(){return oe})),n.d(t,"TextTrack",(function(){return $e})),n.d(t,"ImageTrack",(function(){return pt})),n.d(t,"TextStyle",(function(){return ye})),n.d(t,"Cue",(function(){return Be})),n.d(t,"TimedMetadata",(function(){return Mt})),n.d(t,"createTextTrackCue",(function(){return Nt})),n.d(t,"createTimedMetadata",(function(){return Ut})),n.d(t,"Utils",(function(){return r})),n.d(t,"utils",(function(){return r})),n.d(t,"Error",(function(){return L})),n.d(t,"FakeEvent",(function(){return m})),n.d(t,"FakeEventTarget",(function(){return C})),n.d(t,"EventManager",(function(){return D})),n.d(t,"VERSION",(function(){return Fn})),n.d(t,"NAME",(function(){return jn})),n.d(t,"Env",(function(){return g})),n.d(t,"State",(function(){return Z})),n.d(t,"getCapabilities",(function(){return Vn})),n.d(t,"setCapabilities",(function(){return Hn})),n.d(t,"EngineDecoratorProvider",(function(){return Nn})),n.d(t,"registerEngine",(function(){return Zt})),n.d(t,"unRegisterEngine",(function(){return Jt})),n.d(t,"AdBreakType",(function(){return on})),n.d(t,"AdTagType",(function(){return sn})),n.d(t,"AdEventType",(function(){return z})),n.d(t,"filterTracksByRestriction",(function(){return mt})),n.d(t,"Html5EventType",(function(){return W})),n.d(t,"CustomEventType",(function(){return Y})),n.d(t,"EventType",(function(){return q})),n.d(t,"StateType",(function(){return J})),n.d(t,"TrackType",(function(){return Qe})),n.d(t,"EngineType",(function(){return Je})),n.d(t,"MediaType",(function(){return et})),n.d(t,"StreamType",(function(){return Ze})),n.d(t,"AbrMode",(function(){return tt})),n.d(t,"LogLevelType",(function(){return E})),n.d(t,"CorsType",(function(){return nt})),n.d(t,"DrmScheme",(function(){return bt})),n.d(t,"MimeType",(function(){return Un})),n.d(t,"RequestType",(function(){return ut})),n.d(t,"ScreenOrientationType",(function(){return ot})),n.d(t,"AutoPlayType",(function(){return mn})),n.d(t,"ThumbnailInfo",(function(){return ft})),n.d(t,"getLogger",(function(){return S})),n.d(t,"LogLevel",(function(){return _})),n.d(t,"getLogLevel",(function(){return A})),n.d(t,"setLogLevel",(function(){return w})),n.d(t,"setLogHandler",(function(){return k}));var r={};n.r(r),n.d(r,"Number",(function(){return N})),n.d(r,"String",(function(){return U})),n.d(r,"Object",(function(){return F})),n.d(r,"Generator",(function(){return j})),n.d(r,"Dom",(function(){return B})),n.d(r,"Http",(function(){return V})),n.d(r,"VERSION",(function(){return H})),n.d(r,"ResizeWatcher",(function(){return ln})),n.d(r,"MultiMap",(function(){return v})),n.d(r,"binarySearch",(function(){return cn}));var i=n(0),a=n.n(i),o=/^.*(web0s).*(smarttv).*$/i,s=/^.*(smart-tv).*(tizen).*$/i,l=/^.*(vidaa).*(smarttv).*$/i,u=[[s],[[a.a.BROWSER.NAME,"SAMSUNG_TV_BROWSER"],[a.a.BROWSER.MAJOR,""],[a.a.BROWSER.VERSION,""]]],c=[[o],[a.a.OS.NAME],[l],[a.a.OS.NAME]],p=[[o],[[a.a.DEVICE.VENDOR,"LG"],[a.a.DEVICE.TYPE,a.a.DEVICE.SMARTTV]],[s],[[a.a.DEVICE.VENDOR,"SAMSUNG"],[a.a.DEVICE.TYPE,a.a.DEVICE.SMARTTV]],[l],[[a.a.DEVICE.VENDOR,"HISENSE"],[a.a.DEVICE.TYPE,a.a.DEVICE.SMARTTV]],[/^.*(smart-tv|smarttv).*$/i],[[a.a.DEVICE.TYPE,a.a.DEVICE.SMARTTV]]],d=[[/(edg)\/((\d+)?[\w.]+)/i],[[a.a.BROWSER.NAME,"Edge"],a.a.BROWSER.VERSION,a.a.BROWSER.MAJOR]],f=[].concat(d,u),h=new a.a(void 0,{browser:f,device:p,os:c}).getResult();h.isConsole=h.device.type===a.a.DEVICE.CONSOLE,h.isSmartTV=h.device.type===a.a.DEVICE.SMARTTV,h.isMobile=h.device.type===a.a.DEVICE.MOBILE,h.isTablet=h.device.type===a.a.DEVICE.TABLET,h.isWearable=h.device.type===a.a.DEVICE.WEARABLE,h.isEmbedded=h.device.type===a.a.DEVICE.EMBEDDED,h.isIPadOS="Mac OS"===h.os.name&&"ontouchend"in document,h.isSafari=h.browser.name.includes("Safari"),h.isIOS="iOS"===h.os.name,h.isMacOS="Mac OS"===h.os.name;var g=h;function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v=function(){function e(){this._map=new Map}var t=e.prototype;return t.push=function(e,t){if(this._map.has(e)){var n=this._map.get(e);Array.isArray(n)&&(n.push(t),this._map.set(e,n))}else this._map.set(e,[t])},t.set=function(e,t){this._map.set(e,t)},t.has=function(e){return this._map.has(e)},t.get=function(e){var t=this._map.get(e);return t?t.slice():[]},t.getAll=function(){for(var e,t=[],n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(this._map.values());!(e=n()).done;){var r=e.value;t=t.concat(r)}return t},t.remove=function(e,t){if(this._map.has(e)){var n=this._map.get(e);if(Array.isArray(n)){for(var r=0;r<n.length;++r)n[r]==t&&(n.splice(r,1),--r);0===n.length&&this._map.delete(e)}}},t.keys=function(){return this._map.keys()},t.clear=function(){this._map.clear()},e}(),m=function(){function e(e,t){this.bubbles=!1,this.cancelable=!1,this.defaultPrevented=!1,this.timeStamp=window.performance?window.performance.now():Date.now(),this.type=e,this.isTrusted=!1,this.currentTarget=null,this.target=null,this.stopped=!1,this.payload=t}var t=e.prototype;return t.preventDefault=function(){},t.stopImmediatePropagation=function(){this.stopped=!0},t.stopPropagation=function(){},e}(),b=n(1),_={DEBUG:b.DEBUG,INFO:b.INFO,TIME:b.TIME,WARN:b.WARN,ERROR:b.ERROR,OFF:b.OFF},E={};function k(e){b.setHandler((function(t,n){return e(t,n)}))}function T(e){return e?b.get(e):b}function A(e){return T(e).getLevel()}function w(e,t){T(t).setLevel(e)}Object.keys(_).forEach((function(e){E[e]=e})),b.useDefaults({defaultLevel:b.ERROR});var S=T,C=function(){function e(){this._listeners=new v,this.dispatchTarget=this,this.__logger=S("FakeEventTarget")}var t=e.prototype;return t.addEventListener=function(e,t){this._listeners.push(e,t)},t.removeEventListener=function(e,t){this._listeners.remove(e,t)},t.dispatchEvent=function(e){for(var t=this._listeners.get(e.type)||[],n=0;n<t.length;++n){e.target=this.dispatchTarget,e.currentTarget=this.dispatchTarget;var r=t[n];try{r.handleEvent?r.handleEvent(e):r.call(this,e)}catch(t){this.__logger.error("Error occurred when handling event: "+e.type+".",t)}if(e.stopped)break}return e.defaultPrevented},e}();function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var I=function(){function e(){this._bindingMap=new v}var t=e.prototype;return t.destroy=function(){return this.removeAll(),this._bindingMap=null,Promise.resolve()},t.listenOnce=function(e,t,n,r){var i=this;this.listen(e,t,(function r(a){i.unlisten(e,t,r),n.call(i,a)}),r)},t.listen=function(e,t,n,r){var i=new P(e,t,n,r);this._bindingMap&&this._bindingMap.push(t,i)},t.unlisten=function(e,t,n){if(this._bindingMap)for(var r=this._bindingMap.get(t),i=0;i<r.length;++i){var a=r[i];a.target!==e||a.listener!==n&&n||(a.unlisten(),this._bindingMap&&this._bindingMap.remove(t,a))}},t.removeAll=function(){if(this._bindingMap){for(var e,t=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(this._bindingMap.getAll());!(e=t()).done;)e.value.unlisten();this._bindingMap&&this._bindingMap.clear()}},e}(),P=function(){function e(e,t,n,r){this.target=e,this.type=t,this.listener=n,this.options=r,this.target.addEventListener(t,n,!1)}return e.prototype.unlisten=function(){this.target&&(this.target.removeEventListener(this.type,this.listener,this.options),this.target=null,this.listener=null,this.options=null)},e}(),D=I,R={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,LIVE_MANIFEST_REFRESH_ERROR:1008,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_CREATE_TEXT_CUE:2009,DASH_ADAPTER_ERROR_PARSE_ISSUE:2010,UNKNOWN_FILE_TYPE:2011,UNKNOWN_LANGUAGE:2012,INVALID_VTT_THUMBNAILS_FILE:2013,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,HLS_FATAL_MEDIA_ERROR:3018,HLS_FRAG_PARSING_ERROR:3019,HLS_BUFFER_APPEND_ISSUE:3020,HLS_BUFFER_APPENDING_ISSUE:3021,NATIVE_ADAPTER_LOAD_FAILED:3022,HLS_BUFFER_STALLED_ERROR:3023,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_LIVE_CONTENT_NOT_SUPPORTED:4029,HLSJS_CANNOT_PARSE:4030,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,BAD_FAIRPLAY_RESPONSE:6015,COULD_NOT_CREATE_MEDIA_KEYS:6016,COULD_NOT_CREATE_KEY_SESSION:6017,LOAD_INTERRUPTED:7e3,BITRATE_SWITCH_ISSUE:7001,LOAD_FAILED:7002,RUNTIME_ERROR_NOT_REGISTERED_PLUGIN:7003,RUNTIME_ERROR_METHOD_NOT_IMPLEMENTED:7004,RUNTIME_ERROR_NOT_VALID_HANDLER:7005,NO_SOURCE_PROVIDED:7006,NO_ENGINE_FOUND_TO_PLAY_THE_SOURCE:7007,ENTER_PICTURE_IN_PICTURE_FAILED:7008,EXIT_PICTURE_IN_PICTURE_FAILED:7009,PLUGIN_LOAD_FAILED:7010,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,STORE_ALREADY_IN_PROGRESS:9006,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,CONTENT_UNSUPPORTED_BY_BROWSER:9009,CANNOT_ADD_ITEM:9010,DOWNLOAD_FAILED:9011,COULD_NOT_GET_INFO_FROM_MEDIA_PROVIDER:9012,ENTRY_DOES_NOT_EXIST:9013,PAUSE_FAILED:9014,RESUME_FAILED:9015,RENEW_LICENSE_FAILED:9016,ENTRY_ALREADY_EXISTS:9017,REMOVE_FAILED:9018,CAST_LOAD_MEDIA_FAILED:10001,CAST_CUSTOM_MESSAGE_PARSING_ERROR:10002,CAST_EDIT_TRACKS_INFO_ERROR:10003,VR_NOT_SUPPORTED:11e3};function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.assign(R,{XML_PARSING_ERROR:8100,VAST_SCHEMA_VALIDATION_ERROR:8101,VAST_RESPONSE_VERSION_NOT_SUPPORTED:8102,TRAFFICKING_ERROR:8200,VAST_UNEXPECTED_LINEARITY:8201,VAST_UNEXPECTED_DURATION_ERROR:8202,VAST_UNEXPECTED_SIZE_ERROR:8203,VAST_WRAPPER_ERROR:8300,VAST_URI_ERROR:8301,VAST_TOO_MANY_REDIRECTS:8302,NO_ADS_VAST_RESPONSE:8303,GENERAL_LINEAR_ERROR:8400,FILE_NOT_FOUND:8401,VAST_MEDIA_LOAD_TIMEOUT:8402,MEDIA_FILE_NOT_FOUND:8403,MEDIA_FILE_DISPLAY_ERROR:8405,MEZZANINE_FILE_NOT_PROVIDED:8406,MEZZANINE_DOWNLOADED_FOR_THE_FIRST_TIME:8407,VAST_RESPONSE_AD_REJECTED:8408,CREATIVE_WAS_NOT_EXECUTED:8409,CODE_REFERENCED_NOT_EXECUTED:8410,GENERAL_NON_LINEAR_AD_ERROR:8500,NON_LINEAR_CREATIVE_DIMENSIONS_NOT_ALIGN_ERROR:8501,NON_LINEAR_FETCH_ERROR:8502,NON_LINEAR_RESOURCE_NOT_FOUND:8503,GENERAL_COMPANION_ADS_ERROR:8600,COMPANION_DIMENSIONS_NOT_FIT:8601,COMPANION_CANNOT_BE_DISPLAY:8602,COMPANION_CANNOT_BE_FETCHED:8603,COMPANION_TYPE_NOT_FOUND:8604,AD_UNDEFINED_ERROR:8900,GENERAL_VPAID_ERROR:8901});var L=function e(t,n,r,i){void 0===i&&(i={}),this.severity=t,this.category=n,this.code=r,this.data=i,A("Error")!==_.OFF&&e._logger.error("Category:"+n+" | Code:"+r+" |",i)};function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}O(L,"Severity",{RECOVERABLE:1,CRITICAL:2}),O(L,"Category",{NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,ADS:8,STORAGE:9,CAST:10,VR:11}),O(L,"Code",R),O(L,"_logger",S("Error"));var N={isNumber:function(e){return Number(e)===e},isInt:function(e){return this.isNumber(e)&&e%1==0},isFloat:function(e){return this.isNumber(e)&&e%1!=0}},U={capitlize:function(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)},endsWith:function(e,t){return"string"==typeof e&&"string"==typeof t&&-1!=e.indexOf(t,e.length-t.length)}},F={merge:function(e){for(var t,n={},r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(e);!(t=r()).done;){var i=t.value;Object.assign(n,i)}return n},isObject:function(e){return e&&"object"==typeof e&&!Array.isArray(e)},isClassInstance:function(e){return e&&e.constructor&&e.constructor.name&&"Object"!==e.constructor.name},mergeDeep:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();if(this.isObject(e)&&this.isObject(i))for(var a in i){var o,s;this.isObject(i[a])&&!this.isClassInstance(i[a])?(e[a]||Object.assign(e,((o={})[a]={},o)),this.mergeDeep(e[a],i[a])):Object.assign(e,((s={})[a]=i[a],s))}return this.mergeDeep.apply(this,[e].concat(n))},copyDeep:function(e){var t,n=this;return Array.isArray(e)?(t=e.length>0?e.slice(0):[]).forEach((function(e,r){("object"==typeof e&&e!=={}||Array.isArray(e)&&e.length>0)&&(t[r]=n.copyDeep(e))})):null!==e&&"object"==typeof e?e.clone&&"function"==typeof e.clone?t=e.clone():(t=Object.assign({__proto__:e.__proto__},e),Object.keys(t).forEach((function(e){("object"==typeof t[e]&&t[e]!=={}||Array.isArray(t[e])&&t[e].length>0)&&(t[e]=n.copyDeep(t[e]))}))):t=e,t},isEmptyObject:function(e){for(var t in e)if(window.Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},getPropertyPath:function(e,t){return t.split(".").reduce((function(e,t){return null==e?e:e[t]}),e)},hasPropertyPath:function(e,t){if(!t)return!1;for(var n=t.split("."),r=0;r<n.length;r++){var i=n[r];if(!e||!window.Object.prototype.hasOwnProperty.call(e,i))return!1;e=e[i]}return!0},createPropertyPath:function(e,t,n){void 0===n&&(n=null);for(var r=t.split("."),i=e;r.length>1;){var a=r,o=a[0];r=a.slice(1),void 0===i[o]&&(i[o]={}),i=i[o]}return i[r[0]]=n,e},deletePropertyPath:function(e,t){if(e&&t){for(var n=t.split("."),r=0;r<n.length-1;r++)if(void 0===(e=e[n[r]]))return;delete e[n.pop()]}},defer:function(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n},bind:function(e,t){return function(){t.apply(e,arguments)}}},j={uniqueId:function(e){var t=2+(!e||e<0?0:e-2);return"_"+Math.random().toString(36).substr(2,t)},guid:function(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},B={addClassName:function(e,t){e&&(e.classList?e.classList.add(t):B.hasClassName(e,t)||(e.className+=t))},removeClassName:function(e,t){e&&(e.classList?e.classList.remove(t):B.hasClassName(e,t)&&(e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ").replace(/^\s+|\s+$/g,"")))},hasClassName:function(e,t){return e&&e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},setAttribute:function(e,t,n){e.setAttribute(t,n)},removeAttribute:function(e,t){e.removeAttribute(t)},setStyle:function(e,t,n){void 0!==e.style.getPropertyValue(t)&&e.style.setProperty(t,n)},appendChild:function(e,t){e&&t&&e.appendChild&&e.appendChild(t)},removeChild:function(e,t){e&&t&&e.removeChild&&e.removeChild(t)},prependTo:function(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},getElementById:function(e){return document.getElementById(e)},getElementsByTagName:function(e){return document.getElementsByTagName(e)},createElement:function(e){return document.createElement(e)},loadStyleSheetAsync:function(e){var t=this;return new Promise((function(n,r){var i=!1,a=t.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=e,a.async=!0,a.onload=a.onreadystatechange=function(){i||this.readyState&&"complete"!==this.readyState||(i=!0,n(this))},a.onerror=a.onabort=r,B.appendChild(document.head,a)}))},loadScriptAsync:function(e){var t=this;return new Promise((function(n,r){var i=!1,a=document.getElementsByTagName("script")[0],o=t.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.onload=o.onreadystatechange=function(){i||this.readyState&&"complete"!==this.readyState||(i=!0,n(this))},o.onerror=o.onabort=r,a&&a.parentNode&&a.parentNode.insertBefore(o,a)}))},getElementBySelector:function(e){try{return document.querySelector(e)}catch(e){return}},insertBefore:function(e,t,n){try{return e.insertBefore(t,n)}catch(e){return null}}},V={protocol:/^(https?:)/i.test(document.location.protocol)?document.location.protocol:"https:",execute:function(e,t,n,r,i,a){void 0===n&&(n="POST");var o=new XMLHttpRequest;return new Promise((function(s,l){o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)try{var e=JSON.parse(o.responseText);s(e)}catch(e){s(o.responseText)}else l(o.responseText)},o.open(n,e),r&&r.forEach((function(e,t){o.setRequestHeader(t,e)})),i&&(o.timeout=i),a&&(o.ontimeout=function(e){a(),l(e)}),o.send(t)}))},jsonp:function(e,t,n){var r,i=(n=n||{}).timeout?n.timeout:5e3,a=document.createElement("script"),o="jsonpcallback"+Math.round(Date.now()+1000001*Math.random()),s=e,l=function(){a&&a.parentNode&&a.parentNode.removeChild(a),window[o]=function(){},r&&clearTimeout(r)};return new Promise((function(n,u){i&&(r=setTimeout((function(){l(),u(new L(L.Severity.CRITICAL,L.Category.NETWORK,L.Code.TIMEOUT,e))}),i)),window[o]=function(r){var i=t(r,e);l(),n(i)},s.match(/\?/)?s+="&responseFormat=jsonp&callback="+o:s+="?responseFormat=jsonp&callback="+o,a.type="text/javascript",a.src=s,document.getElementsByTagName("head")[0].appendChild(a)}))},convertHeadersToDictionary:function(e){var t={};try{e.trim().split(/[\r\n]+/).forEach((function(e){var n=e.split(": "),r=n.shift().toLowerCase(),i=n.join(": ");t[r]=i}))}catch(e){}return t}},H={compare:function(e,t,n){void 0===n&&(n={});var r=(n=F.merge([{lexicographical:!1,zeroExtend:!0},n])).lexicographical,i=n.zeroExtend,a=(e||"0").split("."),o=(t||"0").split("."),s=function(e){return(r?/^\d+[A-Za-zαß]*$/:/^\d+[A-Za-zαß]?$/).test(e)},l=function(e){return e.map((function(e){var t=/[A-Za-zαß]/.exec(e);return Number(t?e.replace(t[0],"."+e.charCodeAt(t.index)):e)}))};if(!a.every(s)||!o.every(s))return NaN;if(i){for(;a.length<o.length;)a.push("0");for(;o.length<a.length;)o.push("0")}r||(a=l(a),o=l(o));for(var u=0;u<a.length;++u){if(o.length===u)return 1;if(a[u]!==o[u])return a[u]>o[u]?1:-1}return a.length!==o.length?-1:0}};function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var G=function(){function e(){this._createEl()}var t,n,r=e.prototype;return r.setSrc=function(e){e&&(this._posterUrl=e,B.setStyle(this._el,"background-image",'url("'+this._posterUrl+'")'),this.hide())},r.getElement=function(){return this._el},r._createEl=function(){if(!this._el){var e=this._el=B.createElement("div");B.setAttribute(e,"id",j.uniqueId(5)),B.setAttribute(e,"tabindex","-1")}},r._removeEl=function(){this._el&&B.removeChild(this._el.parentNode,this._el)},r.show=function(){B.setStyle(this._el,"display","")},r.hide=function(){B.setStyle(this._el,"display","none")},r.reset=function(){this._posterUrl="",B.setStyle(this._el,"background-image","")},r.destroy=function(){this.reset(),this._removeEl()},t=e,(n=[{key:"src",get:function(){return this._posterUrl}}])&&K(t.prototype,n),e}(),z={AD_CAN_SKIP:"adcanskip",AD_MANIFEST_LOADED:"admanifestloaded",AD_LOADED:"adloaded",AD_STARTED:"adstarted",AD_RESUMED:"adresumed",AD_PAUSED:"adpaused",AD_CLICKED:"adclicked",AD_SKIPPED:"adskipped",AD_COMPLETED:"adcompleted",AD_ERROR:"aderror",ADS_COMPLETED:"adscompleted",ALL_ADS_COMPLETED:"alladscompleted",AD_BREAK_START:"adbreakstart",AD_BREAK_END:"adbreakend",AD_FIRST_QUARTILE:"adfirstquartile",AD_MIDPOINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",USER_CLOSED_AD:"userclosedad",AD_VOLUME_CHANGED:"advolumechanged",AD_MUTED:"admuted",AD_PROGRESS:"adprogress",AD_BUFFERING:"adbuffering",AD_WATERFALLING:"adwaterfalling",AD_WATERFALLING_FAILED:"adwaterfallingfailed",AD_AUTOPLAY_FAILED:"adautoplayfailed"},W={ABORT:"abort",CAN_PLAY:"canplay",CAN_PLAY_THROUGH:"canplaythrough",DURATION_CHANGE:"durationchange",EMPTIED:"emptied",ENDED:"ended",ERROR:"error",LOADED_DATA:"loadeddata",LOADED_METADATA:"loadedmetadata",LOAD_START:"loadstart",PAUSE:"pause",PLAY:"play",PLAYING:"playing",PROGRESS:"progress",RATE_CHANGE:"ratechange",SEEKED:"seeked",SEEKING:"seeking",STALLED:"stalled",SUSPEND:"suspend",TIME_UPDATE:"timeupdate",VOLUME_CHANGE:"volumechange",WAITING:"waiting",ENTER_PICTURE_IN_PICTURE:"enterpictureinpicture",LEAVE_PICTURE_IN_PICTURE:"leavepictureinpicture",PRESENTATION_MODE_CHANGED:"webkitpresentationmodechanged"},Y={MEDIA_LOADED:"medialoaded",PLAYER_RESET:"playerreset",PLAYER_DESTROY:"playerdestroy",ENTER_FULLSCREEN:"enterfullscreen",EXIT_FULLSCREEN:"exitfullscreen",PLAY_FAILED:"playfailed",AUTOPLAY_FAILED:"autoplayfailed",FALLBACK_TO_MUTED_AUTOPLAY:"fallbacktomutedautoplay",CHANGE_SOURCE_STARTED:"changesourcestarted",CHANGE_SOURCE_ENDED:"changesourceended",MUTE_CHANGE:"mutechange",VIDEO_TRACK_CHANGED:"videotrackchanged",AUDIO_TRACK_CHANGED:"audiotrackchanged",TEXT_TRACK_CHANGED:"texttrackchanged",IMAGE_TRACK_CHANGED:"imagetrackchanged",TEXT_TRACK_ADDED:"texttrackadded",TEXT_CUE_CHANGED:"textcuechanged",TRACKS_CHANGED:"trackschanged",ABR_MODE_CHANGED:"abrmodechanged",PLAYER_STATE_CHANGED:"playerstatechanged",PLAYBACK_START:"playbackstart",FIRST_PLAY:"firstplay",FIRST_PLAYING:"firstplaying",PLAYBACK_ENDED:"playbackended",SOURCE_SELECTED:"sourceselected",TEXT_STYLE_CHANGED:"textstylechanged",MEDIA_RECOVERED:"mediarecovered",VR_STEREO_MODE_CHANGED:"vrstereomodechanged",FPS_DROP:"fpsdrop",BOOKMARK_ERROR:"bookmarkerror",CONCURRENCY_LIMIT:"concurrencylimit",RESIZE:"resize",TIMED_METADATA:"timedmetadata",TIMED_METADATA_CHANGE:"timedmetadatachange",TIMED_METADATA_ADDED:"timedmetadataadded",FRAG_LOADED:"fragloaded",MANIFEST_LOADED:"manifestloaded",USER_GESTURE:"usergesture",DRM_LICENSE_LOADED:"drmlicenseloaded",SOURCE_URL_SWITCHED:"sourceurlswitched"},q=F.merge([W,Y,z]);function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $=function(){function e(){}var t,n;return t=e,(n=[{key:"language",get:function(){var e;return(e=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage?navigator.userLanguage:navigator.language)&&e.match("-")&&(e=e.split("-")[0]),e}}])&&X(t,n),e}();function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Z=function(){function e(e){this.type=e,this._duration=0,this._timestamp=Date.now()/1e3}var t,n;return t=e,(n=[{key:"duration",get:function(){return this._duration},set:function(e){this._duration=e-this._timestamp}}])&&Q(t.prototype,n),e}(),J={IDLE:"idle",LOADING:"loading",PLAYING:"playing",PAUSED:"paused",BUFFERING:"buffering"};function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var te=function(){function e(e){var t,n,r,i,a,o,s,l,u,c=this;s=this,l="_transitions",(o={})[J.IDLE]=((t={})[W.LOAD_START]=function(){return c._updateState(J.LOADING)},t[W.PLAY]=function(){return c._updateState(J.BUFFERING)},t[W.SEEKED]=function(){return c._updateState(J.PAUSED)},t),o[J.LOADING]=((n={})[W.LOADED_METADATA]=function(){return c._updateState(J.PAUSED)},n[W.ERROR]=function(e){return e.payload.severity===L.Severity.CRITICAL&&c._updateState(J.IDLE)},n[W.SEEKED]=function(){c._prevState&&c._prevState.type===J.PLAYING&&c._updateState(J.PLAYING)},n),o[J.PAUSED]=((r={})[W.PLAY]=function(){return c._updateState(J.PLAYING)},r[W.PLAYING]=function(){return c._updateState(J.PLAYING)},r[W.ENDED]=function(){return c._updateState(J.IDLE)},r),o[J.PLAYING]=((i={})[W.PAUSE]=function(){return c._updateState(J.PAUSED)},i[W.WAITING]=function(){c._player.seeking?c._updateState(J.LOADING):(c._updateState(J.BUFFERING),c._lastWaitingTime=c._player.currentTime)},i[W.ENDED]=function(){return c._updateState(J.IDLE)},i[W.ERROR]=function(e){return e.payload.severity===L.Severity.CRITICAL&&c._updateState(J.IDLE)},i),o[J.BUFFERING]=((a={})[W.PLAYING]=function(){return c._updateState(J.PLAYING)},a[W.PAUSE]=function(){return c._updateState(J.PAUSED)},a[W.TIME_UPDATE]=function(){"IE"===g.browser.name&&c._player.currentTime!==c._lastWaitingTime&&c._prevState&&c._prevState.type===J.PLAYING&&(c._lastWaitingTime=null,c._updateState(J.PLAYING))},a),u=o,l in s?Object.defineProperty(s,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[l]=u,this._player=e,this._logger=S("StateManager"),this._eventManager=new D,this._history=[],this._prevState=null,this._curState=new Z(J.IDLE),this._attachListeners()}var t,n,r=e.prototype;return r._attachListeners=function(){this._eventManager.listen(this._player,W.ERROR,this._doTransition.bind(this)),this._eventManager.listen(this._player,W.ENDED,this._doTransition.bind(this)),this._eventManager.listen(this._player,W.PLAY,this._doTransition.bind(this)),this._eventManager.listen(this._player,W.LOAD_START,this._doTransition.bind(this)),this._eventManager.listen(this._player,W.PLAYING,this._doTransition.bind(this)),this._eventManager.listen(this._player,W.LOADED_METADATA,this._doTransition.bind(this)),this._eventManager.listen(this._player,W.PAUSE,this._doTransition.bind(this)),this._eventManager.listen(this._player,W.WAITING,this._doTransition.bind(this)),this._eventManager.listen(this._player,W.SEEKED,this._doTransition.bind(this)),this._eventManager.listen(this._player,W.TIME_UPDATE,this._doTransition.bind(this))},r._doTransition=function(e){(e.type!==W.TIME_UPDATE||this._curState===J.BUFFERING&&e.type===W.TIME_UPDATE)&&this._logger.debug("Do transition request",e.type);var t=this._transitions[this._curState.type];"function"==typeof t[e.type]&&t[e.type](e)},r._updateState=function(e){this._curState.type!==e&&(this._curState.duration=Date.now()/1e3,this._history.push(this._curState),this._prevState=this._curState,this._curState=new Z(e),this._logger.debug("Switch player state: from "+this._prevState.type+" to "+this._curState.type),this._dispatchEvent())},r._dispatchEvent=function(){var e=new m(Y.PLAYER_STATE_CHANGED,{oldState:this._prevState,newState:this._curState});this._player.dispatchEvent(e)},r.destroy=function(){this._history=[],this._eventManager.destroy()},r.reset=function(){this._history=[]},t=e,(n=[{key:"currentState",get:function(){return this._curState}},{key:"previousState",get:function(){return this._prevState}},{key:"history",get:function(){return this._history}}])&&ee(t.prototype,n),e}();function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var re=function(){var e,t;function n(e){void 0===e&&(e={}),this._id=e.id,this._active=e.active,this._label=e.label,this._language=e.language,this._index=e.index,this._available="boolean"!=typeof e.available||e.available,this.clone=n.clone.bind(null,this)}return n.langComparer=function(e,t,n,r){try{return e=e.toLowerCase(),t=t.toLowerCase(),n&&(n=n.toLowerCase()),r?e===t||n===t:!!e&&(e.startsWith(t)||t.startsWith(e))}catch(e){return!1}},n.clone=function(e){return Object.assign(Object.create(Object.getPrototypeOf(e)),e)},e=n,(t=[{key:"id",get:function(){return this._id}},{key:"active",get:function(){return this._active},set:function(e){this._active=e}},{key:"label",get:function(){return this._label},set:function(e){this._label=e}},{key:"language",get:function(){return this._language}},{key:"index",get:function(){return this._index},set:function(e){this._index=e}},{key:"available",get:function(){return this._available},set:function(e){this._available=e}}])&&ne(e.prototype,t),n}();function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ae=function(e){var t,n,r,i;function a(t){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this)._bandwidth=t.bandwidth,n._width=t.width,n._height=t.height,n._label=t.label?t.label:n._height?n._height+"p":void 0,n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r=a,(i=[{key:"bandwidth",get:function(){return this._bandwidth}},{key:"width",get:function(){return this._width}},{key:"height",get:function(){return this._height}}])&&ie(r.prototype,i),a}(re),oe=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(re);function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue={"":!0,up:!0};function ce(e){return"number"==typeof e&&e>=0&&e<=100}var pe,de=function(){function e(){le(this,"_width",100),le(this,"_lines",3),le(this,"_regionAnchorX",0),le(this,"_regionAnchorY",100),le(this,"_viewportAnchorX",0),le(this,"_viewportAnchorY",100),le(this,"_scroll","")}var t,n;return t=e,(n=[{key:"width",get:function(){return this._width},set:function(e){if(!ce(e))throw new Error("Width must be between 0 and 100.");this._width=e}},{key:"scroll",get:function(){return this._scroll},set:function(e){var t=function(e){return"string"==typeof e&&!!ue[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");this._scroll=t}},{key:"viewportAnchorY",get:function(){return this._viewportAnchorY},set:function(e){if(!ce(e))throw new Error("ViewportAnchorY must be between 0 and 100.");this._viewportAnchorY=e}},{key:"viewportAnchorX",get:function(){return this._viewportAnchorX},set:function(e){if(!ce(e))throw new Error("ViewportAnchorX must be between 0 and 100.");this._viewportAnchorX=e}},{key:"regionAnchorX",get:function(){return this._regionAnchorX},set:function(e){if(!ce(e))throw new Error("RegionAnchorY must be between 0 and 100.");this._regionAnchorX=e}},{key:"lines",get:function(){return this._lines},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");this._lines=e}},{key:"regionAnchorY",get:function(){return this._regionAnchorY},set:function(e){if(!ce(e))throw new Error("RegionAnchorX must be between 0 and 100.");this._regionAnchorY=e}}])&&se(t.prototype,n),e}();function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}pe="undefined"!=typeof window&&window.VTTRegion?window.VTTRegion:de;var ge=function(){function e(){he(this,"_fontSizeIndex",2),he(this,"fontFamily",e.FontFamily.SANS_SERIF),he(this,"fontColor",e.StandardColors.WHITE),he(this,"fontOpacity",e.StandardOpacities.OPAQUE),he(this,"backgroundColor",e.StandardColors.BLACK),he(this,"backgroundOpacity",e.StandardOpacities.OPAQUE),he(this,"fontEdge",e.EdgeStyles.NONE)}e.toRGBA=function(e,t){return"rgba("+e.concat(t).join(",")+")"},e.fromJson=function(t){var n=function(e,t){return null!=e?e:t},r=new e;return r.fontEdge=n(t.fontEdge,r.fontEdge),r.fontSize=n(t.fontSize,r.fontSize),r.fontScale=n(t.fontScale,r.fontScale),r.fontColor=n(t.fontColor,r.fontColor),r.fontOpacity=n(t.fontOpacity,r.fontOpacity),r.backgroundColor=n(t.backgroundColor,r.backgroundColor),r.backgroundOpacity=n(t.backgroundOpacity,r.backgroundOpacity),r.fontFamily=n(t.fontFamily,r.fontFamily),r},e.toJson=function(e){return{fontEdge:e.fontEdge,fontSize:e.fontSize,fontScale:e.fontScale,fontColor:e.fontColor,fontOpacity:e.fontOpacity,backgroundColor:e.backgroundColor,backgroundOpacity:e.backgroundOpacity,fontFamily:e.fontFamily}};var t,n,r=e.prototype;return r.getTextShadow=function(){for(var t=[],n=0;n<this.fontEdge.length;n++){var r=this.fontEdge[n].slice(0,3),i=this.fontEdge[n].slice(3,6);t.push(e.toRGBA(r,this.fontOpacity)+" "+i.join("px ")+"px")}return t.join(",")},r.toCSS=function(){var t=[];return t.push("font-family: "+this.fontFamily),t.push("color: "+e.toRGBA(this.fontColor,this.fontOpacity)),t.push("background-color: "+e.toRGBA(this.backgroundColor,this.backgroundOpacity)),t.push("text-shadow: "+this.getTextShadow()),t.join("!important; ")},r.clone=function(){return e.fromJson(e.toJson(this))},r.isEqual=function(t){return JSON.stringify(e.toJson(this))===JSON.stringify(e.toJson(t))},t=e,(n=[{key:"fontSize",set:function(t){var n=e.FontSizes.findIndex((function(e){return e.label===t}));-1!==n&&(this._fontSizeIndex=n)},get:function(){return e.FontSizes[this._fontSizeIndex].label}},{key:"fontScale",set:function(t){var n=e.FontSizes.findIndex((function(e){return e.value===t}));-1!==n&&(this._fontSizeIndex=n)},get:function(){return e.FontSizes[this._fontSizeIndex].value}},{key:"implicitFontScale",get:function(){return.25*e.FontSizes[this._fontSizeIndex].value+1}}])&&fe(t.prototype,n),e}();he(ge,"FontFamily",{ARIAL:"Arial",HELVETICA:"Helvetica",VERDANA:"Verdana",SANS_SERIF:"sans-serif"}),he(ge,"StandardColors",{WHITE:[255,255,255],BLACK:[0,0,0],RED:[255,0,0],GREEN:[0,255,0],BLUE:[0,0,255],YELLOW:[255,255,0],MAGENTA:[255,0,255],CYAN:[0,255,255]}),he(ge,"StandardOpacities",{OPAQUE:1,SEMI_HIGH:.75,SEMI_LOW:.25,TRANSPARENT:0}),he(ge,"EdgeStyles",{NONE:[],RAISED:[[34,34,34,1,1,0],[34,34,34,2,2,0],[34,34,34,3,3,0]],DEPRESSED:[[204,204,204,1,1,0],[204,204,204,0,1,0],[34,34,34,-1,-1,0],[34,34,34,0,-1,0]],UNIFORM:[[34,34,34,0,0,4],[34,34,34,0,0,4],[34,34,34,0,0,4],[34,34,34,0,0,4]],DROP:[[34,34,34,2,2,3],[34,34,34,2,2,4],[34,34,34,2,2,5]]}),he(ge,"FontSizes",[{value:-2,label:"50%"},{value:-1,label:"75%"},{value:0,label:"100%"},{value:2,label:"200%"},{value:3,label:"300%"},{value:4,label:"400%"}]);var ye=ge;function ve(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}var me={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},be={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},_e={v:"title",lang:"lang"},Ee={rt:"ruby"};function ke(){this.values=Oe(null)}function Te(e,t,n,r){var i=r?e.split(r):[e];for(var a in i)if("string"==typeof i[a]){var o=i[a].split(n);2===o.length&&t(o[0],o[1])}}function Ae(e,t,n){var r=e;function i(){var t=ve(e);if(null===t)throw new Le(Le.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function a(){e=e.replace(/^\s+/,"")}if(a(),t.startTime=i(),a(),"--\x3e"!==e.substr(0,3))throw new Le(Le.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),a(),t.endTime=i(),a(),function(e,t){var r=new ke;Te(e,(function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),o=a[0];r.integer(e,o),r.percent(e,o)&&r.set("snapToLines",!1),r.alt(e,o,["auto"]),2===a.length&&r.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),r.percent(e,a[0]),2===a.length&&r.alt("positionAlign",a[1],["start","center","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical",""),t.line=r.get("line",t.line||"auto"),t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100);try{t.align=r.get("align","center")}catch(e){t.align=r.get("align","middle")}t.position=r.get("position",t.position||"auto"),t.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}function we(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]+>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function r(e){return me[e]}function i(e){for(var t;t=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(t[0],r);return e}function a(e,t){return!Ee[t.localName]||Ee[t.localName]===e.localName}function o(t,n){var r=be[t];if(!r)return null;var i=e.document.createElement(r),a=_e[t];return a&&n&&(i[a]=n.trim()),i}for(var s,l=e.document.createElement("div"),u=l,c=[];null!==(s=n());)if("<"!==s[0])u.appendChild(e.document.createTextNode(i(s)));else{if("/"===s[1]){c.length&&c[c.length-1]===s.substr(2).replace(">","")&&(c.pop(),u=u.parentNode);continue}var p=ve(s.substr(1,s.length-2)),d=void 0;if(p){d=e.document.createProcessingInstruction("timestamp",p),u.appendChild(d);continue}var f=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!f)continue;if(!(d=o(f[1],f[3])))continue;if(!a(u,d))continue;f[2]&&(d.className=f[2].substr(1).replace("."," ")),c.push(f[1]),u.appendChild(d),u=d}return l}ke.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var Se=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function Ce(e){for(var t=0;t<Se.length;t++){var n=Se[t];if(e>=n[0]&&e<=n[1])return!0}return!1}var xe=function(e){var t,n;function r(t,n,r){var i;i=e.call(this)||this;var a="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent);"undefined"!=typeof WebVTTSet&&(WebVTTSet.fontSet,WebVTTSet.backgroundSet,WebVTTSet.edgeSet),i.cue=n,i.cueDiv=we(t,n.text);var o={color:r.color,backgroundColor:r.backgroundColor,textShadow:r.textShadow,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};a||(o.writingMode=""===n.vertical?"horizontal-tb":"lr"===n.vertical?"vertical-lr":"vertical-rl",o.unicodeBidi="plaintext"),i.applyStyles(o,i.cueDiv),i.div=t.document.createElement("div"),o={textAlign:"middle"===n.align?"center":n.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},a||(o.direction=function(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var a=n.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var a=0;a<n.length;a++)if(Ce(n.charCodeAt(a)))return"rtl";return"ltr"}(i.cueDiv),o.writingMode=""===n.vertical?"horizontal-tb":"lr"===n.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),i.applyStyles(o),i.div.appendChild(i.cueDiv);var s=0;switch(n.positionAlign||n.align){case"start":case"left":case"line-left":s=n.position;break;case"center":s=n.position-n.size/2;break;case"end":case"right":case"line-right":s=n.position-n.size}return""===n.vertical?i.applyStyles({left:i.formatStyle(s,"%"),width:i.formatStyle(Math.min(n.size,100-s)||n.size,"%")}):i.applyStyles({top:i.formatStyle(s,"%"),height:i.formatStyle(Math.min(n.size,100-s)||n.size,"%")}),i.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})},i}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(function(){function e(){}var t=e.prototype;return t.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},t.formatStyle=function(e,t){return 0===e?0:e+t},e}()),Ie=function(){function e(e){var t,n,r,i;if(function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"overlaps",(function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top})),e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=t||e.lineHeight||13}var t=e.prototype;return t.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},t.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},t.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},t.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},t.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},t.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},e.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},e}();function Pe(e,t,n,r){var i=new Ie(t),a=t.cue,o=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)n[i].mode===$e.MODE.SHOWING&&r++;return-1*++r}(a),s=[];if(a.snapToLines){var l;switch(a.vertical){case"":s=["+y","-y"],l="height";break;case"rl":s=["+x","-x"],l="width";break;case"lr":s=["-x","+x"],l="width"}var u=i.lineHeight,c=u*Math.round(o),p=n[l]+u,d=s[0];Math.abs(c)>p&&(c=c<0?-1:1,c*=Math.ceil(p/u)*u),o<0&&(c+=""===a.vertical?n.height:n.width,s=s.reverse()),i.move(d,c)}else{var f=i.lineHeight/n.height*100;switch(a.lineAlign){case"center":o-=f/2;break;case"end":o-=f}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new Ie(t)}var h=function(e,t){for(var i,a=new Ie(e),o=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r);)e.move(t[s]);if(e.within(n))return e;var l=e.intersectPercentage(n);o>l&&(i=new Ie(e),o=l),e=new Ie(a)}return i||a}(i,s);t.move(h.toCSSCompatValues(n))}var De=function(e,t){this.window=e,this.state="INITIAL",this.buffer="",this.decoder=t||new TextDecoder("utf8"),this.regionList=[]},Re=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},Oe=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function Le(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Le.prototype=Oe(Error.prototype),Le.prototype.constructor=Le,Le.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},De.prototype={reportOrThrowError:function(e){if(!(e instanceof Le))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function r(e){Te(e,(function(e,n){switch(e){case"Region":!function(e){var n=new ke;if(Te(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var i=new ke;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(e+"X",i.get("x")),n.set(e+"Y",i.get("y"));break;case"scroll":n.alt(e,t,["up"])}}),/=/,/\s/),n.has("id")){var r=new pe;r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}(n)}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var i;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var a=(i=n()).match(/^WEBVTT([ \t].*)?$/);if(!a||!a[0])throw new Le(Le.Errors.BadSignature);t.state="HEADER"}for(var o=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(o?o=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new Be(0,0,""),t.state="CUE",-1===i.indexOf("--\x3e")){t.cue.id=i;continue}case"CUE":try{Ae(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var s=-1!==i.indexOf("--\x3e");if(!i||s&&(o=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=i;continue;case"BADCUE":i||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new Le(Le.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}};var Ue={"":!0,lr:!0,rl:!0},Fe={start:!0,center:!0,end:!0,left:!0,right:!0};function je(e){return"string"==typeof e&&!!Fe[e.toLowerCase()]&&e.toLowerCase()}var Be,Ve,He,Ke=function(){function e(e,t,n){Ne(this,"hasBeenReset",!1),Ne(this,"displayState",void 0),Ne(this,"_id",""),Ne(this,"_pauseOnExit",!1),Ne(this,"_region",null),Ne(this,"_vertical",""),Ne(this,"_snapToLines",!0),Ne(this,"_line","auto"),Ne(this,"_lineAlign","start"),Ne(this,"_position",50),Ne(this,"_positionAlign","center"),Ne(this,"_size",50),Ne(this,"_align","center"),this._startTime=e,this._endTime=t,this._text=n}var t,n,r=e.prototype;return r.resetCue=function(){this.hasBeenReset=!0},r.getCueAsHTML=function(){return function(e,t){return e&&t?we(e,t):null}(window,this.text)},t=e,(n=[{key:"id",get:function(){return this._id},set:function(e){this._id=""+e}},{key:"pauseOnExit",get:function(){return this._pauseOnExit},set:function(e){this._pauseOnExit=e}},{key:"startTime",get:function(){return this._startTime},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");this._startTime=e,this.resetCue()}},{key:"endTime",get:function(){return this._endTime},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");this._endTime=e,this.resetCue()}},{key:"text",get:function(){return this._text},set:function(e){this._text=""+e,this.resetCue()}},{key:"region",get:function(){return this._region},set:function(e){this._region=e,this.resetCue()}},{key:"vertical",get:function(){return this._vertical},set:function(e){var t=function(e){return"string"==typeof e&&!!Ue[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");"string"==typeof t&&(this._vertical=t,this.resetCue())}},{key:"snapToLines",get:function(){return this._snapToLines},set:function(e){this._snapToLines=e,this.resetCue()}},{key:"line",get:function(){return this._line},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");this._line=e,this.resetCue()}},{key:"lineAlign",get:function(){return this._lineAlign},set:function(e){var t=je(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");"string"==typeof t&&(this._lineAlign=t,this.resetCue())}},{key:"position",get:function(){return this._position},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");this._position=e,this.resetCue()}},{key:"positionAlign",get:function(){return this._positionAlign},set:function(e){var t=je(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");"string"==typeof t&&(this._positionAlign=t,this.resetCue())}},{key:"size",get:function(){return this._size},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");this._size=e,this.resetCue()}},{key:"align",get:function(){return this._align},set:function(e){var t=je(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");"string"==typeof t&&(this._align=t,this.resetCue())}}])&&Me(t.prototype,n),e}();function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Be="undefined"!=typeof window&&window.VTTCue?window.VTTCue:Ke;var We,Ye,qe=(He=Ve=function(e){var t,n,r,i;function a(t){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this)._label=n.label||n.language,n._kind=t.kind,n._external=t.external,n._index=a._generateIndex(),n._default=t.default||!1,n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a._generateIndex=function(){return a._tracksCount++},a.reset=function(){a._tracksCount=0},r=a,(i=[{key:"kind",get:function(){return this._kind}},{key:"external",get:function(){return this._external}},{key:"default",get:function(){return this._default}}])&&ze(r.prototype,i),a}(re),(Ye="_tracksCount")in(We=Ve)?Object.defineProperty(We,Ye,{value:0,enumerable:!0,configurable:!0,writable:!0}):We[Ye]=0,He);function Xe(e){for(var t,n=[],r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ge(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(e);!(t=r()).done;){var i=t.value;if(window.VTTCue&&i instanceof window.VTTCue||window.DataCue&&i instanceof window.DataCue)n.push(i);else if(window.TextTrackCue&&i instanceof window.TextTrackCue)try{n.push(new Be(i.startTime,i.endTime,i.text))}catch(e){new L(L.Severity.RECOVERABLE,L.Category.TEXT,L.Code.UNABLE_TO_CREATE_TEXT_CUE,e)}}return n}qe.MODE={DISABLED:"disabled",SHOWING:"showing",HIDDEN:"hidden"},qe.KIND={METADATA:"metadata",SUBTITLES:"subtitles",CAPTIONS:"captions"},qe.EXTERNAL_TRACK_ID="playkit-external-track",qe.isMetaDataTrack=function(e){return e&&e.kind===qe.KIND.METADATA},qe.isNativeTextTrack=function(e){return e&&[qe.KIND.SUBTITLES,qe.KIND.CAPTIONS].includes(e.kind)},qe.isExternalTrack=function(e){return e&&[e.language,e.label].includes(qe.EXTERNAL_TRACK_ID)};var $e=qe,Qe=Object.freeze({VIDEO:"video",AUDIO:"audio",TEXT:"text",IMAGE:"image"}),Ze={DASH:"dash",HLS:"hls",PROGRESSIVE:"progressive",IMAGE:"image"},Je={HTML5:"html5",FLASH:"flash",SILVERLIGHT:"silverlight",CAST:"cast",YOUTUBE:"youtube",IMAGE:"image"},et={VOD:"Vod",LIVE:"Live",AUDIO:"Audio",IMAGE:"Image",UNKNOWN:"Unknown"},tt={MANUAL:"manual",AUTO:"auto"},nt={ANONYMOUS:"anonymous",USE_CREDENTIALS:"use-credentials"},rt=function(){function e(){}return e.prototype.callNext=function(e){e&&e()},e}(),it=function(){function e(e){this._actions=e,this._middlewares=new v,this._logger=S("Middleware")}var t=e.prototype;return t.use=function(e){for(var t in this._actions){var n=this._actions[t];"function"==typeof e[n]&&(this._logger.debug("Register <"+e.id+"> for action "+n),this._middlewares.push(n,e[n].bind(e)))}},t.run=function(e,t){var n=this;this._logger.debug("Start middleware chain for action "+e);for(var r=this._middlewares.get(e),i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];this._executeMiddleware(r,(function(){n._logger.debug("Finish middleware chain for action "+e),t.apply(void 0,arguments)}),a)},t._executeMiddleware=function(e,t,n){var r=n,i=function(e,t,n){var i;(null==t?void 0:t.length)&&(r=t),(null==(i=r)?void 0:i.length)?e.apply(void 0,r.concat([n])):e(n)};e.reduceRight((function(e,t){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];i(t,r,e)}}),(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];i(t,n)}))()},e}(),at=function(){function e(){this._middleware=new it(e.Actions)}var t=e.prototype;return t.use=function(e){this._middleware.use(e)},t.load=function(t){this._middleware.run(e.Actions.LOAD,t)},t.play=function(t){this._middleware.run(e.Actions.PLAY,t)},t.pause=function(t){this._middleware.run(e.Actions.PAUSE,t)},t.setCurrentTime=function(t,n){this._middleware.run(e.Actions.SET_CURRENT_TIME,n,t)},e}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(at,"Actions",{LOAD:"load",PLAY:"play",PAUSE:"pause",SET_CURRENT_TIME:"setCurrentTime"});var ot={NONE:"none",ANY:"any",NATURAL:"natural",LANDSCAPE:"landscape",PORTRAIT:"portrait",PORTRAIT_PRIMARY:"portrait-primary",PORTRAIT_SECONDARY:"portrait-secondary",LANDSCAPE_PRIMARY:"landscape-primary",LANDSCAPE_SECONDARY:"landscape-secondary"},st={log:{level:"ERROR"},text:{enableCEA708Captions:!0,useNativeTextTrack:!1,forceCenter:!1,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es"},playback:{audioLanguage:"",textLanguage:"",volume:1,playsinline:!0,preload:"none",autoplay:!1,loop:!1,autopause:!1,allowMutedAutoPlay:!0,muted:!1,pictureInPicture:!0,options:{html5:{hls:{},dash:{},native:{}}},preferNative:{hls:!1,dash:!1},inBrowserFullscreen:!1,screenLockOrientionMode:ot.NONE,playAdsWithMSE:!1,streamPriority:[{engine:"html5",format:"hls"},{engine:"html5",format:"dash"},{engine:"html5",format:"progressive"},{engine:"flash",format:"hls"}]},streaming:{forceBreakStall:!1},abr:{enabled:!0,fpsDroppedFramesInterval:5e3,fpsDroppedMonitoringThreshold:.2,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,restrictions:{minHeight:0,maxHeight:1/0,minWidth:0,maxWidth:1/0,minBitrate:0,maxBitrate:1/0}},drm:{keySystem:""},network:{maxStaleLevelReloads:20}},lt={options:{},metadata:{}},ut=(n(5),{MANIFEST:0,SEGMENT:1,LICENSE:2});function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pt=function(e){var t,n,r,i;function a(t){var n;n=e.call(this,t)||this;var r=t.url,i=t.width,a=t.height,o=t.duration,s=t.rows,l=t.cols,u=t.customData;return n._url=r,n._width=i,n._height=a,n._duration=o,n._customData=u,n._rows=s||1,n._cols=l||1,n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r=a,(i=[{key:"url",get:function(){return this._url}},{key:"width",get:function(){return this._width}},{key:"height",get:function(){return this._height}},{key:"duration",get:function(){return this._duration}},{key:"rows",get:function(){return this._rows}},{key:"cols",get:function(){return this._cols}},{key:"customData",get:function(){return this._customData}},{key:"sliceWidth",get:function(){return this._width/this._cols}},{key:"sliceHeight",get:function(){return this._height/this._rows}}])&&ct(r.prototype,i),a}(re);function dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ft=function(){function e(e){var t=e.url,n=e.width,r=e.height,i=e.x,a=e.y;this._url=t,this._width=n,this._height=r,this._x=i,this._y=a}var t,n;return t=e,(n=[{key:"url",get:function(){return this._url}},{key:"width",get:function(){return this._width}},{key:"height",get:function(){return this._height}},{key:"x",get:function(){return this._x}},{key:"y",get:function(){return this._y}}])&&dt(t.prototype,n),e}();function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=function(e){var t,n;function r(t,n,r){var i;return void 0===r&&(r={}),gt(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i=e.call(this)||this),"_capabilities",{fpsControl:!1}),i._videoElement=t,i._sourceObj=n,i._config=r,i._onDurationChanged=function(){i.isLive()&&i._videoElement.paused&&i._trigger(W.TIME_UPDATE)},i._eventManager=new D,i._handleLiveTimeUpdate(),i}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.isSupported=function(){return!0},r.isMSESupported=function(){var e=window.MediaSource||window.WebKitMediaSource;return!!e&&"function"==typeof e.isTypeSupported};var i,a,o=r.prototype;return o.destroy=function(){return this._sourceObj=null,this._config={},this.disableNativeTextTracks(),this._videoElement.removeEventListener(W.DURATION_CHANGE,this._onDurationChanged),this._eventManager.destroy(),Promise.resolve()},o._onTrackChanged=function(e){e instanceof ae?(r._logger.debug("Video track changed",e),this._trigger(Y.VIDEO_TRACK_CHANGED,{selectedVideoTrack:e})):e instanceof oe?(r._logger.debug("Audio track changed",e),this._trigger(Y.AUDIO_TRACK_CHANGED,{selectedAudioTrack:e})):e instanceof $e?(r._logger.debug("Text track changed",e),this._trigger(Y.TEXT_TRACK_CHANGED,{selectedTextTrack:e})):e instanceof pt&&(r._logger.debug("Image track changed",e),this._trigger(Y.IMAGE_TRACK_CHANGED,{selectedImageTrack:e}))},o._trigger=function(e,t){this.dispatchEvent(new m(e,t))},r.canPlayType=function(e,t){return r._throwNotImplementedError("static canPlayType")},o.load=function(){return r._throwNotImplementedError("load")},o.selectVideoTrack=function(e){return r._throwNotImplementedError("selectVideoTrack")},o.selectAudioTrack=function(e){r._throwNotImplementedError("selectAudioTrack")},o.selectTextTrack=function(e){r._throwNotImplementedError("selectTextTrack")},o.selectImageTrack=function(e){},o.hideTextTrack=function(){r._throwNotImplementedError("hideTextTrack")},o.enableAdaptiveBitrate=function(){r._throwNotImplementedError("enableAdaptiveBitrate")},o.isAdaptiveBitrateEnabled=function(){return r._throwNotImplementedError("isAdaptiveBitrateEnabled")},o.applyABRRestriction=function(e){return r._throwNotImplementedError("applyABRRestriction")},o._getLiveEdge=function(){return r._throwNotImplementedError("_getLiveEdge")},o.seekToLiveEdge=function(){r._throwNotImplementedError("seekToLiveEdge")},o.isLive=function(){return r._throwNotImplementedError("isLive")},o.isOnLiveEdge=function(){return this.liveDuration-this._videoElement.currentTime<=2*this.getSegmentDuration()},o.setMaxBitrate=function(e){},o.attachMediaSource=function(){},o.detachMediaSource=function(){},o._handleLiveTimeUpdate=function(){this._videoElement.addEventListener(W.DURATION_CHANGE,this._onDurationChanged)},o.disableNativeTextTracks=function(){Array.from(this._videoElement.textTracks).forEach((function(e){$e.isNativeTextTrack(e)&&!$e.isExternalTrack(e)&&(e.mode=$e.MODE.DISABLED)}))},o.handleMediaError=function(e){return!1},o.getStartTimeOfDvrWindow=function(){return r._throwNotImplementedError("getStartTimeOfDvrWindow")},o.getThumbnail=function(e){return null},o.getSegmentDuration=function(){return r._throwNotImplementedError("getSegmentDuration")},r._throwNotImplementedError=function(e){throw new L(L.Severity.CRITICAL,L.Category.PLAYER,L.Code.RUNTIME_ERROR_METHOD_NOT_IMPLEMENTED,e)},o.getDrmInfo=function(){return null},i=r,(a=[{key:"liveDuration",get:function(){return r._throwNotImplementedError("liveDuration")}},{key:"src",get:function(){return this._loadPromise&&this._sourceObj?this._sourceObj.url:""},set:function(e){!this._loadPromise&&this._sourceObj&&(this._sourceObj.url=e)}},{key:"capabilities",get:function(){return this._capabilities}},{key:"targetBuffer",get:function(){return NaN}}])&&ht(i.prototype,a),r}(C);function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mt(e,t){var n=function(e,t){var n=function(e,t,n){return e>=(t||0)&&e<=(n||1/0)},r=t.maxHeight,i=t.minHeight,a=t.maxWidth,o=t.minWidth;if(0!==i||0!==o||r!==1/0||a!==1/0)return e.filter((function(e){return n(e.height,i,r)})).filter((function(e){return n(e.width,o,a)}));var s=t.maxBitrate,l=t.minBitrate;return 0!==l||s!==1/0?e.filter((function(e){return n(e.bandwidth,l,s)})):e}(e,t);return n.length?n:[]}gt(yt,"id","BaseAdapter"),gt(yt,"getLogger",S),gt(yt,"_logger",yt.getLogger(yt.id));var bt={WIDEVINE:"com.widevine.alpha",PLAYREADY:"com.microsoft.playready",FAIRPLAY:"com.apple.fairplay"},_t=S("FairPlay"),Et=function(){function e(){}return e.isConfigured=function(e,t){return bt.FAIRPLAY===t.keySystem&&!!e.find((function(e){return e.scheme===t.keySystem}))},e.canPlayDrm=function(e){var t=e.some((function(e){return e.scheme===bt.FAIRPLAY}))&&!!window.WebKitMediaKeys;return _t.debug("Can play DRM scheme of: "+bt.FAIRPLAY+" is "+t.toString()),t},e.setDrmPlayback=function(e,t){_t.debug("Sets drm playback");var n=t.find((function(e){return e.scheme===bt.FAIRPLAY}));n&&(e.licenseUrl=n.licenseUrl,e.certificate=n.certificate)},e}(),kt=n(2);function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var At={NEED_KEY:"webkitneedkey",KEY_MESSAGE:"webkitkeymessage",KEY_ADDED:"webkitkeyadded",KEY_ERROR:"webkitkeyerror"},wt=function(){function e(t,n,r,i){var a=this;Tt(this,"_logger",S("FairPlayDrmHandler")),Tt(this,"_retryLicenseRequest",4),Tt(this,"_defaultConfig",{licenseUrl:"",certificate:"",network:{responseFilter:function(t,n){var r={};try{var i=new DataView(n.data),o=(new TextDecoder).decode(i).trim();r=JSON.parse(o)}catch(e){return void a._onError(L.Code.BAD_FAIRPLAY_RESPONSE,{error:e,responseText:n.data})}var s=e._validateResponse(r);s.valid?n.data=e._base64DecodeUint8Array(r.ckc):a._onError(L.Code.BAD_FAIRPLAY_RESPONSE,s)}}}),this._config=F.mergeDeep({},this._defaultConfig,n),this._errorCallback=r,this._drmResponseCallback=i,this._videoElement=t,this._onWebkitNeedKeyHandler=function(e){return a._onWebkitNeedKey(e)},this._eventManager=new D,this._eventManager.listen(this._videoElement,At.NEED_KEY,this._onWebkitNeedKeyHandler)}var t=e.prototype;return t._onWebkitNeedKey=function(t){var n=this;this._logger.debug("Webkit need key triggered");var r=t.target,i=t.initData,a=e._extractContentId(i),o=e._base64DecodeUint8Array(this._config.certificate);if(i=e._concatInitDataIdAndCertificate(i,a,o),!r.webkitKeys){var s=this._selectKeySystem();this._logger.debug("Sets media keys"),r.webkitSetMediaKeys(new window.WebKitMediaKeys(s))}r.webkitKeys||this._onError(L.Code.COULD_NOT_CREATE_MEDIA_KEYS),this._logger.debug("Creates session"),this._keySession=r.webkitKeys.createSession("video/mp4",i),this._keySession||this._onError(L.Code.COULD_NOT_CREATE_KEY_SESSION),this._keySession.contentId=a,this._eventManager.listen(this._keySession,At.KEY_MESSAGE,(function(e){return n._onWebkitKeyMessage(e)})),this._eventManager.listen(this._keySession,At.KEY_ADDED,(function(){return n._onWebkitKeyAdded()})),this._eventManager.listen(this._keySession,At.KEY_ERROR,(function(e){return n._onWebkitKeyError(e)}))},t.getDrmInfo=function(){var e=this._config;return{certificate:e.certificate,licenseUrl:e.licenseUrl,scheme:bt.FAIRPLAY}},t.destroy=function(){this._eventManager.destroy(),this._keySession.close(),this._keySession=null},t._onWebkitKeyMessage=function(t){var n=this;this._logger.debug("Webkit key message triggered");var r=t.message,i=new XMLHttpRequest;i.responseType="arraybuffer",this._eventManager.listenOnce(i,"load",(function(e){return n._licenseRequestLoaded(e)}));var a,o={url:this._config.licenseUrl,body:e._base64EncodeUint8Array(r),headers:{}},s=this._config.network.requestFilter;if(s){this._logger.debug("Apply request filter");try{a=s(ut.LICENSE,o)}catch(e){a=Promise.reject(e)}}(a=a||Promise.resolve(o)).then((function(e){i.open("POST",e.url,!0);var t=!0;e.headers&&Object.entries(e.headers).forEach((function(e){var n=e[0],r=e[1];"string"==typeof r&&i.setRequestHeader(n,r),t&&(t="content-type"!==n.toLowerCase())})),"boolean"==typeof e.withCredentials&&(i.withCredentials=e.withCredentials),t&&i.setRequestHeader("Content-type","application/json"),n._logger.debug("Ready for license request"),i.onerror=function(){n._onError(L.Code.LICENSE_REQUEST_FAILED,{status:i.status,responseText:i.responseText})},n._licenseRequestTime=Date.now(),i.send(e.body)})).catch((function(e){n._errorCallback(new L(L.Severity.CRITICAL,L.Category.NETWORK,L.Code.REQUEST_FILTER_ERROR,e)),n.destroy()}))},t._onWebkitKeyAdded=function(){this._logger.debug("Decryption key was added to session")},t._onWebkitKeyError=function(e){this._logger.error("A decryption key error was encountered",e),this._retryLicenseRequest<=0&&this._onError(L.Code.LICENSE_REQUEST_FAILED,e.target.error),this._retryLicenseRequest--},t._licenseRequestLoaded=function(e){var t=this;this._logger.debug("License request loaded");var n=e.target;if(n.status>299)this._onError(L.Code.LICENSE_REQUEST_FAILED,{status:n.status,error:n.responseText});else{if(this._drmResponseCallback){var r=Date.now()-this._licenseRequestTime;this._drmResponseCallback({licenseTime:r/1e3,scheme:bt.FAIRPLAY})}var i,a=n.responseURL,o=n.response,s={url:a,originalUrl:this._config.licenseUrl,data:o,headers:V.convertHeadersToDictionary(n.getAllResponseHeaders())};this._logger.debug("Apply response filter");try{i=this._config.network.responseFilter(ut.LICENSE,s)}catch(e){i=Promise.reject(e)}(i=i||Promise.resolve(s)).then((function(e){t._keySession.update(e.data)})).catch((function(e){t._errorCallback(new L(L.Severity.CRITICAL,L.Category.NETWORK,L.Code.RESPONSE_FILTER_ERROR,e)),t.destroy()}))}},t._onError=function(e,t){this._errorCallback(new L(L.Severity.CRITICAL,L.Category.DRM,e,t))},e._validateResponse=function(e){return e.message&&e.message.indexOf("error")>0||null===e.reference||500===e.status_code?{valid:!1,details:"internal server error"}:""===e.ckc?{valid:!1,details:"ckc is missing"}:{valid:!0}},t._selectKeySystem=function(){var e=null;return window.WebKitMediaKeys.isTypeSupported("com.apple.fps.1_0","video/mp4")?e="com.apple.fps.1_0":this._logger.warn("Key System not supported"),e},e._extractContentId=function(t){var n=document.createElement("a");return n.href=e._arrayToString(t),n.hostname},e._arrayToString=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},e._base64DecodeUint8Array=function(e){for(var t=window.atob(e),n=t.length,r=new Uint8Array(new ArrayBuffer(n)),i=0;i<n;i++)r[i]=t.charCodeAt(i);return r},e._concatInitDataIdAndCertificate=function(t,n,r){"string"==typeof n&&(n=e._stringToArray(n));var i=0,a=new ArrayBuffer(t.byteLength+4+n.byteLength+4+r.byteLength),o=new DataView(a);new Uint8Array(a,i,t.byteLength).set(t),i+=t.byteLength,o.setUint32(i,n.byteLength,!0),i+=4;var s=new Uint8Array(a,i,n.byteLength);return s.set(n),i+=s.byteLength,o.setUint32(i,r.byteLength,!0),i+=4,new Uint8Array(a,i,r.byteLength).set(r),new Uint8Array(a,0,a.byteLength)},e._stringToArray=function(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint16Array(t),r=0,i=e.length;r<i;r++)n[r]=e.charCodeAt(r);return n},e._base64EncodeUint8Array=function(e){for(var t,n,r,i,a,o,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0;c<e.length;)i=(t=e[c++])>>2,a=(3&t)<<4|(n=c<e.length?e[c++]:Number.NaN)>>4,o=(15&n)<<2|(r=c<e.length?e[c++]:Number.NaN)>>6,s=63&r,isNaN(n)?o=s=64:isNaN(r)&&(s=64),u+=l.charAt(i)+l.charAt(a)+l.charAt(o)+l.charAt(s);return u},e}();function St(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function It(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Tt(wt,"WebkitEvents",At),wt.WebkitEvents=At;var Dt=function(e){var t,n;function r(t,n,i){var a;return r._logger.debug("Creating adapter"),Pt(It(a=e.call(this,t,n,i)||this),"_lastTimeUpdate",0),Pt(It(a),"_waitingEventTriggered",!1),Pt(It(a),"_segmentDuration",0),Pt(It(a),"_mediaErrorRecoveryAttempts",0),Pt(It(a),"_lastTimeDetach",NaN),Pt(It(a),"_startTimeAttach",NaN),Pt(It(a),"_nativeTextTracksMap",{}),Pt(It(a),"_captionsHidden",!1),a._config=F.mergeDeep({},kt,a._config),a._progressiveSources=i.progressiveSources,a._liveEdge=0,a}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.canPlayType=function(e){var t=!1;return"string"==typeof e&&(t=!!r.TEST_VIDEO.canPlayType(e.toLowerCase())),r._logger.debug("canPlayType result for mimeType:"+e+" is "+t.toString()),t},r.canPlayDrm=function(e,t){r._drmProtocol=null;for(var n,i=St(r._drmProtocols);!(n=i()).done;){var a=n.value;if(a.isConfigured(e,t)){r._drmProtocol=a;break}}if(!r._drmProtocol)for(var o,s=St(r._drmProtocols);!(o=s()).done;){var l=o.value;l.canPlayDrm(e)&&(r._drmProtocol=l)}return!!r._drmProtocol},r.createAdapter=function(e,t,n){r._logger.debug("createAdapter");var i={displayTextTrack:!1,progressiveSources:[]};if(F.hasPropertyPath(n,"text.useNativeTextTrack")&&(i.displayTextTrack=F.getPropertyPath(n,"text.useNativeTextTrack")),F.hasPropertyPath(n,"sources.progressive")&&(i.progressiveSources=F.getPropertyPath(n,"sources.progressive")),F.hasPropertyPath(n,"text")&&(i.enableCEA708Captions=n.text.enableCEA708Captions,i.captionsTextTrack1Label=n.text.captionsTextTrack1Label,i.captionsTextTrack1LanguageCode=n.text.captionsTextTrack1LanguageCode,i.captionsTextTrack2Label=n.text.captionsTextTrack2Label,i.captionsTextTrack2LanguageCode=n.text.captionsTextTrack2LanguageCode),F.hasPropertyPath(n,"playback")&&F.hasPropertyPath(n.playback,"options.html5.native")&&F.mergeDeep(i,n.playback.options.html5.native),F.hasPropertyPath(n,"abr")){var a=n.abr;a.restrictions&&F.createPropertyPath(i,"abr.restrictions",a.restrictions)}return i.network=n.network,new this(e,t,i)};var i,a,o=r.prototype;return o._dispatchErrorCallback=function(e){this._trigger(W.ERROR,e)},o._dispatchDRMLicenseLoaded=function(e){this._trigger(Y.DRM_LICENSE_LOADED,e)},o._maybeSetDrmPlayback=function(){var e=this;if(r._drmProtocol&&this._sourceObj&&this._sourceObj.drmData){var t={licenseUrl:"",certificate:"",network:this._config.network};r._drmProtocol.setDrmPlayback(t,this._sourceObj.drmData),this._drmHandler=new wt(this._videoElement,t,(function(t){return e._dispatchErrorCallback(t)}),(function(t){return e._dispatchDRMLicenseLoaded(t)}))}},o._setProgressiveSource=function(){var e=function(e,t,n){var r=null;if(n&&e){for(var i,a=[],o=1/0,s=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(e);!(i=s()).done;){var l=i.value,u=Math.abs(l.width-t);u<o?(o=u,a=[l]):u===o&&a.push(l)}for(var c=t/n,p=a,d=1/0,f=0,h=a;f<h.length;f++){var g=h[f];if(g.height){var y=Math.abs(g.width/g.height-c);y<d?(d=y,p=[g]):y===d&&p.push(g)}}for(var v=0,m=0,b=p;m<b.length;m++){var _=b[m];(_.bandwidth>v||!_.bandwidth)&&(v=_.bandwidth||v,r=_)}}return r}(this._progressiveSources,this._videoElement.offsetWidth,this._videoElement.offsetHeight);e&&(this._sourceObj=e)},o._isProgressivePlayback=function(){return!!this._sourceObj&&r._progressiveMimeTypes.includes(this._sourceObj.mimetype.toLowerCase())},o.load=function(e){var t=this;return this._wasCurrentTimeSetSuccessfully=!1,this._maybeSetDrmPlayback(),this._loadPromise||(this._loadPromise=new Promise((function(n,r){t._lastTimeUpdate=e||0;var i=t._startTimeAttach||e||0;t._loadPromiseReject=r,t._eventManager.listenOnce(t._videoElement,W.LOADED_DATA,(function(){return t._onLoadedData(n,i)})),t._eventManager.listenOnce(t._videoElement,W.PLAYING,(function(){return t._onPlaying(i)})),t._eventManager.listen(t._videoElement,W.TIME_UPDATE,(function(){return t._onTimeUpdate()})),t._eventManager.listen(t._videoElement,W.PLAY,(function(){return t._resetHeartbeatTimeout()})),t._eventManager.listen(t._videoElement,W.PAUSE,(function(){return t._clearHeartbeatTimeout()})),t._eventManager.listen(t._videoElement,W.ENDED,(function(){return t._clearHeartbeatTimeout()})),t._eventManager.listen(t._videoElement,W.ABORT,(function(){return t._clearHeartbeatTimeout()})),t._eventManager.listen(t._videoElement,W.SEEKED,(function(){return t._syncCurrentTime()})),t._eventManager.listen(t._videoElement,W.WAITING,(function(){return t._waitingEventTriggered=!0})),t._eventManager.listen(t._videoElement,W.PLAYING,(function(){return t._waitingEventTriggered=!1})),t._eventManager.listen(window,"focus",(function(){setTimeout((function(){g.isIOS&&(t._videoElement.currentTime=t._videoElement.currentTime>.1?t._videoElement.currentTime-.1:0),t._syncCurrentTime()}),1e3)})),t._isProgressivePlayback()&&t._setProgressiveSource(),t._sourceObj&&t._sourceObj.url?t._setSrc().then((function(){t._trigger(Y.ABR_MODE_CHANGED,{mode:t._isProgressivePlayback()?"manual":"auto"}),t._videoElement.load()})):t._videoElement.load()}))),this._loadPromise},o._handleDecodeError=function(e){var t=this;r._logger.debug("handleDecodeError",e);var n=this._videoElement.currentTime,i=this._getActivePKAudioTrack(),a=this._getActivePKTextTrack();this._videoElement.load(),this._eventManager.listenOnce(this._videoElement,W.PLAYING,(function(){t._mediaErrorRecoveryAttempts=0})),this._eventManager.listenOnce(this._videoElement,W.CAN_PLAY,(function(){r._logger.debug("CAN_PLAY"),t._videoElement.currentTime=n,t._videoElement.play(),t._videoElement.pause(),i&&t.selectAudioTrack(i),a?t.selectTextTrack(a):t.disableNativeTextTracks()}))},o.handleMediaError=function(e){return this._loadPromiseReject?(this._loadPromiseReject(new L(L.Severity.CRITICAL,L.Category.MEDIA,L.Code.NATIVE_ADAPTER_LOAD_FAILED,e)),!0):!!(e&&e.code===window.MediaError.MEDIA_ERR_DECODE&&(this._mediaErrorRecoveryAttempts++,this._mediaErrorRecoveryAttempts<=3))&&(this._handleDecodeError(e),!0)},o.attachMediaSource=function(){this._startTimeAttach=this._lastTimeDetach,this._lastTimeDetach=NaN},o.detachMediaSource=function(){this._lastTimeDetach=this._videoElement.currentTime,this._videoElement&&this._videoElement.src&&(B.setAttribute(this._videoElement,"src",""),B.removeAttribute(this._videoElement,"src")),this._loadPromise=null},o._setSrc=function(){var e,t=this,n={url:this._sourceObj?this._sourceObj.url:"",body:null,headers:{}};if("function"==typeof F.getPropertyPath(this._config,"network.requestFilter"))try{r._logger.debug("Apply request filter"),e=this._config.network.requestFilter(ut.MANIFEST,n)}catch(t){e=Promise.reject(t)}return(e=e||Promise.resolve(n)).then((function(e){t._videoElement.src=e.url})).catch((function(e){t._trigger(W.ERROR,new L(L.Severity.CRITICAL,L.Category.NETWORK,L.Code.REQUEST_FILTER_ERROR,e))})),e},o._onPlaying=function(e){this.isLive()&&this._setStartTime(e)},o._onLoadedData=function(e,t){var n=this,i=function(){n._playerTracks=n._getParsedTracks(),n._addNativeAudioTrackChangeListener(),n._addNativeTextTrackChangeListener(),n._addNativeTextTrackAddedListener(),r._logger.debug("The source has been loaded successfully"),n._loadPromiseReject=null,e({tracks:n._playerTracks}),n.isLive()&&n._handleLiveDurationChange()};this.isLive()||this._setStartTime(t),this._videoElement.textTracks.length>0?i():this._eventManager.listenOnce(this._videoElement,W.CAN_PLAY,i.bind(this)),this._startTimeAttach=NaN},o._setStartTime=function(e){e&&e>-1&&(this._videoElement.currentTime=e),this._wasCurrentTimeSetSuccessfully=!0},o._onTimeUpdate=function(){this._videoElement.paused||(this._videoElement.currentTime>this._lastTimeUpdate?(this._waitingEventTriggered&&(this._waitingEventTriggered=!1,this._trigger(W.PLAYING)),this._resetHeartbeatTimeout()):this._videoElement.currentTime<this._lastTimeUpdate?this._syncCurrentTime():(this._waitingEventTriggered=!0,this._trigger(W.WAITING))),this._handleVideoTracksChange()},o._syncCurrentTime=function(){this._lastTimeUpdate=this._videoElement.currentTime},o._resetHeartbeatTimeout=function(){var e=this;this._lastTimeUpdate=this._videoElement.currentTime,this._clearHeartbeatTimeout(),this._heartbeatTimeoutId=setTimeout((function(){e._clearHeartbeatTimeout(),e._trigger(W.ERROR,new L(L.Severity.CRITICAL,L.Category.NETWORK,L.Code.TIMEOUT,"The player exceeded max buffer time of "+e._config.heartbeatTimeout+" ms. No progress has been done during this time."))}),this._config.heartbeatTimeout)},o._clearHeartbeatTimeout=function(){this._heartbeatTimeoutId&&(clearTimeout(this._heartbeatTimeoutId),this._heartbeatTimeoutId=null)},o._handleVideoTracksChange=function(){if(!this._isProgressivePlayback()){var e=this._videoElement,t=e.videoHeight,n=e.videoWidth,r=e.videoTracks;if(!this._videoDimensions||t!==this._videoDimensions.videoHeight||n!==this._videoDimensions.videoWidth){this._videoDimensions={videoHeight:t,videoWidth:n};var i={language:"",height:t,width:n,active:!0,index:Array.from(r).findIndex((function(e){return e.selected}))};this._onTrackChanged(new ae(i))}}},o.destroy=function(){var t=this;return r._logger.debug("destroy"),new Promise((function(n,r){e.prototype.destroy.call(t).then((function(){t._drmHandler&&t._drmHandler.destroy(),t._waitingEventTriggered=!1,t._progressiveSources=[],t._loadPromise=null,t._nativeTextTracksMap={},t._loadPromiseReject=null,t._liveEdge=0,t._lastTimeUpdate=0,t._lastTimeDetach=NaN,t._startTimeAttach=NaN,t._videoDimensions=null,t._clearHeartbeatTimeout(),t._liveDurationChangeInterval&&(clearInterval(t._liveDurationChangeInterval),t._liveDurationChangeInterval=null),n()}),(function(){return r}))}))},o._getParsedTracks=function(){var e=this._getParsedVideoTracks(),t=this._getParsedAudioTracks(),n=this._getParsedTextTracks();return e.concat(t).concat(n)},o._getParsedVideoTracks=function(){return this._isProgressivePlayback()?this._getParsedProgressiveVideoTracks():this._getParsedAdaptiveVideoTracks()},o._getParsedProgressiveVideoTracks=function(){var e=this._progressiveSources,t=[];if(e)for(var n=0;n<e.length;n++){var r={id:e[n].id,bandwidth:e[n].bandwidth,width:e[n].width,height:e[n].height,active:!!this._sourceObj&&e[n].id===this._sourceObj.id,index:n};t.push(new ae(r))}return t},o._getParsedAdaptiveVideoTracks=function(){var e=this._videoElement.videoTracks,t=[];if(e)for(var n=0;n<e.length;n++){var r={id:e[n].id,active:e[n].selected,label:e[n].label,language:e[n].language,index:n};t.push(new ae(r))}return t},o._getParsedAudioTracks=function(){var e=this._videoElement.audioTracks,t=[];if(e)for(var n=0;n<e.length;n++){var r={id:e[n].id,active:e[n].enabled,label:e[n].label,language:e[n].language,index:n};t.push(new oe(r))}return t},o._getParsedTextTracks=function(){var e=[this._config.captionsTextTrack1Label,this._config.captionsTextTrack2Label],t=[this._config.captionsTextTrack1LanguageCode,this._config.captionsTextTrack2LanguageCode],n=this._videoElement.textTracks,r=[];if(n){for(var i=0;i<n.length;i++)if(!$e.isExternalTrack(n[i])){var a={kind:n[i].kind,active:n[i].mode===$e.MODE.SHOWING,label:n[i].label,language:n[i].language,available:!0};if(a.kind===$e.KIND.SUBTITLES){var o=new $e(a);r.push(o),this._nativeTextTracksMap[o.index]=n[i]}else if(a.kind===$e.KIND.CAPTIONS&&this._config.enableCEA708Captions){a.label=a.label||e.shift(),a.language=a.language||t.shift(),a.available=this._captionsHidden;var s=new $e(a);r.push(s),this._nativeTextTracksMap[s.index]=n[i]}}this._captionsHidden||this._maybeShow708Captions()}return r},o._maybeShow708Captions=function(){var e=this,t=Array.from(this._videoElement.textTracks).filter((function(e){return e.kind===$e.KIND.CAPTIONS})),n=t.find((function(e){return e.mode===$e.MODE.SHOWING||e.mode===$e.MODE.HIDDEN}))||t[0];n&&(n.mode=$e.MODE.HIDDEN,this._captionsHidden=!0,this._eventManager.listenOnce(n,"cuechange",(function(){e._getPKTextTracks().forEach((function(e){return(e.available=!0)&&(e.mode=$e.MODE.DISABLED)})),e._trigger(Y.TRACKS_CHANGED,{tracks:e._playerTracks})})))},o.selectVideoTrack=function(e){this._isProgressivePlayback()?this._selectProgressiveVideoTrack(e):this.selectAdaptiveVideoTrack(e)},o._selectProgressiveVideoTrack=function(e){var t=this,n=this._progressiveSources;if(e instanceof ae&&n&&n[e.index]){var r=this._videoElement.currentTime,i=this._videoElement.paused;e.active=!0,this._sourceObj=n[e.index],this._eventManager.listenOnce(this._videoElement,W.LOADED_DATA,(function(){"Android Browser"===g.browser.name?(t._eventManager.listenOnce(t._videoElement,W.DURATION_CHANGE,(function(){t._videoElement.currentTime=r})),t._eventManager.listenOnce(t._videoElement,W.SEEKED,(function(){t._onTrackChanged(e),i&&t._videoElement.pause()})),t._videoElement.play()):(t._eventManager.listenOnce(t._videoElement,W.SEEKED,(function(){t._onTrackChanged(e)})),t._videoElement.currentTime=r,i||t._videoElement.play())})),this._setSrc()}},o.selectAdaptiveVideoTrack=function(e){var t=this._videoElement.videoTracks;e instanceof ae&&t&&t[e.index]&&(this._disableVideoTracks(),t[e.index].selected=!0,this._onTrackChanged(e))},o.selectAudioTrack=function(e){r._logger.debug("selectAudioTrack");var t=this._videoElement.audioTracks;e instanceof oe&&t&&t[e.index]&&(this._removeNativeAudioTrackChangeListener(),this._switchAudioTrack(e.index),this._onTrackChanged(e),this._addNativeAudioTrackChangeListener())},o._removeNativeAudioTrackChangeListener=function(){this._videoElement.audioTracks&&this._eventManager.unlisten(this._videoElement.audioTracks,"change")},o._addNativeAudioTrackChangeListener=function(){var e=this;this._videoElement.audioTracks&&this._eventManager.listen(this._videoElement.audioTracks,"change",(function(){return e._onNativeAudioTrackChange()}))},o._getPKAudioTracks=function(){return this._playerTracks.filter((function(e){return e instanceof oe}))},o._getActivePKAudioTrack=function(){return this._getPKAudioTracks().find((function(e){return!0===e.active}))},o._onNativeAudioTrackChange=function(){var e=this,t=function(){for(var t=0;t<e._videoElement.audioTracks.length;t++)if(e._videoElement.audioTracks[t].enabled)return t;return-1}(),n=this._getActivePKAudioTrack(),i=n?n.index:-1;if(t!==i){var a=this._getPKAudioTracks().find((function(e){return e.index===t}));a&&(r._logger.debug("Native selection of track, update the player audio track ("+i+" -> "+t+")"),this._onTrackChanged(a))}},o.selectTextTrack=function(e){if(e instanceof $e&&$e.isNativeTextTrack(e)){this._removeNativeTextTrackChangeListener();var t=this._nativeTextTracksMap[e.index];t&&(this.disableNativeTextTracks(),t.mode=this._getDisplayTextTrackModeString(),this._onTrackChanged(e),this._addNativeTextTrackChangeListener())}},o._removeNativeTextTrackChangeListener=function(){this._videoElement.textTracks&&this._eventManager.unlisten(this._videoElement.textTracks,"change")},o._addNativeTextTrackChangeListener=function(){var e=this;this._videoElement.textTracks&&this._eventManager.listen(this._videoElement.textTracks,"change",(function(){return e._onNativeTextTrackChange()}))},o._getPKTextTracks=function(){return this._playerTracks.filter((function(e){return e instanceof $e}))},o._getActivePKTextTrack=function(){return this._getPKTextTracks().find((function(e){return!0===e.active}))},o._onNativeTextTrackChange=function(){var e=this,t=this._getPKTextTracks(),n=t.find((function(e){return"off"===e.language})),i=function(){for(var t in e._nativeTextTracksMap)if(e._getDisplayTextTrackModeString()===e._nativeTextTracksMap[t].mode)return Number(t);return-1}(),a=this._getActivePKTextTrack(),o=a?a.index:-1;if(i!==o)if(-1==i)n&&(r._logger.debug("Native selection of track, update the player text track ("+o+" -> off)"),this._onTrackChanged(n));else{var s=t.find((function(e){return e.index===i}));s&&(r._logger.debug("Native selection of track, update the player text track ("+o+" -> "+i+")"),this._onTrackChanged(s))}},o._getDisplayTextTrackModeString=function(){return this._config.displayTextTrack?$e.MODE.SHOWING:$e.MODE.HIDDEN},o._addNativeTextTrackAddedListener=function(){var e=this;!this._config.displayTextTrack&&this._videoElement.textTracks&&this._eventManager.listen(this._videoElement.textTracks,"addtrack",(function(){return e._onNativeTextTrackAdded()}))},o._onNativeTextTrackAdded=function(){this._playerTracks=this._getParsedTracks(),this._trigger(Y.TRACKS_CHANGED,{tracks:this._playerTracks})},o.hideTextTrack=function(){this.disableNativeTextTracks()},o.enableAdaptiveBitrate=function(){r._logger.warn("Enabling adaptive bitrate is not supported for native playback")},o.isAdaptiveBitrateEnabled=function(){return!this._isProgressivePlayback()},o.applyABRRestriction=function(e){F.createPropertyPath(this._config,"abr.restrictions",e),this._maybeApplyAbrRestrictions(e)},o._maybeApplyAbrRestrictions=function(e){if(this._isProgressivePlayback()){var t=mt(this._playerTracks.filter((function(e){return e instanceof ae})),e);!t.find((function(e){return e.active}))&&t.length?this.selectVideoTrack(t[0]):r._logger.warn("Invalid restrictions, there are not tracks within the restriction range")}},o._disableVideoTracks=function(){var e=this._videoElement.videoTracks;if(e)for(var t=0;t<e.length;t++)e[t].selected=!1},o._switchAudioTrack=function(e){r._logger.debug("_switchAudioTracks");var t=this._videoElement.audioTracks;if(t)for(var n=0;n<t.length;n++)t[n].enabled=n==e},o._getLiveEdge=function(){return this._videoElement.seekable.length?this._videoElement.seekable.end(this._videoElement.seekable.length-1):this._videoElement.buffered.length?this._videoElement.buffered.end(this._videoElement.buffered.length-1):this._videoElement.duration},o.seekToLiveEdge=function(){try{this._videoElement.currentTime=this._getLiveEdge()}catch(e){return}},o.getSegmentDuration=function(){return this._segmentDuration},o.isLive=function(){return this._videoElement.duration===1/0},o.isOnLiveEdge=function(){return!!this._wasCurrentTimeSetSuccessfully&&e.prototype.isOnLiveEdge.call(this)},o._handleLiveDurationChange=function(){var e=this;this._liveDurationChangeInterval=setInterval((function(){e._calculateSegmentDuration();var t=e._getLiveEdge();e._liveEdge!==t&&(e._liveEdge=t,e._videoElement.dispatchEvent(new window.Event(W.DURATION_CHANGE)))}),1e3)},o._calculateSegmentDuration=function(){if(0===this._videoElement.seekable.start(0)){var e=this._videoElement,t=e.buffered,n=e.seekable;t.length&&n.length&&(this._segmentDuration=(t.end(t.length-1)-n.end(n.length-1))/3)}else{var r=this._getLiveEdge();this._liveEdge&&this._liveEdge!==r&&(this._segmentDuration=r-this._liveEdge)}},o.getStartTimeOfDvrWindow=function(){return this.isLive()&&this._videoElement.seekable.length?this._videoElement.seekable.start(0):0},o.getDrmInfo=function(){return this._drmHandler?this._drmHandler.getDrmInfo():null},i=r,(a=[{key:"liveDuration",get:function(){return this._getLiveEdge()}}])&&xt(i.prototype,a),r}(yt);function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Pt(Dt,"id","NativeAdapter"),Pt(Dt,"_logger",yt.getLogger(Dt.id)),Pt(Dt,"TEST_VIDEO",B.createElement("video")),Pt(Dt,"_drmProtocols",[Et]),Pt(Dt,"_drmProtocol",null),Pt(Dt,"_progressiveMimeTypes",["video/mp4","audio/mp3"]);var Ot=function(){function e(){}return e.register=function(t){t&&(e._mediaSourceAdapters.includes(t)?e._logger.debug("Adapter <"+t.id+"> is already registered, do not register again"):(e._logger.debug("Adapter <"+t.id+"> has been registered successfully"),e._mediaSourceAdapters.push(t)))},e.unRegister=function(t){var n=e._mediaSourceAdapters.indexOf(t);n>-1&&(e._logger.debug("Unregistered <"+t.id+"> adapter"),e._mediaSourceAdapters.splice(n,1))},e.canPlaySource=function(t,n,r){void 0===n&&(n=!0),e._orderMediaSourceAdapters(n);var i=e._mediaSourceAdapters;if(t&&t.mimetype)for(var a=0;a<i.length;a++)if(i[a].canPlayType(t.mimetype)&&(!t.drmData||i[a].canPlayDrm(t.drmData,r)))return e._selectedAdapter=i[a],e._logger.debug("Selected adapter is <"+e._selectedAdapter.id+">"),!0;return!1},e._orderMediaSourceAdapters=function(t){e._mediaSourceAdapters=e._mediaSourceAdapters.filter((function(e){return"NativeAdapter"!==e.id})),t?e._mediaSourceAdapters.unshift(Dt):e._mediaSourceAdapters.push(Dt)},e.getMediaSourceAdapter=function(t,n,r){return t&&n&&r?(e._selectedAdapter||e.canPlaySource(n,!0,r.drm),e._selectedAdapter?e._selectedAdapter.createAdapter(t,n,r):null):null},e.destroy=function(){e._selectedAdapter=null},e}();Rt(Ot,"_logger",S("MediaSourceProvider")),Rt(Ot,"_mediaSourceAdapters",[Dt]),Rt(Ot,"_selectedAdapter",null);var Lt=Ot.register,Mt=function(e,t,n,r,i){this.startTime=e,this.endTime=t,this.id=n,this.type=r,this.metadata=i};function Nt(e){try{var t=e.startTime,n=e.endTime,r=e.id,i=e.type,a=e.metadata,o={};window.VTTCue?o=new window.VTTCue(t,n,""):window.TextTrackCue&&(o=new window.TextTrackCue(t,n,""));var s={key:i,data:a};return o.id=r,o.value=s,o}catch(e){return null}}function Ut(e){if(e){var t=e.startTime,n=e.endTime,r=e.id;if(Ft(e)){var i=Ft(e),a=i.type,o=i.metadata;return new Mt(t,n,r,a,o)}}return null}function Ft(e){if(e){var t=e.type,n=e.value,r=e.track;if(n){var i=n.key,a=n.data,o="org.id3"===t||"id3"===(r&&r.label),s=Object.values(Mt.TYPE).find((function(e){return e===i}));return s||(s=o?Mt.TYPE.ID3:Mt.TYPE.CUSTOM),{type:s,metadata:o||!a?n:a}}}return null}Mt.TYPE={ID3:"id3",EMSG:"emsg",CUE_POINT:"cuepoint",CUSTOM:"custom"};var jt,Bt,Vt=n(3);function Ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kt=(Bt=jt=function(){function e(){}return e.runCapability=function(){e._capabilities.autoplay||"boolean"==typeof e._capabilities.autoplay&&"boolean"==typeof e._capabilities.mutedAutoPlay?e._playPromiseResult=Promise.resolve(e._capabilities):(e._vid||(e._vid=B.createElement("video"),e._vid.src=Vt.a,e._vid.setAttribute("playsinline","")),e._playPromiseResult=new Promise((function(t){e._setMuted(!1),e._getPlayPromise().then((function(){return t({autoplay:!0,mutedAutoPlay:!0})})).catch((function(){e._setMuted(!0),e._getPlayPromise().then((function(){return t({autoplay:!1,mutedAutoPlay:!0})})).catch((function(){return t({autoplay:!1,mutedAutoPlay:!1})}))}))})))},e.getCapability=function(){return e._playPromiseResult.then((function(t){var n;return t.autoplay?n=Promise.resolve(t):(e.runCapability(),n=e._playPromiseResult),n.then((function(t){return F.mergeDeep(t,e._capabilities)}))}))},e.setCapabilities=function(t){e._logger.debug("Set player capabilities",t);var n=t.autoplay,r=t.mutedAutoPlay;"boolean"==typeof n&&(e._capabilities.autoplay=n),"boolean"==typeof r&&(e._capabilities.mutedAutoPlay=r)},e._getPlayPromise=function(){return e._vid.play()||e._forcePromiseReturnValue()},e._setMuted=function(t){t?(e._vid.muted=!0,e._vid.setAttribute("muted","")):(e._vid.muted=!1,e._vid.removeAttribute("muted"))},e._forcePromiseReturnValue=function(){return new Promise((function(t,n){e._vid.addEventListener(W.ERROR,(function(){n()}));var r=setTimeout((function(){e._logger.debug("Timeout 500 ms has been reached"),n()}),500);!0===e._vid.paused?(clearTimeout(r),n()):(clearTimeout(r),t())}))},e}(),Ht(jt,"_logger",S("Html5AutoPlayCapability")),Ht(jt,"_capabilities",{}),Bt);function Gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wt=function(e){var t,n;function r(t,n,i){var a;return zt(Gt(a=e.call(this)||this),"_droppedFramesInterval",null),zt(Gt(a),"_lastDroppedFrames",0),zt(Gt(a),"_lastDecodedFrames",0),zt(Gt(a),"_lastTime",0),zt(Gt(a),"_currentBitrate",0),a._eventManager=new D,a._mediaSourceAdapter=t,a._config=n,a._videoElement=i,a._mediaSourceAdapter.capabilities.fpsControl?(a._eventManager.listen(a._mediaSourceAdapter,Y.FPS_DROP,(function(e){return a._triggerFPSDrop(e.payload.data)})),Gt(a)):(-1===a._getDroppedAndDecodedFrames()[0]?r._logger.debug("Dropped frame watcher is not supported"):a._config.capLevelOnFPSDrop?(r._logger.debug("Initialized capLevelOnFPSDrop = true"),a._init()):r._logger.debug("Not Initialized"),a)}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i._init=function(){var e=this;this._eventManager.listen(this._mediaSourceAdapter,Y.VIDEO_TRACK_CHANGED,(function(t){return e._currentBitrate=t.payload.selectedVideoTrack.bandwidth})),this._droppedFramesInterval=setInterval((function(){return e._checkFPS()}),this._config.fpsDroppedFramesInterval)},i._triggerFPSDrop=function(e){this.dispatchEvent(new m(Y.FPS_DROP,e))},i._getDroppedAndDecodedFrames=function(){if("function"==typeof this._videoElement.getVideoPlaybackQuality){var e=this._videoElement.getVideoPlaybackQuality();return[e.droppedVideoFrames,e.totalVideoFrames]}return"number"==typeof this._videoElement.webkitDroppedFrameCount&&"number"==typeof this._videoElement.webkitDecodedFrameCount?[this._videoElement.webkitDroppedFrameCount,this._videoElement.webkitDecodedFrameCount]:[-1,-1]},i._checkFPS=function(){var e=this._getDroppedAndDecodedFrames(),t=e[0],n=e[1];try{var i=performance.now();if(n){if(this._lastTime){var a=i-this._lastTime,o=t-this._lastDroppedFrames,s=n-this._lastDecodedFrames,l=1e3*o/a;l>0&&(r._logger.debug("checkFPS : droppedFPS/decodedFPS:"+l/(1e3*s/a)),o>this._config.fpsDroppedMonitoringThreshold*s&&(this._mediaSourceAdapter.setMaxBitrate(this._currentBitrate-1),this._triggerFPSDrop({currentDropped:o,currentDecoded:s,totalDroppedFrames:l})))}this._lastTime=i,this._lastDroppedFrames=t,this._lastDecodedFrames=n}}catch(e){r._logger.error("Error occur while trying to check dropFrames: ",e)}},i.destroy=function(){this._droppedFramesInterval&&clearInterval(this._droppedFramesInterval),this._droppedFramesInterval=null,this._eventManager.destroy()},r}(C);function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}zt(Wt,"_logger",S("droppedFramesWatcher"));var Xt=function(e){var t,n;function r(t,n,r){var i;return qt(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i=e.call(this)||this),"_reset",!1),i._eventManager=new D,i._canLoadMediaSourceAdapterPromise=Promise.resolve(),i._createVideoElement(r),i._init(t,n),i}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.isSupported=function(){try{var e=B.createElement("video");return e.volume=.5,!!e.canPlayType}catch(e){return!1}},r.createEngine=function(e,t,n){return new this(e,t,n)},r.canPlaySource=function(e,t,n){return Ot.canPlaySource(e,t,n)},r.runCapabilities=function(){r._capabilities.forEach((function(e){return e.runCapability()}))},r.getCapabilities=function(){var e=[];return r._capabilities.forEach((function(t){return e.push(t.getCapability())})),Promise.all(e).then((function(e){var t,n={};return e.forEach((function(e){return Object.assign(n,e)})),(t={})[r.id]=n,t}))},r.setCapabilities=function(e){r._capabilities.forEach((function(t){return t.setCapabilities(e)}))},r.prepareVideoElement=function(e){if(!r.videoElementStore[e]){r._logger.debug("Create the video element for playing "+e);var t=B.createElement("video");r.videoElementStore[e]=t}r._logger.debug("Prepare the video element for playing "+e),r.videoElementStore[e].load()};var i,a,o=r.prototype;return o.restore=function(e,t){this.reset(),this._init(e,t)},o.reset=function(){var e=this;this._reset||(this._reset=!0,this._eventManager.removeAll(),this._droppedFramesWatcher&&(this._droppedFramesWatcher.destroy(),this._droppedFramesWatcher=null),this._canLoadMediaSourceAdapterPromise=new Promise((function(t,n){var r=e._mediaSourceAdapter?e._mediaSourceAdapter.destroy():Promise.resolve();e._el&&e._el.src?r.then((function(){B.setAttribute(e._el,"src",""),B.removeAttribute(e._el,"src"),t()}),n):r.then(t,n)})),this._mediaSourceAdapter=null)},o.destroy=function(){this.detach(),this._el&&(this.pause(),B.removeAttribute(this._el,"src"),B.removeChild(this._el.parentNode,this._el)),this._eventManager.destroy(),Ot.destroy(),this._droppedFramesWatcher&&(this._droppedFramesWatcher.destroy(),this._droppedFramesWatcher=null),this._mediaSourceAdapter&&(this._mediaSourceAdapter.destroy(),this._mediaSourceAdapter=null)},o.attachMediaSource=function(){this._mediaSourceAdapter&&this._mediaSourceAdapter.attachMediaSource()},o.detachMediaSource=function(){this._mediaSourceAdapter&&this._mediaSourceAdapter.detachMediaSource()},o.attach=function(){var e=this;Object.keys(W).forEach((function(t){[W.ERROR,W.WAITING].includes(W[t])||e._eventManager.listen(e._el,W[t],(function(){return e.dispatchEvent(new m(W[t]))}))})),this._eventManager.listen(this._el,W.ERROR,(function(){return e._handleVideoError()})),this._eventManager.listen(this._el,W.WAITING,(function(){return e._handleWaiting()})),this._handleMetadataTrackEvents(),this._eventManager.listen(this._el.textTracks,"addtrack",(function(t){$e.isNativeTextTrack(t.track)&&e.dispatchEvent(new m(Y.TEXT_TRACK_ADDED,{track:t.track}))}));var t=this._mediaSourceAdapter;t&&(this._eventManager.listen(t,Y.VIDEO_TRACK_CHANGED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.AUDIO_TRACK_CHANGED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.TEXT_TRACK_CHANGED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.IMAGE_TRACK_CHANGED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.ABR_MODE_CHANGED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.TEXT_CUE_CHANGED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.TRACKS_CHANGED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.FRAG_LOADED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.DRM_LICENSE_LOADED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.MANIFEST_LOADED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,W.ERROR,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,W.TIME_UPDATE,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,W.PLAYING,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,W.WAITING,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.MEDIA_RECOVERED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,Y.TIMED_METADATA_ADDED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(t,"hlsFragParsingMetadata",(function(t){return e.dispatchEvent(t)})),this._droppedFramesWatcher&&this._eventManager.listen(this._droppedFramesWatcher,Y.FPS_DROP,(function(t){return e.dispatchEvent(t)})))},o.detach=function(){var e=this;Object.keys(W).forEach((function(t){e._eventManager.unlisten(e._el,W[t])})),this._mediaSourceAdapter&&(this._eventManager.unlisten(this._mediaSourceAdapter,Y.VIDEO_TRACK_CHANGED),this._eventManager.unlisten(this._mediaSourceAdapter,Y.AUDIO_TRACK_CHANGED),this._eventManager.unlisten(this._mediaSourceAdapter,Y.TEXT_TRACK_CHANGED),this._eventManager.unlisten(this._mediaSourceAdapter,Y.TEXT_CUE_CHANGED))},o.getVideoElement=function(){return this._el},o.selectVideoTrack=function(e){this._mediaSourceAdapter&&this._mediaSourceAdapter.selectVideoTrack(e)},o.selectAudioTrack=function(e){this._mediaSourceAdapter&&this._mediaSourceAdapter.selectAudioTrack(e)},o.selectTextTrack=function(e){this._removeCueChangeListeners(),this._mediaSourceAdapter&&this._mediaSourceAdapter.selectTextTrack(e),this.resetAllCues(),this._addCueChangeListener()},o.selectImageTrack=function(e){this._mediaSourceAdapter&&this._mediaSourceAdapter.selectImageTrack(e)},o.hideTextTrack=function(){this._mediaSourceAdapter&&this._mediaSourceAdapter.hideTextTrack(),this._removeCueChangeListeners()},o.enableAdaptiveBitrate=function(){this._mediaSourceAdapter&&this._mediaSourceAdapter.enableAdaptiveBitrate()},o.isAdaptiveBitrateEnabled=function(){return!!this._mediaSourceAdapter&&this._mediaSourceAdapter.isAdaptiveBitrateEnabled()},o.applyABRRestriction=function(e){if(this._mediaSourceAdapter)return this._mediaSourceAdapter.applyABRRestriction(e)},o.seekToLiveEdge=function(){this._mediaSourceAdapter&&this._mediaSourceAdapter.seekToLiveEdge()},o.isOnLiveEdge=function(){return!!this._mediaSourceAdapter&&this._mediaSourceAdapter.isOnLiveEdge()},o.getStartTimeOfDvrWindow=function(){return this._mediaSourceAdapter?this._mediaSourceAdapter.getStartTimeOfDvrWindow():0},o.isLive=function(){return!!this._mediaSourceAdapter&&this._mediaSourceAdapter.isLive()},o.play=function(){var e=this,t=this._el.play();return t&&t.catch((function(t){return e.dispatchEvent(new m(Y.PLAY_FAILED,{error:t}))})),t},o.pause=function(){return this._el.pause()},o.load=function(e){var t=this;return this._el.load(),this._canLoadMediaSourceAdapterPromise.then((function(){return t._mediaSourceAdapter?t._mediaSourceAdapter.load(e):Promise.resolve({})})).catch((function(e){return t.dispatchEvent(new m(W.ERROR,e)),Promise.reject(e)}))},o.enterPictureInPicture=function(){var e=this;try{document.pictureInPictureEnabled&&"function"==typeof this._el.requestPictureInPicture?this._el.requestPictureInPicture().catch((function(t){e.dispatchEvent(new m(W.ERROR,new L(L.Severity.RECOVERABLE,L.Category.PLAYER,L.Code.ENTER_PICTURE_IN_PICTURE_FAILED,t)))})):"function"==typeof this._el.webkitSetPresentationMode&&(this._el.webkitSetPresentationMode("picture-in-picture"),setTimeout((function(){return e.dispatchEvent(new m(W.ENTER_PICTURE_IN_PICTURE))}),0))}catch(e){this.dispatchEvent(new m(W.ERROR,new L(L.Severity.RECOVERABLE,L.Category.PLAYER,L.Code.ENTER_PICTURE_IN_PICTURE_FAILED,e)))}},o.exitPictureInPicture=function(){var e=this;try{document.pictureInPictureEnabled&&"function"==typeof document.exitPictureInPicture&&this._el===document.pictureInPictureElement?document.exitPictureInPicture().catch((function(t){e.dispatchEvent(new m(W.ERROR,new L(L.Severity.RECOVERABLE,L.Category.PLAYER,L.Code.EXIT_PICTURE_IN_PICTURE_FAILED,t)))})):"function"==typeof this._el.webkitSetPresentationMode&&this._el.webkitSetPresentationMode("inline")}catch(e){this.dispatchEvent(new m(W.ERROR,new L(L.Severity.RECOVERABLE,L.Category.PLAYER,L.Code.EXIT_PICTURE_IN_PICTURE_FAILED,e)))}},o.isPictureInPictureSupported=function(){return"function"==typeof this._el.webkitSupportsPresentationMode?this._el.webkitSupportsPresentationMode("picture-in-picture"):!!document.pictureInPictureEnabled},o.getThumbnail=function(e){if(this._mediaSourceAdapter)return this._mediaSourceAdapter.getThumbnail(e)},o._init=function(e,t){this._config=t,this._reset=!1,this._loadMediaSourceAdapter(e),this.attach()},o._createVideoElement=function(e){this._el=r.videoElementStore[e]||B.createElement("video"),this._el.id=j.uniqueId(5),this._el.controls=!1},o._loadMediaSourceAdapter=function(e){this._mediaSourceAdapter=Ot.getMediaSourceAdapter(this.getVideoElement(),e,this._config),this._mediaSourceAdapter&&(this._droppedFramesWatcher=new Wt(this._mediaSourceAdapter,this._config.abr,this._el))},o._addCueChangeListener=function(){var e=this,t=Array.from(this._el.textTracks).find((function(e){return $e.isNativeTextTrack(e)&&e.mode!==$e.MODE.DISABLED}));t&&this._eventManager.listen(t,"cuechange",(function(t){return e._onCueChange(t)}))},o._removeCueChangeListeners=function(){var e=this;Array.from(this._el.textTracks).filter((function(e){return!$e.isMetaDataTrack(e)})).forEach((function(t){e._eventManager.unlisten(t,"cuechange")}))},o._onCueChange=function(e){var t=Xe(e.currentTarget.activeCues);this.dispatchEvent(new m(Y.TEXT_CUE_CHANGED,{cues:t}))},o.resetAllCues=function(){var e=Array.from(this._el.textTracks).find((function(e){return $e.isNativeTextTrack(e)&&e.mode!==$e.MODE.DISABLED}));if(e)for(var t=0;t<e.cues.length;t++)e.cues[t].hasBeenReset=!0},o._handleVideoError=function(){if(this._el.error){var e=this._el.error.code;if(e!==window.MediaError.MEDIA_ERR_ABORTED){var t=this._getMsExtendedError(),n=this._el.error.message;if(this._mediaSourceAdapter&&!this._mediaSourceAdapter.handleMediaError(this._el.error)){var r=new L(L.Severity.CRITICAL,L.Category.MEDIA,L.Code.VIDEO_ERROR,{code:e,extended:t,message:n});this.dispatchEvent(new m(W.ERROR,r))}}}},o._handleWaiting=function(){var e=this,t=!1;this._eventManager.listenOnce(this._el,W.PLAYING,(function(){return t=!0})),setTimeout((function(){t||e.dispatchEvent(new m(W.WAITING))}),200)},o._getMsExtendedError=function(){var e=this._el.error.msExtendedCode;return e&&(e<0&&(e+=Math.pow(2,32)),e=e.toString(16)),e},o._handleMetadataTrackEvents=function(){var e=this,t=function(t){t.mode=$e.MODE.HIDDEN,e._eventManager.listen(t,"cuechange",(function(){var t=[];Array.from(e._el.textTracks).forEach((function(e){$e.isMetaDataTrack(e)&&(t=t.concat(Xe(e.activeCues)))})),t=t.sort((function(e,t){return e.startTime-t.startTime})),e.dispatchEvent(new m(Y.TIMED_METADATA,{cues:t})),e.dispatchEvent(new m(Y.TIMED_METADATA_CHANGE,{cues:t.map((function(e){return Ut(e)}))}))}))};Array.from(this._el.textTracks).forEach((function(e){$e.isMetaDataTrack(e)&&t(e)})),this._eventManager.listen(this._el.textTracks,"addtrack",(function(e){$e.isMetaDataTrack(e.track)&&t(e.track)})),this._eventManager.listen(this._el.textTracks,"change",(function(){Array.from(e._el.textTracks).forEach((function(e){$e.isMetaDataTrack(e)&&e.mode!==$e.MODE.HIDDEN&&(e.mode=$e.MODE.HIDDEN)}))}))},o.addTextTrack=function(e,t,n){return this._el.addTextTrack(e,t,n)},o.getNativeTextTracks=function(){return Array.from(this._el.textTracks)},o.getDrmInfo=function(){var e;return null==(e=this._mediaSourceAdapter)?void 0:e.getDrmInfo()},i=r,(a=[{key:"id",get:function(){return r.id}},{key:"src",set:function(e){this._mediaSourceAdapter&&(this._mediaSourceAdapter.src=e)},get:function(){return this._mediaSourceAdapter?this._mediaSourceAdapter.src:""}},{key:"currentTime",get:function(){return this._el?this._el.currentTime:0},set:function(e){this._el&&(this._el.currentTime=e)}},{key:"duration",get:function(){return this._el.duration}},{key:"liveDuration",get:function(){return this._mediaSourceAdapter?this._mediaSourceAdapter.liveDuration:-1}},{key:"volume",set:function(e){this._el.volume=e},get:function(){return this._el.volume}},{key:"paused",get:function(){return this._el.paused}},{key:"seeking",get:function(){return this._el.seeking}},{key:"seekable",get:function(){return this._el.seekable}},{key:"played",get:function(){return this._el.played}},{key:"buffered",get:function(){return this._el.buffered}},{key:"muted",set:function(e){this._el.muted=e},get:function(){return this._el.muted}},{key:"defaultMuted",get:function(){return this._el.defaultMuted}},{key:"poster",set:function(e){this._el.poster=e},get:function(){return this._el.poster}},{key:"preload",set:function(e){this._el.preload=e},get:function(){return this._el.preload}},{key:"autoplay",set:function(e){this._el.autoplay=e},get:function(){return this._el.autoplay}},{key:"loop",set:function(e){this._el.loop=e},get:function(){return this._el.loop}},{key:"controls",set:function(e){this._el.controls=e},get:function(){return this._el.controls}},{key:"playbackRate",set:function(e){this._el.playbackRate=e},get:function(){return this._el.playbackRate}},{key:"defaultPlaybackRate",set:function(e){this._el.defaultPlaybackRate=e},get:function(){return this._el.defaultPlaybackRate}},{key:"ended",get:function(){return this._el.ended}},{key:"error",get:function(){return this._el.error}},{key:"networkState",get:function(){return this._el.networkState}},{key:"readyState",get:function(){return this._el.readyState}},{key:"videoHeight",get:function(){return this._el.videoHeight}},{key:"videoWidth",get:function(){return this._el.videoWidth}},{key:"playsinline",set:function(e){e?this._el.setAttribute("playsinline",""):this._el.removeAttribute("playsinline")},get:function(){return""===this._el.getAttribute("playsinline")}},{key:"crossOrigin",set:function(e){"string"==typeof e?this._el.setAttribute("crossorigin",e):this._el.removeAttribute("crossorigin")},get:function(){return this._el.getAttribute("crossorigin")}},{key:"playbackRates",get:function(){return r.PLAYBACK_RATES}},{key:"isInPictureInPicture",get:function(){return!!document.pictureInPictureElement&&null!=document.pictureInPictureElement&&this._el===document.pictureInPictureElement||!!this._el.webkitPresentationMode&&"picture-in-picture"===this._el.webkitPresentationMode}},{key:"targetBuffer",get:function(){return this._mediaSourceAdapter?this._mediaSourceAdapter.targetBuffer:NaN}},{key:"availableBuffer",get:function(){var e=0;if(this.buffered)for(var t=0;t<this.buffered.length;t++)this.buffered.start(t)<=this._el.currentTime&&this._el.currentTime<=this.buffered.end(t)&&(e=this.buffered.end(t)-this._el.currentTime);return e}}])&&Yt(i.prototype,a),r}(C);function $t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qt(Xt,"_logger",S("Html5")),qt(Xt,"_capabilities",[Kt]),qt(Xt,"id","html5"),qt(Xt,"videoElementStore",{}),qt(Xt,"PLAYBACK_RATES",[.5,1,1.5,2]);var Qt=function(){function e(){}return e.register=function(t,n){t&&!e._engineProviders[t]?(e._logger.debug("Engine <"+t+"> has been registered successfully"),e._engineProviders[t]=n):e._logger.debug("Engine <"+t+"> is already registered, do not register again")},e.unRegister=function(t){e._engineProviders[t]&&(e._logger.debug("Unregistered <"+t+"> Engine"),delete e._engineProviders[t])},e.getEngines=function(){return Object.keys(e._engineProviders).map((function(t){return e._engineProviders[t]}))},e.destroy=function(){e._engineProviders={}},e}();$t(Qt,"_logger",S("EngineProvider")),$t(Qt,"_engineProviders",{}),Xt.isSupported()&&Qt.register(Xt.id,Xt);var Zt=Qt.register,Jt=Qt.unRegister;function en(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nn="srt",rn="vtt",an=function(e){var t,n;function r(t){var n;return tn(en(n=e.call(this)||this),"_externalCueIndex",0),tn(en(n),"_textTrackModel",{}),tn(en(n),"_activeTextCues",[]),tn(en(n),"_isTextTrackActive",!1),tn(en(n),"_lastTimeUpdate",0),n._player=t,n._eventManager=new D,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.hideTextTrack=function(){this._player.config.text.useNativeTextTrack?(this._removeCueChangeListeners(),this._resetExternalNativeTextTrack()):this._isTextTrackActive&&(this._eventManager.unlisten(this._player,W.TIME_UPDATE),this.dispatchEvent(new m(Y.TEXT_CUE_CHANGED,{cues:[]})),this._resetCurrentTrack())},i.getExternalTracks=function(e){var t=this,n=this._player.sources.captions;if(!n)return[];this._player.config.text.useNativeTextTrack&&this._addNativeTextTrack();var r=e.filter((function(e){return e instanceof $e})),i=[];return n.forEach((function(e){if(e.language){var n=t._createTextTrack(e);t._maybeAddTrack(n,e,r,i)}else{var a=new L(L.Severity.RECOVERABLE,L.Category.TEXT,L.Code.UNKNOWN_LANGUAGE,{caption:e});t.dispatchEvent(new m(W.ERROR,a))}})),i},i._maybeAddTrack=function(e,t,n,i){var a=n.find((function(e){return e.available&&re.langComparer(t.language,e.language)}));a?r._logger.warn("duplicated language, taking the inband option. Language: ",a.language):(i.push(e),this._updateTextTracksModel(t))},i._createTextTrack=function(e){return new $e({active:!!e.default,kind:$e.KIND.SUBTITLES,label:e.label,language:e.language,external:!0})},i._updateTextTracksModel=function(e){this._textTrackModel[e.language]={cuesStatus:1,cues:[],url:e.url,type:e.type}},i.selectTextTrack=function(e){var t=this;this._textTrackModel[e.language]&&(3===this._textTrackModel[e.language].cuesStatus?this._selectTextTrack(e):1===this._textTrackModel[e.language].cuesStatus&&this._downloadAndParseCues(e).then((function(){t._textTrackModel[e.language].cuesStatus=3,t._selectTextTrack(e)})).catch((function(e){return t.dispatchEvent(new m(W.ERROR,e))})))},i._selectTextTrack=function(e){this.hideTextTrack(),this._player.config.text.useNativeTextTrack?(this._addCuesToNativeTextTrack(this._textTrackModel[e.language].cues),this._addCueChangeListener()):this._setTextTrack(e),e.active=!0,this.dispatchEvent(new m(Y.TEXT_TRACK_CHANGED,{selectedTextTrack:e}))},i.resetAllCues=function(){for(var e in this._textTrackModel)this._textTrackModel[e].cues.forEach((function(e){e.hasBeenReset=!0}))},i._addCueChangeListener=function(){var e=this,t=this._player.getVideoElement();if(t&&t.textTracks){var n=Array.from(t.textTracks).find((function(e){return $e.isNativeTextTrack(e)&&e.mode===$e.MODE.SHOWING}));n&&this._eventManager.listen(n,"cuechange",(function(t){return e._onCueChange(t)}))}},i._removeCueChangeListeners=function(){var e=this._player.getVideoElement();if(e&&e.textTracks)for(var t=0;t<e.textTracks.length;t++)this._eventManager.unlisten(e.textTracks[t],"cuechange")},i._onCueChange=function(e){var t=Xe(e.currentTarget.activeCues);this.dispatchEvent(new m(Y.TEXT_CUE_CHANGED,{cues:t}))},i.reset=function(){this._resetCurrentTrack(),this._textTrackModel={},this._resetExternalNativeTextTrack(),this._eventManager.removeAll()},i.destroy=function(){this._textTrackModel={},this._eventManager.destroy(),this._activeTextCues=[]},i._resetCurrentTrack=function(){this._activeTextCues=[],this._isTextTrackActive=!1,this._maybeSetExternalCueIndex()},i._getCuesString=function(e){var t=this;return new Promise((function(n,r){var i=t._textTrackModel[e.language],a=i.type||t._getFileType(i.url);[nn,rn].includes(a)||(t._textTrackModel[e.language].cuesStatus=1,r(new L(L.Severity.RECOVERABLE,L.Category.TEXT,L.Code.UNKNOWN_FILE_TYPE,{captionType:a}))),V.execute(i.url,{},"GET").then((function(e){n(a===nn?t._convertSrtToVtt(e):e)})).catch((function(){t._textTrackModel[e.language].cuesStatus=1,r(new L(L.Severity.RECOVERABLE,L.Category.TEXT,L.Code.HTTP_ERROR,{url:i.url}))}))}))},i._parseCues=function(e){return new Promise((function(t,n){var i=new De(window,Re()),a=[];i.oncue=function(e){return a.push(e)},i.onflush=function(){r._logger.debug("finished parsing external cues"),t(a)},i.parse(e),i.flush(),i.onparsingerror((function(e){return n(e)}))}))},i._convertSrtToVtt=function(e){return"WEBVTT\n\n"+e.replace(/(\d\d:\d\d:\d\d),(\d\d\d) --> (\d\d:\d\d:\d\d),(\d\d\d)/g,(function(e,t,n,r,i){return t+"."+n+" --\x3e "+r+"."+i}))},i._downloadAndParseCues=function(e){var t=this;return this._textTrackModel[e.language].cuesStatus=2,new Promise((function(n,r){t._getCuesString(e).then((function(e){return t._parseCues(e)})).then((function(r){t._textTrackModel[e.language].cues=r,n()})).catch((function(e){return r(e)}))}))},i._getFileType=function(e){return e.split(/[#?]/)[0].split(".").pop().trim()},i._handleCaptionOnTimeUpdate=function(e){var t=this._player.currentTime;if(t){var n=!1;this._hadSeeked()&&(this._activeTextCues=[],n=this._maybeSetExternalCueIndex());var r=this._maybeRemoveActiveCues(),i=this._maybeAddToActiveCues(e);(n||i||r)&&this.dispatchEvent(new m(Y.TEXT_CUE_CHANGED,{cues:this._activeTextCues})),this._lastTimeUpdate=t}},i._hadSeeked=function(){return!!this._player.currentTime&&Math.abs(this._player.currentTime-this._lastTimeUpdate)>1},i._maybeRemoveActiveCues=function(){var e=this._player.currentTime;if(!e)return!1;var t=this._activeTextCues.filter((function(t){return t.startTime<e&&e<t.endTime})),n=this._activeTextCues.length!==t.length;return this._activeTextCues=t,n},i._maybeAddToActiveCues=function(e){var t=this._player.currentTime;if(!t)return!1;for(var n=!1,r=this._textTrackModel[e.language].cues;this._externalCueIndex<r.length&&t>r[this._externalCueIndex].startTime;)t<r[this._externalCueIndex].endTime&&this._activeTextCues.push(r[this._externalCueIndex]),this._externalCueIndex++,n=!0;return n},i._maybeSetExternalCueIndex=function(){var e=this._player._getTextTracks().find((function(e){return e.active&&e.external}));if(e&&e.external){for(var t=this._textTrackModel[e.language]?this._textTrackModel[e.language].cues:[],n=0;n<t.length&&!(t[n].startTime<this._player.currentTime&&this._player.currentTime<t[n].endTime)&&!(t[n].endTime>this._player.currentTime&&t[n].startTime>this._player.currentTime);n++);return this._externalCueIndex=n,!0}return!1},i._resetExternalNativeTextTrack=function(){var e=this._player.getVideoElement();if(e&&e.textTracks){var t=Array.from(e.textTracks).find((function(e){return!!e&&$e.isExternalTrack(e)}));t&&(t.cues&&Object.values(t.cues).forEach((function(e){return t.removeCue(e)})),t.mode=$e.MODE.DISABLED)}},i._addCuesToNativeTextTrack=function(e){var t=this._player.getVideoElement();if(t&&t.textTracks){var n=Array.from(t.textTracks).find((function(e){return!!e&&$e.isExternalTrack(e)}));n&&(n.mode=$e.MODE.SHOWING,void 0===window.VTTCue?this._convertCues(e).forEach((function(e){return n.addCue(e)})):e.forEach((function(e){return n.addCue(e)})))}},i._convertCues=function(e){return e.map((function(e){return new window.TextTrackCue(e.startTime,e.endTime,e.text)}))},i._addNativeTextTrack=function(){var e=this._player.getVideoElement();e&&e.textTracks&&(Array.from(e.textTracks).findIndex((function(e){return!!e&&$e.isExternalTrack(e)}))>-1?this._resetExternalNativeTextTrack():e.addTextTrack($e.KIND.SUBTITLES,$e.EXTERNAL_TRACK_ID,$e.EXTERNAL_TRACK_ID))},i._setTextTrack=function(e){var t=this;this._player.config.text.useNativeTextTrack||(this._isTextTrackActive=!0,r._logger.debug("External text track changed",e),this._activeTextCues=[],this._externalCueIndex=0,this.dispatchEvent(new m(Y.TEXT_CUE_CHANGED,{cues:this._activeTextCues})),this._eventManager.listen(this._player,W.TIME_UPDATE,(function(){return t._handleCaptionOnTimeUpdate(e)})))},r}(C);tn(an,"_logger",S("ExternalCaptionsHandler"));var on={PRE:"preroll",MID:"midroll",POST:"postroll",OVERLAY:"overlay"},sn={VAST:"vast",VMAP:"vmap"},ln=function(e){var t,n;function r(){return e.call(this)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.destroy=function(){this._observer&&this._observer.disconnect(),this._observer=null,this._el=null},i.init=function(e){this._observer||(this._el=e,window.ResizeObserver?this._createNativeObserver():this._createIframeObserver(),this._el instanceof HTMLElement&&this._observer&&this._observer.observe(this._el))},i._createNativeObserver=function(){var e=this;this._observer=new window.ResizeObserver((function(t){t.forEach((function(){e._triggerResize()}))}))},i._createIframeObserver=function(){this._observer=new un(this._triggerResize.bind(this))},i._triggerResize=function(){this.dispatchEvent(new m(Y.RESIZE))},r}(C),un=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_observersStore",{}),this._onChangeCallback=e}var t=e.prototype;return t.observe=function(e){var t=this,n=this._createIframe(),r=e.getAttribute("id");this._observersStore[r]=n,e.appendChild(n),n.contentWindow.onresize=function(){return t._onChangeCallback()}},t.disconnect=function(){for(var e in this._observersStore){var t=document.getElementById(e),n=this._observersStore[e];n.onresize=null,t&&(t.removeChild(n),delete this._observersStore[t.getAttribute("id")])}},t._createIframe=function(){var e=document.createElement("iframe");return e.className="playkit-size-iframe",e},e}();function cn(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=function(){return 1}),0===e.length||1===e.length&&0!==t(e[0]))return null;var n=Math.floor(e.length/2);return 0===t(e[n])?e[n]:t(e[n])>0?cn(e.slice(0,n),t):cn(e.slice(n+1),t)}function pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dn=function(){function e(e){pn(this,"_isElementInFullscreen",!1),pn(this,"_isScreenLocked",!1),pn(this,"_isScreenOrientationSupport",!!screen&&!!screen.orientation&&"function"==typeof screen.orientation.unlock&&"function"==typeof screen.orientation.lock),pn(this,"_isFullscreenEventDispatched",!1),this._player=e,this._isInBrowserFullscreen=!1,this._eventManager=new D}var t=e.prototype;return t._isNativeDocumentFullscreen=function(){return!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)},t._isIOSFullscreen=function(){var e="function"==typeof this._player.getVideoElement?this._player.getVideoElement():null;return"iOS"===this._player.env.os.name&&!!e&&("fullscreen"===e.webkitPresentationMode||!e.webkitPresentationMode&&e.webkitDisplayingFullscreen)},t.isFullscreen=function(){return this._isNativeDocumentFullscreen()&&this._isElementInFullscreen||this._isIOSFullscreen()||this._isInBrowserFullscreen},t.enterFullscreen=function(e){if(!this.isFullscreen()){this.registerFullScreenEvents();var t=e&&B.getElementById(e),n=this._player.config.playback;if(t||(t=this._player.getView()),"iOS"===this._player.env.os.name)if(n.inBrowserFullscreen&&n.playsinline||this._player._engineType===Je.YOUTUBE)this._enterInBrowserFullscreen(t);else{var r=this._player.getVideoElement();r&&"function"==typeof r.webkitEnterFullScreen&&(this._player.isInPictureInPicture()?(setTimeout((function(){return r.webkitEnterFullScreen()}),1e3),this._player.exitPictureInPicture()):r.webkitEnterFullScreen())}else this._requestFullscreen(t)}},t.exitFullscreen=function(){if(this.isFullscreen())if("iOS"===this._player.env.os.name)if(this._isInBrowserFullscreen||this._player._engineType===Je.YOUTUBE)this._exitInBrowserFullscreen();else{var e=this._player.getVideoElement();e&&"function"==typeof e.webkitExitFullscreen&&e.webkitExitFullscreen()}else this._requestExitFullscreen()},t._nativeEnterFullScreen=function(e){return"function"==typeof e.requestFullscreen?e.requestFullscreen():"function"==typeof e.mozRequestFullScreen?e.mozRequestFullScreen():"function"==typeof e.webkitRequestFullScreen?e.webkitRequestFullScreen():"function"==typeof e.msRequestFullscreen?e.msRequestFullscreen():void 0},t._requestFullscreen=function(e){var t=this;this._player.isInPictureInPicture()&&this._player.exitPictureInPicture(),Promise.resolve(this._nativeEnterFullScreen(e)).then((function(){t._isElementInFullscreen=!0;var e=F.getPropertyPath(t._player,"config.playback.screenLockOrientionMode"),n=e!==ot.NONE&&Object.values(ot).includes(e);t._isScreenOrientationSupport&&n&&screen.orientation.lock(e).then((function(){return t._isScreenLocked=!0})).catch((function(){return t._isScreenLocked=!1}))}),(function(){}))},t._nativeExitFullScreen=function(){return"function"==typeof document.exitFullscreen?document.exitFullscreen():"function"==typeof document.webkitExitFullscreen?document.webkitExitFullscreen():"function"==typeof document.mozCancelFullScreen?document.mozCancelFullScreen():"function"==typeof document.msExitFullscreen?document.msExitFullscreen():void 0},t._requestExitFullscreen=function(){var e=this;Promise.resolve(this._nativeExitFullScreen()).then((function(){e._isElementInFullscreen=!1,e._isScreenOrientationSupport&&e._isScreenLocked&&(screen.orientation.unlock(),e._isScreenLocked=!1)}),(function(){}))},t._enterInBrowserFullscreen=function(e){this._player.isInPictureInPicture()&&this._player.exitPictureInPicture(),B.addClassName(e,"playkit-in-browser-fullscreen-mode"),this._isInBrowserFullscreen=!0,this._fullscreenEnterHandler(),this._player.dispatchEvent(new m(this._player.Event.RESIZE))},t._exitInBrowserFullscreen=function(){var e=B.getElementBySelector(".playkit-in-browser-fullscreen-mode");e&&B.removeClassName(e,"playkit-in-browser-fullscreen-mode"),this._isInBrowserFullscreen=!1,this._fullscreenExitHandler(),this._player.dispatchEvent(new m(this._player.Event.RESIZE))},t.registerFullScreenEvents=function(){var e=this;"iOS"===this._player.env.os.name?this._handleIosFullscreen():(this._eventManager.listen(document,"webkitfullscreenchange",(function(){return e._fullscreenChangeHandler()})),this._eventManager.listen(document,"mozfullscreenchange",(function(){return e._fullscreenChangeHandler()})),this._eventManager.listen(document,"fullscreenchange",(function(){return e._fullscreenChangeHandler()})),this._eventManager.listen(document,"MSFullscreenChange",(function(){return e._fullscreenChangeHandler()})))},t._handleIosFullscreen=function(){var e=this,t=function(){var t=e._player.getVideoElement();t&&(e._eventManager.listen(t,"webkitbeginfullscreen",(function(){return e._fullscreenEnterHandler()})),e._eventManager.listen(t,"webkitendfullscreen",(function(){return e._fullscreenExitHandler()})))};this._player.getVideoElement()?t():this._eventManager.listenOnce(this._player,this._player.Event.SOURCE_SELECTED,(function(){return t()}))},t._fullscreenChangeHandler=function(){this.isFullscreen()?this._fullscreenEnterHandler():this._fullscreenExitHandler()},t._fullscreenEnterHandler=function(){this.isFullscreen()&&!this._isFullscreenEventDispatched&&(this._isFullscreenEventDispatched=!0,this._player.dispatchEvent(new m(this._player.Event.ENTER_FULLSCREEN)))},t._fullscreenExitHandler=function(){!this.isFullscreen()&&this._isFullscreenEventDispatched&&(this._isFullscreenEventDispatched=!1,this._eventManager.removeAll(),this._player.dispatchEvent(new m(this._player.Event.EXIT_FULLSCREEN)))},t.destroy=function(){this._eventManager.destroy()},e}();function fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hn=function(){function e(){fn(this,"_decoratorProviders",new Map),fn(this,"_logger",S("EngineDecoratorManager"))}var t=e.prototype;return t.register=function(e){this._decoratorProviders.has(e.getName())?this._logger.warn("decorator already registered for "+e.getName()):this._decoratorProviders.set(e.getName(),e)},t.createDecorators=function(e,t){return this._logger.debug("decorators created for "+Array.from(this._decoratorProviders.keys()).toString()),Array.from(this._decoratorProviders.values(),(function(n){return n.getEngineDecorator(e,t)}))},t.destroy=function(){this._logger.debug("decorators destroyed"),this._decoratorProviders.clear()},e}();function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var vn=function(e){var t,n;function r(t,n){var r;return(r=e.call(this)||this)._eventManager=new D,r._pluginDecorators=n.createDecorators(t,e.prototype.dispatchEvent.bind(yn(r))),Object.values(q).forEach((function(e){return r._eventManager.listen(t,e,(function(e){return r.dispatchEvent(e)}))})),new Proxy(t,{get:function(e,t){"destroy"===t&&r._destroy();var n,i=r._pluginDecorators.find((function(e){return e.active}));return(n="addEventListener"===t||"removeEventListener"===t?yn(r):i&&t in i?i:e)[t]&&"function"==typeof n[t].bind?n[t].bind(n):n[t]},set:function(e,t,n){var i=r._pluginDecorators.find((function(e){return t in e&&e.active}));return i&&t in i?i[t]=n:e[t]=n,!0}})||yn(r)}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i,a,o=r.prototype;return o.dispatchEvent=function(t){var n=this._pluginDecorators.find((function(e){return e.active}));return n&&n.dispatchEvent?n.dispatchEvent(t):e.prototype.dispatchEvent.call(this,t)},o._destroy=function(){this._pluginDecorators=[],this._eventManager.destroy()},i=r,(a=[{key:"active",get:function(){return!0}}])&&gn(i.prototype,a),r}(C),mn={TRUE:!0,FALSE:!1,IN_VIEW:"inview"};function bn(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _n(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function _n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function En(){return(En=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function kn(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Tn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){kn(a,r,i,o,s,"next",e)}function s(e){kn(a,r,i,o,s,"throw",e)}o(void 0)}))}}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wn=/#wh=/i,Sn=/#xywh=/i,Cn=new RegExp("^/[^/].+"),xn=function(e){var t,n;function r(){var t;return An(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call(this)||this),"_cues",[]),t._eventManager=new D,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.load=function(){var e=Tn(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return r._logger.debug("start loading the vtt thumbnails"),e.next=5,this._downloadAndParseCues(t);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),i.getThumbnail=function(e){var t=this._findCue(e,this._cues);if(t){var n=t.size,r=t.coordinates,i=En({url:t.imgUrl},n=n||this._naturalImgSize,r=r||{x:0,y:0});return new ft(i)}return null},i.isUsingVttThumbnails=function(){var e;return!!(null==(e=this._cues)?void 0:e.length)},i._downloadAndParseCues=function(){var e=Tn(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._downloadVttFile(t);case 3:return n=e.sent,e.next=6,this._processVtt(n);case 6:return r=e.sent,e.next=9,this._formatIntoThumbnailCues(r,t);case 9:this._cues=e.sent,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),this.dispatchEvent(new m(W.ERROR,e.t0));case 15:case"end":return e.stop()}}),e,this,[[0,12]])})));return function(t){return e.apply(this,arguments)}}(),i._downloadVttFile=function(){var e=Tn(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,V.execute(t.vttUrl,{},"GET");case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),new L(L.Severity.RECOVERABLE,L.Category.TEXT,L.Code.HTTP_ERROR,e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}(),i._processVtt=function(){var e=Tn(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var i=new De(window,Re()),a=[];i.oncue=function(e){return a.push(e)},i.onflush=function(){r._logger.debug("finished parsing thumbnails cues"),e(a)},i.parse(t),i.flush(),i.onparsingerror((function(e){return n(e)}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),i._formatIntoThumbnailCues=function(){var e=Tn(regeneratorRuntime.mark((function e(t,n){var r,i,a,o,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.validateThumbnailsVTTFormat(t)){e.next=4;break}throw new L(L.Severity.RECOVERABLE,L.Category.TEXT,L.Code.INVALID_VTT_THUMBNAILS_FILE,{message:"invalid thumbnail vtt format",vttUrl:n.vttUrl});case 4:return r=this._extractCueMetadata(t[0],n),e.next=7,this.validateImgUrl(r.imgUrl);case 7:if(e.sent){e.next=11;break}throw new L(L.Severity.RECOVERABLE,L.Category.TEXT,L.Code.INVALID_VTT_THUMBNAILS_FILE,{message:"failed loading the image - invalid image url",imgUrl:r.imgUrl});case 11:return e.next=13,this.extractImgNaturalDimensions(r.imgUrl);case 13:for(this._naturalImgSize=e.sent,i=[],a=bn(t);!(o=a()).done;)s=o.value,l=this._extractCueMetadata(s,n),i.push(l);return e.abrupt("return",i);case 17:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),i.validateThumbnailsVTTFormat=function(e){return e.length&&e[0]instanceof Be},i.extractImgNaturalDimensions=function(e){var t=this;return new Promise((function(n){var r=new Image;r.src=e,t._eventManager.listenOnce(r,"load",(function(){n({height:r.naturalHeight,width:r.naturalWidth})})),t._eventManager.listenOnce(r,"error",(function(){return n(null)}))}))},i.validateImgUrl=function(e){var t=this;return new Promise((function(n){var r=new Image;r.src=e,t._eventManager.listenOnce(r,"load",(function(){n(!0)})),t._eventManager.listenOnce(r,"error",(function(){return n(!1)}))}))},i._extractCueMetadata=function(e,t){var n,i=e.startTime,a=e.endTime,o=e.text,s=t.vttUrl.substring(0,t.vttUrl.lastIndexOf("/")),l=wn.test(o),u=Sn.test(o),c=!1,p=null,d=null;if(l)n=o.split(wn)[0],r._logger.warn('vtt thumbnails in "'+wn+'" form - is supported but the width and height options are ignored and The images will be displayed in their natural dimensions'),c=void 0!==n;else if(u){var f=o.split(Sn);n=f[0];var h=f[1].split(",").map(Number),g=h[0],y=h[1],v=h[2],m=h[3];p={x:g,y:y},d={width:v,height:m},c=[g,y,v,m,n].every((function(e){return void 0!==e}))}else n=o,c=!!o;if(0!==n.indexOf("http://")&&0!==n.indexOf("https://")&&(n=s+"/"+(n=Cn.test(n)?n.substring(1):n)),c)return{startTime:i,endTime:a,imgUrl:n,size:d,coordinates:p};throw new L(L.Severity.RECOVERABLE,L.Category.TEXT,L.Code.INVALID_VTT_THUMBNAILS_FILE,{message:"error while parsing the vtt cues - invalid cue",parsedCue:{startTime:i,endTime:a,options:o}})},i._findCue=function(e,t){for(var n=0,r=t.length-1;n<=r;){var i=Math.floor((n+r)/2),a=t[i];if(e>=a.startTime&&e<a.endTime)return t[i];e<a.startTime?r=i-1:n=i+1}return null},i.reset=function(){this._cues=[],this._eventManager.removeAll(),this._naturalImgSize={}},i.destroy=function(){this.reset(),this._eventManager.destroy()},r}(C);function In(){return(In=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}An(xn,"_logger",S("ExternalThumbnailsHandler"));var Ln="off",Mn=function(e){var t,n;function r(t){var n;return void 0===t&&(t={}),On(Rn(n=e.call(this)||this),"_sources",{}),On(Rn(n),"_activeTextCues",[]),On(Rn(n),"_textDisplaySettings",{}),On(Rn(n),"_playbackAttributesState",{muted:void 0,volume:void 0,rate:void 0,videoTrack:void 0,audioLanguage:"",textLanguage:""}),On(Rn(n),"_hasUserInteracted",!1),On(Rn(n),"_isOnLiveEdge",!1),On(Rn(n),"_shouldLoadAfterAttach",!1),n._setConfigLogLevel(t),n._playerId=j.uniqueId(5),n._prepareVideoElement(),r.runCapabilities(),n._env=g,n._tracks=[],n._firstPlay=!0,n._loadingMedia=!1,n._loading=!1,n._playbackStart=!1,n._firstPlaying=!1,n._reset=!0,n._destroyed=!1,n._fallbackToMutedAutoPlay=!1,n._config=r._defaultConfig,n._sources=F.copyDeep(lt),n._eventManager=new D,n._posterManager=new G,n._stateManager=new te(Rn(n)),n._resizeWatcher=new ln,n._playbackMiddleware=new at,n._textStyle=new ye,n._createReadyPromise(),n._createPlayerContainer(),n._appendDomElements(),n._externalCaptionsHandler=new an(Rn(n)),n._externalThumbnailsHandler=new xn,n._fullscreenController=new dn(Rn(n)),n.configure(t),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.runCapabilities=function(){r._logger.debug("Running player capabilities"),Qt.getEngines().forEach((function(e){return e.runCapabilities()}))},r.getCapabilities=function(e){r._logger.debug("Get player capabilities",e);var t=[];return Qt.getEngines().forEach((function(e){return t.push(e.getCapabilities())})),Promise.all(t).then((function(t){var n={};return t.forEach((function(e){return Object.assign(n,e)})),e?n[e]:n}))},r.setCapabilities=function(e,t){r._logger.debug("Set player capabilities",e,t);var n=Qt.getEngines().find((function(t){return t.id===e}));n&&n.setCapabilities(t)};var i,a,o,s=r.prototype;return s.configure=function(e){void 0===e&&(e={}),this._setConfigLogLevel(e),F.mergeDeep(this._config,e),this._applyTextTrackConfig(e),this._applyABRRestriction(e)},s.setSourcesMetadata=function(e){this._sources&&(this._sources.metadata||(this._sources.metadata={}),F.mergeDeep(this._sources.metadata,e))},s.setSources=function(e){this._hasSources(e)?(this.reset(),F.mergeDeep(this._sources,e),this._resizeWatcher.init(B.getElementById(this._playerId)),r._logger.debug("Change source started"),this.dispatchEvent(new m(Y.CHANGE_SOURCE_STARTED)),this._reset=!1,this._selectEngineByPriority()?(this.dispatchEvent(new m(Y.SOURCE_SELECTED,{selectedSource:this._sources[this._streamType]})),this._attachMedia(),this._handlePlaybackOptions(),this._posterManager.setSrc(this._sources.poster),this._handleDimensions(),this._handlePreload(),this._handleAutoPlay(),r._logger.debug("Change source ended"),this.dispatchEvent(new m(Y.CHANGE_SOURCE_ENDED))):(r._logger.warn("No playable engines was found to play the given sources"),this.dispatchEvent(new m(W.ERROR,new L(L.Severity.CRITICAL,L.Category.PLAYER,L.Code.NO_ENGINE_FOUND_TO_PLAY_THE_SOURCE,"No Engine Found To Play The Source"))))):F.mergeDeep(this._sources,e)},s.ready=function(){return this._readyPromise?this._readyPromise:Promise.resolve()},s.load=function(){var e=this;this.src?r._logger.debug("The source has already been loaded. load request ignored"):this._playbackMiddleware.load((function(){e._engine?e._load():e._eventManager.listenOnce(e,Y.SOURCE_SELECTED,(function(){return e._load()}))}))},s.play=function(e){var t=this;e&&e.programmatic?this._autoPlay():(this._playbackStart||(this._playbackStart=!0,this.dispatchEvent(new m(Y.PLAYBACK_START)),this.src||this._prepareVideoElement(),this.load()),this._engine?this._playbackMiddleware.play((function(){return t._play()})):this._loadingMedia?this._playbackMiddleware.play((function(){return t._playAfterAsyncMiddleware()})):this.dispatchEvent(new m(W.ERROR,new L(L.Severity.CRITICAL,L.Category.PLAYER,L.Code.NO_SOURCE_PROVIDED,"No Source Provided"))))},s.pause=function(){this._engine&&this._playbackMiddleware.pause(this._pause.bind(this))},s.getView=function(){return this._el},s.getVideoElement=function(){if(this._engine)return this._engine.getVideoElement()},s.reset=function(e){void 0===e&&(e=!1),this._reset||(this.pause(),this._externalCaptionsHandler.reset(),this._externalThumbnailsHandler.reset(),this._posterManager.reset(),this._stateManager.reset(),this._sources=F.copyDeep(lt),this._activeTextCues=[],this._updateTextDisplay([]),this._tracks=[],$e.reset(),this._resetStateFlags(),this._engineType="",this._streamType="",this._pendingSelectedVideoTrack=null,this._engine&&this._engine.reset(),this.showBlackCover(),this._reset=!0,this.dispatchEvent(new m(Y.PLAYER_RESET,{isChangeMedia:e})),this._eventManager.removeAll(),this._resizeWatcher.init(B.getElementById(this._playerId)),this._createReadyPromise(),this._isOnLiveEdge=!1,this._shouldLoadAfterAttach=!1)},s.destroy=function(){this._destroyed||(this._externalCaptionsHandler.destroy(),this._posterManager.destroy(),this._stateManager.destroy(),this._fullscreenController.destroy(),this._activeTextCues=[],this._textDisplaySettings={},this._config={},this._tracks=[],this._engineType="",this._streamType="",this._readyPromise=null,this._pendingSelectedVideoTrack=null,this._resetStateFlags(),this._playbackAttributesState={},this._engine&&this._engine.destroy(),this._engineDecoratorManager&&this._engineDecoratorManager.destroy(),this._resizeWatcher.destroy(),this._el&&B.removeChild(this._el.parentNode,this._el),this._destroyed=!0,this.dispatchEvent(new m(Y.PLAYER_DESTROY)),this._eventManager.destroy())},s.hideBlackCover=function(){this._blackCoverEl&&(this._blackCoverEl.style.visibility="hidden")},s.showBlackCover=function(){this._blackCoverEl&&(this._blackCoverEl.style.visibility="visible")},s.attachMediaSource=function(){var e=this;this._engine&&(this._shouldLoadAfterAttach=!0,this._engine.attachMediaSource(),this._eventManager.listenOnce(this,W.CAN_PLAY,(function(){"number"==typeof e._playbackAttributesState.rate&&(e.playbackRate=e._playbackAttributesState.rate)})))},s.detachMediaSource=function(){this._engine&&(this.pause(),this.hideTextTrack(),this._shouldLoadAfterAttach=!1,this._createReadyPromise(),this._engine.detachMediaSource())},s.registerEngineDecoratorProvider=function(e){this._engineDecoratorManager||(this._engineDecoratorManager=new hn),e&&this._engineDecoratorManager.register(e)},s._getTargetElement=function(){return B.getElementById(this._config.targetId)},s.isLive=function(){return!(this._sources.type===et.VOD||!(this._sources.type===et.LIVE||this._engine&&this._engine.isLive()))},s.isAudio=function(){return this._sources.type===et.AUDIO},s.isOnLiveEdge=function(){return this._engine&&"function"==typeof this._engine.isOnLiveEdge?this._engine.isOnLiveEdge():this._isOnLiveEdge},s.isDvr=function(){return this.isLive()&&this._sources.dvr},s.seekToLiveEdge=function(){this._engine&&this.isLive()&&(this._engine.seekToLiveEdge(),this._isOnLiveEdge=!0)},s.getStartTimeOfDvrWindow=function(){return this._engine?this._engine.getStartTimeOfDvrWindow():0},s.getTracks=function(e){switch(e){case Qe.VIDEO:return F.copyDeep(this._getVideoTracks());case Qe.AUDIO:return F.copyDeep(this._getAudioTracks());case Qe.TEXT:return F.copyDeep(this._getTextTracks());case Qe.IMAGE:return F.copyDeep(this._getImageTracks());default:return F.copyDeep(this._tracks)}},s.getActiveTracks=function(){return F.copyDeep({video:this._getVideoTracks().find((function(e){return e.active})),audio:this._getAudioTracks().find((function(e){return e.active})),text:this._getTextTracks().find((function(e){return e.active}))})},s.selectTrack=function(e){this._engine&&(e instanceof ae?(this._playbackAttributesState.videoTrack=e,this._stateManager.currentState.type===J.IDLE?this._pendingSelectedVideoTrack=e:this._engine.selectVideoTrack(e)):e instanceof oe?this._engine.selectAudioTrack(e):e instanceof $e?(this._resetTextDisplay(),e.language===Ln?(this.hideTextTrack(),this._externalCaptionsHandler.hideTextTrack(),this._playbackAttributesState.textLanguage=Ln):e.external?(this._engine.hideTextTrack(),this._externalCaptionsHandler.selectTextTrack(e)):(this._externalCaptionsHandler.hideTextTrack(),this._engine.selectTextTrack(e))):e instanceof pt&&this._engine.selectImageTrack(e))},s.hideTextTrack=function(){if(this._engine){this._engine.hideTextTrack(),this._resetTextDisplay();var e=this._getTextTracks(),t=e.find((function(e){return!0===e.active}));t&&t.external&&this._externalCaptionsHandler.hideTextTrack(),e.map((function(e){return e.active=!1}));var n=e.find((function(e){return e.language===Ln}));n&&(n.active=!0,this.dispatchEvent(new m(Y.TEXT_TRACK_CHANGED,{selectedTextTrack:n}))),this._playbackAttributesState.textLanguage=Ln}},s.showTextTrack=function(){var e=this._getTextTracks(),t=this._playbackAttributesState.textLanguage!==Ln&&this._playbackAttributesState.textLanguage||this._getLanguage(e,"auto",e.find((function(e){return e.default})));this._setDefaultTrack(e,t)},s.addTextTrack=function(e,t,n){if(this._engine&&"function"==typeof this._engine.addTextTrack)return this._engine.addTextTrack(e,t,n)},s.getNativeTextTracks=function(){return this._engine&&"function"==typeof this._engine.getNativeTextTracks?this._engine.getNativeTextTracks():[]},s.enableAdaptiveBitrate=function(){this._engine&&this._engine.enableAdaptiveBitrate(),this._playbackAttributesState.videoTrack=void 0},s.isAdaptiveBitrateEnabled=function(){return!!this._engine&&this._engine.isAdaptiveBitrateEnabled()},s._applyABRRestriction=function(e){if(F.hasPropertyPath(e,"abr.restrictions")&&this._engine&&this._tracks.length){var t=this._config.abr.restrictions,n=mt(this._tracks.filter((function(e){return e instanceof ae})),t);if(n.length){var i=this._tracks.filter((function(e){return e instanceof ae&&e.available}));(i.length!==n.length||!i.every((function(e,t){return e.bandwidth===n[t].bandwidth})))&&(this._engine.applyABRRestriction(t),this._tracks.forEach((function(e){!n.includes(e)&&e instanceof ae?(e.available=!1,e.active=!1):e.available=!0})),this.getActiveTracks().video||(n[0].active=!0),this.dispatchEvent(new m(Y.TRACKS_CHANGED,{tracks:this._tracks.filter((function(e){return e.available}))})))}else r._logger.warn("Invalid restriction, Nothing has changed values do not meet the restriction")}},s._applyTextTrackConfig=function(e){if(F.hasPropertyPath(e,"text.textTrackDisplaySetting")||F.getPropertyPath(e,"text.forceCenter")){var t={};F.hasPropertyPath(this._config,"text.textTrackDisplaySetting")&&(t=F.mergeDeep(t,this._config.text.textTrackDisplaySetting)),F.getPropertyPath(this._config,"text.forceCenter")&&(t=F.mergeDeep(t,{position:"auto",align:"center",size:"100"})),this.setTextDisplaySettings(t)}try{F.hasPropertyPath(e,"text.textStyle")&&(this.textStyle=ye.fromJson(this._config.text.textStyle))}catch(e){r._logger.warn(e)}},s.getThumbnail=function(e){return this._externalThumbnailsHandler.isUsingVttThumbnails()?this._externalThumbnailsHandler.getThumbnail(e):this._engine?this._engine.getThumbnail(e):null},s.setTextDisplaySettings=function(e){this._textDisplaySettings=F.mergeDeep(this._textDisplaySettings,e),this._updateCueDisplaySettings();for(var t=0;t<this._activeTextCues.length;t++)this._activeTextCues[t].hasBeenReset=!0;this._updateTextDisplay(this._activeTextCues)},s.isFullscreen=function(){return this._fullscreenController.isFullscreen()},s.notifyEnterFullscreen=function(){this.isFullscreen()&&this.dispatchEvent(new m(Y.ENTER_FULLSCREEN))},s.notifyExitFullscreen=function(){this.isFullscreen()||this.dispatchEvent(new m(Y.EXIT_FULLSCREEN))},s.enterFullscreen=function(e){this._fullscreenController.enterFullscreen(e)},s.exitFullscreen=function(){this._fullscreenController.exitFullscreen()},s.enterPictureInPicture=function(){this.isFullscreen()&&this.exitFullscreen(),this._engine&&!this._engine.isInPictureInPicture&&this._engine.enterPictureInPicture()},s.exitPictureInPicture=function(){this._engine&&this._engine.isInPictureInPicture&&this._engine.exitPictureInPicture()},s.isInPictureInPicture=function(){return!!this._engine&&this._engine.isInPictureInPicture},s.isPictureInPictureSupported=function(){return!!this._config.playback.pictureInPicture&&this._engine.isPictureInPictureSupported()},s.isVr=function(){return!!this._sources.vr},s.getLogLevel=function(e){return A(e)},s.setLogLevel=function(e,t){w(e,t)},s.getDrmInfo=function(){var e;return null==(e=this._engine)?void 0:e.getDrmInfo()},s._resetTextDisplay=function(){this._activeTextCues=[],this._updateTextDisplay([])},s._prepareVideoElement=function(){var e=this;Qt.getEngines().forEach((function(t){t.prepareVideoElement(e._playerId)}))},s._setConfigLogLevel=function(e){e.log&&e.log.level&&_[e.log.level]&&w(_[e.log.level]),e.log&&"function"==typeof e.log.handler&&k(e.log.handler)},s._hasSources=function(e){return!!e&&!!Object.values(Ze).find((function(t){return e[t]&&e[t].length>0}))},s._createPlayerContainer=function(){var e=this._el=B.createElement("div");B.addClassName(e,"playkit-container"),B.setAttribute(e,"id",this._playerId),B.setAttribute(e,"tabindex","-1")},s._appendEngineEl=function(){if(this._el){var e=this._engine.getVideoElement();B.addClassName(e,"playkit-engine");var t="playkit-engine-"+this._engine.id;B.addClassName(e,t),B.prependTo(e,this._el),"youtube"===this._engine.id&&(this._el.style.zIndex=1)}},s._appendDomElements=function(){this._blackCoverEl=B.createElement("div"),B.addClassName(this._blackCoverEl,"playkit-black-cover"),B.appendChild(this._el,this._blackCoverEl);var e=this._posterManager.getElement();B.addClassName(e,"playkit-poster"),B.appendChild(this._el,e),this._textDisplayEl=B.createElement("div"),B.addClassName(this._textDisplayEl,"playkit-subtitles"),B.appendChild(this._el,this._textDisplayEl)},s._createReadyPromise=function(){var e=this;this._readyPromise=new Promise((function(t,n){e._eventManager.listenOnce(e,Y.TRACKS_CHANGED,(function(){e.dispatchEvent(new m(Y.MEDIA_LOADED)),t()})),e._eventManager.listen(e,W.ERROR,(function(e){e.payload.severity===L.Severity.CRITICAL&&n()}))})).catch((function(){}))},s._selectEngineByPriority=function(){for(var e,t=this,n=this._config.playback.streamPriority,i=this._config.playback.preferNative,a=this._sources,o=function(){var n=e.value,o="string"==typeof n.engine?n.engine.toLowerCase():"",s="string"==typeof n.format?n.format.toLowerCase():"",l=Qt.getEngines().find((function(e){return e.id===o}));if(l){var u=a[s];if(u&&u.length>0){var c=u[0];if(l.canPlaySource(c,i[s],t._config.drm))return r._logger.debug("Source selected: ",u),t._loadEngine(l,c),t._engineType=o,t._streamType=s,{v:!0}}}},s=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(n);!(e=s()).done;){var l=o();if("object"==typeof l)return l.v}return!1},s._loadEngine=function(e,t){this._engine?this._engine.id===e.id?this._engine.restore(t,In({},this._config,{sources:this._sources})):(this._engine.destroy(),this._createEngine(e,t),this._appendEngineEl()):(this._createEngine(e,t),this._appendEngineEl())},s._createEngine=function(e,t){var n=e.createEngine(t,In({},this._config,{sources:this._sources}),this._playerId);this._engine=this._engineDecoratorManager?new vn(n,this._engineDecoratorManager):n},s._attachMedia=function(){var e=this;if(this._engine){Object.keys(W).forEach((function(t){e._eventManager.listen(e._engine,W[t],(function(t){return e.dispatchEvent(t)}))})),this._eventManager.listen(this._engine,W.SEEKING,(function(){e.isLive()&&(e._isOnLiveEdge=!(!e.duration||!e.currentTime)&&e.currentTime>=e.duration-1&&!e.paused)})),this._eventManager.listen(this._engine,W.SEEKED,(function(){var t=e._env.browser.name;"Edge"!==t&&"IE"!==t||e._removeTextCuePatch()})),this._eventManager.listen(this._engine,Y.MEDIA_RECOVERED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.IMAGE_TRACK_CHANGED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.TEXT_TRACK_ADDED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.VIDEO_TRACK_CHANGED,(function(t){return e._markActiveTrack(t.payload.selectedVideoTrack),e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.AUDIO_TRACK_CHANGED,(function(t){e.ready().then((function(){return e._playbackAttributesState.audioLanguage=t.payload.selectedAudioTrack.language})),e._markActiveTrack(t.payload.selectedAudioTrack),e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.TEXT_TRACK_CHANGED,(function(t){return e._onTextTrackChanged(t)})),this._eventManager.listen(this._engine,Y.TRACKS_CHANGED,(function(t){return e._onTracksChanged(t)})),this._eventManager.listen(this._engine,Y.TEXT_CUE_CHANGED,(function(t){return e._onCueChange(t)})),this._eventManager.listen(this._engine,Y.ABR_MODE_CHANGED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.TIMED_METADATA,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.TIMED_METADATA_CHANGE,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.TIMED_METADATA_ADDED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.PLAY_FAILED,(function(t){e._onPlayFailed(t),e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.FPS_DROP,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.FRAG_LOADED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.DRM_LICENSE_LOADED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.MANIFEST_LOADED,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._engine,Y.MEDIA_RECOVERED,(function(){return e._handleRecovered()})),this._eventManager.listen(this,W.PLAY,this._onPlay.bind(this)),this._eventManager.listen(this,W.PAUSE,this._onPause.bind(this)),this._eventManager.listen(this,W.PLAYING,this._onPlaying.bind(this)),this._eventManager.listen(this,W.ENDED,this._onEnded.bind(this)),this._eventManager.listen(this,Y.MUTE_CHANGE,(function(){e._playbackAttributesState.muted=e.muted})),this._eventManager.listen(this,W.VOLUME_CHANGE,(function(){e._playbackAttributesState.volume=e.volume})),this._eventManager.listen(this,W.RATE_CHANGE,(function(){e._playbackAttributesState.rate=e.playbackRate})),this._eventManager.listen(this,Y.ENTER_FULLSCREEN,(function(){return e._resetTextCuesAndReposition()})),this._eventManager.listen(this,Y.EXIT_FULLSCREEN,(function(){return e._resetTextCuesAndReposition()})),this._eventManager.listen(this._resizeWatcher,Y.RESIZE,(function(t){e._resetTextCuesAndReposition(),e.dispatchEvent(t)})),this._eventManager.listen(this._externalCaptionsHandler,Y.TEXT_CUE_CHANGED,(function(t){return e._onCueChange(t)})),this._eventManager.listen(this._externalCaptionsHandler,Y.TEXT_TRACK_CHANGED,(function(t){return e._onTextTrackChanged(t)})),this._eventManager.listen(this._externalCaptionsHandler,W.ERROR,(function(t){return e.dispatchEvent(t)})),this._eventManager.listen(this._externalThumbnailsHandler,W.ERROR,(function(t){return e.dispatchEvent(t)}));var t=B.getElementBySelector("#"+this.config.targetId);t&&this._eventManager.listen(t,"click",(function(){e._hasUserInteracted=!0,e.dispatchEvent(new m(Y.USER_GESTURE))}),{capture:!0})}},s._handleRecovered=function(){this._stateManager.currentState.type===J.PLAYING&&this.play()},s._onTextTrackChanged=function(e){var t=this;this.ready().then((function(){return t._playbackAttributesState.textLanguage=e.payload.selectedTextTrack.language})),this._markActiveTrack(e.payload.selectedTextTrack),this.dispatchEvent(e)},s._resetTextCuesAndReposition=function(){this._engine.resetAllCues(),this._externalCaptionsHandler.resetAllCues(),this._updateTextDisplay([]);for(var e=0;e<this._activeTextCues.length;e++)this._activeTextCues[e].hasBeenReset=!0;this._updateTextDisplay(this._activeTextCues)},s._removeTextCuePatch=function(){var e=this,t=this._activeTextCues.filter((function(t){var n=t._endTime,r=t._startTime,i=e.currentTime;if(i<n&&i>r)return t}));this._updateTextDisplay(t)},s._handlePlaybackOptions=function(){if(this._config.playback=this._config.playback||{},"boolean"==typeof this._playbackAttributesState.muted?this.muted=this._playbackAttributesState.muted:"boolean"==typeof this._config.playback.muted&&(this.muted=this._config.playback.muted),"number"==typeof this._playbackAttributesState.volume?this.volume=this._playbackAttributesState.volume:"number"==typeof this._config.playback.volume&&(this.volume=this._config.playback.volume),"boolean"==typeof this._config.playback.playsinline&&(this.playsinline=this._config.playback.playsinline),"string"==typeof this._config.playback.crossOrigin&&(this.crossOrigin=this._config.playback.crossOrigin),Array.isArray(this._config.playback.playbackRates)){var e=this._config.playback.playbackRates.filter((function(e,t,n){return e>0&&e<=16&&n.indexOf(e)===t})).sort((function(e,t){return e-t}));e&&(this._playbackRates=e)}},s._handlePreload=function(){"auto"!==this._config.playback.preload||this._config.playback.autoplay||this.load()},s._autoPlay=function(){var e=this,t=this._config.playback.allowMutedAutoPlay;r.getCapabilities(this.engineType).then((function(r){r.autoplay?n():r.mutedAutoPlay?e.muted&&!e._fallbackToMutedAutoPlay?i():t?a():o():o()}));var n=function(){r._logger.debug("Start autoplay"),e._fallbackToMutedAutoPlay&&(e._fallbackToMutedAutoPlay=!1,e.muted=!1),e.play()},i=function(){r._logger.debug("Start muted autoplay"),e.play()},a=function(){r._logger.debug("Fallback to muted autoplay"),e._fallbackToMutedAutoPlay=!0,e.muted=!0,e.dispatchEvent(new m(Y.FALLBACK_TO_MUTED_AUTOPLAY)),e.play()},o=function(){r._logger.warn("Autoplay failed, pause player"),e._posterManager.show(),e.load(),e.dispatchEvent(new m(Y.AUTOPLAY_FAILED))}},s._handleAutoPlay=function(){(this.isAudio()||this._config.playback.autoplay!==mn.TRUE)&&this._posterManager.show(),this._config.playback.autoplay===mn.TRUE&&this._autoPlay()},s._playAfterAsyncMiddleware=function(){var e=this;this._engine?this._play():this._eventManager.listenOnce(this,Y.SOURCE_SELECTED,(function(){return e._play()}))},s._load=function(){var e=this;if(this._engine&&!this.src&&!this._loading){this._loading=!0;var t=this._sources.startTime;this._engine.load(t).then((function(n){e.isLive()&&(-1===t||Number(t)>=Number(e.duration))&&(e._isOnLiveEdge=!0),e._updateTracks(n.tracks),e.dispatchEvent(new m(Y.TRACKS_CHANGED,{tracks:e._tracks})),e._externalThumbnailsHandler.load(e.sources.thumbnails)})).finally((function(){e._loading=!1,e._reset=!1}))}},s._handleDimensions=function(){var e=this.config.dimensions;F.isObject(e)&&!F.isEmptyObject(e)&&(this.dimensions=e)},s._play=function(){var e=this;this._shouldLoadAfterAttach&&(this._load(),this._shouldLoadAfterAttach=!1),this.ready().then((function(){e._shouldPlayerSeekToLiveEdge()&&e.seekToLiveEdge(),e._engine.play()}))},s._shouldPlayerSeekToLiveEdge=function(){if(this.isLive()){var e=!this.isDvr()||"number"==typeof this.currentTime&&this.currentTime<0;return this._firstPlay?!!this.src&&!this.isOnLiveEdge():e}return!1},s._pause=function(){this._engine.pause()},s._setCurrentTime=function(e){if(this._engine&&N.isNumber(e)){var t=e;e<0&&(t=0);var n=this.isLive()?this._engine.duration:this._engine.duration-.1;t>n&&(t=n),this._engine.currentTime=t}},s._onPause=function(){this._isOnLiveEdge=!1},s._onPlay=function(){this._firstPlay&&(this._firstPlay=!1,this.dispatchEvent(new m(Y.FIRST_PLAY)),this.hideBlackCover(),"number"==typeof this._playbackAttributesState.rate&&(this.playbackRate=this._playbackAttributesState.rate))},s._onPlaying=function(){this._firstPlaying||(this._firstPlaying=!0,this.isAudio()||this._posterManager.hide(),this.dispatchEvent(new m(Y.FIRST_PLAYING))),this._engine&&this._pendingSelectedVideoTrack&&(this._engine.selectVideoTrack(this._pendingSelectedVideoTrack),this._pendingSelectedVideoTrack=null)},s._onPlayFailed=function(e){this._firstPlay&&this._config.playback.autoplay&&(this._posterManager.show(),this.dispatchEvent(new m(Y.AUTOPLAY_FAILED,e.payload)))},s._onEnded=function(){this.paused||this._pause()},s._resetStateFlags=function(){this._loading=!1,this._firstPlay=!0,this._loadingMedia=!1,this._playbackStart=!1,this._firstPlaying=!1},s._calcRatio=function(e,t){if(void 0!==t.ratio&&(this._aspectRatio=t.ratio),this._aspectRatio){var n=this._aspectRatio.split(":").map((function(e){return Number(e)})),r=n[0],i=n[1];if(t.width||!t.width&&!t.height){var a=i/r*e.clientWidth;e.style.height=a+"px"}else if(t.height&&!t.width){var o=r/i*e.clientHeight;e.style.width=o+"px"}}},s._onTracksChanged=function(e){this._updateTracks(e.payload.tracks),this.dispatchEvent(e)},s._updateTracks=function(e){r._logger.debug("Tracks changed",e),this._tracks=e.concat(this._externalCaptionsHandler.getExternalTracks(e)),this._applyABRRestriction(this._config),this._addTextTrackOffOption(),this._maybeSetTracksLabels(),this._setDefaultTracks()},s._getTracksByType=function(e){return this._tracks.reduce((function(t,n){return n instanceof e&&n.available&&t.push(n),t}),[])},s._getImageTracks=function(){return this._getTracksByType(pt)},s._getTextTracks=function(){return this._getTracksByType($e)},s._getVideoTracks=function(){return this._getTracksByType(ae)},s._getAudioTracks=function(){return this._getTracksByType(oe)},s._markActiveTrack=function(e){var t;if(e instanceof ae?t=this._getVideoTracks():e instanceof oe?t=this._getAudioTracks():e instanceof $e&&(t=this._getTextTracks()),t)for(var n=0;n<t.length;n++)t[n].active=e.index===t[n].index},s._onCueChange=function(e){r._logger.debug("Text cue changed",e.payload.cues);try{this._activeTextCues=e.payload.cues.filter((function(e,t,n){var r=n[t-1];return!r||!(e.startTime===r.startTime&&e.endTime===r.endTime&&e.text.trim()===r.text.trim())}))}catch(t){this._activeTextCues=e.payload.cues}this._updateCueDisplaySettings(),this._updateTextDisplay(this._activeTextCues),this.dispatchEvent(e)},s._updateCueDisplaySettings=function(){for(var e=this._activeTextCues,t=this._textDisplaySettings,n=0;n<e.length;n++){var r=e[n];for(var i in t)t[i]&&(r[i]=t[i])}},s._updateTextDisplay=function(e){this._config.text.useNativeTextTrack||this._config.text.useShakaTextTrackDisplay||function(e,t,n,r){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var a=[],o=Ie.getSimpleBoxPosition(i),s=o.height<o.width?o.height:o.width,l={font:Math.round(.058*s*100)/100*1*r.implicitFontScale+"px "+r.fontFamily,color:ye.toRGBA(r.fontColor,r.fontOpacity),backgroundColor:ye.toRGBA(r.backgroundColor,r.backgroundOpacity),textShadow:r.getTextShadow()};!function(){for(var n,r,s=0;s<t.length;s++)r=t[s],n=new xe(e,r,l),i.appendChild(n.div),Pe(0,n,o,a),r.displayState=n.div,a.push(Ie.getSimpleBoxPosition(n))}()}else for(var u=0;u<t.length;u++)i.appendChild(t[u].displayState)}(window,e,this._textDisplayEl,this._textStyle)},s._addTextTrackOffOption=function(){var e=this._getTextTracks();e&&e.length&&this._tracks.push(new $e({active:!1,kind:$e.KIND.SUBTITLES,label:"Off",language:Ln}))},s._setDefaultTracks=function(){var e=this.getActiveTracks(),t=this._getTextTracks().find((function(e){return e.default})),n=this.config.playback,r=this._getTextTracks().find((function(e){return $e.langComparer(Ln,e.language)})),i=this._getLanguage(this._getTextTracks(),n.textLanguage,t),a=this._playbackAttributesState.textLanguage&&this._playbackAttributesState.textLanguage!==Ln?this._playbackAttributesState.textLanguage:i,o=this._playbackAttributesState.audioLanguage||this._getLanguage(this._getAudioTracks(),n.audioLanguage,e.audio);a===n.textLanguage?this._setDefaultTrack(this._getTextTracks(),a,r,n.additionalTextLanguage):this._setDefaultTrack(this._getTextTracks(),a,r),o===n.audioLanguage?this._setDefaultTrack(this._getAudioTracks(),o,e.audio,n.additionalAudioLanguage):this._setDefaultTrack(this._getAudioTracks(),o,e.audio),this._setDefaultVideoTrack()},s._getLanguage=function(e,t,n){var r=t;if("auto"===r){var i=e.find((function(e){return re.langComparer($.language,e.language)}));i?r=i.language:n&&n.language!==Ln?r=n.language:e&&e.length>0&&(r=e[0].language)}return r},s._setDefaultTrack=function(e,t,n,r){var i=this,a=function(e){i.selectTrack(e),i._markActiveTrack(e)},o=e.find((function(e){return re.langComparer(t,e.language,r,!0)}));if(o)a(o);else{var s=e.find((function(e){return re.langComparer(t,e.language,r,!1)}));s?a(s):n&&!n.active&&this.selectTrack(n)}},s._setDefaultVideoTrack=function(){var e=this,t=this._getVideoTracks().sort((function(e,t){return t.bandwidth-e.bandwidth})),n=t.find((function(t){var n;return t.label&&t.label===(null==(n=e._playbackAttributesState.videoTrack)?void 0:n.label)}));n||(n=t.find((function(t){var n;return t.height&&t.height===(null==(n=e._playbackAttributesState.videoTrack)?void 0:n.height)}))),n&&this.selectTrack(n)},s._maybeSetTracksLabels=function(){var e=this._config.customLabels;if(e)for(var t in e){if(!Object.prototype.hasOwnProperty.call(e,t))return;switch(t){case"qualities":this._setTracksCustomLabels(this._getVideoTracks(),e[t]);break;case"audio":this._setTracksCustomLabels(this._getAudioTracks(),e[t]);break;case"captions":this._setTracksCustomLabels(this._getTextTracks(),e[t])}}},s._setTracksCustomLabels=function(e,t){e.forEach((function(e){var n=t(F.copyDeep(e));n&&(e.label=n)}))},i=r,o=[{key:"_defaultConfig",get:function(){return F.copyDeep(st)}}],(a=[{key:"videoHeight",get:function(){return this._engine?this._engine.videoHeight:null}},{key:"videoWidth",get:function(){return this._engine?this._engine.videoWidth:null}},{key:"buffered",get:function(){return this._engine?this._engine.buffered:null}},{key:"stats",get:function(){var e={targetBuffer:NaN,availableBuffer:NaN};return this._engine&&(e.targetBuffer=this._engine.targetBuffer,e.availableBuffer=this._engine.availableBuffer),e}},{key:"currentTime",set:function(e){this._playbackMiddleware.setCurrentTime(e,this._setCurrentTime.bind(this))},get:function(){return this._engine?this._engine.currentTime:null}},{key:"duration",get:function(){return this._engine?this._engine.duration:null}},{key:"liveDuration",get:function(){return this._engine?this._engine.liveDuration:null}},{key:"volume",set:function(e){if(this._engine&&(N.isFloat(e)||0===e||1===e)){var t=e;t<0&&(t=0),t>1&&(t=1),this._engine.volume=t}},get:function(){return this._engine?this._engine.volume:null}},{key:"paused",get:function(){return this._engine?this._engine.paused:null}},{key:"seeking",get:function(){return this._engine?this._engine.seeking:null}},{key:"playsinline",set:function(e){this._engine&&(this._engine.playsinline=e)},get:function(){return this._engine?this._engine.playsinline:null}},{key:"muted",set:function(e){this._engine&&(this._engine.muted=e,this.dispatchEvent(new m(Y.MUTE_CHANGE,{mute:e})),!1===e&&(this._fallbackToMutedAutoPlay=e))},get:function(){return this._engine?this._engine.muted:null}},{key:"src",get:function(){return this._engine?this._engine.src:null}},{key:"dimensions",set:function(e){var t=this._getTargetElement();if(!e||F.isEmptyObject(e))this._aspectRatio=null,t.style.width=null,t.style.height=null;else{var n=F.mergeDeep(this.dimensions,e),r=n.height,i=n.width;t.style.width="number"==typeof i?i+"px":i,t.style.height="number"==typeof r?r+"px":r,this._calcRatio(t,e)}},get:function(){return{width:this._el.clientWidth,height:this._el.clientHeight}}},{key:"poster",get:function(){return this._posterManager.src}},{key:"playbackRate",set:function(e){this._engine&&(this._engine.playbackRate=e)},get:function(){return this._engine?this._engine.playbackRate:null}},{key:"playbackRates",get:function(){return this._playbackRates?this._playbackRates:this._engine?this._engine.playbackRates:[]}},{key:"defaultPlaybackRate",get:function(){return this._engine?this._engine.defaultPlaybackRate:1}},{key:"engineType",get:function(){return this._engineType}},{key:"streamType",get:function(){return this._streamType}},{key:"env",get:function(){return this._env}},{key:"config",get:function(){return F.mergeDeep({},this._config)}},{key:"sources",get:function(){return F.mergeDeep({},this._sources)}},{key:"hasUserInteracted",get:function(){return this._hasUserInteracted}},{key:"loadingMedia",set:function(e){this._loadingMedia=e}},{key:"crossOrigin",set:function(e){this._engine&&(this._engine.crossOrigin=e)},get:function(){return this._engine?this._engine.crossOrigin:null}},{key:"ended",get:function(){return this._engine?this._engine.ended:null}},{key:"playbackMiddleware",get:function(){return this._playbackMiddleware}},{key:"posterManager",get:function(){return this._posterManager}},{key:"textDisplaySetting",get:function(){return F.copyDeep(this._textDisplaySettings)}},{key:"textStyle",set:function(e){if(!(e instanceof ye))throw new Error("Style must be instance of TextStyle");var t=B.getElementBySelector("."+this._playerId+".playkit-subtitles-style");t||(t=B.createElement("style"),B.addClassName(t,this._playerId),B.addClassName(t,"playkit-subtitles-style"),B.appendChild(document.head,t));for(var n=t.sheet;n.cssRules.length;)n.deleteRule(0);try{this._textStyle=e,this._config.text.useNativeTextTrack?n.insertRule("#"+this._playerId+" video.playkit-engine::cue { "+e.toCSS()+" }",0):this._engine&&(this._engine.resetAllCues(),this._externalCaptionsHandler.resetAllCues(),this._updateTextDisplay(this._activeTextCues)),this.dispatchEvent(new m(Y.TEXT_STYLE_CHANGED))}catch(e){r._logger.error(e.message)}},get:function(){return this._textStyle.clone()}},{key:"Event",get:function(){return q}},{key:"TextStyle",get:function(){return ye}},{key:"State",get:function(){return J}},{key:"Track",get:function(){return Qe}},{key:"LogLevelType",get:function(){return E}},{key:"LogLevel",get:function(){return _}},{key:"AbrMode",get:function(){return tt}},{key:"MediaType",get:function(){return et}},{key:"StreamType",get:function(){return Ze}},{key:"EngineType",get:function(){return Je}},{key:"CorsType",get:function(){return nt}},{key:"AdBreakType",get:function(){return on}},{key:"AdTagType",get:function(){return sn}},{key:"Error",get:function(){return L}}])&&Dn(i.prototype,a),o&&Dn(i,o),r}(C);On(Mn,"_logger",S("Player"));var Nn=function(){function e(e){this._name=e.getName(),this._getEngineDecorator=e.getEngineDecorator.bind(e)}var t=e.prototype;return t.getEngineDecorator=function(e,t){return this._getEngineDecorator(e,t)},t.getName=function(){return this._name},e}(),Un={HLS:["application/x-mpegurl","application/vnd.apple.mpegurl"],DASH:["application/dash+xml"],PROGRESSIVE:["video/mp4"],SMOOTH_STREAMING:["application/vnd.ms-sstr+xml"]},Fn="0.82.3",jn="@playkit-js/playkit-js";function Bn(e){return new Mn(e||{})}var Vn=Mn.getCapabilities,Hn=Mn.setCapabilities;t.default=Bn}])},function(e,t,n){var r=n(2),i=n(8),a=n(16),o=n(12),s=n(19),l=function(e,t,n){var u,c,p,d,f=e&l.F,h=e&l.G,g=e&l.S,y=e&l.P,v=e&l.B,m=h?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?i:i[t]||(i[t]={}),_=b.prototype||(b.prototype={});for(u in h&&(n=t),n)p=((c=!f&&m&&void 0!==m[u])?m:n)[u],d=v&&c?s(p,r):y&&"function"==typeof p?s(Function.call,p):p,m&&o(m,u,p,e&l.U),b[u]!=p&&a(b,u,d),y&&_[u]!=p&&(_[u]=p)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(51)("wks"),i=n(31),a=n(2).Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},function(e,t,n){var r=n(21),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(3)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(4),i=n(93),a=n(28),o=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(26);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(2),i=n(16),a=n(15),o=n(31)("src"),s=n(130),l=(""+s).split("toString");n(8).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(a(n,o)||i(n,o,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||s.call(this)}))},function(e,t,n){var r=n(1),i=n(3),a=n(26),o=/"/g,s=function(e,t,n,r){var i=String(a(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(o,"&quot;")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t,n){var r=n(13),i=n(14);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{attributes:{id:"@playkit-js/playkit-js-ui"},insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){"use strict";e.exports=n(10)},function(e,t,n){"use strict";var r=n(1),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var o=c(n);p&&(o=o.concat(p(n)));for(var s=l(t),g=l(n),y=0;y<o.length;++y){var v=o[y];if(!(a[v]||r&&r[v]||g&&g[v]||s&&s[v])){var m=d(n,v);try{u(t,v,m)}catch(e){}}}}return t}},function(e,t,n){"use strict";(function(e,r){var i,a=n(5);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(a.a)(i);t.a=o}).call(this,n(11),n(12)(e))},function(e,t,n){e.exports=function(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e){e.exports=JSON.parse('{"en":{"controls":{"play":"Play","pause":"Pause","language":"Language","settings":"Settings","fullscreen":"Fullscreen","fullscreenExit":"Exit fullscreen","rewind":"Seek backwards","forward":"Seek forward","vrStereo":"vrStereo","closedCaptionsOn":"Disable Captions","closedCaptionsOff":"Enable Captions","live":"Live","mute":"Mute","unmute":"Unmute","next":"Next","prev":"Prev","startOver":"Start over","pictureInPicture":"Picture in picture","pictureInPictureExit":"Exit picture in picture","pictureInPictureExpand":"Expand","logo":"Logo","seekBarSlider":"Seek slider"},"unmute":{"unmute":"Unmute"},"volume":{"muted_click_to_unmute":"Muted. Click to unmute","volume_click_to_mute":"{{vol}}% volume. Click to mute","ten_percent":"ten percent","twenty_percent":"twenty percent","thirty_percent":"thirty percent","fourty_percent":"forty percent","fifty_percent":"fifty percent","sixty_percent":"sixty percent","seventy_percent":"seventy percent","eighty_percent":"eighty percent","ninety_percent":"ninety percent","one_hundred_percent":"one hundred percent"},"copy":{"button":"Copy URL"},"settings":{"title":"Settings","audio":"Audio","quality":"Quality","speed":"Speed","speedNormal":"Normal","qualityAuto":"Auto","advancedAudioDescription":"Advanced Audio Description"},"captions":{"captions":"Captions","advanced_captions_settings":"Advanced captions settings"},"overlay":{"close":"Close"},"error":{"default_error":"Something went wrong","default_session_text":"Session ID","retry":"Retry"},"ads":{"ad_notice":"Advertisement","learn_more":"Learn more","skip_ad":"Skip ad","skip_in":"Skip in"},"cvaa":{"title":"Advanced captions settings","sample_caption_tag":"Sample {{number}}","sample_custom_caption_tag":"Custom captions","set_custom_caption":"Set custom caption","edit_caption":"Edit caption","size_label":"Size","font_color_label":"Font color","font_family_label":"Font family","font_style_label":"Font style","font_opacity_label":"Font opacity","background_color_label":"Background color","background_opacity_label":"Background opacity","apply":"Apply","caption_preview":"This is your caption preview"},"cast":{"play_on_tv":"Play on TV","disconnect_from_tv":"Disconnect from TV","status":{"connecting_to":"Connecting to","connected_to":"Connected to","playing_on":"Playing on"}},"playlist":{"prev":"Previous","next":"Next","up_next":"Up Next","up_next_in":"Up next in","cancel":"Cancel"},"pictureInPicture":{"overlay_text":"Playing in Picture In Picture mode"}}}')},function(e,t,n){e.exports=n(8)()},function(e,t,n){"use strict";var r=n(9);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case d:case o:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case y:case u:return e;default:return t}}case a:return t}}}function T(e){return k(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=i,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=y,t.Portal=a,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return T(e)||k(e)===p},t.isConcurrentMode=T,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return k(e)===f},t.isFragment=function(e){return k(e)===o},t.isLazy=function(e){return k(e)===v},t.isMemo=function(e){return k(e)===y},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===l},t.isStrictMode=function(e){return k(e)===s},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===l||e===s||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===_||e.$$typeof===E||e.$$typeof===m)},t.typeOf=k},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function o(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],l=t.base?s[0]+t.base:s[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var p=o(c),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==p?(a[p].references++,a[p].updater(d)):a.push({identifier:c,updater:g(d,t),references:1}),r.push(c)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var a=n.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=i(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,c=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=c(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function d(e,t,n){var r=n.css,i=n.media,a=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),a&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,h=0;function g(e,t){var n,r,i;if(t.singleton){var a=h++;n=f||(f=l(t)),r=p.bind(null,n,a,!1),i=p.bind(null,n,a,!0)}else n=l(t),r=d.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=o(n[r]);a[i].references--}for(var l=s(e,t),u=0;u<n.length;u++){var c=o(n[u]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=l}}}},function(e,t,n){(t=n(15)(!1)).push([e.i,".playkit-player{--playkit-primary-hsl-hue: 215deg;--playkit-secondary-hsl-hue: 40deg;--playkit-success-hsl-hue: 136deg;--playkit-danger-hsl-hue: 355deg;--playkit-warning-hsl-hue: 21deg;--playkit-primary-hsl-saturation: 100%;--playkit-secondary-hsl-saturation: 100%;--playkit-success-hsl-saturation: 100%;--playkit-danger-hsl-saturation: 100%;--playkit-warning-hsl-saturation: 100%;--playkit-primary-hsl-lightness: 50%;--playkit-secondary-hsl-lightness: 50%;--playkit-success-hsl-lightness: 50%;--playkit-danger-hsl-lightness: 50%;--playkit-warning-hsl-lightness: 50%;--playkit-primary-color: hsl(var(--playkit-primary-hsl-hue) var(--playkit-primary-hsl-saturation) var(--playkit-primary-hsl-lightness));--playkit-primary-darker-color: hsl(var(--playkit-primary-hsl-hue) var(--playkit-primary-hsl-saturation) calc(var(--playkit-primary-hsl-lightness) - 15%));--playkit-primary-brighter-color: hsl(var(--playkit-primary-hsl-hue) var(--playkit-primary-hsl-saturation) calc(var(--playkit-primary-hsl-lightness) + 15%));--playkit-primary-text-contrast-color: #ffffff;--playkit-secondary-color: hsl(var(--playkit-secondary-hsl-hue) var(--playkit-secondary-hsl-saturation) var(--playkit-secondary-hsl-lightness));--playkit-secondary-darker-color: hsl(var(--playkit-secondary-hsl-hue) var(--playkit-secondary-hsl-saturation) calc(var(--playkit-secondary-hsl-lightness) - 15%));--playkit-secondary-brighter-color: hsl(var(--playkit-secondary-hsl-hue) var(--playkit-secondary-hsl-saturation) calc(var(--playkit-secondary-hsl-lightness) + 15%));--playkit-secondary-text-contrast-color: #ffffff;--playkit-success-color: hsl(var(--playkit-success-hsl-hue) var(--playkit-success-hsl-saturation) var(--playkit-success-hsl-lightness));--playkit-success-darker-color: hsl(var(--playkit-success-hsl-hue) var(--playkit-success-hsl-saturation) calc(var(--playkit-success-hsl-lightness) - 15%));--playkit-success-brighter-color: hsl(var(--playkit-success-hsl-hue) var(--playkit-success-hsl-saturation) calc(var(--playkit-success-hsl-lightness) + 15%));--playkit-success-text-contrast-color: #ffffff;--playkit-danger-color: hsl(var(--playkit-danger-hsl-hue) var(--playkit-danger-hsl-saturation) var(--playkit-danger-hsl-lightness));--playkit-danger-darker-color: hsl(var(--playkit-danger-hsl-hue) var(--playkit-danger-hsl-saturation) calc(var(--playkit-danger-hsl-lightness) - 15%));--playkit-danger-brighter-color: hsl(var(--playkit-danger-hsl-hue) var(--playkit-danger-hsl-saturation) calc(var(--playkit-danger-hsl-lightness) + 15%));--playkit-danger-text-contrast-color: #ffffff;--playkit-warning-color: hsl(var(--playkit-warning-hsl-hue) var(--playkit-warning-hsl-saturation) var(--playkit-warning-hsl-lightness));--playkit-warning-darker-color: hsl(var(--playkit-warning-hsl-hue) var(--playkit-warning-hsl-saturation) calc(var(--playkit-warning-hsl-lightness) - 15%));--playkit-warning-brighter-color: hsl(var(--playkit-warning-hsl-hue) var(--playkit-warning-hsl-saturation) calc(var(--playkit-warning-hsl-lightness) + 15%));--playkit-warning-text-contrast-color: #ffffff;--playkit-tone-1-color: #ffffff;--playkit-tone-2-color: #cccccc;--playkit-tone-3-color: #999999;--playkit-tone-4-color: #888888;--playkit-tone-5-color: #666666;--playkit-tone-6-color: #444444;--playkit-tone-7-color: #222222;--playkit-tone-8-color: #000000;--playkit-live-color: #e12536;--playkit-player-background-color: #000000;--playkit-tab-focus-color: var(--playkit-primary-color);--playkit-tooltip-background-color: var(--playkit-tone-1-color);--playkit-tooltip-color: var(--playkit-tone-7-color);--playkit-ads-color: var(--playkit-secondary-color)}.playkit-row{display:block}.playkit-row:after{content:\"\";clear:both;display:block}.playkit-d-inline-block{display:inline-block}.playkit-mobile-hidden-select{display:block;opacity:0;position:absolute;top:0;left:0px;width:100%;height:100%}.playkit-font-size-base,.playkit-ad-notice{font-size:15px}.playkit-player .playkit-form-group{margin:10px 0;position:relative;max-width:100%}.playkit-player .playkit-form-group.playkit-has-error .playkit-form-control{border-color:var(--playkit-danger-color)}.playkit-player .playkit-form-group.playkit-has-error .playkit-form-control:focus{border-color:#fff}.playkit-player .playkit-form-group.playkit-has-icon .playkit-form-control{padding-left:34px}.playkit-player .playkit-form-group .playkit-icon{position:absolute;top:2px;left:2px;width:32px;height:32px;fill:rgba(255,255,255,.4)}.playkit-player .playkit-form-control{height:32px;width:100%;min-width:72px;border:2px solid rgba(255,255,255,.2);border-radius:4px;background-color:rgba(0,0,0,.4);font-size:15px;line-height:18px;color:#fff;padding:8px 10px;text-overflow:ellipsis}.playkit-player .playkit-form-control::-webkit-input-placeholder{color:rgba(255,255,255,.6)}.playkit-player .playkit-form-control:focus{background-color:#fff;border-color:#fff;color:var(--playkit-tone-7-color)}.playkit-player .playkit-form-control:focus::-webkit-input-placeholder{color:var(--playkit-tone-2-color)}.playkit-player .playkit-form-control:focus+.playkit-icon{fill:var(--playkit-tone-3-color)}.playkit-player textarea.playkit-form-control{min-height:72px}.playkit-player select{font-size:15px;color:#fff;-webkit-appearance:none;border:0;background:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FFFFFF' viewBox='0 0 1024 1024'><path d='M301.255 338.745c-24.994-24.994-65.516-24.994-90.51 0s-24.994 65.516 0 90.51l256 256c24.994 24.994 65.516 24.994 90.51 0l256-256c24.994-24.994 24.994-65.516 0-90.51s-65.516-24.994-90.51 0l-210.745 210.745-210.745-210.745z' /></svg>\") no-repeat;background-size:16px;background-position:100% center;background-repeat:no-repeat;padding-right:24px}.playkit-checkbox{font-size:15px;position:relative}.playkit-checkbox input{display:none}.playkit-checkbox label:before{height:16px;width:16px;border:1px solid rgba(255,255,255,.2);border-radius:4px;background-color:rgba(0,0,0,.4);margin-right:8px;display:inline-block;content:\"\";vertical-align:middle}.playkit-checkbox input:checked+label:before{content:\"✔\";text-align:center;font-size:14px}.playkit-form-group-row{font-size:15px;margin:24px 0}.playkit-form-group-row:after{clear:both;content:\" \";display:block}.playkit-form-group-row label{float:left;color:rgba(244,244,244,.8)}.playkit-form-group-row .playkit-dropdown{float:right}.playkit-btn{text-decoration:none;height:36px;border-radius:18px;color:#fff;line-height:36px;font-weight:bold;cursor:pointer;display:inline-block;padding:0 24px}.playkit-btn.playkit-btn-block{display:block}.playkit-btn.playkit-btn-dark-transparent{background-color:rgba(0,0,0,.5);border:2px solid rgba(255,255,255,.2);line-height:32px}.playkit-btn.playkit-btn-dark-transparent:hover{color:#fff;border:2px solid rgba(255,255,255,.4)}.playkit-btn.playkit-btn-branded{background-color:var(--playkit-primary-color)}.playkit-btn.playkit-btn-branded:hover{color:#fff}.playkit-btn-rounded{height:36px;width:36px;min-width:36px;min-height:36px;border-radius:18px;background-color:rgba(0,0,0,.4);display:inline-block;padding:2px}.playkit-player button:focus{outline:none}.playkit-btn-borderless{display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:4px;border:none;padding:8px 12px 8px 8px;width:82px;height:40px;background-color:rgba(0,0,0,0);cursor:pointer}.playkit-btn-borderless.playkit-only-icon{padding:4px;width:40px;height:40px}.playkit-btn-borderless.playkit-only-label{padding:8px;width:50px;height:40px}.playkit-btn-borderless i{width:32px;height:32px}.playkit-btn-borderless label{color:var(--playkit-tone-1-color)}.playkit-btn-borderless:hover{background-color:var(--playkit-tone-4-color)}.playkit-player.playkit-size-sm .playkit-btn-borderless,.playkit-player.playkit-size-xs .playkit-btn-borderless{height:32px}.playkit-player.playkit-size-sm .playkit-btn-borderless i,.playkit-player.playkit-size-xs .playkit-btn-borderless i{width:24px;height:24px}.playkit-player.playkit-size-sm .playkit-btn-borderless.playkit-only-icon,.playkit-player.playkit-size-xs .playkit-btn-borderless.playkit-only-icon{padding:4px;width:32px;height:32px}.playkit-player.playkit-size-sm .playkit-btn-borderless.playkit-only-label,.playkit-player.playkit-size-xs .playkit-btn-borderless.playkit-only-label{padding:8px;width:50px;height:32px}.playkit-icon{display:inline-block;font-size:0;width:100%;height:100%;margin:0 auto;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.playkit-badge-icon:after{content:\"\";position:absolute;height:16px;width:16px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.playkit-player{--playkit-icon-vr-stereo-full-url: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23006bff' d='M864 255.996c53.019 0 96 42.981 96 96v384.004c0 53.019-42.981 96-96 96h-219.764c-33.721 0-64.97-17.693-82.319-46.608l-49.917-83.195-49.917 83.195c-17.349 28.916-48.598 46.608-82.319 46.608h-219.764c-53.019 0-96-42.981-96-96v-384.003c0-53.019 42.981-96 96-96h704zM304 624c44.183 0 80-35.817 80-80s-35.817-80-80-80c-44.183 0-80 35.817-80 80s35.817 80 80 80zM720 624c44.183 0 80-35.817 80-80s-35.817-80-80-80c-44.183 0-80 35.817-80 80s35.817 80 80 80z'%3E%3C/path%3E%3C/svg%3E\");--playkit-icon-chromecast-url: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23006bff' d='M160 704v96h96c0-53.12-42.88-96-96-96zM160 576v64c88.32 0 160 71.68 160 160h64c0-123.84-100.16-224-224-224zM736 352h-448v52.16c126.72 40.96 226.88 141.12 267.84 267.84h180.16v-320zM160 448v64c159.040 0 288 128.96 288 288h64c0-194.56-157.76-352-352-352zM800 224h-576c-35.2 0-64 28.8-64 64v96h64v-96h576v448h-224v64h224c35.2 0 64-28.8 64-64v-448c0-35.2-28.8-64-64-64z'%3E%3C/path%3E%3C/svg%3E\");--playkit-icon-quality-HD-active-url: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 16 16' width='16' height='16' fill-rule='nonzero'%3E%3Cpath fill='%23006bff' d='M13.9931545,4 C14.5492199,4 15,4.45303631 15,4.99703014 L15,11.0029699 C15,11.5536144 14.5500512,12 13.9931545,12 L2.00684547,12 C1.45078007,12 1,11.5469637 1,11.0029699 L1,4.99703014 C1,4.4463856 1.44994876,4 2.00684547,4 L13.9931545,4 Z M3.73939861,5 L2,5 L2,11 L3.73939861,11 L3.73918396,8.56940659 L5.96845644,8.56940659 L5.9691596,11 L7.69930609,11 L7.69930609,5 L5.9691596,5 L5.96845644,7.32457143 L3.73918396,7.32457143 L3.73939861,5 Z M10.849653,5 L8.65690054,5 L8.65690054,11 L10.8774094,11 L11.1387878,10.9921562 C11.5670397,10.9660102 11.9583976,10.8744992 12.3128614,10.7176232 L12.3128614,10.7176232 L12.4919044,10.6311813 L12.686671,10.5199596 C13.0639309,10.2858264 13.3675515,9.98155416 13.5975328,9.60714286 C13.827514,9.23273155 13.9589319,8.81088809 13.9917864,8.34161247 L13.9917864,8.34161247 L14,8.10302198 L14,7.9010989 L13.9917864,7.66145717 C13.9589319,7.19033135 13.827514,6.76815149 13.5975328,6.39491758 C13.3292213,5.95947802 12.9583655,5.61813187 12.4849653,5.37087912 C12.0791937,5.15894819 11.6207417,5.03784481 11.1096093,5.00756896 L11.1096093,5.00756896 L10.849653,5 Z M10.849653,6.24862637 C11.154973,6.24862637 11.4101773,6.30906593 11.615266,6.42994505 C11.8203547,6.55082418 11.9745567,6.73282967 12.077872,6.97596154 C12.1605243,7.17046703 12.2101157,7.40497253 12.2266461,7.67947802 L12.2266461,7.67947802 L12.232845,7.89285714 L12.232845,8.10302198 L12.2265536,8.31796703 C12.2097764,8.59445055 12.1594449,8.83049451 12.075559,9.0260989 C11.9707016,9.2706044 11.8180416,9.4532967 11.617579,9.57417582 C11.4572089,9.67087912 11.2672321,9.7289011 11.0476484,9.74824176 L11.0476484,9.74824176 L10.8774094,9.75549451 L10.3957366,9.75600879 L10.3957366,6.24937143 Z'%3E%3C/path%3E%3C/svg%3E\");--playkit-icon-quality-4K-active-url: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 16 16' width='16' height='16' fill-rule='nonzero'%3E%3Cpath fill='%23006bff' d='M13.9931545,4 C14.5492199,4 15,4.45303631 15,4.99703014 L15,11.0029699 C15,11.5536144 14.5500512,12 13.9931545,12 L2.00684547,12 C1.45078007,12 1,11.5469637 1,11.0029699 L1,4.99703014 C1,4.4463856 1.44994876,4 2.00684547,4 L13.9931545,4 Z M6.52117789,5 L4.77853973,5 L4.7778117,5.01381978 L2,8.80769231 L2.10649455,9.76785714 L4.7778117,9.76866813 L4.77853973,11 L6.52117789,11 L6.52063574,9.76866813 L7.19402985,9.76785714 L7.19402985,8.5728022 L6.52063574,8.57362637 L6.52117789,5 Z M9.81282775,5 L7.99273901,5 L7.99273901,11 L9.81282775,11 L9.8119758,9.5061978 L10.4712352,8.88589011 L11.8313836,11 L13.9806374,11 L11.6856603,7.6629978 L14,5 L11.7587737,5 L10.3549818,6.78434066 L9.8119758,7.5229011 L9.81282775,5 Z M4.7778117,7.01905934 L4.7778117,8.57362637 L3.65066559,8.5728022 L4.69624849,7.13873626 L4.7778117,7.01905934 Z'%3E%3C/path%3E%3C/svg%3E\");--playkit-icon-quality-8K-active-url: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 16 16' width='16' height='16' fill-rule='nonzero'%3E%3Cpath fill='%23006bff' d='M13.9931545,4 C14.5492199,4 15,4.45303631 15,4.99703014 L15,11.0029699 C15,11.5536144 14.5500512,12 13.9931545,12 L2.00684547,12 C1.45078007,12 1,11.5469637 1,11.0029699 L1,4.99703014 C1,4.4463856 1.44994876,4 2.00684547,4 L13.9931545,4 Z M4.5,5 C4.04427083,5 3.6389974,5.06279225 3.28417969,5.18837675 C2.92936198,5.31396126 2.65104167,5.499666 2.44921875,5.74549098 C2.24739583,5.99131597 2.14648438,6.29458918 2.14648438,6.65531062 C2.14648438,6.96259185 2.24820964,7.23112892 2.45166016,7.46092184 C2.58729384,7.61411712 2.75692636,7.74445187 2.96055773,7.85192607 L2.96055773,7.85192607 L3.07972656,7.90981323 L3.04817708,7.92134269 L2.87890625,8.000668 C2.71614583,8.08483634 2.57291667,8.18353373 2.44921875,8.29676019 L2.44921875,8.29676019 L2.33203125,8.41482966 L2.24394133,8.52320968 C2.08131378,8.74602266 2,9.00515316 2,9.3006012 C2,9.67735471 2.10986328,9.99131597 2.32958984,10.242485 C2.54931641,10.493654 2.84879557,10.6826987 3.22802734,10.8096192 C3.60725911,10.9365397 4.03613281,11 4.51464844,11 C4.99641927,11 5.42366536,10.9365397 5.79638672,10.8096192 C6.16910807,10.6826987 6.46289063,10.493654 6.67773438,10.242485 C6.89257813,9.99131597 7,9.67735471 7,9.3006012 C7,8.95591182 6.89176432,8.66065464 6.67529297,8.41482966 L6.67529297,8.41482966 L6.56041124,8.29676019 C6.3983742,8.14579158 6.20089157,8.02065242 5.96796332,7.92134269 L5.96796332,7.92134269 L5.94,7.911 L6.06141493,7.85192607 L6.20532227,7.76703407 C6.29701063,7.70758183 6.38019929,7.64241446 6.45488824,7.57153195 L6.45488824,7.57153195 L6.56054688,7.46092184 L6.65155707,7.3427967 C6.78945132,7.14054034 6.85839844,6.91137831 6.85839844,6.65531062 C6.85839844,6.29458918 6.75830078,5.99131597 6.55810547,5.74549098 C6.35791016,5.499666 6.08121745,5.31396126 5.72802734,5.18837675 C5.37483724,5.06279225 4.96549479,5 4.5,5 Z M9.8178888,5 L8,5 L8,11 L9.8178888,11 L9.81771088,9.5061978 L10.4751832,8.88673407 L11.8340048,11 L13.9806608,11 L11.6891307,7.6629978 L14,5 L11.7614827,5 L10.3593876,6.78434066 L9.81771088,7.5229011 L9.8178888,5 Z M4.50488281,8.51903808 C4.6546224,8.51903808 4.78401693,8.54375418 4.89306641,8.59318637 C5.00211589,8.64261857 5.0867513,8.71543086 5.14697266,8.81162325 C5.20719401,8.90781563 5.23730469,9.02805611 5.23730469,9.17234469 C5.23730469,9.30861723 5.20800781,9.4261857 5.14941406,9.5250501 C5.09082031,9.6239145 5.0069987,9.7007348 4.89794922,9.75551102 C4.78889974,9.81028724 4.66113281,9.83767535 4.51464844,9.83767535 C4.36490885,9.83767535 4.23388672,9.81028724 4.12158203,9.75551102 C4.00927734,9.7007348 3.92220052,9.6239145 3.86035156,9.5250501 C3.7985026,9.4261857 3.76757812,9.30861723 3.76757812,9.17234469 C3.76757812,9.02805611 3.7985026,8.90781563 3.86035156,8.81162325 C3.92220052,8.71543086 4.00846354,8.64261857 4.11914062,8.59318637 C4.22981771,8.54375418 4.35839844,8.51903808 4.50488281,8.51903808 Z M4.5,6.16232465 C4.63671875,6.16232465 4.74902344,6.18570474 4.83691406,6.23246493 C4.92480469,6.27922512 4.99072266,6.34535738 5.03466797,6.43086172 C5.07861328,6.51636607 5.10058594,6.62057448 5.10058594,6.74348697 C5.10058594,6.86372745 5.08024089,6.96993988 5.03955078,7.06212425 C4.99886068,7.15430862 4.93538411,7.22645291 4.84912109,7.27855711 C4.76285807,7.33066132 4.65136719,7.35671343 4.51464844,7.35671343 C4.37792969,7.35671343 4.2648112,7.33066132 4.17529297,7.27855711 C4.08577474,7.22645291 4.01985677,7.15430862 3.97753906,7.06212425 C3.93522135,6.96993988 3.9140625,6.86372745 3.9140625,6.74348697 C3.9140625,6.62057448 3.93522135,6.51636607 3.97753906,6.43086172 C4.01985677,6.34535738 4.08496094,6.27922512 4.17285156,6.23246493 C4.26074219,6.18570474 4.36979167,6.16232465 4.5,6.16232465 Z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-maximize{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M800 269.255v114.745c0 17.673 14.327 32 32 32s32-14.327 32-32v-192c0-17.673-14.327-32-32-32h-192c-17.673 0-32 14.327-32 32s14.327 32 32 32h114.745l-137.373 137.373c-12.497 12.497-12.497 32.758 0 45.255s32.758 12.497 45.255 0l137.373-137.373z' /%3E %3Cpath fill='%23fff' d='M224 754.745v-114.745c0-17.673-14.327-32-32-32s-32 14.327-32 32v192c0 17.673 14.327 32 32 32h192c17.673 0 32-14.327 32-32s-14.327-32-32-32h-114.745l137.373-137.373c12.497-12.497 12.497-32.758 0-45.255s-32.758-12.497-45.255 0l-137.373 137.373z' /%3E%3C/svg%3E\")}.playkit-icon-minimize{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M672 306.745v-114.745c0-17.673-14.327-32-32-32s-32 14.327-32 32v192c0 17.673 14.327 32 32 32h192c17.673 0 32-14.327 32-32s-14.327-32-32-32h-114.745l137.373-137.373c12.497-12.497 12.497-32.758 0-45.255s-32.758-12.497-45.255 0l-137.373 137.373z' /%3E%3Cpath fill='%23fff' d='M352 717.255v114.745c0 17.673 14.327 32 32 32s32-14.327 32-32v-192c0-17.673-14.327-32-32-32h-192c-17.673 0-32 14.327-32 32s14.327 32 32 32h114.745l-137.373 137.373c-12.497 12.497-12.497 32.758 0 45.255s32.758 12.497 45.255 0l137.373-137.373z' /%3E%3C/svg%3E\")}.playkit-icon-play{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M796.806 461.202c44.919 28.075 44.739 73.706 0 101.668l-459.472 287.171c-44.919 28.075-81.334 7.915-81.334-45.305v-585.4c0-53.096 36.595-73.266 81.334-45.305l459.472 287.171z' /%3E%3C/svg%3E\")}.playkit-icon-pause{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M256 287.843c0-35.259 28.407-63.843 64-63.843 35.346 0 64 28.564 64 63.843v448.314c0 35.259-28.407 63.843-64 63.843-35.346 0-64-28.564-64-63.843v-448.314zM640 287.843c0-35.259 28.407-63.843 64-63.843 35.346 0 64 28.564 64 63.843v448.314c0 35.259-28.407 63.843-64 63.843-35.346 0-64-28.564-64-63.843v-448.314z' /%3E%3C/svg%3E\")}.playkit-icon-volume-base{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M128 416v192h96v-192h-96zM64 383.853c0-17.592 14.012-31.853 32.094-31.853h159.813c17.725 0 32.094 14.581 32.094 31.853v256.295c0 17.592-14.012 31.853-32.094 31.853h-159.813c-17.725 0-32.094-14.581-32.094-31.853v-256.295z' /%3E%3Cpath fill='%23fff' d='M288 634.342l160 88.889v-422.462l-160 88.889v244.684zM224 352l231.787-128.771c31.046-17.248 56.213-2.487 56.213 32.476v512.589c0 35.184-25.054 49.786-56.213 32.476l-231.787-128.771v-320z' /%3E%3C/svg%3E\")}.playkit-icon-volume-waves{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M802.017 837.177c82.359-86.627 129.183-201.774 129.183-324.26 0-123.976-47.976-240.409-132.127-327.329-12.293-12.697-32.552-13.025-45.249-0.732s-13.025 32.552-0.732 45.249c72.692 75.084 114.109 175.597 114.109 282.812 0 105.928-40.422 205.331-111.566 280.162-12.177 12.808-11.666 33.063 1.143 45.24s33.063 11.666 45.24-1.143z' /%3E%3Cpath fill='%23fff' d='M667.436 743.221c67.761-60.884 107.273-147.888 107.273-241.233 0-87.318-34.552-169.203-94.836-229.446-12.501-12.493-32.762-12.486-45.255 0.015s-12.486 32.762 0.015 45.255c48.375 48.342 76.075 113.989 76.075 184.176 0 75.021-31.679 144.776-86.048 193.627-13.146 11.812-14.227 32.044-2.416 45.19s32.044 14.227 45.19 2.416z' /%3E%3C/svg%3E\")}.playkit-icon-volume-wave{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M667.436 743.221c67.761-60.884 107.273-147.888 107.273-241.233 0-87.318-34.552-169.203-94.836-229.446-12.501-12.493-32.762-12.486-45.255 0.015s-12.486 32.762 0.015 45.255c48.375 48.342 76.075 113.989 76.075 184.176 0 75.021-31.679 144.776-86.048 193.627-13.146 11.812-14.227 32.044-2.416 45.19s32.044 14.227 45.19 2.416z'/%3E%3C/svg%3E\")}.playkit-icon-volume-mute{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M768 466.745l-67.986-67.986c-12.213-12.213-32.654-12.393-45.151 0.104-12.584 12.584-12.543 32.711-0.104 45.151l67.986 67.986-67.986 67.986c-12.213 12.213-12.393 32.654 0.104 45.151 12.584 12.584 32.711 12.543 45.151 0.104l67.986-67.986 67.986 67.986c12.213 12.213 32.654 12.393 45.151-0.104 12.584-12.584 12.543-32.711 0.104-45.151l-67.986-67.986 67.986-67.986c12.213-12.213 12.393-32.654-0.104-45.151-12.584-12.584-32.711-12.543-45.151-0.104l-67.986 67.986z' /%3E%3C/svg%3E\")}.playkit-icon-close{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M573.162 512l214.269-214.269c16.772-16.772 16.688-44.071-0.202-60.96-17.007-17.007-44.182-16.98-60.96-0.202l-214.269 214.269-214.269-214.269c-16.772-16.772-44.071-16.688-60.96 0.202-17.007 17.007-16.98 44.182-0.202 60.96l214.269 214.269-214.269 214.269c-16.772 16.772-16.688 44.071 0.202 60.96 17.007 17.007 44.182 16.98 60.96 0.202l214.269-214.269 214.269 214.269c16.772 16.772 44.071 16.688 60.96-0.202 17.007-17.007 16.98-44.182 0.202-60.96l-214.269-214.269z' /%3E%3C/svg%3E\")}.playkit-icon-settings{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M803.451 546.033c2.552-22.107 2.552-44.408 0.246-64.81-1.084-6.208-6.499-10.721-12.535-10.671-30.286 0.533-57.727-17.773-68.866-45.941s-3.64-60.291 18.795-80.593c3.935-3.569 4.416-9.583 0.92-13.959-13.595-17.35-29.146-33.073-46.311-46.83-4.23-3.38-10.359-2.886-14.783 1.966-14.421 14.721-34.212 22.938-54.434 22.761-9.009 0.041-17.942-1.652-26.865-5.212-28.414-11.992-46.226-40.546-44.49-71.542 0.335-5.319-3.547-9.972-8.785-10.588-21.926-2.538-44.068-2.595-65.961-0.176-5.349 0.6-9.341 5.207-9.175 10.514 1.027 30.384-16.802 58.251-45.764 70.431-8.238 3.138-16.993 4.701-25.207 4.609-20.599 0.206-40.395-7.982-55.482-23.363-2.014-2.187-4.849-3.435-7.553-3.445-2.441 0.015-4.811 0.83-6.513 2.139-17.541 13.798-33.455 29.547-47.262 46.729-3.418 4.337-2.922 10.575 0.97 14.162 22.816 20.692 30.19 53.479 17.807 83.351-13.035 27.396-41.135 44.394-71.446 43.222-5.112-0.197-9.499 3.606-10.086 9.179-2.673 22.023-2.673 44.289-0.212 64.867 1.080 6.27 6.559 10.824 13.309 10.737l2.225 0.006c28.935 0.604 54.726 18.391 65.634 45.374 11.22 28.205 3.921 60.407-18.565 81.204-3.866 3.509-4.341 9.418-0.895 13.742 13.545 17.354 29.027 33.106 46.042 46.867 4.303 3.449 10.547 2.954 14.986-1.907 14.414-14.76 34.226-23.001 54.43-22.82 9.070-0.052 18.063 1.668 27.041 5.299 28.19 12.071 45.891 40.41 44.347 71.468-0.342 5.312 3.536 9.962 8.802 10.578 21.915 2.548 44.049 2.605 65.929 0.176 5.364-0.604 9.364-5.227 9.191-10.598-0.997-30.358 16.84-58.183 45.452-70.201 8.263-3.256 17.070-4.908 25.521-4.865 20.676-0.206 40.533 8.070 55.398 23.38 2.039 2.195 4.898 3.446 7.673 3.455 2.268-0.011 4.468-0.776 6.321-2.228 17.625-13.724 33.599-29.444 47.415-46.611 3.426-4.348 2.928-10.6-0.863-14.097-22.358-20.082-30.057-51.85-19.372-79.939s37.55-46.71 67.745-46.857h5.229c5.12-0.026 9.413-3.875 9.996-8.962zM861.733 552.735c-3.961 34.572-33.157 60.748-68.129 60.926h-5.235c-5.803 0.028-10.991 3.624-13.054 9.048s-0.577 11.558 4.020 15.69c26.602 24.519 29.853 65.381 7.275 94.034-16.847 20.934-36.063 39.845-57.197 56.302-12.034 9.427-26.861 14.584-42.368 14.658-19.254-0.051-37.623-8.090-50.269-21.718-3.221-3.315-7.66-5.165-12.712-5.118-1.425-0.007-2.839 0.258-3.554 0.532-5.581 2.346-9.136 7.892-8.937 13.966 1.152 35.958-25.509 66.771-61.307 70.804-26.332 2.923-52.909 2.854-79.246-0.208-36.286-4.245-62.897-36.157-60.576-72.186 0.304-6.123-3.235-11.788-8.302-13.964-1.328-0.536-2.748-0.808-4.606-0.8-4.651-0.041-9.118 1.817-11.635 4.367-24.544 27.036-65.886 30.311-94.481 7.394-20.587-16.65-39.207-35.595-55.308-56.226-22.552-28.277-19.261-69.208 7.317-93.334 4.474-4.138 5.939-10.604 3.748-16.115-2.052-5.076-6.932-8.442-11.794-8.55-36.436 0.464-66.759-24.741-72.949-60.89-3.243-26.718-3.243-53.731-0.055-79.964 3.744-35.827 34.642-62.605 70.642-61.219 6.877 0.266 13.251-3.59 15.584-8.401 2.309-5.59 0.861-12.028-3.789-16.247-26.603-24.51-29.856-65.368-7.293-93.994 16.767-20.868 35.856-39.76 57.129-56.491 12.099-9.322 26.921-14.42 42.463-14.513 19.308 0.059 37.717 8.166 50.145 21.684 3.263 3.322 7.737 5.172 12.994 5.126 1.471 0.015 2.933-0.245 3.363-0.39 5.601-2.359 9.165-7.93 8.957-14.077-1.126-35.941 25.542-66.721 61.322-70.731 26.322-2.909 52.889-2.84 79.251 0.212 36.244 4.265 62.828 36.125 60.546 72.343-0.339 6.047 3.159 11.654 8.186 13.782 1.381 0.55 2.855 0.829 4.726 0.823 4.663 0.040 9.142-1.819 11.615-4.312 24.439-26.99 65.656-30.312 94.137-7.557 20.721 16.607 39.456 35.549 55.655 56.225 22.667 28.35 19.38 69.439-7.531 93.846-4.33 3.918-5.776 10.112-3.628 15.542s7.438 8.96 13.543 8.854c34.999-0.298 65.076 24.766 71.337 60.925 3.065 26.552 3.065 53.368 0 79.92zM511.956 589.951c43.215-0.108 78.137-35.17 78.072-78.385 0-31.732-19.132-60.334-48.461-72.448s-63.068-5.35-85.461 17.133c-22.393 22.483-29.022 56.249-16.791 85.529s40.909 48.298 72.641 48.171zM512.146 648.617c-55.438 0.221-105.58-33.029-126.965-84.224s-9.796-110.233 29.358-149.543c39.153-39.31 98.144-51.136 149.424-29.956s84.731 71.189 84.732 126.627c0.114 75.549-60.999 136.907-136.548 137.096z' /%3E%3C/svg%3E\")}.playkit-icon-check{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M342.481 563.894c-12.577-12.416-32.838-12.285-45.254 0.292s-12.285 32.838 0.292 45.254l118.857 117.333c13.275 13.105 34.901 12.123 46.933-2.131l297.143-352c11.4-13.505 9.694-33.694-3.811-45.094s-33.694-9.694-45.094 3.811l-274.828 325.566-94.238-93.030z' /%3E%3C/svg%3E\")}.playkit-icon-check-active{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M342.481 563.894c-12.577-12.416-32.838-12.285-45.254 0.292s-12.285 32.838 0.292 45.254l118.857 117.333c13.275 13.105 34.901 12.123 46.933-2.131l297.143-352c11.4-13.505 9.694-33.694-3.811-45.094s-33.694-9.694-45.094 3.811l-274.828 325.566-94.238-93.030z' /%3E%3C/svg%3E\")}.playkit-icon-language{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M512 800c159.058 0 288-128.942 288-288s-128.942-288-288-288c-159.058 0-288 128.942-288 288s128.942 288 288 288zM512 864c-194.404 0-352-157.596-352-352s157.596-352 352-352c194.404 0 352 157.596 352 352s-157.596 352-352 352z' /%3E%3Cpath fill='%23fff' d='M441.231 173.324c-76.632 84.62-121.231 207.208-121.231 338.676 0 134.304 46.556 259.282 126.083 343.936l46.646-43.82c-68.041-72.429-108.728-181.651-108.728-300.116 0-116.001 39.001-223.203 104.669-295.716l-47.438-42.96z' /%3E%3Cpath fill='%23fff' d='M584.297 173.324c76.632 84.62 121.231 207.208 121.231 338.676 0 134.304-46.556 259.282-126.083 343.936l-46.646-43.82c68.041-72.429 108.728-181.651 108.728-300.116 0-116.001-39.001-223.203-104.669-295.716l47.438-42.96z' /%3E%3Cpath fill='%23fff' d='M840.432 419.786c-81.65-22.637-200.551-35.786-328.432-35.786-128.056 0-247.103 13.185-328.758 35.876l17.136 61.663c75.47-20.972 188.938-33.539 311.622-33.539 122.521 0 235.854 12.533 311.334 33.459l17.099-61.674z' /%3E%3Cpath fill='%23fff' d='M840.432 605.754c-81.65 22.637-200.551 35.786-328.432 35.786-128.056 0-247.103-13.185-328.758-35.876l17.136-61.663c75.47 20.972 188.938 33.539 311.622 33.539 122.521 0 235.854-12.533 311.334-33.459l17.099 61.674z' /%3E%3Cpath fill='%23fff' d='M480 192h64v640h-64v-640z' /%3E%3C/svg%3E\")}.playkit-icon-quality{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M159.904 192h288.234c17.277 0 31.862 14.323 31.862 31.992 0 17.792-14.261 31.993-31.853 31.994l-288.147 0.014v544.174c-0.017-0.18 704-0.174 704-0.174v-128.006c0-17.795 14.327-31.994 32-31.994 17.796 0 32 14.34 32 32.029v128.145c0 35.25-28.639 63.826-63.904 63.826h-704.192c-35.293 0-63.904-28.875-63.904-63.826v-544.348c0-35.25 28.639-63.826 63.904-63.826zM501.818 378.182c108.449 0 196.364-87.915 196.364-196.364 0-29.091 43.636-29.091 43.636 0 0 108.449 87.915 196.364 196.364 196.364 29.091 0 29.091 43.636 0 43.636-108.449 0-196.364 87.915-196.364 196.364 0 29.091-43.636 29.091-43.636 0 0-108.449-87.915-196.364-196.364-196.364-29.091 0-29.091-43.636 0-43.636z' /%3E%3C/svg%3E\")}.playkit-icon-captions{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M160 771.213c-0.017-0.172 704-0.166 704-0.166v-518.261c0.017 0.172-704 0.166-704 0.166v518.261zM96 252.787c0-33.572 28.639-60.787 63.904-60.787h704.192c35.293 0 63.904 27.5 63.904 60.787v518.427c0 33.572-28.639 60.787-63.904 60.787h-704.192c-35.293 0-63.904-27.5-63.904-60.787v-518.427z' /%3E%3Cpath fill='%23fff' d='M490.583 568.655c0 7.729-2.311 15.987-6.933 24.777s-11.668 17.162-21.14 25.118c-9.471 7.956-21.405 14.358-35.801 19.208s-30.611 7.274-48.644 7.274c-38.34 0-68.268-11.176-89.787-33.528s-32.278-52.319-32.278-89.901c0-25.459 4.925-47.962 14.775-67.511s24.095-34.665 42.734-45.348c18.639-10.684 40.916-16.025 66.829-16.025 16.063 0 30.8 2.349 44.212 7.047s24.777 10.759 34.096 18.185c9.32 7.425 16.442 15.343 21.367 23.754s7.388 16.253 7.388 23.527c0 7.425-2.766 13.714-8.297 18.867s-12.237 7.729-20.117 7.729c-5.152 0-9.433-1.326-12.843-3.978s-7.236-6.933-11.479-12.843c-7.577-11.517-15.495-20.155-23.754-25.913s-18.753-8.638-31.482-8.638c-18.336 0-33.111 7.16-44.325 21.481s-16.821 33.907-16.821 58.759c0 11.669 1.44 22.39 4.319 32.164s7.047 18.109 12.502 25.004c5.455 6.895 12.047 12.123 19.776 15.684s16.215 5.342 25.459 5.342c12.426 0 23.072-2.879 31.937-8.638s16.707-14.548 23.527-26.368c3.789-6.971 7.88-12.426 12.275-16.366s9.774-5.91 16.139-5.91c7.577 0 13.866 2.879 18.867 8.638s7.501 11.896 7.501 18.412zM767.219 568.655c0 7.729-2.311 15.987-6.933 24.777s-11.668 17.162-21.14 25.118c-9.471 7.956-21.405 14.358-35.801 19.208s-30.611 7.274-48.644 7.274c-38.34 0-68.268-11.176-89.787-33.528s-32.278-52.319-32.278-89.901c0-25.459 4.925-47.962 14.775-67.511s24.095-34.665 42.734-45.348c18.639-10.684 40.916-16.025 66.829-16.025 16.063 0 30.8 2.349 44.212 7.047s24.777 10.759 34.096 18.185c9.32 7.425 16.442 15.343 21.367 23.754s7.388 16.253 7.388 23.527c0 7.425-2.766 13.714-8.297 18.867s-12.237 7.729-20.117 7.729c-5.152 0-9.433-1.326-12.843-3.978s-7.236-6.933-11.479-12.843c-7.577-11.517-15.495-20.155-23.754-25.913s-18.753-8.638-31.482-8.638c-18.336 0-33.111 7.16-44.325 21.481s-16.821 33.907-16.821 58.759c0 11.669 1.44 22.39 4.319 32.164s7.047 18.109 12.502 25.004c5.455 6.895 12.047 12.123 19.776 15.684s16.215 5.342 25.459 5.342c12.426 0 23.072-2.879 31.937-8.638s16.707-14.548 23.527-26.368c3.789-6.971 7.88-12.426 12.275-16.366s9.774-5.91 16.139-5.91c7.577 0 13.866 2.879 18.867 8.638s7.501 11.896 7.501 18.412z' /%3E%3C/svg%3E\")}.playkit-icon-speed{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M512 832c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64s28.654 64 64 64zM480.239 643.971c-0.158-1.272-0.239-2.566-0.239-3.876v-192.19c0-17.621 14.204-31.905 32-31.905 17.673 0 32 14.497 32 31.905v192.19c0 1.313-0.079 2.607-0.232 3.878 55.325 14.128 96.232 64.301 96.232 124.027 0 70.692-57.308 128-128 128s-128-57.308-128-128c0-59.729 40.91-109.903 96.239-124.029zM928 576c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-194.404-157.596-352-352-352s-352 157.596-352 352c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-229.75 186.25-416 416-416s416 186.25 416 416z' /%3E%3C/svg%3E\")}.playkit-icon-speed-down{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M512 800c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64s28.654 64 64 64zM401.852 670.758c-1.056-0.826-2.077-1.728-3.055-2.706l-113.005-113.005c-12.533-12.533-12.65-32.737-0.066-45.321 12.497-12.497 32.536-12.719 45.321 0.066l113.005 113.005c0.976 0.976 1.876 1.998 2.701 3.059 19.106-11.343 41.416-17.855 65.248-17.855 70.692 0 128 57.308 128 128s-57.308 128-128 128c-70.692 0-128-57.308-128-128 0-23.829 6.511-46.137 17.852-65.242zM928 576c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-194.404-157.596-352-352-352s-352 157.596-352 352c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-229.75 186.25-416 416-416s416 186.25 416 416z'/%3E%3C/svg%3E\")}.playkit-icon-speed-up{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M512 800c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64s28.654 64 64 64zM546.516 612.708c0.524-1.23 1.129-2.446 1.819-3.64l79.906-138.402c8.862-15.35 28.348-20.692 43.76-11.794 15.305 8.837 20.707 28.135 11.666 43.794l-79.906 138.402c-0.693 1.201-1.451 2.34-2.268 3.416 23.761 23.238 38.508 55.655 38.508 91.516 0 70.692-57.308 128-128 128s-128-57.308-128-128c0-70.692 57.308-128 128-128 11.959 0 23.535 1.64 34.516 4.708zM928 576c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-194.404-157.596-352-352-352s-352 157.596-352 352c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-229.75 186.25-416 416-416s416 186.25 416 416z'/%3E%3C/svg%3E\")}.playkit-icon-audio{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M768 625.124v-354.531l-352 135.385v330.022c0 70.692-57.308 128-128 128s-128-57.308-128-128c0-70.692 57.308-128 128-128 23.314 0 45.173 6.233 64 17.124v-241.124c0-13.241 8.155-25.114 20.513-29.867l416-160c20.96-8.062 43.487 7.41 43.487 29.867v512c0 70.692-57.308 128-128 128s-128-57.308-128-128c0-70.692 57.308-128 128-128 23.314 0 45.173 6.233 64 17.124zM288 800c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64s28.654 64 64 64zM704 800c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64s28.654 64 64 64z' /%3E%3C/svg%3E\")}.playkit-icon-arrow-down{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M301.255 338.745c-24.994-24.994-65.516-24.994-90.51 0s-24.994 65.516 0 90.51l256 256c24.994 24.994 65.516 24.994 90.51 0l256-256c24.994-24.994 24.994-65.516 0-90.51s-65.516-24.994-90.51 0l-210.745 210.745-210.745-210.745z' /%3E%3C/svg%3E\")}.playkit-icon-start-over{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M255.271 339.053c94.182-126.513 270.298-165.203 410.222-84.418 150.758 87.040 202.411 279.813 115.371 430.571s-279.813 202.411-430.571 115.371c-61.424-35.463-107.948-89.4-134.169-153.673-7.677-18.818-29.156-27.85-47.974-20.173s-27.85 29.156-20.173 47.974c32.339 79.269 89.818 145.906 165.517 189.611 185.96 107.364 423.747 43.649 531.111-142.311s43.649-423.747-142.311-531.111c-172.433-99.554-389.428-52.014-505.682 103.69l-27.226-78.49c-6.66-19.202-27.626-29.368-46.828-22.708s-29.368 27.626-22.708 46.828l52.434 151.164c5.36 15.452 20.275 25.513 36.61 24.694l159.799-8.011c20.299-1.018 35.929-18.298 34.911-38.596s-18.298-35.929-38.596-34.911l-89.738 4.499z' /%3E%3C/svg%3E\")}.playkit-icon-seek-end{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M742.494 323.053c-94.182-126.513-270.298-165.203-410.222-84.418-150.758 87.040-202.411 279.813-115.371 430.571s279.813 202.411 430.571 115.371c61.424-35.463 107.948-89.4 134.169-153.673 7.677-18.818 29.156-27.85 47.974-20.173s27.85 29.156 20.173 47.974c-32.339 79.269-89.818 145.906-165.517 189.611-185.96 107.364-423.747 43.649-531.111-142.311s-43.649-423.747 142.311-531.111c172.433-99.554 389.428-52.014 505.682 103.69l27.226-78.49c6.66-19.202 27.626-29.368 46.828-22.708s29.368 27.626 22.708 46.828l-52.434 151.164c-5.36 15.452-20.275 25.513-36.61 24.694l-159.799-8.011c-20.299-1.018-35.929-18.298-34.911-38.596s18.298-35.929 38.596-34.911l89.738 4.499z'/%3E%3C/svg%3E\")}.playkit-icon-rewind{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' opacity='0.5' d='M258.471 323.053c94.182-126.513 270.298-165.203 410.222-84.418 150.758 87.040 202.411 279.813 115.371 430.571s-279.813 202.411-430.571 115.371c-61.424-35.463-107.948-89.4-134.169-153.673-7.677-18.818-29.156-27.85-47.974-20.173s-27.85 29.156-20.173 47.974c32.339 79.269 89.818 145.906 165.517 189.611 185.96 107.364 423.747 43.649 531.111-142.311s43.649-423.747-142.311-531.111c-172.433-99.554-389.428-52.014-505.682 103.69l-27.226-78.49c-6.66-19.202-27.626-29.368-46.828-22.708s-29.368 27.626-22.708 46.828l52.434 151.164c5.36 15.452 20.275 25.513 36.61 24.694l159.799-8.011c20.299-1.018 35.929-18.298 34.911-38.596s-18.298-35.929-38.596-34.911l-89.738 4.499z'%3E%3C/path%3E%3Cpath fill='%23fff' d='M816.068 431.974c-20.553-78.699-71.369-149.456-147.375-193.338-139.923-80.785-316.040-42.095-410.222 84.418l89.738-4.499c20.299-1.018 37.579 14.613 38.596 34.911s-14.613 37.579-34.911 38.596l-159.799 8.011c-16.335 0.819-31.25-9.242-36.61-24.694l-52.434-151.164c-6.66-19.202 3.506-40.167 22.708-46.828s40.167 3.506 46.828 22.708l27.226 78.49c116.254-155.703 333.248-203.244 505.682-103.69 91.184 52.645 152.976 136.648 179.618 230.523l-69.044 26.555z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-rewind-10{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M258.471 323.053c94.182-126.513 270.298-165.203 410.222-84.418 150.758 87.040 202.411 279.813 115.371 430.571s-279.813 202.411-430.571 115.371c-61.424-35.463-107.948-89.4-134.169-153.673-7.677-18.818-29.156-27.85-47.974-20.173s-27.85 29.156-20.173 47.974c32.339 79.269 89.818 145.906 165.517 189.611 185.96 107.364 423.747 43.649 531.111-142.311s43.649-423.747-142.311-531.111c-172.433-99.554-389.428-52.014-505.682 103.69l-27.226-78.49c-6.66-19.202-27.626-29.368-46.828-22.708s-29.368 27.626-22.708 46.828l52.434 151.164c5.36 15.452 20.275 25.513 36.61 24.694l159.799-8.011c20.299-1.018 35.929-18.298 34.911-38.596s-18.298-35.929-38.596-34.911l-89.738 4.499z'%3E%3C/path%3E%3Cpath fill='%23fff' d='M413.327 636.083h67.358v-252.083h-48.527c-2.173 7.358-4.949 13.589-8.329 18.693s-7.726 9.139-13.037 12.106c-5.311 2.967-11.709 5.103-19.193 6.409s-16.417 1.958-26.798 1.958v41.302h48.527v171.616zM596.807 554.192c0 17.803 1.569 29.849 4.708 36.139s8.208 9.435 15.21 9.435c7.001 0 12.071-3.145 15.21-9.435s4.708-18.336 4.708-36.139v-83.316c0-17.803-1.569-29.849-4.708-36.139s-8.208-9.435-15.21-9.435c-7.001 0-12.071 3.145-15.21 9.435s-4.708 18.336-4.708 36.139v83.316zM529.449 512.534c0-25.398 1.75-46.405 5.251-63.021s8.812-29.789 15.934-39.522c7.122-9.732 16.176-16.497 27.16-20.295s23.962-5.697 38.93-5.697c14.969 0 27.945 1.899 38.93 5.697s20.038 10.563 27.16 20.295c7.122 9.732 12.433 22.906 15.934 39.522s5.251 37.622 5.251 63.021c0 25.636-1.75 46.702-5.251 63.199s-8.812 29.552-15.934 39.166c-7.122 9.613-16.176 16.2-27.16 19.761s-23.962 5.341-38.93 5.341c-14.969 0-27.945-1.78-38.93-5.341s-20.038-10.147-27.16-19.761c-7.122-9.613-12.433-22.668-15.934-39.166s-5.251-37.563-5.251-63.199z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-forward{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' opacity='0.5' d='M765.529 323.053c-94.182-126.513-270.298-165.203-410.222-84.418-150.758 87.040-202.411 279.813-115.371 430.571s279.813 202.411 430.571 115.371c61.424-35.463 107.948-89.4 134.169-153.673 7.677-18.818 29.156-27.85 47.974-20.173s27.85 29.156 20.173 47.974c-32.339 79.269-89.818 145.906-165.517 189.611-185.96 107.364-423.747 43.649-531.111-142.311s-43.649-423.747 142.311-531.111c172.433-99.554 389.428-52.014 505.682 103.69l27.226-78.49c6.66-19.202 27.626-29.368 46.828-22.708s29.368 27.626 22.708 46.828l-52.434 151.164c-5.36 15.452-20.275 25.513-36.61 24.694l-159.799-8.011c-20.299-1.018-35.929-18.298-34.911-38.596s18.298-35.929 38.596-34.911l89.738 4.499z'%3E%3C/path%3E%3Cpath fill='%23fff' d='M207.932 431.974c20.553-78.699 71.369-149.456 147.375-193.338 139.923-80.785 316.040-42.095 410.222 84.418l-89.738-4.499c-20.299-1.018-37.579 14.613-38.596 34.911s14.613 37.579 34.911 38.596l159.799 8.011c16.335 0.819 31.25-9.242 36.61-24.694l52.434-151.164c6.66-19.202-3.506-40.167-22.708-46.828s-40.167 3.506-46.828 22.708l-27.226 78.49c-116.254-155.703-333.248-203.244-505.682-103.69-91.184 52.645-152.976 136.648-179.618 230.523l69.044 26.555z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-forward-10{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M765.529 323.053c-94.182-126.513-270.298-165.203-410.222-84.418-150.758 87.040-202.411 279.813-115.371 430.571s279.813 202.411 430.571 115.371c61.424-35.463 107.948-89.4 134.169-153.673 7.677-18.818 29.156-27.85 47.974-20.173s27.85 29.156 20.173 47.974c-32.339 79.269-89.818 145.906-165.517 189.611-185.96 107.364-423.747 43.649-531.111-142.311s-43.649-423.747 142.311-531.111c172.433-99.554 389.428-52.014 505.682 103.69l27.226-78.49c6.66-19.202 27.626-29.368 46.828-22.708s29.368 27.626 22.708 46.828l-52.434 151.164c-5.36 15.452-20.275 25.513-36.61 24.694l-159.799-8.011c-20.299-1.018-35.929-18.298-34.911-38.596s18.298-35.929 38.596-34.911l89.738 4.499z'%3E%3C/path%3E%3Cpath fill='%23fff' d='M365.327 636.083h67.358v-252.083h-48.527c-2.173 7.358-4.949 13.589-8.329 18.693s-7.726 9.139-13.037 12.106c-5.311 2.967-11.709 5.103-19.193 6.409s-16.417 1.958-26.798 1.958v41.302h48.527v171.616zM548.807 554.192c0 17.803 1.569 29.849 4.708 36.139s8.208 9.435 15.21 9.435c7.001 0 12.071-3.145 15.21-9.435s4.708-18.336 4.708-36.139v-83.316c0-17.803-1.569-29.849-4.708-36.139s-8.208-9.435-15.21-9.435c-7.001 0-12.071 3.145-15.21 9.435s-4.708 18.336-4.708 36.139v83.316zM481.449 512.534c0-25.398 1.75-46.405 5.251-63.021s8.812-29.789 15.934-39.522c7.122-9.732 16.176-16.497 27.16-20.295s23.962-5.697 38.93-5.697c14.969 0 27.945 1.899 38.93 5.697s20.038 10.563 27.16 20.295c7.122 9.732 12.433 22.906 15.934 39.522s5.251 37.622 5.251 63.021c0 25.636-1.75 46.702-5.251 63.199s-8.812 29.552-15.934 39.166c-7.122 9.613-16.176 16.2-27.16 19.761s-23.962 5.341-38.93 5.341c-14.969 0-27.945-1.78-38.93-5.341s-20.038-10.147-27.16-19.761c-7.122-9.613-12.433-22.668-15.934-39.166s-5.251-37.563-5.251-63.199z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-vr-stereo{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M864 255.996c53.019 0 96 42.981 96 96v384.004c0 53.019-42.981 96-96 96h-219.764c-33.721 0-64.97-17.693-82.319-46.608l-49.917-83.195-49.917 83.195c-17.349 28.916-48.598 46.608-82.319 46.608h-219.764c-53.019 0-96-42.981-96-96v-384.003c0-53.019 42.981-96 96-96h704zM128 351.997v384.003c0 17.673 14.327 32 32 32h219.764c11.24 0 21.657-5.898 27.44-15.536l49.917-83.195c5.405-9.008 12.944-16.547 21.952-21.952 30.309-18.185 69.622-8.357 87.807 21.952l49.917 83.195c5.783 9.639 16.199 15.536 27.44 15.536h219.764c17.673 0 32-14.327 32-32v-384.004c0-17.673-14.327-32-32-32h-704c-17.673 0-32 14.327-32 32zM304 624c-44.183 0-80-35.817-80-80s35.817-80 80-80c44.183 0 80 35.817 80 80s-35.817 80-80 80zM720 624c-44.183 0-80-35.817-80-80s35.817-80 80-80c44.183 0 80 35.817 80 80s-35.817 80-80 80z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-vr-stereo-full{background-image:var(--playkit-icon-vr-stereo-full-url)}.playkit-icon-chromecast{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M160 704v96h96c0-53.12-42.88-96-96-96zM160 576v64c88.32 0 160 71.68 160 160h64c0-123.84-100.16-224-224-224zM736 352h-448v52.16c126.72 40.96 226.88 141.12 267.84 267.84h180.16v-320zM160 448v64c159.040 0 288 128.96 288 288h64c0-194.56-157.76-352-352-352zM800 224h-576c-35.2 0-64 28.8-64 64v96h64v-96h576v448h-224v64h224c35.2 0 64-28.8 64-64v-448c0-35.2-28.8-64-64-64z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-chromecast-brand{background-image:var(--playkit-icon-chromecast-url)}.playkit-icon-next{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M640 549.333l-264.982 154.573c-30.386 17.725-55.018 3.388-55.018-32.094v-319.625c0-35.45 24.605-49.835 55.018-32.094l264.982 154.573v-154.448c0-17.794 14.204-32.219 32-32.219 17.673 0 32 14.398 32 32.219v383.562c0 17.794-14.204 32.219-32 32.219-17.673 0-32-14.398-32-32.219v-154.448z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-prev{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M384 549.333l264.982 154.573c30.386 17.725 55.018 3.388 55.018-32.094v-319.625c0-35.45-24.605-49.835-55.018-32.094l-264.982 154.573v-154.448c0-17.794-14.204-32.219-32-32.219-17.673 0-32 14.398-32 32.219v383.562c0 17.794 14.204 32.219 32 32.219 17.673 0 32-14.398 32-32.219v-154.448z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-picture-in-picture-start{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M224 256c-17.673 0-32 14.327-32 32v448c0 17.673 14.327 32 32 32h576c17.673 0 32-14.327 32-32v-448c0-17.673-14.327-32-32-32h-576zM224 192h576c53.019 0 96 42.981 96 96v448c0 53.019-42.981 96-96 96h-576c-53.019 0-96-42.981-96-96v-448c0-53.019 42.981-96 96-96z'%3E%3C/path%3E%3Cpath fill='%23fff' d='M544 512h192c17.673 0 32 14.327 32 32v128c0 17.673-14.327 32-32 32h-192c-17.673 0-32-14.327-32-32v-128c0-17.673 14.327-32 32-32z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-picture-in-picture-stop{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 1024 1024' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M800 192c51.126 0 92.917 39.965 95.837 90.359l0.163 5.641v448c0 51.126-39.965 92.917-90.359 95.837l-5.641 0.163h-576c-51.126 0-92.917-39.965-95.837-90.359l-0.163-5.641v-64c0-17.673 14.327-32 32-32 16.411 0 29.936 12.353 31.785 28.268l0.215 3.732v64c0 16.411 12.353 29.936 28.268 31.785l3.732 0.215h576c16.411 0 29.936-12.353 31.785-28.268l0.215-3.732v-448c0-16.411-12.353-29.936-28.268-31.785l-3.732-0.215h-192c-17.673 0-32-14.327-32-32 0-16.411 12.353-29.936 28.268-31.785l3.732-0.215h192z'%3E%3C/path%3E%3Cpath fill='%23fff' d='M416 192c17.673 0 32 14.327 32 32 0 16.411-12.353 29.936-28.268 31.785l-3.732 0.215-178.752-0.032 202.711 202.736c12.497 12.497 12.497 32.758 0 45.255-11.535 11.535-29.687 12.423-42.24 2.662l-3.015-2.662-202.704-202.679v178.72c0 16.411-12.353 29.936-28.268 31.785l-3.732 0.215c-16.411 0-29.936-12.353-31.785-28.268l-0.215-3.732v-256l0.005-0.588c0.014-0.757 0.054-1.514 0.122-2.268l-0.127 2.856c0-1.62 0.12-3.212 0.353-4.767 0.083-0.544 0.182-1.101 0.295-1.656 0.141-0.705 0.307-1.399 0.495-2.084 0.14-0.5 0.288-0.992 0.449-1.482 0.204-0.629 0.434-1.262 0.684-1.885 0.227-0.568 0.466-1.121 0.722-1.669 0.311-0.661 0.644-1.314 0.998-1.954 0.212-0.388 0.439-0.779 0.676-1.166 0.503-0.818 1.040-1.614 1.61-2.382 0.174-0.238 0.351-0.47 0.532-0.7 1.588-2.021 3.42-3.854 5.45-5.446l-2.891 2.563c1.133-1.133 2.329-2.163 3.578-3.090 0.774-0.571 1.569-1.108 2.389-1.609 0.386-0.239 0.777-0.466 1.171-0.685 0.633-0.348 1.285-0.681 1.951-0.993 0.544-0.255 1.098-0.495 1.656-0.718 0.632-0.253 1.265-0.483 1.907-0.694 0.476-0.154 0.969-0.302 1.464-0.438 0.69-0.192 1.384-0.359 2.086-0.502 0.557-0.111 1.115-0.209 1.674-0.293 0.327-0.051 0.672-0.097 1.019-0.137l0.876-0.088c0.755-0.067 1.511-0.108 2.268-0.122l0.588-0.005h256z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-advanced-audio-description{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 24 24' width='24' height='24' fill-rule='nonzero'%3E%3Cpath d='M6.647 12.958h1.547V10.81l-1.547 2.147ZM12.226 10.408c.99 0 1.787.717 1.787 1.595 0 .881-.798 1.598-1.787 1.598h-.467v-3.193h.467Z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.536 4C2.688 4 2 4.68 2 5.52v12.96c0 .832.688 1.52 1.536 1.52h16.928c.848 0 1.536-.68 1.536-1.52V5.52C22 4.688 21.312 4 20.464 4H3.536Zm15.335 5h.826c.83.87 1.303 1.982 1.303 3.14a4.504 4.504 0 0 1-1.033 2.837h-.792c.745-.793 1.165-1.792 1.165-2.838 0-1.178-.537-2.311-1.47-3.139ZM8.185 15h1.47V9.004H7.819L3 15h2.158l.566-.793h2.461V15Zm4.223-.003c1.851 0 3.357-1.343 3.357-2.994 0-1.657-1.49-2.997-3.341-2.997h-2.075v5.993h2.059v-.002ZM18.008 9h-.826c.932.828 1.47 1.961 1.47 3.14 0 1.045-.421 2.044-1.166 2.837h.787a4.48 4.48 0 0 0 1.038-2.838c0-1.157-.472-2.27-1.303-3.139Zm-2.515 0h.82c.837.87 1.304 1.982 1.304 3.14a4.474 4.474 0 0 1-1.033 2.837h-.787c.74-.793 1.16-1.792 1.16-2.838 0-1.178-.532-2.311-1.464-3.139Z' fill='%23fff'/%3E%3C/svg%3E\")}.playkit-icon-quality-hd:after{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 16 16' width='16' height='16' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M13.9931545,4 C14.5492199,4 15,4.45303631 15,4.99703014 L15,11.0029699 C15,11.5536144 14.5500512,12 13.9931545,12 L2.00684547,12 C1.45078007,12 1,11.5469637 1,11.0029699 L1,4.99703014 C1,4.4463856 1.44994876,4 2.00684547,4 L13.9931545,4 Z M3.73939861,5 L2,5 L2,11 L3.73939861,11 L3.73918396,8.56940659 L5.96845644,8.56940659 L5.9691596,11 L7.69930609,11 L7.69930609,5 L5.9691596,5 L5.96845644,7.32457143 L3.73918396,7.32457143 L3.73939861,5 Z M10.849653,5 L8.65690054,5 L8.65690054,11 L10.8774094,11 L11.1387878,10.9921562 C11.5670397,10.9660102 11.9583976,10.8744992 12.3128614,10.7176232 L12.3128614,10.7176232 L12.4919044,10.6311813 L12.686671,10.5199596 C13.0639309,10.2858264 13.3675515,9.98155416 13.5975328,9.60714286 C13.827514,9.23273155 13.9589319,8.81088809 13.9917864,8.34161247 L13.9917864,8.34161247 L14,8.10302198 L14,7.9010989 L13.9917864,7.66145717 C13.9589319,7.19033135 13.827514,6.76815149 13.5975328,6.39491758 C13.3292213,5.95947802 12.9583655,5.61813187 12.4849653,5.37087912 C12.0791937,5.15894819 11.6207417,5.03784481 11.1096093,5.00756896 L11.1096093,5.00756896 L10.849653,5 Z M10.849653,6.24862637 C11.154973,6.24862637 11.4101773,6.30906593 11.615266,6.42994505 C11.8203547,6.55082418 11.9745567,6.73282967 12.077872,6.97596154 C12.1605243,7.17046703 12.2101157,7.40497253 12.2266461,7.67947802 L12.2266461,7.67947802 L12.232845,7.89285714 L12.232845,8.10302198 L12.2265536,8.31796703 C12.2097764,8.59445055 12.1594449,8.83049451 12.075559,9.0260989 C11.9707016,9.2706044 11.8180416,9.4532967 11.617579,9.57417582 C11.4572089,9.67087912 11.2672321,9.7289011 11.0476484,9.74824176 L11.0476484,9.74824176 L10.8774094,9.75549451 L10.3957366,9.75600879 L10.3957366,6.24937143 Z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-quality-hd-active:after{background-image:var(--playkit-icon-quality-HD-active-url)}.playkit-icon-quality-4k:after{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 16 16' width='16' height='16' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M13.9931545,4 C14.5492199,4 15,4.45303631 15,4.99703014 L15,11.0029699 C15,11.5536144 14.5500512,12 13.9931545,12 L2.00684547,12 C1.45078007,12 1,11.5469637 1,11.0029699 L1,4.99703014 C1,4.4463856 1.44994876,4 2.00684547,4 L13.9931545,4 Z M6.52117789,5 L4.77853973,5 L4.7778117,5.01381978 L2,8.80769231 L2.10649455,9.76785714 L4.7778117,9.76866813 L4.77853973,11 L6.52117789,11 L6.52063574,9.76866813 L7.19402985,9.76785714 L7.19402985,8.5728022 L6.52063574,8.57362637 L6.52117789,5 Z M9.81282775,5 L7.99273901,5 L7.99273901,11 L9.81282775,11 L9.8119758,9.5061978 L10.4712352,8.88589011 L11.8313836,11 L13.9806374,11 L11.6856603,7.6629978 L14,5 L11.7587737,5 L10.3549818,6.78434066 L9.8119758,7.5229011 L9.81282775,5 Z M4.7778117,7.01905934 L4.7778117,8.57362637 L3.65066559,8.5728022 L4.69624849,7.13873626 L4.7778117,7.01905934 Z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-quality-4k-active:after{background-image:var(--playkit-icon-quality-4K-active-url)}.playkit-icon-quality-8k:after{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 16 16' width='16' height='16' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M13.9931545,4 C14.5492199,4 15,4.45303631 15,4.99703014 L15,11.0029699 C15,11.5536144 14.5500512,12 13.9931545,12 L2.00684547,12 C1.45078007,12 1,11.5469637 1,11.0029699 L1,4.99703014 C1,4.4463856 1.44994876,4 2.00684547,4 L13.9931545,4 Z M4.5,5 C4.04427083,5 3.6389974,5.06279225 3.28417969,5.18837675 C2.92936198,5.31396126 2.65104167,5.499666 2.44921875,5.74549098 C2.24739583,5.99131597 2.14648438,6.29458918 2.14648438,6.65531062 C2.14648438,6.96259185 2.24820964,7.23112892 2.45166016,7.46092184 C2.58729384,7.61411712 2.75692636,7.74445187 2.96055773,7.85192607 L2.96055773,7.85192607 L3.07972656,7.90981323 L3.04817708,7.92134269 L2.87890625,8.000668 C2.71614583,8.08483634 2.57291667,8.18353373 2.44921875,8.29676019 L2.44921875,8.29676019 L2.33203125,8.41482966 L2.24394133,8.52320968 C2.08131378,8.74602266 2,9.00515316 2,9.3006012 C2,9.67735471 2.10986328,9.99131597 2.32958984,10.242485 C2.54931641,10.493654 2.84879557,10.6826987 3.22802734,10.8096192 C3.60725911,10.9365397 4.03613281,11 4.51464844,11 C4.99641927,11 5.42366536,10.9365397 5.79638672,10.8096192 C6.16910807,10.6826987 6.46289063,10.493654 6.67773438,10.242485 C6.89257813,9.99131597 7,9.67735471 7,9.3006012 C7,8.95591182 6.89176432,8.66065464 6.67529297,8.41482966 L6.67529297,8.41482966 L6.56041124,8.29676019 C6.3983742,8.14579158 6.20089157,8.02065242 5.96796332,7.92134269 L5.96796332,7.92134269 L5.94,7.911 L6.06141493,7.85192607 L6.20532227,7.76703407 C6.29701063,7.70758183 6.38019929,7.64241446 6.45488824,7.57153195 L6.45488824,7.57153195 L6.56054688,7.46092184 L6.65155707,7.3427967 C6.78945132,7.14054034 6.85839844,6.91137831 6.85839844,6.65531062 C6.85839844,6.29458918 6.75830078,5.99131597 6.55810547,5.74549098 C6.35791016,5.499666 6.08121745,5.31396126 5.72802734,5.18837675 C5.37483724,5.06279225 4.96549479,5 4.5,5 Z M9.8178888,5 L8,5 L8,11 L9.8178888,11 L9.81771088,9.5061978 L10.4751832,8.88673407 L11.8340048,11 L13.9806608,11 L11.6891307,7.6629978 L14,5 L11.7614827,5 L10.3593876,6.78434066 L9.81771088,7.5229011 L9.8178888,5 Z M4.50488281,8.51903808 C4.6546224,8.51903808 4.78401693,8.54375418 4.89306641,8.59318637 C5.00211589,8.64261857 5.0867513,8.71543086 5.14697266,8.81162325 C5.20719401,8.90781563 5.23730469,9.02805611 5.23730469,9.17234469 C5.23730469,9.30861723 5.20800781,9.4261857 5.14941406,9.5250501 C5.09082031,9.6239145 5.0069987,9.7007348 4.89794922,9.75551102 C4.78889974,9.81028724 4.66113281,9.83767535 4.51464844,9.83767535 C4.36490885,9.83767535 4.23388672,9.81028724 4.12158203,9.75551102 C4.00927734,9.7007348 3.92220052,9.6239145 3.86035156,9.5250501 C3.7985026,9.4261857 3.76757812,9.30861723 3.76757812,9.17234469 C3.76757812,9.02805611 3.7985026,8.90781563 3.86035156,8.81162325 C3.92220052,8.71543086 4.00846354,8.64261857 4.11914062,8.59318637 C4.22981771,8.54375418 4.35839844,8.51903808 4.50488281,8.51903808 Z M4.5,6.16232465 C4.63671875,6.16232465 4.74902344,6.18570474 4.83691406,6.23246493 C4.92480469,6.27922512 4.99072266,6.34535738 5.03466797,6.43086172 C5.07861328,6.51636607 5.10058594,6.62057448 5.10058594,6.74348697 C5.10058594,6.86372745 5.08024089,6.96993988 5.03955078,7.06212425 C4.99886068,7.15430862 4.93538411,7.22645291 4.84912109,7.27855711 C4.76285807,7.33066132 4.65136719,7.35671343 4.51464844,7.35671343 C4.37792969,7.35671343 4.2648112,7.33066132 4.17529297,7.27855711 C4.08577474,7.22645291 4.01985677,7.15430862 3.97753906,7.06212425 C3.93522135,6.96993988 3.9140625,6.86372745 3.9140625,6.74348697 C3.9140625,6.62057448 3.93522135,6.51636607 3.97753906,6.43086172 C4.01985677,6.34535738 4.08496094,6.27922512 4.17285156,6.23246493 C4.26074219,6.18570474 4.36979167,6.16232465 4.5,6.16232465 Z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-quality-8k-active:after{background-image:var(--playkit-icon-quality-8K-active-url)}.playkit-icon-closed-captions-on{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 32 32' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M15.114 18.545c0.144-0.275 0.217-0.533 0.217-0.774 0-0.204-0.078-0.395-0.234-0.575s-0.353-0.27-0.59-0.27c-0.199 0-0.367 0.061-0.504 0.185s-0.265 0.294-0.384 0.511c-0.213 0.369-0.458 0.644-0.735 0.824s-0.61 0.27-0.998 0.27c-0.289 0-0.554-0.056-0.796-0.167s-0.447-0.275-0.618-0.49c-0.171-0.215-0.301-0.476-0.391-0.781s-0.135-0.64-0.135-1.005c0-0.777 0.175-1.389 0.526-1.836s0.812-0.671 1.385-0.671c0.398 0 0.726 0.090 0.984 0.27s0.505 0.45 0.742 0.81c0.133 0.185 0.252 0.318 0.359 0.401s0.24 0.124 0.401 0.124c0.246 0 0.456-0.081 0.629-0.242s0.259-0.357 0.259-0.59c0-0.227-0.077-0.472-0.231-0.735s-0.377-0.51-0.668-0.742c-0.291-0.232-0.646-0.421-1.066-0.568s-0.88-0.22-1.382-0.22c-0.81 0-1.506 0.167-2.088 0.501s-1.028 0.806-1.335 1.417-0.462 1.314-0.462 2.11c0 1.174 0.336 2.111 1.009 2.809s1.608 1.048 2.806 1.048c0.564 0 1.070-0.076 1.52-0.227s0.823-0.352 1.119-0.6c0.296-0.249 0.516-0.51 0.661-0.785z'%3E%3C/path%3E %3Cpath fill='%23fff' d='M23.759 18.545c0.145-0.275 0.217-0.533 0.217-0.774 0-0.204-0.078-0.395-0.234-0.575s-0.353-0.27-0.59-0.27c-0.199 0-0.367 0.061-0.504 0.185s-0.265 0.294-0.384 0.511c-0.213 0.369-0.458 0.644-0.735 0.824s-0.61 0.27-0.998 0.27c-0.289 0-0.554-0.056-0.796-0.167s-0.448-0.275-0.618-0.49c-0.17-0.215-0.301-0.476-0.391-0.781s-0.135-0.64-0.135-1.005c0-0.777 0.175-1.389 0.526-1.836s0.812-0.671 1.385-0.671c0.398 0 0.726 0.090 0.984 0.27s0.506 0.45 0.742 0.81c0.133 0.185 0.252 0.318 0.359 0.401s0.24 0.124 0.401 0.124c0.246 0 0.456-0.081 0.629-0.242s0.259-0.357 0.259-0.59c0-0.227-0.077-0.472-0.231-0.735s-0.377-0.51-0.668-0.742c-0.291-0.232-0.646-0.421-1.066-0.568s-0.88-0.22-1.382-0.22c-0.81 0-1.506 0.167-2.088 0.501s-1.028 0.806-1.335 1.417-0.462 1.314-0.462 2.11c0 1.174 0.336 2.111 1.009 2.809s1.608 1.048 2.806 1.048c0.564 0 1.070-0.076 1.52-0.227s0.823-0.352 1.119-0.6 0.516-0.51 0.661-0.785z'%3E%3C/path%3E %3Cpath fill='%23fff' d='M3 7.9c0-1.049 0.895-1.9 1.997-1.9h22.006c1.103 0 1.997 0.859 1.997 1.9v16.201c0 1.049-0.895 1.9-1.997 1.9h-22.006c-1.103 0-1.997-0.859-1.997-1.9v-16.201zM5 24.1c-0.001-0.005 22-0.005 22-0.005v-16.196c0 0.005-22 0.005-22 0.005v16.196z'%3E%3C/path%3E%3C/svg%3E\")}.playkit-icon-closed-captions-off{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 32 32' width='36' height='36' fill-rule='nonzero'%3E%3Cpath fill='%23fff' d='M30.133 6.838l-1.143 0.863c0.007 0.065 0.011 0.131 0.011 0.198v16.201c0 1.049-0.895 1.9-1.997 1.9h-22.006c-0.080 0-0.159-0.005-0.236-0.013l-1.128 0.851c-0.463 0.349-1.121 0.257-1.471-0.206s-0.257-1.121 0.206-1.471l26.5-20c0.463-0.349 1.121-0.257 1.471 0.206s0.257 1.121-0.206 1.471zM27 9.202l-4.619 3.486c0.222 0.109 0.421 0.233 0.596 0.373 0.291 0.232 0.514 0.479 0.668 0.742s0.231 0.508 0.231 0.735c0 0.232-0.086 0.429-0.259 0.59s-0.382 0.242-0.629 0.242c-0.161 0-0.295-0.041-0.401-0.124s-0.226-0.217-0.359-0.401c-0.237-0.36-0.484-0.63-0.742-0.81-0.164-0.114-0.357-0.193-0.578-0.234l-2.249 1.697c-0.045 0.237-0.068 0.495-0.068 0.774 0 0.365 0.045 0.7 0.135 1.005s0.22 0.566 0.391 0.781c0.171 0.215 0.377 0.379 0.618 0.49s0.507 0.167 0.796 0.167c0.388 0 0.721-0.090 0.998-0.27s0.522-0.455 0.735-0.824c0.118-0.218 0.246-0.388 0.384-0.511s0.305-0.185 0.504-0.185c0.237 0 0.433 0.090 0.59 0.27s0.234 0.372 0.234 0.575c0 0.241-0.072 0.5-0.217 0.774s-0.365 0.536-0.661 0.785-0.669 0.449-1.119 0.6c-0.45 0.152-0.957 0.227-1.52 0.227-1.198 0-2.133-0.349-2.806-1.048-0.536-0.557-0.858-1.265-0.967-2.123l-1.382 1.043c-0.033 0.165-0.096 0.337-0.19 0.516-0.145 0.275-0.365 0.536-0.661 0.785s-0.669 0.449-1.119 0.6c-0.246 0.083-0.508 0.143-0.788 0.18l-5.283 3.987c5.615-0.003 19.737-0.003 19.737-0.003v-14.893z'%3E%3C/path%3E %3Cpath fill='%23fff' d='M4.997 6h19.546l-2.492 1.903c-6.487 0.002-17.051 0.002-17.051 0.002v13.019l-2 1.527v-14.551c0-1.049 0.895-1.9 1.997-1.9z'%3E%3C/path%3E %3Cpath fill='%23fff' d='M12.841 14.034c0.179 0.125 0.353 0.293 0.521 0.504l1.399-1.068c-0.121-0.141-0.264-0.277-0.428-0.409-0.291-0.232-0.646-0.421-1.066-0.568s-0.88-0.22-1.382-0.22c-0.81 0-1.506 0.167-2.088 0.501s-1.028 0.806-1.335 1.417-0.462 1.314-0.462 2.11c0 0.77 0.144 1.437 0.433 2.002l1.598-1.22c-0.056-0.252-0.085-0.522-0.085-0.81 0-0.777 0.175-1.389 0.526-1.836s0.812-0.671 1.385-0.671c0.398 0 0.726 0.090 0.984 0.27z'%3E%3C/path%3E%3C/svg%3E\")}@keyframes playkit-openDropmenu{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.playkit-dropdown{position:relative;font-size:15px}.playkit-dropdown .playkit-label-badge{position:relative}.playkit-dropdown .playkit-label-badge:after{top:-5px;right:-18px}.playkit-dropdown.playkit-active .playkit-dropdown-menu{display:block;opacity:1}.playkit-dropdown.playkit-active .playkit-dropdown-button .playkit-icon-arrow-down{transform:rotate(180deg)}.playkit-dropdown .playkit-dropdown-button{font-weight:bold;line-height:18px;color:#fff;cursor:pointer;padding-left:20px;display:flex}.playkit-dropdown .playkit-dropdown-button .playkit-icon{width:16px;height:16px;vertical-align:middle;margin-left:6px;transition:150ms transform;will-change:transform}.playkit-dropdown .playkit-dropdown-button>.playkit-label-badge.playkit-badge-icon{margin-right:13px}.playkit-dropdown-menu{display:block;opacity:1;position:absolute;background-color:#333;box-shadow:0 2px 8px 0 rgba(0,0,0,.3);border-radius:4px;padding:6px 0;z-index:5;animation:playkit-openDropmenu 100ms ease-out forwards;max-height:220px;overflow-y:auto;font-size:15px;text-align:left;font-weight:normal}.playkit-dropdown-menu.playkit-top{margin-bottom:10px;bottom:100%}.playkit-dropdown-menu.playkit-bottom{margin-top:10px;top:100%}.playkit-dropdown-menu.playkit-right{left:0}.playkit-dropdown-menu.playkit-left{right:0}.playkit-dropdown-menu.playkit-stick-bottom{bottom:-95px;margin:5px 0}.playkit-dropdown-menu .playkit-dropdown-menu-item{display:flex;justify-content:space-between;align-items:center;padding:2px 10px 2px 16px;white-space:nowrap;min-height:30px;cursor:pointer}.playkit-dropdown-menu .playkit-dropdown-menu-item:hover{color:#fff}.playkit-dropdown-menu .playkit-dropdown-menu-item.playkit-active .playkit-menu-icon-container{opacity:1}.playkit-dropdown-menu .playkit-dropdown-menu-item .playkit-icon-check-active{display:inline-block;margin-left:16px;vertical-align:middle;width:24px;height:24px}.playkit-dropdown-menu .playkit-dropdown-menu-item .playkit-menu-icon-container{opacity:0}.playkit-dropdown-menu .playkit-dropdown-menu-item>.playkit-label-badge.playkit-badge-icon{margin-right:5px}.playkit-player .playkit-control-button{width:32px;height:32px;background:rgba(0,0,0,0);display:inline-block;opacity:.8;border:none;padding:0;cursor:pointer}.playkit-player .playkit-control-button.playkit-button-badge{position:relative}.playkit-player .playkit-control-button.playkit-button-badge:after{top:-4px;right:-1px}.playkit-player .playkit-control-button i{width:32px;height:32px}.playkit-player .playkit-control-button.playkit-active{opacity:1}.playkit-player .playkit-control-button:disabled{opacity:.4;cursor:default}.playkit-player .playkit-control-button.playkit-control-button-rounded{width:36px;height:36px;padding:2px}.playkit-player:not(.playkit-touch) .playkit-control-button:not(:disabled):hover{opacity:1}.playkit-player:not(.playkit-touch) .playkit-control-button:not(:disabled).playkit-control-button-rounded:hover{background-color:rgba(0,0,0,.4);border-radius:18px}.playkit-player .playkit-control-button-container{display:inline-block;position:relative;vertical-align:top}.playkit-player.playkit-touch .playkit-player .playkit-control-button-container{position:static}.playkit-player.playkit-touch .playkit-control-button{position:relative}.playkit-player.playkit-state-idle .playkit-no-idle-control{display:none}.playkit-rotate{-moz-animation:playkit-spin .3s 1 linear;-o-animation:playkit-spin .3s 1 linear;-webkit-animation:playkit-spin .3s 1 linear;animation:playkit-spin .3s 1 linear}.playkit-reverse-rotate{-moz-animation:playkit-reverse-spin .3s 1 linear;-o-animation:playkit-reverse-spin .3s 1 linear;-webkit-animation:playkit-reverse-spin .3s 1 linear;animation:playkit-reverse-spin .3s 1 linear}@-webkit-keyframes playkit-spin{0%{-webkit-transform:rotate(359deg)}100%{-webkit-transform:rotate(0deg)}}@-moz-keyframes playkit-spin{0%{-moz-transform:rotate(359deg)}100%{-moz-transform:rotate(0deg)}}@-o-keyframes playkit-spin{0%{-o-transform:rotate(359deg)}100%{-o-transform:rotate(0deg)}}@-ms-keyframes playkit-spin{0%{-ms-transform:rotate(359deg)}100%{-ms-transform:rotate(0deg)}}@keyframes playkit-spin{0%{transform:rotate(359deg)}100%{transform:rotate(0deg)}}@-webkit-keyframes playkit-reverse-spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@-moz-keyframes playkit-reverse-spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@-o-keyframes playkit-reverse-spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@-ms-keyframes playkit-reverse-spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@keyframes playkit-reverse-spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.playkit-upper-bar-icon{width:36px;height:36px;border-radius:4px;padding:2px;cursor:pointer;color:var(--playkit-tone-1-color);display:flex;align-items:center;justify-content:center;opacity:.8;border:none;background-color:rgba(0,0,0,0);margin:0 4px}.playkit-upper-bar-icon:hover{background-color:var(--playkit-tone-4-color);opacity:1}.playkit-upper-bar-icon:active{background-color:var(--playkit-tone-6-color);opacity:1}.playkit-upper-bar-icon:disabled{opacity:.4}.playkit-player a{font-size:15px;line-height:18px;cursor:pointer;--primary-hover-color: hsl(var(--playkit-primary-hsl-hue) var(--playkit-hsl-saturation) calc(var(--playkit-hsl-lightness) - 10%))}.playkit-player a:hover{color:var(--primary-hover-color)}.playkit-player a:active{opacity:.7}.playkit-emptyUrl a{cursor:auto;pointer-events:none}.playkit-player{overflow:hidden;user-select:none;width:100%;height:100%;position:relative;outline:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:none;font-family:Lato,Helvetica Neue,Segoe UI,sans-serif}.playkit-player:-webkit-full-screen{width:100%;height:100%;max-width:none}.playkit-player *{box-sizing:border-box;outline:none}.playkit-player ::selection{background-color:rgba(0,0,0,.1)}.playkit-player video{width:100%;left:0}.playkit-player video::-webkit-media-controls-panel-container,.playkit-player video::-webkit-media-controls{display:none !important;-webkit-appearance:none}.playkit-player video::-webkit-media-controls-start-playback-button{display:none !important;-webkit-appearance:none}.playkit-player .playkit-player-gui{overflow:hidden;font-size:0}.playkit-player .playkit-player-gui label{margin-bottom:0}.playkit-player .overlay-portal{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.playkit-player.playkit-overlay-active .overlay-portal{z-index:11;pointer-events:initial}.playkit-player.playkit-nav *:focus{outline:1px solid var(--playkit-tab-focus-color) !important}.playkit-player [id^=\"playkit-ads-container\"]{transition:transform 100ms}.playkit-player [id^=\"playkit-ads-container\"][data-adtype=\"overlay\"]{z-index:1}.playkit-player:not(.playkit-ad-break).playkit-metadata-loaded.playkit-hover [id^=\"playkit-ads-container\"],.playkit-player:not(.playkit-ad-break).playkit-metadata-loaded.playkit-state-paused [id^=\"playkit-ads-container\"],.playkit-player:not(.playkit-ad-break).playkit-metadata-loaded.playkit-state-idle [id^=\"playkit-ads-container\"]{transform:translateY(-60px);-webkit-transform:translateY(-60px);-ms-transform:translateY(-60px)}.playkit-player.playkit-pre-playback,.playkit-player.playkit-casting,.playkit-player.playkit-metadata-loaded.playkit-hover,.playkit-player.playkit-state-paused,.playkit-player.playkit-state-idle,.playkit-player.playkit-ad-break,.playkit-player.playkit-menu-active,.playkit-player.playkit-overlay-active{cursor:auto}.playkit-player video::-webkit-media-text-track-container{max-height:none}.playkit-player.playkit-iOS video::-webkit-media-text-track-container{position:absolute;top:0;bottom:0;left:0;right:0}.playkit-player.playkit-state-paused video::-webkit-media-text-track-container,.playkit-player.playkit-state-idle video::-webkit-media-text-track-container,.playkit-player.playkit-hover video::-webkit-media-text-track-container{padding:0 0 50px 0}.playkit-player.playkit-state-paused.playkit-Safari video::-webkit-media-text-track-container,.playkit-player.playkit-state-paused.playkit-iOS video::-webkit-media-text-track-container,.playkit-player.playkit-state-idle.playkit-Safari video::-webkit-media-text-track-container,.playkit-player.playkit-state-idle.playkit-iOS video::-webkit-media-text-track-container,.playkit-player.playkit-hover.playkit-Safari video::-webkit-media-text-track-container,.playkit-player.playkit-hover.playkit-iOS video::-webkit-media-text-track-container{padding:initial;max-height:calc(100% - 50px)}.playkit-player.playkit-state-paused.playkit-fullscreen.playkit-iOS video::-webkit-media-text-track-display,.playkit-player.playkit-state-idle.playkit-fullscreen.playkit-iOS video::-webkit-media-text-track-display,.playkit-player.playkit-hover.playkit-fullscreen.playkit-iOS video::-webkit-media-text-track-display{transform:translateY(-50px);-webkit-transform:translateY(-50px);-ms-transform:translateY(-50px)}.playkit-player.playkit-fullscreen.playkit-iOS video::-webkit-media-text-track-container{max-height:none}.playkit-player.playkit-overlay-active .playkit-subtitles{visibility:hidden}.playkit-player .playkit-subtitles{top:50px;transform:translateY(0px);-webkit-transform:translateY(0px);-ms-transform:translateY(0px);transition:ease-in 100ms}.playkit-player:not(.playkit-overlay-active).playkit-state-paused .playkit-subtitles,.playkit-player:not(.playkit-overlay-active).playkit-state-idle .playkit-subtitles,.playkit-player:not(.playkit-overlay-active).playkit-hover .playkit-subtitles{transform:translateY(-50px);-webkit-transform:translateY(-50px);-ms-transform:translateY(-50px)}.playkit-player:not(.playkit-overlay-active).playkit-fullscreen.playkit-iOS .playkit-subtitles{transform:translateY(0px);-webkit-transform:translateY(0px);-ms-transform:translateY(0px)}.playkit-video-player{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--playkit-player-background-color);transition:all 500ms;transition-property:left,right,bottom,top,width,height;display:flex}.playkit-overlay-active .playkit-video-player{filter:blur(16px)}@keyframes playkit-openOverlay{from{opacity:0}to{opacity:1}}.playkit-overlay{position:absolute;width:100%;height:100%;display:none;opacity:0;animation:playkit-openOverlay 100ms ease-in-out forwards;z-index:11}.playkit-overlay.playkit-active{display:block;opacity:1}.playkit-overlay .playkit-overlay-contents{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:4;text-align:center;color:#fff;padding:60px 20px 30px 20px;overflow-y:auto}.playkit-overlay .playkit-title{font-size:24px;font-weight:bold;line-height:29px;margin-bottom:60px}.playkit-overlay .playkit-close-overlay{position:absolute;top:48px;right:48px;z-index:5;cursor:pointer}.playkit-overlay .playkit-close-overlay .playkit-icon-close{width:24px;height:24px}.playkit-overlay .playkit-overlay-screen{display:none}.playkit-overlay .playkit-overlay-screen.playkit-active{display:block}.playkit-player.playkit-size-md .playkit-overlay .playkit-overlay-contents{padding:36px 20px}.playkit-player.playkit-size-md .playkit-overlay .playkit-close-overlay{top:38px}.playkit-player.playkit-size-md .playkit-overlay .playkit-title{margin-bottom:24px}.playkit-player.playkit-size-sm .playkit-overlay .playkit-overlay-contents,.playkit-player.playkit-size-xs .playkit-overlay .playkit-overlay-contents{padding:16px 24px}.playkit-player.playkit-size-sm .playkit-overlay .playkit-close-overlay,.playkit-player.playkit-size-xs .playkit-overlay .playkit-close-overlay{top:15px;right:24px}.playkit-player.playkit-size-sm .playkit-overlay .playkit-title,.playkit-player.playkit-size-xs .playkit-overlay .playkit-title{font-size:20px;line-height:19px;margin-bottom:24px}@keyframes playkit-openSmartContainer{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes playkit-closeSmartContainer{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.playkit-player:not(.playkit-touch) .playkit-smart-container{background-color:#222;box-shadow:0 2px 8px 0 rgba(0,0,0,.3);border-radius:4px;position:absolute;right:0px;min-width:193px;font-size:15px;z-index:10;display:block;animation:playkit-openSmartContainer 100ms ease-out forwards}.playkit-player:not(.playkit-touch) .playkit-smart-container.playkit-leaving{animation:playkit-closeSmartContainer 100ms ease-out forwards}.playkit-player:not(.playkit-touch) .playkit-smart-container.playkit-top{bottom:100%;margin-bottom:6px}.playkit-player:not(.playkit-touch) .playkit-smart-container.playkit-top:before{display:block;content:\" \";position:absolute;bottom:-6px;left:0;width:100%;height:6px}.playkit-player:not(.playkit-touch) .playkit-smart-container.playkit-bottom{top:100%;margin-top:6px}.playkit-player:not(.playkit-touch) .playkit-smart-container.playkit-right{left:0px}.playkit-player:not(.playkit-touch) .playkit-smart-container.playkit-left{right:0px}.playkit-player:not(.playkit-touch) .playkit-smart-container .playkit-smart-container-item{margin:16px;color:rgba(244,244,244,.8);white-space:nowrap;display:flex;justify-content:space-between}.playkit-player:not(.playkit-touch) .playkit-smart-container .playkit-smart-container-item.playkit-select-menu-item label .playkit-label-icon{display:none}.playkit-player:not(.playkit-touch) .playkit-smart-container .playkit-smart-container-item.playkit-select-menu-item .playkit-dropdown,.playkit-player:not(.playkit-touch) .playkit-smart-container .playkit-smart-container-item.playkit-select-menu-item select{align-self:flex-end}.playkit-player:not(.playkit-touch) .playkit-smart-container .playkit-smart-container-item.playkit-select-menu-item .playkit-dropdown span:not(.playkit-badge-icon){overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.playkit-player:not(.playkit-touch) .playkit-smart-container .playkit-smart-container-item.playkit-select-menu-item select{text-align-last:right}.playkit-player.playkit-touch .playkit-smart-container-item,.playkit-player.playkit-size-sm .playkit-smart-container-item,.playkit-player.playkit-size-xs .playkit-smart-container-item{width:300px;max-width:100%;margin:16px auto;color:rgba(244,244,244,.8);white-space:nowrap;text-align:left;display:flex;justify-content:space-between}.playkit-player.playkit-touch .playkit-smart-container-item.playkit-select-menu-item label,.playkit-player.playkit-size-sm .playkit-smart-container-item.playkit-select-menu-item label,.playkit-player.playkit-size-xs .playkit-smart-container-item.playkit-select-menu-item label{font-size:16px;color:rgba(255,255,255,.8);margin-right:20px}.playkit-player.playkit-touch .playkit-smart-container-item.playkit-select-menu-item label .playkit-label-icon,.playkit-player.playkit-size-sm .playkit-smart-container-item.playkit-select-menu-item label .playkit-label-icon,.playkit-player.playkit-size-xs .playkit-smart-container-item.playkit-select-menu-item label .playkit-label-icon{width:24px;height:24px;display:inline-block;vertical-align:middle;margin-right:16px}.playkit-player.playkit-touch .playkit-smart-container-item.playkit-select-menu-item .playkit-dropdown,.playkit-player.playkit-touch .playkit-smart-container-item.playkit-select-menu-item select,.playkit-player.playkit-size-sm .playkit-smart-container-item.playkit-select-menu-item .playkit-dropdown,.playkit-player.playkit-size-sm .playkit-smart-container-item.playkit-select-menu-item select,.playkit-player.playkit-size-xs .playkit-smart-container-item.playkit-select-menu-item .playkit-dropdown,.playkit-player.playkit-size-xs .playkit-smart-container-item.playkit-select-menu-item select{align-self:flex-end}.playkit-player.playkit-touch .playkit-smart-container-item.playkit-select-menu-item select,.playkit-player.playkit-size-sm .playkit-smart-container-item.playkit-select-menu-item select,.playkit-player.playkit-size-xs .playkit-smart-container-item.playkit-select-menu-item select{text-align-last:right;min-width:1px;line-height:24px}.playkit-player.playkit-touch.playkit-Windows select option,.playkit-player.playkit-size-sm.playkit-Windows select option,.playkit-player.playkit-size-xs.playkit-Windows select option{color:#000;background-color:#fff}.playkit-overlay.playkit-cvaa-overlay .playkit-sample{border:2px solid rgba(255,255,255,.2);border-radius:4px;font-size:16px;font-weight:bold;line-height:36px;text-align:center;padding:0 31px;display:inline-block;margin:0 12px;position:relative}.playkit-overlay.playkit-cvaa-overlay .playkit-sample:not(.playkit-custom){cursor:pointer}.playkit-overlay.playkit-cvaa-overlay .playkit-sample.playkit-black-bg{background-color:#000}.playkit-overlay.playkit-cvaa-overlay .playkit-sample.playkit-yellow-text{color:#faff00}.playkit-overlay.playkit-cvaa-overlay .playkit-sample .playkit-active-tick{height:16px;width:16px;border-radius:8px;background-color:var(--playkit-primary-color);position:absolute;top:-5px;right:-5px}.playkit-overlay.playkit-cvaa-overlay .playkit-sample .playkit-active-tick .playkit-icon{vertical-align:top}.playkit-overlay.playkit-cvaa-overlay .playkit-sample span{font-size:16px !important;line-height:1;vertical-align:middle}.playkit-overlay.playkit-cvaa-overlay .playkit-button-save-cvaa{margin-top:50px;height:40px;width:400px;max-width:100%;border:2px solid rgba(255,255,255,.2);border-radius:4px;font-size:16px;font-weight:bold;line-height:38px;text-align:center;display:inline-block;color:#fff;text-decoration:none;cursor:pointer}.playkit-overlay.playkit-cvaa-overlay .playkit-custom-captions-applied{margin-top:50px}.playkit-overlay.playkit-cvaa-overlay .playkit-custom-captions-applied a{color:var(--playkit-primary-brighter-color)}.playkit-overlay.playkit-cvaa-overlay .playkit-custom-caption-form{width:300px;max-width:100%;margin:0 auto}.playkit-overlay.playkit-cvaa-overlay .playkit-custom-caption-form a{color:#fff;line-height:36px;text-decoration:none}.playkit-overlay.playkit-cvaa-overlay .playkit-custom-caption-form a:hover,.playkit-overlay.playkit-cvaa-overlay .playkit-custom-caption-form a:focus{text-decoration:underline}.playkit-overlay.playkit-cvaa-overlay .playkit-custom-caption-form .playkit-slider{float:right;width:100px;margin-top:5px}.playkit-overlay.playkit-cvaa-overlay .playkit-preview-container{width:100%;text-align:center;font-size:16px}.playkit-player.playkit-size-sm .playkit-overlay.playkit-cvaa-overlay .playkit-sample{width:30%;margin:2.33%;padding:0}.playkit-player.playkit-size-sm .playkit-overlay.playkit-cvaa-overlay .playkit-sample:first-child{margin-left:0}.playkit-player.playkit-size-sm .playkit-overlay.playkit-cvaa-overlay .playkit-sample:last-child{margin-right:0}.playkit-player.playkit-size-sm .playkit-overlay.playkit-cvaa-overlay .playkit-sample.playkit-custom{width:auto;padding:0 10px}.playkit-player.playkit-size-sm .playkit-overlay.playkit-cvaa-overlay .playkit-button-save-cvaa,.playkit-player.playkit-size-sm .playkit-overlay.playkit-cvaa-overlay .playkit-custom-captions-applied{margin-top:20px}.playkit-font-size,.playkit-font-color,.playkit-font-family,.playkit-font-style,.playkit-font-opacity,.playkit-background-color,.playkit-background-opacity{background:initial}.playkit-loading-backdrop{position:absolute;top:50%;left:50%;transition:100ms opacity;opacity:0;z-index:5}.playkit-loading-backdrop.playkit-show{opacity:1}.playkit-loading-backdrop.playkit-show .playkit-spinner-container{display:block}.playkit-loading-backdrop .playkit-spinner-container{display:none;position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}.playkit-control-button-container.playkit-control-play-pause .playkit-control-button{transition:400ms transform}.playkit-control-button-container.playkit-control-play-pause .playkit-control-button .playkit-icon-pause{transition:400ms opacity;opacity:0;display:none}.playkit-control-button-container.playkit-control-play-pause .playkit-control-button .playkit-icon-play{transition:400ms opacity;opacity:1;display:block}.playkit-control-button-container.playkit-control-play-pause .playkit-control-button.playkit-is-playing{transform:rotate(360deg)}.playkit-control-button-container.playkit-control-play-pause .playkit-control-button.playkit-is-playing .playkit-icon-pause{opacity:1;display:block}.playkit-control-button-container.playkit-control-play-pause .playkit-control-button.playkit-is-playing .playkit-icon-play{opacity:0;display:none}.playkit-control-button-container.playkit-control-volume,.playkit-control-button-container.playkit-volume-control{display:inline-block !important}.playkit-control-button-container.playkit-control-volume.playkit-hover .playkit-volume-control-bar,.playkit-control-button-container.playkit-volume-control.playkit-hover .playkit-volume-control-bar{display:block !important}.playkit-control-button-container.playkit-control-volume.playkit-is-muted .playkit-icon-volume-waves,.playkit-control-button-container.playkit-volume-control.playkit-is-muted .playkit-icon-volume-waves{opacity:0;-webkit-transform:translateX(-5px);-ms-transform:translateX(-5px);transform:translateX(-5px)}.playkit-control-button-container.playkit-control-volume.playkit-is-muted .playkit-icon-volume-mute,.playkit-control-button-container.playkit-volume-control.playkit-is-muted .playkit-icon-volume-mute{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.playkit-control-button-container.playkit-control-volume.playkit-dragging-active .playkit-volume-control-bar,.playkit-control-button-container.playkit-volume-control.playkit-dragging-active .playkit-volume-control-bar{display:block}.playkit-control-button-container.playkit-control-volume .playkit-icon-volume-waves,.playkit-control-button-container.playkit-volume-control .playkit-icon-volume-waves{-webkit-transform:translateX(0px);-ms-transform:translateX(0px);transform:translateX(0px)}.playkit-control-button-container.playkit-control-volume .playkit-icon-volume-mute,.playkit-control-button-container.playkit-volume-control .playkit-icon-volume-mute{opacity:1;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.playkit-control-button-container.playkit-control-volume .playkit-icon-volume-waves,.playkit-control-button-container.playkit-control-volume .playkit-icon-volume-mute,.playkit-control-button-container.playkit-volume-control .playkit-icon-volume-waves,.playkit-control-button-container.playkit-volume-control .playkit-icon-volume-mute{transition:300ms transform,300ms opacity}.playkit-control-button-container.playkit-control-volume i,.playkit-control-button-container.playkit-volume-control i{position:absolute;top:0;left:0}.playkit-volume-control-bar{position:absolute;z-index:2;bottom:38px;left:0;height:112px;width:34px;border-radius:4px;box-shadow:0 2px 8px 0 rgba(0,0,0,.3);background-color:#333;padding:6px;display:none}.playkit-volume-control-bar:before{position:absolute;width:34px;height:14px;bottom:-8px;left:0;content:\" \";display:block}.playkit-volume-control-bar .playkit-bar{background-color:#424242;height:100%;position:relative;cursor:pointer}.playkit-volume-control-bar .playkit-progress{position:absolute;bottom:0;left:0;width:100%;border-radius:0 0 2px 2px;background-color:var(--playkit-primary-color)}.playkit-player.playkit-smart-container-open .playkit-control-button-container.playkit-control-volume.playkit-hover .playkit-control-volume-bar,.playkit-player.playkit-smart-container-open .playkit-control-button-container.playkit-volume-control.playkit-hover .playkit-control-volume-bar{display:none !important}.playkit-size-ty .playkit-control-button-container.playkit-control-volume.playkit-hover .playkit-control-volume-bar,.playkit-size-ty .playkit-control-button-container.playkit-volume-control.playkit-hover .playkit-control-volume-bar{display:none !important}.playkit-touch .playkit-control-button-container.playkit-control-volume.playkit-hover .playkit-control-volume-bar,.playkit-touch .playkit-control-button-container.playkit-volume-control.playkit-hover .playkit-control-volume-bar{display:none !important}.playkit-player .playkit-control-button-container.playkit-control-fullscreen .playkit-control-button{transition:100ms transform;transform:scale(1)}.playkit-player .playkit-control-button-container.playkit-control-fullscreen .playkit-control-button .playkit-icon-minimize{display:none}.playkit-player .playkit-control-button-container.playkit-control-fullscreen .playkit-control-button.playkit-is-fullscreen .playkit-icon-maximize{display:none}.playkit-player .playkit-control-button-container.playkit-control-fullscreen .playkit-control-button.playkit-is-fullscreen .playkit-icon-minimize{display:block}.playkit-player:not(.playkit-touch) .playkit-control-button-container.playkit-control-fullscreen .playkit-control-button:hover{transform:scale(1.1)}.playkit-player .playkit-seek-bar{padding:12px 0 12px 0;cursor:pointer;position:relative}.playkit-player .playkit-seek-bar:hover .playkit-time-preview,.playkit-player .playkit-seek-bar:hover .playkit-frame-preview:not(.playkit-hide-frame-preview),.playkit-player .playkit-seek-bar.playkit-hover .playkit-time-preview,.playkit-player .playkit-seek-bar.playkit-hover .playkit-frame-preview:not(.playkit-hide-frame-preview){display:block}.playkit-player .playkit-seek-bar:hover .playkit-progress-bar .playkit-scrubber,.playkit-player .playkit-seek-bar.playkit-hover .playkit-progress-bar .playkit-scrubber{transform:scale(1)}.playkit-player .playkit-seek-bar:hover .playkit-progress-bar .playkit-virtual-progress,.playkit-player .playkit-seek-bar.playkit-hover .playkit-progress-bar .playkit-virtual-progress{display:block}.playkit-player .playkit-seek-bar.playkit-ad-break{cursor:initial}.playkit-player .playkit-seek-bar.playkit-ad-break .playkit-progress-bar .playkit-progress{background-color:var(--playkit-ads-color)}.playkit-player .playkit-seek-bar.playkit-live .playkit-progress-bar .playkit-progress{background-color:var(--playkit-live-color)}.playkit-player .playkit-seek-bar .playkit-progress-bar{width:100%;height:4px;background-color:rgba(255,255,255,.3);border-radius:2px;position:absolute;transition:height 200ms ease,transform 200ms ease}.playkit-player .playkit-seek-bar .playkit-progress-bar .playkit-progress{position:absolute;top:0;left:0;height:100%;border-radius:inherit;background-color:var(--playkit-primary-color)}.playkit-player .playkit-seek-bar .playkit-progress-bar .playkit-virtual-progress{display:none}.playkit-player .playkit-seek-bar .playkit-progress-bar .playkit-buffered,.playkit-player .playkit-seek-bar .playkit-progress-bar .playkit-virtual-progress{position:absolute;top:0;left:0;height:100%;border-radius:inherit}.playkit-player .playkit-seek-bar .playkit-progress-bar .playkit-buffered{background-color:rgba(255,255,255,.3)}.playkit-player .playkit-seek-bar .playkit-progress-bar .playkit-virtual-progress-indicator{width:1px;height:100%;background-color:var(--playkit-tone-1-color);float:right}.playkit-player .playkit-seek-bar .playkit-progress-bar .playkit-scrubber{position:absolute;cursor:pointer;display:block;top:-6px;right:-8px;border-radius:8px;height:16px;width:16px;background-color:var(--playkit-tone-1-color);box-shadow:0 0 31px 0 rgba(0,0,0,.3);transform:scale(0);transition:100ms transform;z-index:1;pointer-events:none}.playkit-player .playkit-seek-bar .playkit-progress-bar .playkit-scrubber:active{opacity:1;cursor:grabbing}.playkit-player .playkit-seek-bar .playkit-frame-preview{position:absolute;bottom:20px;left:0}.playkit-player .playkit-seek-bar .playkit-time-preview{position:absolute;bottom:26px;left:0;height:22px;min-width:48px;padding:0 3px;text-align:center;border-radius:3px;background-color:rgba(0,0,0,.7);font-size:13px;font-weight:bold;line-height:22px;color:#fff;z-index:1;pointer-events:none}.playkit-player .playkit-seek-bar .playkit-time-preview,.playkit-player .playkit-seek-bar .playkit-frame-preview{display:none}.playkit-player .playkit-seek-bar .playkit-non-sticky:hover{display:none}.playkit-player:not(.playkit-touch):not(.playkit-size-ty) .playkit-seek-bar:hover .playkit-progress-bar,.playkit-player:not(.playkit-touch):not(.playkit-size-ty) .playkit-seek-bar.playkit-hover .playkit-progress-bar{height:8px;border-radius:4px;transform:translateY(-2px)}.playkit-player:not(.playkit-touch):not(.playkit-size-ty) .playkit-seek-bar:hover .playkit-progress-bar .playkit-scrubber,.playkit-player:not(.playkit-touch):not(.playkit-size-ty) .playkit-seek-bar.playkit-hover .playkit-progress-bar .playkit-scrubber{top:-4px}.playkit-player.playkit-touch .playkit-seek-bar .playkit-progress-bar .playkit-virtual-progress,.playkit-player.playkit-touch .playkit-seek-bar .playkit-progress-bar .playkit-time-preview,.playkit-player.playkit-touch .playkit-seek-bar .playkit-progress-bar .playkit-frame-preview{display:none}.playkit-player.playkit-size-ty .playkit-seek-bar{padding:12px 0;cursor:pointer;position:relative;float:left;width:calc(100% - 45px);margin:1px 0}.playkit-player.playkit-size-ty .playkit-seek-bar .playkit-frame-preview{display:none}.playkit-player.playkit-size-ty .playkit-seek-bar .playkit-time-preview{bottom:16px}.playkit-frame-preview .playkit-frame-preview-img-container{border:2px solid rgba(255,255,255,.2);border-radius:4px}.playkit-frame-preview .playkit-frame-preview-img-container .playkit-frame-preview-img{background-size:auto 100%;width:100%;height:100%;position:relative}.playkit-player .playkit-time-display{display:inline-block;line-height:32px;vertical-align:top;font-size:14px;padding:0 23px;font-weight:bold}.playkit-touch .playkit-time-display{padding-left:0}.playkit-player.playkit-size-md .playkit-time-display{padding:0 12px}.playkit-player.playkit-size-xs .playkit-time-display,.playkit-player.playkit-size-sm .playkit-time-display{padding:0 12px 0 0}.playkit-player .playkit-video-playing-title{font-size:15px;font-weight:bold;line-height:18px;padding:6px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.playkit-player .playkit-bottom-bar{background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);color:#fff;visibility:hidden;height:auto;max-height:0;transition:100ms max-height ease-in-out,100ms visibility ease-in-out,0ms padding linear 100ms;width:100%;margin-top:auto;bottom:0;left:0;z-index:1;pointer-events:auto;position:relative;padding:0}.playkit-player .playkit-bottom-bar.playkit-hide{display:none}.playkit-player .playkit-bottom-bar .playkit-left-controls{float:left;text-align:left;pointer-events:none}.playkit-player .playkit-bottom-bar .playkit-left-controls .playkit-control-button-container:first-child{margin-left:0px}.playkit-player .playkit-bottom-bar .playkit-bottom-bar-area{position:relative;pointer-events:none}.playkit-player .playkit-bottom-bar .playkit-right-controls{float:right;text-align:left;pointer-events:none}.playkit-player .playkit-bottom-bar .playkit-right-controls .playkit-control-button-container:last-child{margin-right:0px}.playkit-player .playkit-bottom-bar .playkit-control-button-container{margin:0 6px}.playkit-player.playkit-size-ty .playkit-left-controls{display:none}.playkit-player.playkit-size-ty .playkit-control-button-container{display:none;margin:0}.playkit-player.playkit-size-xs .playkit-left-controls .playkit-control-button-container{display:none}.playkit-player.playkit-size-xs .playkit-control-button-container,.playkit-player.playkit-size-sm .playkit-control-button-container{margin:0 3px}.playkit-player.playkit-casting:not(.playkit-overlay-active) .playkit-bottom-bar,.playkit-player.playkit-metadata-loaded.playkit-hover:not(.playkit-overlay-active) .playkit-bottom-bar,.playkit-player.playkit-state-paused:not(.playkit-overlay-active) .playkit-bottom-bar,.playkit-player.playkit-state-idle:not(.playkit-overlay-active) .playkit-bottom-bar,.playkit-player.playkit-ad-break:not(.playkit-overlay-active) .playkit-bottom-bar,.playkit-player.playkit-menu-active:not(.playkit-overlay-active) .playkit-bottom-bar{visibility:visible;padding:0 16px 4px;max-height:60px;transition:100ms max-height ease-in-out,100ms visibility ease-in-out}.playkit-player.playkit-casting:not(.playkit-overlay-active) .playkit-bottom-bar.playkit-line-break,.playkit-player.playkit-metadata-loaded.playkit-hover:not(.playkit-overlay-active) .playkit-bottom-bar.playkit-line-break,.playkit-player.playkit-state-paused:not(.playkit-overlay-active) .playkit-bottom-bar.playkit-line-break,.playkit-player.playkit-state-idle:not(.playkit-overlay-active) .playkit-bottom-bar.playkit-line-break,.playkit-player.playkit-ad-break:not(.playkit-overlay-active) .playkit-bottom-bar.playkit-line-break,.playkit-player.playkit-menu-active:not(.playkit-overlay-active) .playkit-bottom-bar.playkit-line-break{max-height:92px}.playkit-player.playkit-size-sm .playkit-bottom-bar{padding:0 8px 4px}.playkit-player.playkit-size-sm .playkit-bottom-bar .playkit-time-display{padding-left:0}.playkit-player .playkit-bottom-bar .playkit-left-controls>*,.playkit-player .playkit-bottom-bar .playkit-right-controls>*,.playkit-player .playkit-bottom-bar .playkit-bottom-bar-area>*{pointer-events:auto}.playkit-player .playkit-top-bar{background:linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);color:#fff;visibility:hidden;position:relative;height:auto;min-height:60px;max-height:60px;margin-top:-60px;transition:100ms visibility ease-in-out,100ms margin-top ease-in-out,100ms min-height ease-in-out;width:100%;top:0;left:0;z-index:1;pointer-events:auto}.playkit-player .playkit-top-bar .playkit-top-bar-area{position:absolute;top:0;left:0;height:calc(100% - 28px);width:calc(100% - 32px);margin:14px 16px;pointer-events:none}.playkit-player .playkit-top-bar .playkit-top-bar-area:empty{margin:0;height:0;width:0}.playkit-player .playkit-top-bar.playkit-disabled{pointer-events:none}.playkit-player .playkit-top-bar.playkit-hide{display:none}.playkit-player .playkit-top-bar .playkit-left-controls{float:left;text-align:left;min-width:0;margin:14px 0 14px 16px;pointer-events:none}.playkit-player .playkit-top-bar .playkit-left-controls:empty{margin:0}.playkit-player .playkit-top-bar .playkit-right-controls{float:right;text-align:left;margin:14px 16px 14px 0;pointer-events:none}.playkit-player .playkit-top-bar .playkit-right-controls:empty{margin:0}.playkit-player .playkit-top-bar .playkit-right-controls .playkit-control-button-container{margin:0 6px}.playkit-player .playkit-top-bar .playkit-right-controls .playkit-control-button-container:last-child{margin-right:0}.playkit-player.playkit-casting:not(.playkit-overlay-active) .playkit-top-bar,.playkit-player.playkit-metadata-loaded.playkit-hover:not(.playkit-overlay-active) .playkit-top-bar,.playkit-player.playkit-state-paused:not(.playkit-overlay-active) .playkit-top-bar,.playkit-player.playkit-state-idle:not(.playkit-overlay-active) .playkit-top-bar,.playkit-player.playkit-ad-break:not(.playkit-overlay-active) .playkit-top-bar,.playkit-player.playkit-menu-active:not(.playkit-overlay-active) .playkit-top-bar{visibility:visible;margin-top:0;min-height:16px}.playkit-player .playkit-top-bar .playkit-left-controls>*,.playkit-player .playkit-top-bar .playkit-right-controls>*,.playkit-player .playkit-top-bar .playkit-top-bar-area>*{pointer-events:auto}.playkit-player.playkit-size-sm .playkit-top-bar .playkit-left-controls{margin:14px 0 14px 8px}.playkit-player.playkit-size-sm .playkit-top-bar .playkit-left-controls:empty{margin:0}.playkit-player.playkit-size-sm .playkit-top-bar .playkit-right-controls{margin:14px 8px 14px 0}.playkit-player.playkit-size-sm .playkit-top-bar .playkit-right-controls:empty{margin:0}.playkit-player.playkit-size-sm .playkit-top-bar .playkit-top-bar-area{width:calc(100% - 16px);margin:14px 8px}.playkit-player.playkit-size-sm .playkit-top-bar .playkit-top-bar-area:empty{margin:0}@keyframes playkit-overlayActionIconIn{0%{opacity:0;transform:scale(0)}10%{opacity:.1;transform:scale(0.1)}20%{opacity:.3;transform:scale(0.2)}30%{opacity:.5;transform:scale(0.3)}40%{opacity:.7;transform:scale(0.4)}50%{opacity:.9;transform:scale(0.5)}60%{opacity:.9;transform:scale(0.5)}70%{opacity:.9;transform:scale(0.5)}75%{opacity:.9;transform:scale(0.5)}80%{opacity:1;transform:scale(0.5)}85%{opacity:1;transform:scale(0.5)}90%{opacity:1;transform:scale(0.5)}93%{opacity:.7;transform:scale(0.5)}95%{opacity:.5;transform:scale(0.5)}98%{opacity:.2;transform:scale(0.5)}100%{opacity:0;transform:scale(0.5)}}.playkit-overlay-action .playkit-icon{width:144px;height:144px;position:absolute;top:50%;left:50%;margin:-72px 0 0 -72px;opacity:0}.playkit-player:not(.playkit-touch):not(.playkit-size-sm) .playkit-overlay-action.playkit-in .playkit-icon{animation:playkit-overlayActionIconIn 300ms linear forwards}.playkit-pre-playback-play-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.playkit-pre-playback-play-overlay .playkit-pre-playback-play-button{z-index:1;position:absolute;top:50%;left:50%;height:108px;width:108px;border:2px solid rgba(255,255,255,.2);background-color:rgba(0,0,0,.5);transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);border-radius:54px;padding:20px;cursor:pointer}.playkit-pre-playback-play-overlay .playkit-pre-playback-play-button:hover{border:2px solid rgba(255,255,255,.4)}.playkit-pre-playback-play-overlay .playkit-pre-playback-play-button:active{opacity:.7;transform:scale(1) translate(-50%, -50%)}.playkit-pre-playback .playkit-bottom-bar,.playkit-pre-playback .playkit-top-bar{opacity:0;display:none}.playkit-player.playkit-size-ty .playkit-pre-playback-play-button{width:75px;height:75px;padding:12px}.playkit-player.playkit-size-xs .playkit-pre-playback-play-button{width:85px;height:85px;padding:15px}.playkit-player .playkit-btn-skip-ad{font-weight:lighter;position:absolute;bottom:60px;right:16px;line-height:36px}.playkit-player .playkit-skip-ad{color:#fff;font-size:20px;font-weight:lighter;line-height:24px;text-shadow:0 0 6px rgba(0,0,0,.6);position:absolute;bottom:66px;right:16px}.playkit-row{display:block}.playkit-row:after{content:\"\";clear:both;display:block}.playkit-d-inline-block{display:inline-block}.playkit-mobile-hidden-select{display:block;opacity:0;position:absolute;top:0;left:0px;width:100%;height:100%}.playkit-font-size-base,.playkit-ad-notice{font-size:15px}.playkit-ad-notice{pointer-events:none}.playkit-live-tag{display:inline-block;background-color:var(--playkit-live-color);color:#fff;border-radius:4px;padding:3px 4px;margin:5px 10px;text-transform:uppercase;font-size:15px;cursor:default}.playkit-live-tag.playkit-non-live-playhead{background-color:#666;cursor:pointer}.playkit-player.playkit-size-sm .playkit-live-tag{margin-left:0}.playkit-interactive-area .playkit-unmute-button-container{top:0;left:0}.playkit-unmute-button-container{display:inline-block;position:absolute;top:16px;left:16px;z-index:15}.playkit-unmute-button-container a{color:#fff}.playkit-unmute-button-container.playkit-show-icon-only .playkit-btn.playkit-unmute-button{max-width:64px}.playkit-unmute-button-container.playkit-show-icon-only .playkit-btn.playkit-unmute-button span{transform:translateX(10px);opacity:0}.playkit-btn.playkit-unmute-button{font-size:15px;max-width:200px;transition:max-width 200ms;padding:0 16px;white-space:nowrap}.playkit-btn.playkit-unmute-button span{transform:translateX(0px);opacity:1;transition:transform 100ms,opacity 100ms;display:inline-block;color:#fff}.playkit-btn.playkit-unmute-button.playkit-has-top-bar{transition:100ms transform}.playkit-unmute-icon-container{width:32px;height:32px;display:inline-block;vertical-align:top;position:relative;margin-right:3px}.playkit-unmute-icon-container i{position:absolute;top:0;left:0}.playkit-player.playkit-hover .playkit-unmute-button-container.playkit-has-top-bar,.playkit-player.playkit-state-paused .playkit-unmute-button-container.playkit-has-top-bar,.playkit-player.playkit-state-idle .playkit-unmute-button-container.playkit-has-top-bar,.playkit-player.playkit-menu-active .playkit-unmute-button-container.playkit-has-top-bar{transform:translateY(32px)}.playkit-overlay.playkit-error-overlay{background-color:var(--playkit-tone-7-color);font-size:0em}.playkit-overlay-contents .playkit-error-overlay{padding-top:20px}.playkit-error-overlay{position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column;height:100%}.playkit-error-overlay .playkit-copy-url-row{display:flex;margin-bottom:10px}.playkit-error-overlay .playkit-svg-container{flex:4;display:flex;justify-content:space-around;flex-flow:column}.playkit-error-overlay .playkit-headline{color:var(--playkit-tone-1-color);font-size:18px;margin:10px 0 14px 0;flex:1}.playkit-error-overlay .playkit-error-session{font-size:14px;color:var(--playkit-tone-2-color);margin:auto;user-select:text;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto}.playkit-error-overlay .playkit-control-button-container{flex:5}.playkit-error-overlay .playkit-retry-btn{height:36px;width:auto;min-width:120px;padding:0 8px;border:2px solid var(--playkit-tone-7-color);border-radius:18px;background-color:#000;color:var(--playkit-tone-1-color);font-size:15px;font-weight:bold;line-height:32px;cursor:pointer}.playkit-error-overlay .playkit-error-text{height:0px;visibility:hidden}.playkit-link-options-container{width:auto}.playkit-link-options-container .playkit-copy-url-row .playkit-input-copy-url{margin:0}.playkit-link-options-container .playkit-copy-url-row .playkit-btn-copy-url{margin-left:8px;height:32px;width:32px}.playkit-link-options-container .playkit-copy-url-row .playkit-btn-copy-url .playkit-icon{height:24px;width:24px;margin-top:-3px}.playkit-slider{height:8px;border-radius:4px;background-color:rgba(255,255,255,.2)}.playkit-slider .playkit-progress{background-color:var(--playkit-primary-color);height:8px;border-radius:4px;position:relative}.playkit-slider .playkit-progress .playkit-handle{height:12px;width:12px;border-radius:5px;background-color:#fff;box-shadow:0 2px 8px 0 rgba(0,0,0,.3);position:absolute;right:0;top:0px;transform:translate3d(6px, -2px, 0);cursor:pointer}.playkit-player .playkit-learn-more{font-weight:lighter}.playkit-player .playkit-control-button-container.playkit-control-fullscreen .playkit-control-button{transition:100ms transform;transform:scale(1)}.playkit-player .playkit-control-button-container.playkit-control-fullscreen .playkit-control-button .playkit-icon-minimize{display:none}.playkit-player .playkit-control-button-container.playkit-control-fullscreen .playkit-control-button.playkit-is-fullscreen .playkit-icon-maximize{display:none}.playkit-player .playkit-control-button-container.playkit-control-fullscreen .playkit-control-button.playkit-is-fullscreen .playkit-icon-minimize{display:block}.playkit-player:not(.playkit-touch) .playkit-control-button-container.playkit-control-fullscreen .playkit-control-button:hover{transform:scale(1.1)}.playkit-player .playkit-watermark{position:absolute;transition:visibility 0s 1s,opacity 1s linear,transform ease-out 100ms}.playkit-player .playkit-watermark.playkit-hide-watermark{visibility:hidden;opacity:0}.playkit-player .playkit-watermark.playkit-top{top:0}.playkit-player .playkit-watermark.playkit-bottom{bottom:0}.playkit-player .playkit-watermark.playkit-right{right:0}.playkit-player .playkit-watermark.playkit-left{left:0}.playkit-control-button-container.playkit-control-vr-stereo .playkit-control-button .playkit-icon-vr-stereo-full{display:none}.playkit-control-button-container.playkit-control-vr-stereo .playkit-control-button.playkit-vr-stereo-mode .playkit-icon-vr-stereo{display:none}.playkit-control-button-container.playkit-control-vr-stereo .playkit-control-button.playkit-vr-stereo-mode .playkit-icon-vr-stereo-full{display:block}.playkit-control-button-container.playkit-control-closed-captions .playkit-control-button .playkit-icon-closed-captions-on{display:none}.playkit-control-button-container.playkit-control-closed-captions .playkit-control-button.playkit-cc-on .playkit-icon-closed-captions-off{display:none}.playkit-control-button-container.playkit-control-closed-captions .playkit-control-button.playkit-cc-on .playkit-icon-closed-captions-on{display:block}.playkit-player .playkit-cast-button{display:block;width:28px;height:30px;background-color:rgba(255,255,255,0);border:none;cursor:pointer;--connected-color: var(--playkit-tone-2-color);--disconnected-color: var(--playkit-tone-2-color)}.playkit-player .playkit-cast-button:hover{--connected-color: #ffffffff;--disconnected-color: #ffffffff}.playkit-player .playkit-cast-button.playkit-cast-button-active{--connected-color: rgba(1, 172, 205, 0.8)}.playkit-player .playkit-cast-button.playkit-cast-button-active:hover{--connected-color: var(--playkit-primary-color)}.playkit-player .playkit-cast-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.playkit-player .playkit-cast-overlay .playkit-cast-poster{all:inherit;background-size:contain;background:#000 no-repeat center center}.playkit-player .playkit-cast-overlay .playkit-cast-poster.playkit-has-poster{background-color:#000}.playkit-player .playkit-cast-overlay .playkit-cast-black-cover{all:inherit;background:linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0) 100%)}.playkit-player .playkit-cast-box .playkit-cast-icon{position:absolute;bottom:0;left:46px;height:128px}.playkit-player .playkit-cast-box .playkit-cast-icon .playkit-icon{width:30px;height:22px;color:rgba(255,255,255,.6);opacity:.6}.playkit-player .playkit-cast-box .playkit-cast-connecting-spinner{height:21px;width:21px;-webkit-animation:playkit-spin .9s infinite linear;border:3px solid rgba(255,255,255,.4);border-top-color:rgba(255,255,255,.8);border-radius:100%}.playkit-player .playkit-cast-box .playkit-cast-text{position:absolute;bottom:0;left:89px;height:128px;font-weight:lighter}.playkit-player .playkit-cast-box .playkit-cast-text .playkit-cast-status{display:inline-block;margin-top:3px;font-size:16px;color:rgba(255,255,255,.6);float:left;font-weight:inherit}.playkit-player .playkit-cast-box .playkit-cast-text .playkit-cast-device{left:0;display:inline-block;font-weight:inherit;font-size:25px;color:#fff;line-height:40px}@keyframes playkit-castOnTVAnimation{0%{opacity:0;transform:rotateY(70deg)}33%{opacity:.3;transform:rotateY(50deg)}66%{opacity:.6;transform:rotateY(30deg)}100%{opacity:1;transform:rotateY(0)}}.playkit-player .playkit-cast-on-tv-button-container{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.playkit-player .playkit-cast-on-tv-button-container span{font-weight:lighter;color:#fff}.playkit-player .playkit-cast-on-tv-button-container.playkit-show-cast-on-tv{animation:playkit-castOnTVAnimation 300ms linear forwards}.playkit-player .playkit-btn.playkit-cast-on-tv-button{font-size:15px;max-width:200px;transition:max-width 200ms;padding:0 16px;white-space:nowrap;position:absolute;bottom:0;transform:translate(-50%, -50%);left:50%}.playkit-player .playkit-btn.playkit-cast-on-tv-button span{transform:translateX(0px);opacity:1;transition:transform 100ms,opacity 100ms;display:inline-block}.playkit-player .playkit-cast-on-tv-icon-container{width:32px;height:32px;display:inline-block;vertical-align:top;position:relative;margin-right:3px}.playkit-player .playkit-cast-on-tv-icon-container i{position:absolute;top:0;left:0}.playkit-control-button-container.playkit-control-playlist-button .playkit-poster-preview{position:absolute;bottom:35px;width:280px;height:72px;display:flex;border-radius:4px;box-shadow:0px 0px 0px 1px rgba(0,0,0,.2),0px 8px 60px -16px rgba(0,0,0,.2);opacity:0;transition:400ms opacity;pointer-events:none}.playkit-control-button-container.playkit-control-playlist-button .playkit-poster-preview:hover{opacity:0 !important}.playkit-control-button-container.playkit-control-playlist-button .playkit-poster-preview .playkit-poster-preview-img{width:128px;height:inherit;border-radius:4px 0 0 4px;background-size:contain;background-repeat:round}.playkit-control-button-container.playkit-control-playlist-button .playkit-poster-preview .playkit-poster-preview-text{width:152px;height:inherit;padding:8px;background-color:rgba(0,0,0,.7);border-radius:0 4px 4px 0}.playkit-control-button-container.playkit-control-playlist-button .playkit-poster-preview .playkit-poster-preview-text .playkit-poster-preview-text-title{font-size:14px;font-weight:400;margin-bottom:3px;opacity:.7}.playkit-control-button-container.playkit-control-playlist-button .playkit-poster-preview .playkit-poster-preview-text .playkit-poster-preview-text-name{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.playkit-control-button-container.playkit-control-playlist-button:hover .playkit-poster-preview{opacity:1}.playkit-icon-picture-in-picture-stop{display:none}.playkit-is-in-picture-in-picture .playkit-icon-picture-in-picture-start{display:none}.playkit-is-in-picture-in-picture .playkit-icon-picture-in-picture-stop{display:block}.playkit-player-gui>.playkit-playback-controls,.playkit-center-playback-controls{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);white-space:nowrap;z-index:1}.playkit-bottom-bar .playkit-playback-controls{display:inline}.playkit-player.playkit-size-sm.playkit-state-idle .playkit-control-playlist-button,.playkit-player.playkit-size-xs.playkit-state-idle .playkit-control-playlist-button,.playkit-player.playkit-touch.playkit-state-idle .playkit-control-playlist-button{display:none}.playkit-player.playkit-size-sm:not(.playkit-state-idle) .playkit-bottom-bar .playkit-playback-controls,.playkit-player.playkit-size-xs:not(.playkit-state-idle) .playkit-bottom-bar .playkit-playback-controls,.playkit-player.playkit-touch:not(.playkit-state-idle) .playkit-bottom-bar .playkit-playback-controls{display:none}.playkit-player.playkit-size-sm:not(.playkit-state-idle).playkit-hover .playkit-player-gui>.playkit-playback-controls,.playkit-player.playkit-size-sm:not(.playkit-state-idle).playkit-hover .playkit-center-playback-controls,.playkit-player.playkit-size-xs:not(.playkit-state-idle).playkit-hover .playkit-player-gui>.playkit-playback-controls,.playkit-player.playkit-size-xs:not(.playkit-state-idle).playkit-hover .playkit-center-playback-controls,.playkit-player.playkit-touch:not(.playkit-state-idle).playkit-hover .playkit-player-gui>.playkit-playback-controls,.playkit-player.playkit-touch:not(.playkit-state-idle).playkit-hover .playkit-center-playback-controls{display:block}.playkit-player.playkit-size-sm:not(.playkit-state-idle).playkit-hover .playkit-player-gui>.playkit-playback-controls .playkit-control-button,.playkit-player.playkit-size-sm:not(.playkit-state-idle).playkit-hover .playkit-center-playback-controls .playkit-control-button,.playkit-player.playkit-size-xs:not(.playkit-state-idle).playkit-hover .playkit-player-gui>.playkit-playback-controls .playkit-control-button,.playkit-player.playkit-size-xs:not(.playkit-state-idle).playkit-hover .playkit-center-playback-controls .playkit-control-button,.playkit-player.playkit-touch:not(.playkit-state-idle).playkit-hover .playkit-player-gui>.playkit-playback-controls .playkit-control-button,.playkit-player.playkit-touch:not(.playkit-state-idle).playkit-hover .playkit-center-playback-controls .playkit-control-button{width:auto;height:auto;padding:0 16px;-webkit-filter:drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.5));filter:drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.5))}.playkit-player.playkit-size-sm:not(.playkit-state-idle).playkit-hover .playkit-player-gui>.playkit-playback-controls .playkit-icon,.playkit-player.playkit-size-sm:not(.playkit-state-idle).playkit-hover .playkit-center-playback-controls .playkit-icon,.playkit-player.playkit-size-xs:not(.playkit-state-idle).playkit-hover .playkit-player-gui>.playkit-playback-controls .playkit-icon,.playkit-player.playkit-size-xs:not(.playkit-state-idle).playkit-hover .playkit-center-playback-controls .playkit-icon,.playkit-player.playkit-touch:not(.playkit-state-idle).playkit-hover .playkit-player-gui>.playkit-playback-controls .playkit-icon,.playkit-player.playkit-touch:not(.playkit-state-idle).playkit-hover .playkit-center-playback-controls .playkit-icon{width:64px;height:64px}.playkit-player.playkit-overlay-active .playkit-gui-area .playkit-playback-controls{opacity:0;visibility:hidden}@keyframes playkit-slideIn{0%{right:-160px}100%{right:0}}.playkit-player .playkit-playlist-countdown{display:flex;height:72px;position:absolute;right:0;bottom:0;border-radius:4px;transition:opacity 400ms,bottom 300ms;cursor:pointer;box-shadow:0px 0px 0px 1px rgba(0,0,0,.2),0px 8px 60px -16px rgba(0,0,0,.2)}.playkit-player .playkit-playlist-countdown.playkit-slideIn{right:-160px;animation:playkit-slideIn 500ms 500ms forwards}.playkit-player .playkit-playlist-countdown.playkit-hidden{pointer-events:none;opacity:0}.playkit-player .playkit-playlist-countdown.playkit-hidden .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background{width:0}.playkit-player .playkit-playlist-countdown.playkit-hidden .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content{opacity:0}.playkit-player .playkit-playlist-countdown.playkit-canceled{bottom:-50px;opacity:0}.playkit-player .playkit-playlist-countdown:hover .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background{background-color:#000}.playkit-player .playkit-playlist-countdown .playkit-playlist-countdown-poster{width:128px;height:inherit;border-radius:4px 0 0 4px;background-size:contain;background-repeat:round}.playkit-player .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder{width:152px;height:inherit}.playkit-player .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background{width:inherit;border-radius:0 4px 3px 0;background-color:rgba(0,0,0,.7);height:inherit;transition:width 500ms 1000ms}.playkit-player .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content{width:inherit;transition:opacity 300ms 1200ms}.playkit-player .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text{width:100%;padding:10px;font-size:14px;font-weight:400;text-align:left;color:#fff;float:left;line-height:initial}.playkit-player .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text .playkit-playlist-countdown-text-title{margin-bottom:12px;opacity:.7}.playkit-player .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text .playkit-playlist-countdown-text-title .playkit-playlist-countdown-time-left{display:inline;margin-left:4px}.playkit-player .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text .playkit-playlist-countdown-text-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.playkit-player .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-cancel{position:absolute;top:5px;right:5px;width:24px;height:24px}.playkit-player .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-cancel *{width:inherit;height:inherit}.playkit-player.playkit-size-md .playkit-playlist-countdown{height:54px}.playkit-player.playkit-size-md .playkit-playlist-countdown .playkit-playlist-countdown-poster{width:96px}.playkit-player.playkit-size-md .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder{width:152px}.playkit-player.playkit-size-md .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text{padding:8px}.playkit-player.playkit-size-md .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text .playkit-playlist-countdown-text-title{margin-bottom:4px}.playkit-player.playkit-size-md .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-cancel{top:3px;right:3px}.playkit-player.playkit-size-sm .playkit-playlist-countdown,.playkit-player.playkit-size-xs .playkit-playlist-countdown,.playkit-player.playkit-size-ty .playkit-playlist-countdown{z-index:1;height:36px;margin:8px}.playkit-player.playkit-size-sm .playkit-playlist-countdown .playkit-playlist-countdown-poster,.playkit-player.playkit-size-xs .playkit-playlist-countdown .playkit-playlist-countdown-poster,.playkit-player.playkit-size-ty .playkit-playlist-countdown .playkit-playlist-countdown-poster{display:none}.playkit-player.playkit-size-sm .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder,.playkit-player.playkit-size-xs .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder,.playkit-player.playkit-size-ty .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder{width:108px}.playkit-player.playkit-size-sm .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background,.playkit-player.playkit-size-xs .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background,.playkit-player.playkit-size-ty .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background{transition:width 500ms;border-radius:2px}.playkit-player.playkit-size-sm .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text,.playkit-player.playkit-size-xs .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text,.playkit-player.playkit-size-ty .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text{width:90%;padding:3px 0 0 4px}.playkit-player.playkit-size-sm .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text .playkit-playlist-countdown-text-title,.playkit-player.playkit-size-xs .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text .playkit-playlist-countdown-text-title,.playkit-player.playkit-size-ty .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text .playkit-playlist-countdown-text-title{font-size:12px;margin-bottom:0}.playkit-player.playkit-size-sm .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text .playkit-playlist-countdown-text-name,.playkit-player.playkit-size-xs .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text .playkit-playlist-countdown-text-name,.playkit-player.playkit-size-ty .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-text .playkit-playlist-countdown-text-name{font-size:12px;font-weight:400}.playkit-player.playkit-size-sm .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-cancel,.playkit-player.playkit-size-xs .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-cancel,.playkit-player.playkit-size-ty .playkit-playlist-countdown .playkit-playlist-countdown-content-placeholder .playkit-playlist-countdown-content-background .playkit-playlist-countdown-content .playkit-playlist-countdown-cancel{top:0;right:0}.playkit-player.playkit-state-idle .playkit-playlist-next-screen-overlay{position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.5)}.playkit-player.playkit-state-idle .playkit-playlist-next-screen-overlay .playkit-playlist-next-screen-content{position:relative;top:50%;transform:translateY(-50%)}.playkit-player.playkit-state-idle .playkit-playlist-next-screen-overlay .playkit-playlist-next-screen-content .playkit-playlist-next-screen-text{position:absolute;width:100%;top:-90px;font-size:15px;color:#fff;padding:4px 8px 12px 8px;text-align:center}.playkit-player.playkit-state-idle .playkit-playlist-next-screen-overlay .playkit-playlist-next-screen-content .playkit-playlist-next-screen-text .playkit-playlist-next-screen-text-title{padding:4px;font-weight:100}.playkit-player.playkit-state-idle .playkit-playlist-next-screen-overlay .playkit-playlist-next-screen-content .playkit-playlist-next-screen-text .playkit-playlist-next-screen-text-name{padding:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.playkit-player.playkit-state-idle .playkit-playlist-next-screen-overlay .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder{position:relative;margin:auto;width:384px}.playkit-player.playkit-state-idle .playkit-playlist-next-screen-overlay .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio{width:100%;padding-top:56%}.playkit-player.playkit-state-idle .playkit-playlist-next-screen-overlay .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster{position:absolute;top:0;left:0;bottom:0;right:0;border:2px solid rgba(255,255,255,.2);border-radius:4px;cursor:pointer}.playkit-player.playkit-state-idle .playkit-playlist-next-screen-overlay .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster .playkit-playlist-next-screen-poster-img{height:100%;border-radius:3px;background-size:contain;background-repeat:round}.playkit-player.playkit-state-idle .playkit-playlist-next-screen-overlay .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster .playkit-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:64px;height:64px}.playkit-player.playkit-state-idle.playkit-size-lg .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder{width:37.5%}.playkit-player.playkit-state-idle.playkit-size-md .playkit-playlist-next-screen-content .playkit-playlist-next-screen-text{top:-58px}.playkit-player.playkit-state-idle.playkit-size-md .playkit-playlist-next-screen-content .playkit-playlist-next-screen-text .playkit-playlist-next-screen-text-name{padding:0}.playkit-player.playkit-state-idle.playkit-size-md .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder{width:42%}.playkit-player.playkit-state-idle.playkit-size-sm .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder,.playkit-player.playkit-state-idle.playkit-size-xs .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder,.playkit-player.playkit-state-idle.playkit-size-ty .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder{width:32px}.playkit-player.playkit-state-idle.playkit-size-sm .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster,.playkit-player.playkit-state-idle.playkit-size-xs .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster,.playkit-player.playkit-state-idle.playkit-size-ty .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster{border:0}.playkit-player.playkit-state-idle.playkit-size-sm .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster .playkit-playlist-next-screen-poster-img,.playkit-player.playkit-state-idle.playkit-size-xs .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster .playkit-playlist-next-screen-poster-img,.playkit-player.playkit-state-idle.playkit-size-ty .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster .playkit-playlist-next-screen-poster-img{display:none}.playkit-player.playkit-state-idle.playkit-size-sm .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster .playkit-icon,.playkit-player.playkit-state-idle.playkit-size-xs .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster .playkit-icon,.playkit-player.playkit-state-idle.playkit-size-ty .playkit-playlist-next-screen-content .playkit-playlist-next-screen-poster-placeholder .playkit-playlist-next-screen-poster-aspect-ratio .playkit-playlist-next-screen-poster .playkit-icon{width:32px;height:32px}.playkit-picture-in-picture-overlay{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.playkit-picture-in-picture-overlay .playkit-picture-in-picture-poster{all:inherit;background-size:contain;background:#000 no-repeat center center}.playkit-picture-in-picture-overlay .playkit-picture-in-picture-poster.playkit-has-poster{background-color:#000}.playkit-picture-in-picture-overlay .playkit-picture-in-picture-poster .playkit-dark-layer{background-color:rgba(0,0,0,.4);position:absolute;top:0;left:0;width:100%;height:100%}.playkit-picture-in-picture-overlay .playkit-picture-in-picture-control{position:absolute;display:flex;flex-direction:column;height:100%}.playkit-picture-in-picture-overlay .playkit-picture-in-picture-control::after{content:\"\";flex:3}.playkit-picture-in-picture-overlay .playkit-picture-in-picture-control::before{content:\"\";flex:1}.playkit-picture-in-picture-overlay .playkit-picture-in-picture-text{color:var(--playkit-tone-1-color);font-size:18px;white-space:nowrap;overflow:hidden}.playkit-picture-in-picture-overlay .playkit-picture-in-picture-button{height:36px;width:120px;border:2px solid var(--playkit-tone-6-color);border-radius:18px;background-color:var(--playkit-tone-7-color);color:var(--playkit-tone-1-color);font-size:15px;font-weight:bold;line-height:30px;cursor:pointer;margin-top:20px;align-self:center}.playkit-picture-in-picture-overlay .playkit-picture-in-picture-button:hover{background-color:var(--playkit-tone-6-color)}.playkit-copy-url-row .playkit-input-copy-url{margin:0}.playkit-copy-url-row .playkit-btn-copy-url{margin:0 8px}.playkit-copy-url-row .playkit-btn-copy-url .playkit-icon{height:24px;width:24px;margin-top:-3px;display:none}.playkit-copy-url-row .playkit-btn-copy-url .playkit-icon-copy{display:block}.playkit-copy-url-row .playkit-btn-copy-url.playkit-copied .playkit-icon-copy{display:none}.playkit-copy-url-row .playkit-btn-copy-url.playkit-copied .playkit-icon-check{display:block}.playkit-IE.playkit-player .playkit-tooltip .playkit-tooltip-label{white-space:nowrap}.playkit-player .playkit-tooltip{position:relative;display:inline-block;height:100%;width:100%}.playkit-player .playkit-tooltip .playkit-tooltip-label{visibility:hidden;background-color:var(--playkit-tooltip-background-color);color:var(--playkit-tooltip-color);text-align:center;padding:4px 6px;border-radius:4px;position:absolute;line-height:normal;font-weight:bold;font-size:13px;opacity:0;transition:opacity 1s;width:max-content;display:table}.playkit-player .playkit-tooltip .playkit-tooltip-label:after{content:\"\";position:absolute;border-width:5px;border-style:solid;border-radius:3px;color:var(--playkit-tooltip-background-color);z-index:-1}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-top{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-top:after{bottom:-4px;left:50%;transform:translate(-50%) rotate(45deg) skew(5deg, 5deg)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-top-left{bottom:calc(100% + 10px);left:50%;transform:translate(-100%);margin-left:16px}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-top-left:after{bottom:-4px;right:0;margin-right:11px;transform:rotate(45deg) skew(5deg, 5deg)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-top-right{bottom:calc(100% + 10px);left:50%;transform:translate(-16px)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-top-right:after{bottom:-4px;left:0;margin-left:11px;transform:rotate(45deg) skew(5deg, 5deg)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-bottom{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-bottom:after{top:-4px;left:50%;margin-left:-5px;transform:rotate(45deg) skew(5deg, 5deg)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-bottom-right{top:calc(100% + 10px);left:50%;transform:translate(-16px)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-bottom-right:after{top:-4px;left:0;margin-left:11px;transform:rotate(45deg) skew(5deg, 5deg)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-bottom-left{top:calc(100% + 10px);transform:translate(-100%);left:50%;margin-left:16px}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-bottom-left:after{top:-4px;right:0;margin-right:11px;transform:rotate(45deg) skew(5deg, 5deg)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-left{top:50%;right:calc(100% + 10px);transform:translate(0, -50%)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-left:after{top:50%;left:100%;margin-left:-6px;margin-top:-5px;transform:rotate(135deg) skew(10deg, 10deg)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-right{top:50%;left:calc(100% + 10px);transform:translate(0, -50%)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-tooltip-right:after{top:50%;right:100%;margin-top:-5px;margin-right:-6px;transform:rotate(135deg) skew(10deg, 10deg)}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-show{visibility:visible;opacity:1}.playkit-player .playkit-tooltip .playkit-tooltip-label.playkit-hide{transition:opacity .15s ease-in-out}.playkit-side-panel{position:absolute;overflow:hidden;transition:all 500ms;transition-property:left,right,bottom,top,opacity;z-index:1}.playkit-vertical-side-panel{height:100%}.playkit-horizontal-side-panel{height:0;left:0;right:0}.playkit-side-panel-content{width:100%;height:100%}.playkit-player.playkit-overlay-active .playkit-interactive-area{filter:blur(16px)}.playkit-interactive-area{pointer-events:none;position:relative;top:0;margin:16px;transition:margin 100ms ease-in-out;flex:1}.playkit-player.playkit-size-sm .playkit-interactive-area{margin:8px}.playkit-player.playkit-casting:not(.playkit-overlay-active).playkit-size-sm .playkit-interactive-area,.playkit-player.playkit-metadata-loaded.playkit-hover:not(.playkit-overlay-active).playkit-size-sm .playkit-interactive-area,.playkit-player.playkit-state-paused:not(.playkit-overlay-active).playkit-size-sm .playkit-interactive-area,.playkit-player.playkit-state-idle:not(.playkit-overlay-active).playkit-size-sm .playkit-interactive-area,.playkit-player.playkit-ad-break:not(.playkit-overlay-active).playkit-size-sm .playkit-interactive-area,.playkit-player.playkit-menu-active:not(.playkit-overlay-active).playkit-size-sm .playkit-interactive-area{margin:0px 8px}.playkit-player.playkit-casting .playkit-interactive-area,.playkit-player.playkit-metadata-loaded.playkit-hover .playkit-interactive-area,.playkit-player.playkit-state-paused .playkit-interactive-area,.playkit-player.playkit-state-idle .playkit-interactive-area,.playkit-player.playkit-ad-break .playkit-interactive-area,.playkit-player.playkit-menu-active .playkit-interactive-area{margin:0px 16px}.playkit-video-area{pointer-events:none;transition:all 500ms;transition-property:left,right,bottom,top,width,height}.playkit-gui-area{pointer-events:none;transition:all 500ms;transition-property:left,right,bottom,top;display:flex;flex-flow:column nowrap}@keyframes playkit-kaltura-spinner{0%{transform:rotate(0deg) scale(0.7);opacity:1}70%{transform:rotate(360deg) scale(0.7);opacity:1}82%{transform:rotate(360deg) scale(0);opacity:0}87%{transform:rotate(360deg) scale(0.9);opacity:1}100%{transform:rotate(360deg) scale(0.7);opacity:1}}.playkit-spinner{width:100px;height:100px;position:relative;animation:playkit-kaltura-spinner 2.5s infinite}.playkit-spinner span{width:8px;height:8px;background-color:#fff;display:block;border-radius:8px;position:absolute;top:50%;left:50%;margin-top:-4px;margin-left:-4px}.playkit-spinner span:nth-child(1){transform:rotate(45deg) translateX(-25px) translateY(-25px);background-color:#da1f26}.playkit-spinner span:nth-child(2){transform:rotate(90deg) translateX(-25px) translateY(-25px);background-color:#06a885}.playkit-spinner span:nth-child(3){transform:rotate(135deg) translateX(-25px) translateY(-25px);background-color:#009344}.playkit-spinner span:nth-child(4){transform:rotate(180deg) translateX(-25px) translateY(-25px);background-color:#f8a61a}.playkit-spinner span:nth-child(5){transform:rotate(225deg) translateX(-25px) translateY(-25px);background-color:#1b4a97}.playkit-spinner span:nth-child(6){transform:rotate(270deg) translateX(-25px) translateY(-25px);background-color:#00abcc}.playkit-spinner span:nth-child(7){transform:rotate(315deg) translateX(-25px) translateY(-25px);background-color:#b1d238}.playkit-spinner span:nth-child(8){transform:rotate(360deg) translateX(-25px) translateY(-25px);background-color:#fcd203}.playkit-switch{position:relative;display:inline-block;width:32px;height:16px}.playkit-switch .playkit-toggle-input{opacity:0;width:0;height:0}.playkit-switch .playkit-toggle-input:checked+.playkit-slider{background-color:#2196f3}.playkit-switch .playkit-toggle-input:focus+.playkit-slider{box-shadow:0 0 1px #2196f3}.playkit-switch .playkit-toggle-input:checked+.playkit-slider:before{transform:translateX(14px);-webkit-transform:translateX(14px);-ms-transform:translateX(14px)}.playkit-switch .playkit-slider{height:100%;position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;border-radius:34px}.playkit-switch .playkit-slider:before{position:absolute;content:\"\";height:12px;width:12px;left:3px;top:2px;background-color:#fff;-webkit-transition:.3s;transition:.3s;border-radius:50%}",""]),t.locals={primaryColor:"var(--playkit-primary-color)",primaryDarkerColor:"var(--playkit-primary-darker-color)",primaryBrighterColor:"var(--playkit-primary-brighter-color)",primaryTextContrastColor:"var(--playkit-primary-text-contrast-color)",secondaryColor:"var(--playkit-secondary-color)",secondaryDarkerColor:"var(--playkit-secondary-darker-color)",secondaryBrighterColor:"var(--playkit-secondary-brighter-color)",secondaryTextContrastColor:"var(--playkit-secondary-text-contrast-color)",successDarkerColor:"var(--playkit-success-darker-color)",successBrighterColor:"var(--playkit-success-brighter-color)",successTextContrastColor:"var(--playkit-success-text-contrast-color)",dangerColor:"var(--playkit-danger-color)",dangerDarkerColor:"var(--playkit-danger-darker-color)",dangerBrighterColor:"var(--playkit-danger-brighter-color)","danger-text-contrast-color":"var(--playkit-danger-text-contrast-color)",dangerTextContrastColor:"var(--playkit-danger-text-contrast-color)",warningColor:"var(--playkit-warning-color)",warningDarkerColor:"var(--playkit-warning-darker-color)",warningBrighterColor:"var(--playkit-warning-brighter-color)",warningTextContrastColor:"var(--playkit-warning-text-contrast-color)",tone1Color:"var(--playkit-tone-1-color)",tone2Color:"var(--playkit-tone-2-color)",tone3Color:"var(--playkit-tone-3-color)",tone4Color:"var(--playkit-tone-4-color)",tone5Color:"var(--playkit-tone-5-color)",tone6Color:"var(--playkit-tone-6-color)",tone7Color:"var(--playkit-tone-7-color)",tone8Color:"var(--playkit-tone-8-color)",liveColor:"var(--playkit-live-color)",playerBackgroundColor:"var(--playkit-player-background-color)",tabFocusColor:"var(--playkit-tab-focus-color)",tooltipBackgroundColor:"var(--playkit-tooltip-background-color)",tooltipColor:"var(--playkit-tooltip-color)",adsColor:"var(--playkit-ads-color)",progressBarHeight:"4px",progressBarBorderRadius:"2px",defaultTransitionTime:"500",bottomBarMaxHeight:"60",brandColor:"#006bff",white:"#fff",player:"playkit-player",row:"playkit-row","d-inline-block":"playkit-d-inline-block",dInlineBlock:"playkit-d-inline-block","mobile-hidden-select":"playkit-mobile-hidden-select",mobileHiddenSelect:"playkit-mobile-hidden-select","font-size-base":"playkit-font-size-base",fontSizeBase:"playkit-font-size-base","ad-notice":"playkit-ad-notice",adNotice:"playkit-ad-notice","form-group":"playkit-form-group",formGroup:"playkit-form-group","has-error":"playkit-has-error",hasError:"playkit-has-error","form-control":"playkit-form-control",formControl:"playkit-form-control","has-icon":"playkit-has-icon",hasIcon:"playkit-has-icon",icon:"playkit-icon",checkbox:"playkit-checkbox","form-group-row":"playkit-form-group-row",formGroupRow:"playkit-form-group-row",dropdown:"playkit-dropdown",btn:"playkit-btn","btn-block":"playkit-btn-block",btnBlock:"playkit-btn-block","btn-dark-transparent":"playkit-btn-dark-transparent",btnDarkTransparent:"playkit-btn-dark-transparent","btn-branded":"playkit-btn-branded",btnBranded:"playkit-btn-branded","btn-rounded":"playkit-btn-rounded",btnRounded:"playkit-btn-rounded","btn-borderless":"playkit-btn-borderless",btnBorderless:"playkit-btn-borderless","only-icon":"playkit-only-icon",onlyIcon:"playkit-only-icon","only-label":"playkit-only-label",onlyLabel:"playkit-only-label","size-sm":"playkit-size-sm",sizeSm:"playkit-size-sm","size-xs":"playkit-size-xs",sizeXs:"playkit-size-xs","badge-icon":"playkit-badge-icon",badgeIcon:"playkit-badge-icon","icon-maximize":"playkit-icon-maximize",iconMaximize:"playkit-icon-maximize","icon-minimize":"playkit-icon-minimize",iconMinimize:"playkit-icon-minimize","icon-play":"playkit-icon-play",iconPlay:"playkit-icon-play","icon-pause":"playkit-icon-pause",iconPause:"playkit-icon-pause","icon-volume-base":"playkit-icon-volume-base",iconVolumeBase:"playkit-icon-volume-base","icon-volume-waves":"playkit-icon-volume-waves",iconVolumeWaves:"playkit-icon-volume-waves","icon-volume-wave":"playkit-icon-volume-wave",iconVolumeWave:"playkit-icon-volume-wave","icon-volume-mute":"playkit-icon-volume-mute",iconVolumeMute:"playkit-icon-volume-mute","icon-close":"playkit-icon-close",iconClose:"playkit-icon-close","icon-settings":"playkit-icon-settings",iconSettings:"playkit-icon-settings","icon-check":"playkit-icon-check",iconCheck:"playkit-icon-check","icon-check-active":"playkit-icon-check-active",iconCheckActive:"playkit-icon-check-active","icon-language":"playkit-icon-language",iconLanguage:"playkit-icon-language","icon-quality":"playkit-icon-quality",iconQuality:"playkit-icon-quality","icon-captions":"playkit-icon-captions",iconCaptions:"playkit-icon-captions","icon-speed":"playkit-icon-speed",iconSpeed:"playkit-icon-speed","icon-speed-down":"playkit-icon-speed-down",iconSpeedDown:"playkit-icon-speed-down","icon-speed-up":"playkit-icon-speed-up",iconSpeedUp:"playkit-icon-speed-up","icon-audio":"playkit-icon-audio",iconAudio:"playkit-icon-audio","icon-arrow-down":"playkit-icon-arrow-down",iconArrowDown:"playkit-icon-arrow-down","icon-start-over":"playkit-icon-start-over",iconStartOver:"playkit-icon-start-over","icon-seek-end":"playkit-icon-seek-end",iconSeekEnd:"playkit-icon-seek-end","icon-rewind":"playkit-icon-rewind",iconRewind:"playkit-icon-rewind","icon-rewind-10":"playkit-icon-rewind-10",iconRewind10:"playkit-icon-rewind-10","icon-forward":"playkit-icon-forward",iconForward:"playkit-icon-forward","icon-forward-10":"playkit-icon-forward-10",iconForward10:"playkit-icon-forward-10","icon-vr-stereo":"playkit-icon-vr-stereo",iconVrStereo:"playkit-icon-vr-stereo","icon-vr-stereo-full":"playkit-icon-vr-stereo-full",iconVrStereoFull:"playkit-icon-vr-stereo-full","icon-chromecast":"playkit-icon-chromecast",iconChromecast:"playkit-icon-chromecast","icon-chromecast-brand":"playkit-icon-chromecast-brand",iconChromecastBrand:"playkit-icon-chromecast-brand","icon-next":"playkit-icon-next",iconNext:"playkit-icon-next","icon-prev":"playkit-icon-prev",iconPrev:"playkit-icon-prev","icon-picture-in-picture-start":"playkit-icon-picture-in-picture-start",iconPictureInPictureStart:"playkit-icon-picture-in-picture-start","icon-picture-in-picture-stop":"playkit-icon-picture-in-picture-stop",iconPictureInPictureStop:"playkit-icon-picture-in-picture-stop","icon-advanced-audio-description":"playkit-icon-advanced-audio-description",iconAdvancedAudioDescription:"playkit-icon-advanced-audio-description","icon-quality-hd":"playkit-icon-quality-hd",iconQualityHd:"playkit-icon-quality-hd","icon-quality-hd-active":"playkit-icon-quality-hd-active",iconQualityHdActive:"playkit-icon-quality-hd-active","icon-quality-4k":"playkit-icon-quality-4k",iconQuality4K:"playkit-icon-quality-4k","icon-quality-4k-active":"playkit-icon-quality-4k-active",iconQuality4KActive:"playkit-icon-quality-4k-active","icon-quality-8k":"playkit-icon-quality-8k",iconQuality8K:"playkit-icon-quality-8k","icon-quality-8k-active":"playkit-icon-quality-8k-active",iconQuality8KActive:"playkit-icon-quality-8k-active","icon-closed-captions-on":"playkit-icon-closed-captions-on",iconClosedCaptionsOn:"playkit-icon-closed-captions-on","icon-closed-captions-off":"playkit-icon-closed-captions-off",iconClosedCaptionsOff:"playkit-icon-closed-captions-off","label-badge":"playkit-label-badge",labelBadge:"playkit-label-badge",active:"playkit-active","dropdown-menu":"playkit-dropdown-menu",dropdownMenu:"playkit-dropdown-menu","dropdown-button":"playkit-dropdown-button",dropdownButton:"playkit-dropdown-button",openDropmenu:"playkit-openDropmenu",top:"playkit-top",bottom:"playkit-bottom",right:"playkit-right",left:"playkit-left","stick-bottom":"playkit-stick-bottom",stickBottom:"playkit-stick-bottom","dropdown-menu-item":"playkit-dropdown-menu-item",dropdownMenuItem:"playkit-dropdown-menu-item","menu-icon-container":"playkit-menu-icon-container",menuIconContainer:"playkit-menu-icon-container","control-button":"playkit-control-button",controlButton:"playkit-control-button","button-badge":"playkit-button-badge",buttonBadge:"playkit-button-badge","control-button-rounded":"playkit-control-button-rounded",controlButtonRounded:"playkit-control-button-rounded",touch:"playkit-touch","control-button-container":"playkit-control-button-container",controlButtonContainer:"playkit-control-button-container","state-idle":"playkit-state-idle",stateIdle:"playkit-state-idle","no-idle-control":"playkit-no-idle-control",noIdleControl:"playkit-no-idle-control",rotate:"playkit-rotate",spin:"playkit-spin","reverse-rotate":"playkit-reverse-rotate",reverseRotate:"playkit-reverse-rotate","reverse-spin":"playkit-reverse-spin",reverseSpin:"playkit-reverse-spin","upper-bar-icon":"playkit-upper-bar-icon",upperBarIcon:"playkit-upper-bar-icon",emptyUrl:"playkit-emptyUrl","player-gui":"playkit-player-gui",playerGui:"playkit-player-gui","overlay-active":"playkit-overlay-active",overlayActive:"playkit-overlay-active",nav:"playkit-nav","ad-break":"playkit-ad-break",adBreak:"playkit-ad-break","metadata-loaded":"playkit-metadata-loaded",metadataLoaded:"playkit-metadata-loaded",hover:"playkit-hover","state-paused":"playkit-state-paused",statePaused:"playkit-state-paused","pre-playback":"playkit-pre-playback",prePlayback:"playkit-pre-playback",casting:"playkit-casting","menu-active":"playkit-menu-active",menuActive:"playkit-menu-active",iOS:"playkit-iOS",iOs:"playkit-iOS",Safari:"playkit-Safari",safari:"playkit-Safari",fullscreen:"playkit-fullscreen","video-player":"playkit-video-player",videoPlayer:"playkit-video-player",overlay:"playkit-overlay",openOverlay:"playkit-openOverlay","overlay-contents":"playkit-overlay-contents",overlayContents:"playkit-overlay-contents",title:"playkit-title","close-overlay":"playkit-close-overlay",closeOverlay:"playkit-close-overlay","overlay-screen":"playkit-overlay-screen",overlayScreen:"playkit-overlay-screen","size-md":"playkit-size-md",sizeMd:"playkit-size-md","smart-container":"playkit-smart-container",smartContainer:"playkit-smart-container",openSmartContainer:"playkit-openSmartContainer",leaving:"playkit-leaving",closeSmartContainer:"playkit-closeSmartContainer","smart-container-item":"playkit-smart-container-item",smartContainerItem:"playkit-smart-container-item","select-menu-item":"playkit-select-menu-item",selectMenuItem:"playkit-select-menu-item","label-icon":"playkit-label-icon",labelIcon:"playkit-label-icon",Windows:"playkit-Windows",windows:"playkit-Windows","cvaa-overlay":"playkit-cvaa-overlay",cvaaOverlay:"playkit-cvaa-overlay",sample:"playkit-sample",custom:"playkit-custom","black-bg":"playkit-black-bg",blackBg:"playkit-black-bg","yellow-text":"playkit-yellow-text",yellowText:"playkit-yellow-text","active-tick":"playkit-active-tick",activeTick:"playkit-active-tick","button-save-cvaa":"playkit-button-save-cvaa",buttonSaveCvaa:"playkit-button-save-cvaa","custom-captions-applied":"playkit-custom-captions-applied",customCaptionsApplied:"playkit-custom-captions-applied","custom-caption-form":"playkit-custom-caption-form",customCaptionForm:"playkit-custom-caption-form",slider:"playkit-slider","preview-container":"playkit-preview-container",previewContainer:"playkit-preview-container","font-size":"playkit-font-size",fontSize:"playkit-font-size","font-color":"playkit-font-color",fontColor:"playkit-font-color","font-family":"playkit-font-family",fontFamily:"playkit-font-family","font-style":"playkit-font-style",fontStyle:"playkit-font-style","font-opacity":"playkit-font-opacity",fontOpacity:"playkit-font-opacity","background-color":"playkit-background-color",backgroundColor:"playkit-background-color","background-opacity":"playkit-background-opacity",backgroundOpacity:"playkit-background-opacity","loading-backdrop":"playkit-loading-backdrop",loadingBackdrop:"playkit-loading-backdrop",show:"playkit-show","spinner-container":"playkit-spinner-container",spinnerContainer:"playkit-spinner-container","control-play-pause":"playkit-control-play-pause",controlPlayPause:"playkit-control-play-pause","is-playing":"playkit-is-playing",isPlaying:"playkit-is-playing","control-volume":"playkit-control-volume",controlVolume:"playkit-control-volume","volume-control":"playkit-volume-control",volumeControl:"playkit-volume-control","volume-control-bar":"playkit-volume-control-bar",volumeControlBar:"playkit-volume-control-bar","is-muted":"playkit-is-muted",isMuted:"playkit-is-muted","dragging-active":"playkit-dragging-active",draggingActive:"playkit-dragging-active",bar:"playkit-bar",progress:"playkit-progress","smart-container-open":"playkit-smart-container-open",smartContainerOpen:"playkit-smart-container-open","control-volume-bar":"playkit-control-volume-bar",controlVolumeBar:"playkit-control-volume-bar","size-ty":"playkit-size-ty",sizeTy:"playkit-size-ty","control-fullscreen":"playkit-control-fullscreen",controlFullscreen:"playkit-control-fullscreen","is-fullscreen":"playkit-is-fullscreen",isFullscreen:"playkit-is-fullscreen","seek-bar":"playkit-seek-bar",seekBar:"playkit-seek-bar","time-preview":"playkit-time-preview",timePreview:"playkit-time-preview","frame-preview":"playkit-frame-preview",framePreview:"playkit-frame-preview","hide-frame-preview":"playkit-hide-frame-preview",hideFramePreview:"playkit-hide-frame-preview","progress-bar":"playkit-progress-bar",progressBar:"playkit-progress-bar",scrubber:"playkit-scrubber","virtual-progress":"playkit-virtual-progress",virtualProgress:"playkit-virtual-progress",live:"playkit-live",buffered:"playkit-buffered","virtual-progress-indicator":"playkit-virtual-progress-indicator",virtualProgressIndicator:"playkit-virtual-progress-indicator","non-sticky":"playkit-non-sticky",nonSticky:"playkit-non-sticky","frame-preview-img-container":"playkit-frame-preview-img-container",framePreviewImgContainer:"playkit-frame-preview-img-container","frame-preview-img":"playkit-frame-preview-img",framePreviewImg:"playkit-frame-preview-img","time-display":"playkit-time-display",timeDisplay:"playkit-time-display","video-playing-title":"playkit-video-playing-title",videoPlayingTitle:"playkit-video-playing-title","bottom-bar":"playkit-bottom-bar",bottomBar:"playkit-bottom-bar",hide:"playkit-hide","left-controls":"playkit-left-controls",leftControls:"playkit-left-controls","bottom-bar-area":"playkit-bottom-bar-area",bottomBarArea:"playkit-bottom-bar-area","right-controls":"playkit-right-controls",rightControls:"playkit-right-controls","line-break":"playkit-line-break",lineBreak:"playkit-line-break","top-bar":"playkit-top-bar",topBar:"playkit-top-bar","top-bar-area":"playkit-top-bar-area",topBarArea:"playkit-top-bar-area",disabled:"playkit-disabled","overlay-action":"playkit-overlay-action",overlayAction:"playkit-overlay-action",in:"playkit-in",overlayActionIconIn:"playkit-overlayActionIconIn","pre-playback-play-overlay":"playkit-pre-playback-play-overlay",prePlaybackPlayOverlay:"playkit-pre-playback-play-overlay","pre-playback-play-button":"playkit-pre-playback-play-button",prePlaybackPlayButton:"playkit-pre-playback-play-button","btn-skip-ad":"playkit-btn-skip-ad",btnSkipAd:"playkit-btn-skip-ad","skip-ad":"playkit-skip-ad",skipAd:"playkit-skip-ad","live-tag":"playkit-live-tag",liveTag:"playkit-live-tag","non-live-playhead":"playkit-non-live-playhead",nonLivePlayhead:"playkit-non-live-playhead","interactive-area":"playkit-interactive-area",interactiveArea:"playkit-interactive-area","unmute-button-container":"playkit-unmute-button-container",unmuteButtonContainer:"playkit-unmute-button-container","show-icon-only":"playkit-show-icon-only",showIconOnly:"playkit-show-icon-only","unmute-button":"playkit-unmute-button",unmuteButton:"playkit-unmute-button","has-top-bar":"playkit-has-top-bar",hasTopBar:"playkit-has-top-bar","unmute-icon-container":"playkit-unmute-icon-container",unmuteIconContainer:"playkit-unmute-icon-container","error-overlay":"playkit-error-overlay",errorOverlay:"playkit-error-overlay","copy-url-row":"playkit-copy-url-row",copyUrlRow:"playkit-copy-url-row","svg-container":"playkit-svg-container",svgContainer:"playkit-svg-container",headline:"playkit-headline","error-session":"playkit-error-session",errorSession:"playkit-error-session","retry-btn":"playkit-retry-btn",retryBtn:"playkit-retry-btn","error-text":"playkit-error-text",errorText:"playkit-error-text","link-options-container":"playkit-link-options-container",linkOptionsContainer:"playkit-link-options-container","input-copy-url":"playkit-input-copy-url",inputCopyUrl:"playkit-input-copy-url","btn-copy-url":"playkit-btn-copy-url",btnCopyUrl:"playkit-btn-copy-url",handle:"playkit-handle","learn-more":"playkit-learn-more",learnMore:"playkit-learn-more",watermark:"playkit-watermark","hide-watermark":"playkit-hide-watermark",hideWatermark:"playkit-hide-watermark","control-vr-stereo":"playkit-control-vr-stereo",controlVrStereo:"playkit-control-vr-stereo","vr-stereo-mode":"playkit-vr-stereo-mode",vrStereoMode:"playkit-vr-stereo-mode","control-closed-captions":"playkit-control-closed-captions",controlClosedCaptions:"playkit-control-closed-captions","cc-on":"playkit-cc-on",ccOn:"playkit-cc-on","cast-button":"playkit-cast-button",castButton:"playkit-cast-button","cast-button-active":"playkit-cast-button-active",castButtonActive:"playkit-cast-button-active","cast-overlay":"playkit-cast-overlay",castOverlay:"playkit-cast-overlay","cast-poster":"playkit-cast-poster",castPoster:"playkit-cast-poster","has-poster":"playkit-has-poster",hasPoster:"playkit-has-poster","cast-black-cover":"playkit-cast-black-cover",castBlackCover:"playkit-cast-black-cover","cast-box":"playkit-cast-box",castBox:"playkit-cast-box","cast-icon":"playkit-cast-icon",castIcon:"playkit-cast-icon","cast-connecting-spinner":"playkit-cast-connecting-spinner",castConnectingSpinner:"playkit-cast-connecting-spinner","cast-text":"playkit-cast-text",castText:"playkit-cast-text","cast-status":"playkit-cast-status",castStatus:"playkit-cast-status","cast-device":"playkit-cast-device",castDevice:"playkit-cast-device","cast-on-tv-button-container":"playkit-cast-on-tv-button-container",castOnTvButtonContainer:"playkit-cast-on-tv-button-container","show-cast-on-tv":"playkit-show-cast-on-tv",showCastOnTv:"playkit-show-cast-on-tv",castOnTVAnimation:"playkit-castOnTVAnimation",castOnTvAnimation:"playkit-castOnTVAnimation","cast-on-tv-button":"playkit-cast-on-tv-button",castOnTvButton:"playkit-cast-on-tv-button","cast-on-tv-icon-container":"playkit-cast-on-tv-icon-container",castOnTvIconContainer:"playkit-cast-on-tv-icon-container","control-playlist-button":"playkit-control-playlist-button",controlPlaylistButton:"playkit-control-playlist-button","poster-preview":"playkit-poster-preview",posterPreview:"playkit-poster-preview","poster-preview-img":"playkit-poster-preview-img",posterPreviewImg:"playkit-poster-preview-img","poster-preview-text":"playkit-poster-preview-text",posterPreviewText:"playkit-poster-preview-text","poster-preview-text-title":"playkit-poster-preview-text-title",posterPreviewTextTitle:"playkit-poster-preview-text-title","poster-preview-text-name":"playkit-poster-preview-text-name",posterPreviewTextName:"playkit-poster-preview-text-name","is-in-picture-in-picture":"playkit-is-in-picture-in-picture",isInPictureInPicture:"playkit-is-in-picture-in-picture","playback-controls":"playkit-playback-controls",playbackControls:"playkit-playback-controls","center-playback-controls":"playkit-center-playback-controls",centerPlaybackControls:"playkit-center-playback-controls","gui-area":"playkit-gui-area",guiArea:"playkit-gui-area","playlist-countdown":"playkit-playlist-countdown",playlistCountdown:"playkit-playlist-countdown",slideIn:"playkit-slideIn",hidden:"playkit-hidden","playlist-countdown-content-placeholder":"playkit-playlist-countdown-content-placeholder",playlistCountdownContentPlaceholder:"playkit-playlist-countdown-content-placeholder","playlist-countdown-content-background":"playkit-playlist-countdown-content-background",playlistCountdownContentBackground:"playkit-playlist-countdown-content-background","playlist-countdown-content":"playkit-playlist-countdown-content",playlistCountdownContent:"playkit-playlist-countdown-content",canceled:"playkit-canceled","playlist-countdown-poster":"playkit-playlist-countdown-poster",playlistCountdownPoster:"playkit-playlist-countdown-poster","playlist-countdown-text":"playkit-playlist-countdown-text",playlistCountdownText:"playkit-playlist-countdown-text","playlist-countdown-text-title":"playkit-playlist-countdown-text-title",playlistCountdownTextTitle:"playkit-playlist-countdown-text-title","playlist-countdown-time-left":"playkit-playlist-countdown-time-left",playlistCountdownTimeLeft:"playkit-playlist-countdown-time-left","playlist-countdown-text-name":"playkit-playlist-countdown-text-name",playlistCountdownTextName:"playkit-playlist-countdown-text-name","playlist-countdown-cancel":"playkit-playlist-countdown-cancel",playlistCountdownCancel:"playkit-playlist-countdown-cancel","playlist-next-screen-overlay":"playkit-playlist-next-screen-overlay",playlistNextScreenOverlay:"playkit-playlist-next-screen-overlay","playlist-next-screen-content":"playkit-playlist-next-screen-content",playlistNextScreenContent:"playkit-playlist-next-screen-content","playlist-next-screen-text":"playkit-playlist-next-screen-text",playlistNextScreenText:"playkit-playlist-next-screen-text","playlist-next-screen-text-title":"playkit-playlist-next-screen-text-title",playlistNextScreenTextTitle:"playkit-playlist-next-screen-text-title","playlist-next-screen-text-name":"playkit-playlist-next-screen-text-name",playlistNextScreenTextName:"playkit-playlist-next-screen-text-name","playlist-next-screen-poster-placeholder":"playkit-playlist-next-screen-poster-placeholder",playlistNextScreenPosterPlaceholder:"playkit-playlist-next-screen-poster-placeholder","playlist-next-screen-poster-aspect-ratio":"playkit-playlist-next-screen-poster-aspect-ratio",playlistNextScreenPosterAspectRatio:"playkit-playlist-next-screen-poster-aspect-ratio","playlist-next-screen-poster":"playkit-playlist-next-screen-poster",playlistNextScreenPoster:"playkit-playlist-next-screen-poster","playlist-next-screen-poster-img":"playkit-playlist-next-screen-poster-img",playlistNextScreenPosterImg:"playkit-playlist-next-screen-poster-img","size-lg":"playkit-size-lg",sizeLg:"playkit-size-lg","picture-in-picture-overlay":"playkit-picture-in-picture-overlay",pictureInPictureOverlay:"playkit-picture-in-picture-overlay","picture-in-picture-poster":"playkit-picture-in-picture-poster",pictureInPicturePoster:"playkit-picture-in-picture-poster","dark-layer":"playkit-dark-layer",darkLayer:"playkit-dark-layer","picture-in-picture-control":"playkit-picture-in-picture-control",pictureInPictureControl:"playkit-picture-in-picture-control","picture-in-picture-text":"playkit-picture-in-picture-text",pictureInPictureText:"playkit-picture-in-picture-text","picture-in-picture-button":"playkit-picture-in-picture-button",pictureInPictureButton:"playkit-picture-in-picture-button","icon-copy":"playkit-icon-copy",iconCopy:"playkit-icon-copy",copied:"playkit-copied",IE:"playkit-IE",ie:"playkit-IE",tooltip:"playkit-tooltip","tooltip-label":"playkit-tooltip-label",tooltipLabel:"playkit-tooltip-label","tooltip-top":"playkit-tooltip-top",tooltipTop:"playkit-tooltip-top","tooltip-top-left":"playkit-tooltip-top-left",tooltipTopLeft:"playkit-tooltip-top-left","tooltip-top-right":"playkit-tooltip-top-right",tooltipTopRight:"playkit-tooltip-top-right","tooltip-bottom":"playkit-tooltip-bottom",tooltipBottom:"playkit-tooltip-bottom","tooltip-bottom-right":"playkit-tooltip-bottom-right",tooltipBottomRight:"playkit-tooltip-bottom-right","tooltip-bottom-left":"playkit-tooltip-bottom-left",tooltipBottomLeft:"playkit-tooltip-bottom-left","tooltip-left":"playkit-tooltip-left",tooltipLeft:"playkit-tooltip-left","tooltip-right":"playkit-tooltip-right",tooltipRight:"playkit-tooltip-right","side-panel":"playkit-side-panel",sidePanel:"playkit-side-panel","vertical-side-panel":"playkit-vertical-side-panel",verticalSidePanel:"playkit-vertical-side-panel","horizontal-side-panel":"playkit-horizontal-side-panel",horizontalSidePanel:"playkit-horizontal-side-panel","side-panel-content":"playkit-side-panel-content",sidePanelContent:"playkit-side-panel-content","video-area":"playkit-video-area",videoArea:"playkit-video-area",spinner:"playkit-spinner","kaltura-spinner":"playkit-kaltura-spinner",kalturaSpinner:"playkit-kaltura-spinner",switch:"playkit-switch","toggle-input":"playkit-toggle-input",toggleInput:"playkit-toggle-input"},e.exports=t},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,a=e[1]||"",o=e[3];if(!o)return a;if(t&&"function"==typeof btoa){var s=(n=o,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[a].concat(l).concat([s]).join("\n")}return[a].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";n.r(t),n.d(t,"Event",(function(){return T})),n.d(t,"EventType",(function(){return ff})),n.d(t,"h",(function(){return N})),n.d(t,"createPortal",(function(){return Xe})),n.d(t,"preact",(function(){return r})),n.d(t,"redux",(function(){return a})),n.d(t,"preacti18n",(function(){return o})),n.d(t,"preactHooks",(function(){return i})),n.d(t,"style",(function(){return pr.a})),n.d(t,"Reducers",(function(){return k})),n.d(t,"Presets",(function(){return E})),n.d(t,"Components",(function(){return _})),n.d(t,"Utils",(function(){return m})),n.d(t,"reducers",(function(){return k})),n.d(t,"presets",(function(){return E})),n.d(t,"components",(function(){return _})),n.d(t,"utils",(function(){return m})),n.d(t,"UIManager",(function(){return df})),n.d(t,"VERSION",(function(){return hf})),n.d(t,"NAME",(function(){return gf})),n.d(t,"SidePanelPositions",(function(){return Jn})),n.d(t,"SidePanelModes",(function(){return er})),n.d(t,"ReservedPresetNames",(function(){return tr})),n.d(t,"ReservedPresetAreas",(function(){return nr}));var r={};n.r(r),n.d(r,"render",(function(){return ne})),n.d(r,"hydrate",(function(){return re})),n.d(r,"createElement",(function(){return N})),n.d(r,"h",(function(){return N})),n.d(r,"Fragment",(function(){return j})),n.d(r,"createRef",(function(){return F})),n.d(r,"isValidElement",(function(){return w})),n.d(r,"Component",(function(){return B})),n.d(r,"cloneElement",(function(){return ie})),n.d(r,"createContext",(function(){return ae})),n.d(r,"toChildArray",(function(){return W})),n.d(r,"__u",(function(){return ee})),n.d(r,"options",(function(){return A}));var i={};n.r(i),n.d(i,"useState",(function(){return ye})),n.d(i,"useReducer",(function(){return ve})),n.d(i,"useEffect",(function(){return me})),n.d(i,"useLayoutEffect",(function(){return be})),n.d(i,"useRef",(function(){return _e})),n.d(i,"useImperativeHandle",(function(){return Ee})),n.d(i,"useMemo",(function(){return ke})),n.d(i,"useCallback",(function(){return Te})),n.d(i,"useContext",(function(){return Ae})),n.d(i,"useDebugValue",(function(){return we})),n.d(i,"useErrorBoundary",(function(){return Se}));var a={};n.r(a),n.d(a,"Provider",(function(){return ut})),n.d(a,"connectAdvanced",(function(){return Tt})),n.d(a,"ReactReduxContext",(function(){return at})),n.d(a,"connect",(function(){return $t})),n.d(a,"batch",(function(){return rt})),n.d(a,"useDispatch",(function(){return tn})),n.d(a,"createDispatchHook",(function(){return en})),n.d(a,"useSelector",(function(){return an})),n.d(a,"createSelectorHook",(function(){return rn})),n.d(a,"useStore",(function(){return Jt})),n.d(a,"createStoreHook",(function(){return Zt})),n.d(a,"shallowEqual",(function(){return wt}));var o={};n.r(o),n.d(o,"default",(function(){return wn})),n.d(o,"IntlProvider",(function(){return pn})),n.d(o,"Localizer",(function(){return En})),n.d(o,"MarkupText",(function(){return kn})),n.d(o,"Text",(function(){return bn})),n.d(o,"intl",(function(){return dn})),n.d(o,"withText",(function(){return An}));var s={};n.r(s),n.d(s,"types",(function(){return Qn})),n.d(s,"SidePanelOrientation",(function(){return Zn})),n.d(s,"SidePanelPositions",(function(){return Jn})),n.d(s,"SidePanelModes",(function(){return er})),n.d(s,"ReservedPresetNames",(function(){return tr})),n.d(s,"ReservedPresetAreas",(function(){return nr})),n.d(s,"initialState",(function(){return ar})),n.d(s,"default",(function(){return or})),n.d(s,"actions",(function(){return sr}));var l={};n.r(l),n.d(l,"types",(function(){return gr})),n.d(l,"initialState",(function(){return yr})),n.d(l,"default",(function(){return vr})),n.d(l,"actions",(function(){return mr}));var u={};n.r(u),n.d(u,"types",(function(){return _r})),n.d(u,"initialState",(function(){return Er})),n.d(u,"default",(function(){return kr})),n.d(u,"actions",(function(){return Tr}));var c={};n.r(c),n.d(c,"types",(function(){return Fi})),n.d(c,"initialState",(function(){return ji})),n.d(c,"default",(function(){return Bi})),n.d(c,"actions",(function(){return Vi}));var p={};n.r(p),n.d(p,"types",(function(){return Ki})),n.d(p,"initialState",(function(){return Gi})),n.d(p,"default",(function(){return zi})),n.d(p,"actions",(function(){return Wi}));var d={};n.r(d),n.d(d,"types",(function(){return qi})),n.d(d,"initialState",(function(){return Xi})),n.d(d,"default",(function(){return $i})),n.d(d,"actions",(function(){return Qi}));var f={};n.r(f),n.d(f,"types",(function(){return Ji})),n.d(f,"initialState",(function(){return ea})),n.d(f,"default",(function(){return ta})),n.d(f,"actions",(function(){return na}));var h={};n.r(h),n.d(h,"types",(function(){return ia})),n.d(h,"initialState",(function(){return aa})),n.d(h,"default",(function(){return oa})),n.d(h,"actions",(function(){return sa}));var g={};n.r(g),n.d(g,"types",(function(){return ua})),n.d(g,"initialState",(function(){return ca})),n.d(g,"default",(function(){return pa})),n.d(g,"actions",(function(){return da}));var y={};n.r(y),n.d(y,"types",(function(){return ha})),n.d(y,"initialState",(function(){return ga})),n.d(y,"default",(function(){return ya})),n.d(y,"actions",(function(){return va}));var v={};n.r(v),n.d(v,"types",(function(){return ka})),n.d(v,"initialState",(function(){return Ta})),n.d(v,"default",(function(){return Aa})),n.d(v,"actions",(function(){return wa}));var m={};n.r(m),n.d(m,"bindActions",(function(){return ur})),n.d(m,"KeyMap",(function(){return Ln})),n.d(m,"getLogger",(function(){return Dn})),n.d(m,"withKeyboardA11y",(function(){return Va})),n.d(m,"toHHMMSS",(function(){return Ha})),n.d(m,"toSecondsFromHHMMSS",(function(){return Ka})),n.d(m,"formatOnlyNumbersInput",(function(){return Ga}));var b={};n.r(b),n.d(b,"isPlayingAdOrPlayback",(function(){return ko}));var _={};n.r(_),n.d(_,"AdLearnMore",(function(){return Nl})),n.d(_,"AdSkip",(function(){return jl})),n.d(_,"AdNotice",(function(){return Bl})),n.d(_,"BaseComponent",(function(){return Zl})),n.d(_,"BottomBar",(function(){return tu})),n.d(_,"CVAAOverlay",(function(){return Mu})),n.d(_,"DropDown",(function(){return yu})),n.d(_,"EngineConnector",(function(){return Ra})),n.d(_,"ErrorOverlay",(function(){return Ju})),n.d(_,"EventDispatcherProvider",(function(){return Jr})),n.d(_,"withEventDispatcher",(function(){return fi})),n.d(_,"Keyboard",(function(){return Ss})),n.d(_,"withKeyboardEvent",(function(){return Fs})),n.d(_,"KeyboardEventProvider",(function(){return Ps})),n.d(_,"Icon",(function(){return _o})),n.d(_,"IconType",(function(){return vo})),n.d(_,"IconState",(function(){return bo})),n.d(_,"BadgeType",(function(){return mo})),n.d(_,"LiveTag",(function(){return nc})),n.d(_,"Loading",(function(){return no})),n.d(_,"Menu",(function(){return pu})),n.d(_,"Overlay",(function(){return ju})),n.d(_,"OverlayAction",(function(){return Io})),n.d(_,"OverlayPortal",(function(){return sc})),n.d(_,"PlayerProvider",(function(){return Ar})),n.d(_,"withPlayer",(function(){return Sr})),n.d(_,"PrePlaybackPlayOverlay",(function(){return Ko})),n.d(_,"SeekBarLivePlaybackContainer",(function(){return cc})),n.d(_,"SeekBarPlaybackContainer",(function(){return Od})),n.d(_,"withLogger",(function(){return jn})),n.d(_,"Shell",(function(){return ki})),n.d(_,"PLAYER_SIZE",(function(){return Ei})),n.d(_,"Slider",(function(){return _u})),n.d(_,"SmartContainer",(function(){return fc})),n.d(_,"SmartContainerItem",(function(){return hc})),n.d(_,"TimeDisplay",(function(){return yc})),n.d(_,"TimeDisplayAdsContainer",(function(){return bc})),n.d(_,"TimeDisplayPlaybackContainer",(function(){return kc})),n.d(_,"Tooltip",(function(){return Oo})),n.d(_,"ToolTipType",(function(){return Ro})),n.d(_,"TopBar",(function(){return Sc})),n.d(_,"UnmuteIndication",(function(){return Rc})),n.d(_,"VideoPlayer",(function(){return Ma})),n.d(_,"Watermark",(function(){return Nc})),n.d(_,"Logo",(function(){return Bc})),n.d(_,"CastOverlay",(function(){return Wc})),n.d(_,"CastBeforePlay",(function(){return ep})),n.d(_,"CastAfterPlay",(function(){return ip})),n.d(_,"PlaylistButton",(function(){return dp})),n.d(_,"PrevNext",(function(){return op})),n.d(_,"PlaylistNextScreen",(function(){return Ep})),n.d(_,"PictureInPicture",(function(){return wp})),n.d(_,"PlaybackControls",(function(){return Sp})),n.d(_,"CopyButton",(function(){return Wu})),n.d(_,"ButtonControl",(function(){return ts})),n.d(_,"Button",(function(){return Bo})),n.d(_,"ToggleSwitch",(function(){return Op})),n.d(_,"AudioMenu",(function(){return Bp})),n.d(_,"CaptionsMenu",(function(){return Xp})),n.d(_,"SpeedMenu",(function(){return nd})),n.d(_,"QualityMenu",(function(){return sd})),n.d(_,"HeightResolution",(function(){return rd})),n.d(_,"getLabelBadgeType",(function(){return id})),n.d(_,"AdvancedAudioDescToggle",(function(){return pd})),n.d(_,"PlayerArea",(function(){return qn})),n.d(_,"withPlayerPreset",(function(){return Ni})),n.d(_,"Remove",(function(){return Hn})),n.d(_,"VideoArea",(function(){return bd})),n.d(_,"GuiArea",(function(){return oo})),n.d(_,"InteractiveArea",(function(){return _d})),n.d(_,"KeyboardControl",(function(){return Ss})),n.d(_,"Cast",(function(){return qs})),n.d(_,"CastControl",(function(){return qs})),n.d(_,"Fullscreen",(function(){return rl})),n.d(_,"FullscreenControl",(function(){return rl})),n.d(_,"PlayPause",(function(){return ll})),n.d(_,"PlayPauseControl",(function(){return ll})),n.d(_,"Rewind",(function(){return ps})),n.d(_,"RewindControl",(function(){return ps})),n.d(_,"Forward",(function(){return ms})),n.d(_,"ForwardControl",(function(){return ms})),n.d(_,"SeekBar",(function(){return Id})),n.d(_,"SeekBarControl",(function(){return Id})),n.d(_,"Settings",(function(){return ml})),n.d(_,"SettingsControl",(function(){return ml})),n.d(_,"Volume",(function(){return Sl})),n.d(_,"VolumeControl",(function(){return Sl})),n.d(_,"VrStereo",(function(){return Pl})),n.d(_,"VrStereoControl",(function(){return Pl})),n.d(_,"ClosedCaptions",(function(){return Rl})),n.d(_,"ClosedCaptionsControl",(function(){return Rl}));var E={};n.r(E),n.d(E,"idleUI",(function(){return lo})),n.d(E,"playbackUI",(function(){return Gd})),n.d(E,"adsUI",(function(){return qd})),n.d(E,"errorUI",(function(){return $d})),n.d(E,"liveUI",(function(){return Jd})),n.d(E,"imgUI",(function(){return nf}));var k={};n.r(k),n.d(k,"config",(function(){return l})),n.d(k,"cvaa",(function(){return f})),n.d(k,"engine",(function(){return u})),n.d(k,"getters",(function(){return b})),n.d(k,"loading",(function(){return d})),n.d(k,"overlayAction",(function(){return g})),n.d(k,"playlist",(function(){return y})),n.d(k,"seekbar",(function(){return c})),n.d(k,"setting",(function(){return h})),n.d(k,"shell",(function(){return s})),n.d(k,"volume",(function(){return p})),n.d(k,"overlay",(function(){return v}));var T={};n.r(T),n.d(T,"withEventManager",(function(){return Br})),n.d(T,"EventType",(function(){return On}));var A,w,S,C,x,I,P,D={},R=[],O=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function L(e,t){for(var n in t)e[n]=t[n];return e}function M(e){var t=e.parentNode;t&&t.removeChild(e)}function N(e,t,n){var r,i=arguments,a={};for(r in t)"key"!==r&&"ref"!==r&&(a[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r<arguments.length;r++)n.push(i[r]);if(null!=n&&(a.children=n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===a[r]&&(a[r]=e.defaultProps[r]);return U(e,a,t&&t.key,t&&t.ref,null)}function U(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i};return null==i&&(a.__v=a),A.vnode&&A.vnode(a),a}function F(){return{current:null}}function j(e){return e.children}function B(e,t){this.props=e,this.context=t}function V(e,t){if(null==t)return e.__?V(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?V(e):null}function H(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return H(e)}}function K(e){(!e.__d&&(e.__d=!0)&&S.push(e)&&!G.__r++||x!==A.debounceRendering)&&((x=A.debounceRendering)||C)(G)}function G(){for(var e;G.__r=S.length;)e=S.sort((function(e,t){return e.__v.__b-t.__v.__b})),S=[],e.some((function(e){var t,n,r,i,a,o,s;e.__d&&(o=(a=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=L({},a)).__v=r,i=Q(s,a,r,t.__n,void 0!==s.ownerSVGElement,null,n,null==o?V(a):o),Z(n,a),i!=o&&H(a)))}))}function z(e,t,n,r,i,a,o,s,l,u){var c,p,d,f,h,g,y,v=r&&r.__k||R,m=v.length;for(l==D&&(l=null!=o?o[0]:m?V(r,0):null),n.__k=[],c=0;c<t.length;c++)if(null!=(f=n.__k[c]=null==(f=t[c])||"boolean"==typeof f?null:"string"==typeof f||"number"==typeof f?U(null,f,null,null,f):Array.isArray(f)?U(j,{children:f},null,null,null):null!=f.__e||null!=f.__c?U(f.type,f.props,f.key,null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(d=v[c])||d&&f.key==d.key&&f.type===d.type)v[c]=void 0;else for(p=0;p<m;p++){if((d=v[p])&&f.key==d.key&&f.type===d.type){v[p]=void 0;break}d=null}h=Q(e,f,d=d||D,i,a,o,s,l,u),(p=f.ref)&&d.ref!=p&&(y||(y=[]),d.ref&&y.push(d.ref,null,f),y.push(p,f.__c||h,f)),null!=h?(null==g&&(g=h),l=Y(e,f,d,v,o,h,l),"option"==n.type?e.value="":"function"==typeof n.type&&(n.__d=l)):l&&d.__e==l&&l.parentNode!=e&&(l=V(d))}if(n.__e=g,null!=o&&"function"!=typeof n.type)for(c=o.length;c--;)null!=o[c]&&M(o[c]);for(c=m;c--;)null!=v[c]&&ee(v[c],v[c]);if(y)for(c=0;c<y.length;c++)J(y[c],y[++c],y[++c])}function W(e){return null==e||"boolean"==typeof e?[]:Array.isArray(e)?R.concat.apply([],e.map(W)):[e]}function Y(e,t,n,r,i,a,o){var s,l,u;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(i==n||a!=o||null==a.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(a),s=null;else{for(l=o,u=0;(l=l.nextSibling)&&u<r.length;u+=2)if(l==a)break e;e.insertBefore(a,o),s=o}return void 0!==s?s:a.nextSibling}function q(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]="number"==typeof n&&!1===O.test(t)?n+"px":null==n?"":n}function X(e,t,n,r,i){var a,o,s,l,u;if(i?"className"===t&&(t="class"):"class"===t&&(t="className"),"style"===t)if(a=e.style,"string"==typeof n)a.cssText=n;else{if("string"==typeof r&&(a.cssText="",r=null),r)for(l in r)n&&l in n||q(a,l,"");if(n)for(u in n)r&&n[u]===r[u]||q(a,u,n[u])}else"o"===t[0]&&"n"===t[1]?(o=t!==(t=t.replace(/Capture$/,"")),s=t.toLowerCase(),t=(s in e?s:t).slice(2),n?(r||e.addEventListener(t,$,o),(e.l||(e.l={}))[t]=n):e.removeEventListener(t,$,o)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&!i&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/^xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function $(e){this.l[e.type](A.event?A.event(e):e)}function Q(e,t,n,r,i,a,o,s,l){var u,c,p,d,f,h,g,y,v,m,b,_=t.type;if(void 0!==t.constructor)return null;(u=A.__b)&&u(t);try{e:if("function"==typeof _){if(y=t.props,v=(u=_.contextType)&&r[u.__c],m=u?v?v.props.value:u.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:("prototype"in _&&_.prototype.render?t.__c=c=new _(y,m):(t.__c=c=new B(y,m),c.constructor=_,c.render=te),v&&v.sub(c),c.props=y,c.state||(c.state={}),c.context=m,c.__n=r,p=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=_.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=L({},c.__s)),L(c.__s,_.getDerivedStateFromProps(y,c.__s))),d=c.props,f=c.state,p)null==_.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==_.getDerivedStateFromProps&&y!==d&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(y,m),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(y,c.__s,m)||t.__v===n.__v){c.props=y,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,c.__h.length&&o.push(c),function e(t,n,r){var i,a;for(i=0;i<t.__k.length;i++)(a=t.__k[i])&&(a.__=t,a.__e&&("function"==typeof a.type&&a.__k.length>1&&e(a,n,r),n=Y(r,a,a,t.__k,null,a.__e,n),"function"==typeof t.type&&(t.__d=n)))}(t,s,e);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(y,c.__s,m),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(d,f,h)}))}c.context=m,c.props=y,c.state=c.__s,(u=A.__r)&&u(t),c.__d=!1,c.__v=t,c.__P=e,u=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=L(L({},r),c.getChildContext())),p||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(d,f)),b=null!=u&&u.type==j&&null==u.key?u.props.children:u,z(e,Array.isArray(b)?b:[b],t,n,r,i,a,o,s,l),c.base=t.__e,c.__h.length&&o.push(c),g&&(c.__E=c.__=null),c.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,a,o,s){var l,u,c,p,d,f=n.props,h=t.props;if(i="svg"===t.type||i,null!=a)for(l=0;l<a.length;l++)if(null!=(u=a[l])&&((null===t.type?3===u.nodeType:u.localName===t.type)||e==u)){e=u,a[l]=null;break}if(null==e){if(null===t.type)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,h.is&&{is:h.is}),a=null,s=!1}if(null===t.type)f!==h&&e.data!=h&&(e.data=h);else{if(null!=a&&(a=R.slice.call(e.childNodes)),c=(f=n.props||D).dangerouslySetInnerHTML,p=h.dangerouslySetInnerHTML,!s){if(null!=a)for(f={},d=0;d<e.attributes.length;d++)f[e.attributes[d].name]=e.attributes[d].value;(p||c)&&(p&&c&&p.__html==c.__html||(e.innerHTML=p&&p.__html||""))}(function(e,t,n,r,i){var a;for(a in n)"children"===a||"key"===a||a in t||X(e,a,null,n[a],r);for(a in t)i&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||n[a]===t[a]||X(e,a,t[a],n[a],r)})(e,h,f,i,s),p?t.__k=[]:(l=t.props.children,z(e,Array.isArray(l)?l:[l],t,n,r,"foreignObject"!==t.type&&i,a,o,D,s)),s||("value"in h&&void 0!==(l=h.value)&&l!==e.value&&X(e,"value",l,f.value,!1),"checked"in h&&void 0!==(l=h.checked)&&l!==e.checked&&X(e,"checked",l,f.checked,!1))}return e}(n.__e,t,n,r,i,a,o,l);(u=A.diffed)&&u(t)}catch(e){t.__v=null,A.__e(e,t,n)}return t.__e}function Z(e,t){A.__c&&A.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){A.__e(e,t.__v)}}))}function J(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){A.__e(e,n)}}function ee(e,t,n){var r,i,a;if(A.unmount&&A.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||J(r,null,t)),n||"function"==typeof e.type||(n=null!=(i=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){A.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&ee(r[a],t,n);null!=i&&M(i)}function te(e,t,n){return this.constructor(e,n)}function ne(e,t,n){var r,i,a;A.__&&A.__(e,t),i=(r=n===I)?null:n&&n.__k||t.__k,e=N(j,null,[e]),a=[],Q(t,(r?t:n||t).__k=e,i||D,D,void 0!==t.ownerSVGElement,n&&!r?[n]:i?null:t.childNodes.length?R.slice.call(t.childNodes):null,a,n||D,r),Z(a,e)}function re(e,t){ne(e,t,I)}function ie(e,t){var n,r;for(r in t=L(L({},e.props),t),arguments.length>2&&(t.children=R.slice.call(arguments,2)),n={},t)"key"!==r&&"ref"!==r&&(n[r]=t[r]);return U(e.type,n,t.key||e.key,t.ref||e.ref,null)}function ae(e){var t={},n={__c:"__cC"+P++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,i=this;return this.getChildContext||(r=[],this.getChildContext=function(){return t[n.__c]=i,t},this.shouldComponentUpdate=function(e){i.props.value!==e.value&&r.some((function(t){t.context=e.value,K(t)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n.Provider.__=n,n}A={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return K(n.__E=n)}catch(t){e=t}throw e}},w=function(e){return null!=e&&void 0===e.constructor},B.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=L({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&L(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),K(this))},B.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),K(this))},B.prototype.render=j,S=[],C="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,G.__r=0,I=D,P=0;var oe,se,le,ue=0,ce=[],pe=A.__r,de=A.diffed,fe=A.__c,he=A.unmount;function ge(e,t){A.__h&&A.__h(se,e,ue||t),ue=0;var n=se.__H||(se.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ye(e){return ue=1,ve(Re,e)}function ve(e,t,n){var r=ge(oe++,2);return r.t=e,r.__c||(r.__c=se,r.__=[n?n(t):Re(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}]),r.__}function me(e,t){var n=ge(oe++,3);!A.__s&&De(n.__H,t)&&(n.__=e,n.__H=t,se.__H.__h.push(n))}function be(e,t){var n=ge(oe++,4);!A.__s&&De(n.__H,t)&&(n.__=e,n.__H=t,se.__h.push(n))}function _e(e){return ue=5,ke((function(){return{current:e}}),[])}function Ee(e,t,n){ue=6,be((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function ke(e,t){var n=ge(oe++,7);return De(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function Te(e,t){return ue=8,ke((function(){return e}),t)}function Ae(e){var t=se.context[e.__c],n=ge(oe++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(se)),t.props.value):e.__}function we(e,t){A.useDebugValue&&A.useDebugValue(t?t(e):e)}function Se(e){var t=ge(oe++,10),n=ye();return t.__=e,se.componentDidCatch||(se.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Ce(){ce.some((function(e){if(e.__P)try{e.__H.__h.forEach(Ie),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(t){return e.__H.__h=[],A.__e(t,e.__v),!0}})),ce=[]}A.__r=function(e){pe&&pe(e),oe=0;var t=(se=e.__c).__H;t&&(t.__h.forEach(Ie),t.__h.forEach(Pe),t.__h=[])},A.diffed=function(e){de&&de(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==ce.push(t)&&le===A.requestAnimationFrame||((le=A.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),xe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xe&&(t=requestAnimationFrame(n))})(Ce))},A.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ie),e.__h=e.__h.filter((function(e){return!e.__||Pe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],A.__e(n,e.__v)}})),fe&&fe(e,t)},A.unmount=function(e){he&&he(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Ie)}catch(e){A.__e(e,t.__v)}};var xe="function"==typeof requestAnimationFrame;function Ie(e){"function"==typeof e.u&&e.u()}function Pe(e){e.u=e.__()}function De(e,t){return!e||t.some((function(t,n){return t!==e[n]}))}function Re(e,t){return"function"==typeof t?t(e):t}function Oe(e,t){for(var n in t)e[n]=t[n];return e}function Le(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}var Me=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).isPureReactComponent=!0,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.shouldComponentUpdate=function(e,t){return Le(this.props,e)||Le(this.state,t)},r}(B),Ne=A.__b;A.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ne&&Ne(e)};var Ue="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Fe(e){function t(t,n){var r=Oe({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Ue,t.render=t,t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var je=function(e,t){return e?W(e).reduce((function(e,n,r){return e.concat(t(n,r))}),[]):null},Be={map:je,forEach:je,count:function(e){return e?W(e).length:0},only:function(e){if(1!==(e=W(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:W},Ve=A.__e;function He(e){return e&&((e=Oe({},e)).__c=null,e.__k=e.__k&&e.__k.map(He)),e}function Ke(){this.__u=0,this.o=null,this.__b=null}function Ge(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function ze(){this.i=null,this.l=null}A.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return r.__c(e,t.__c);Ve(e,t,n)},(Ke.prototype=new B).__c=function(e,t){var n=this;null==n.o&&(n.o=[]),n.o.push(t);var r=Ge(n.__v),i=!1,a=function(){i||(i=!0,r?r(o):o())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){a(),t.__c&&t.__c()};var o=function(){var e;if(!--n.__u)for(n.__v.__k[0]=n.state.u,n.setState({u:n.__b=null});e=n.o.pop();)e.forceUpdate()};n.__u++||n.setState({u:n.__b=n.__v.__k[0]}),e.then(a,a)},Ke.prototype.render=function(e,t){return this.__b&&(this.__v.__k&&(this.__v.__k[0]=He(this.__b)),this.__b=null),[N(j,null,t.u?null:e.children),t.u&&e.fallback]};var We=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(ze.prototype=new B).u=function(e){var t=this,n=Ge(t.__v),r=t.l.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),We(t,e,r)):i()};n?n(a):a()}},ze.prototype.render=function(e){this.i=null,this.l=new Map;var t=W(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},ze.prototype.componentDidUpdate=ze.prototype.componentDidMount=function(){var e=this;e.l.forEach((function(t,n){We(e,n,t)}))};var Ye=function(){function e(){}var t=e.prototype;return t.getChildContext=function(){return this.props.context},t.render=function(e){return e.children},e}();function qe(e){var t=this,n=e.container,r=N(Ye,{context:t.context},e.vnode);return t.s&&t.s!==n&&(t.v.parentNode&&t.s.removeChild(t.v),ee(t.h),t.p=!1),e.vnode?t.p?(n.__k=t.__k,ne(r,n),t.__k=n.__k):(t.v=document.createTextNode(""),re("",n),n.appendChild(t.v),t.p=!0,t.s=n,ne(r,n,t.v),t.__k=t.v.__k):t.p&&(t.v.parentNode&&t.s.removeChild(t.v),ee(t.h)),t.h=r,t.componentWillUnmount=function(){t.v.parentNode&&t.s.removeChild(t.v),ee(t.h)},null}function Xe(e,t){return N(qe,{vnode:e,container:t})}var $e=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;B.prototype.isReactComponent={};var Qe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ze=A.event;function Je(e,t){e["UNSAFE_"+t]&&!e[t]&&Object.defineProperty(e,t,{configurable:!1,get:function(){return this["UNSAFE_"+t]},set:function(e){this["UNSAFE_"+t]=e}})}A.event=function(e){Ze&&(e=Ze(e)),e.persist=function(){};var t=!1,n=!1,r=e.stopPropagation;e.stopPropagation=function(){r.call(e),t=!0};var i=e.preventDefault;return e.preventDefault=function(){i.call(e),n=!0},e.isPropagationStopped=function(){return t},e.isDefaultPrevented=function(){return n},e.nativeEvent=e};var et={configurable:!0,get:function(){return this.class}},tt=A.vnode;function nt(e){return!!e&&e.$$typeof===Qe}A.vnode=function(e){e.$$typeof=Qe;var t=e.type,n=e.props;if(t){if(n.class!=n.className&&(et.enumerable="className"in n,null!=n.className&&(n.class=n.className),Object.defineProperty(n,"className",et)),"function"!=typeof t){var r,i,a;for(a in n.defaultValue&&void 0!==n.value&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),Array.isArray(n.value)&&n.multiple&&"select"===t&&(W(n.children).forEach((function(e){-1!=n.value.indexOf(e.props.value)&&(e.props.selected=!0)})),delete n.value),n)if(r=$e.test(a))break;if(r)for(a in i=e.props={},n)i[$e.test(a)?a.replace(/[A-Z0-9]/,"-$&").toLowerCase():a]=n[a]}!function(t){var n=e.type,r=e.props;if(r&&"string"==typeof n){var i={};for(var a in r)/^on(Ani|Tra|Tou)/.test(a)&&(r[a.toLowerCase()]=r[a],delete r[a]),i[a.toLowerCase()]=a;if(i.ondoubleclick&&(r.ondblclick=r[i.ondoubleclick],delete r[i.ondoubleclick]),i.onbeforeinput&&(r.onbeforeinput=r[i.onbeforeinput],delete r[i.onbeforeinput]),i.onchange&&("textarea"===n||"input"===n.toLowerCase()&&!/^fil|che|ra/i.test(r.type))){var o=i.oninput||"oninput";r[o]||(r[o]=r[i.onchange],delete r[i.onchange])}}}(),"function"==typeof t&&!t.m&&t.prototype&&(Je(t.prototype,"componentWillMount"),Je(t.prototype,"componentWillReceiveProps"),Je(t.prototype,"componentWillUpdate"),t.m=!0)}tt&&tt(e)};var rt=function(e,t){return e(t)},it={useState:ye,useReducer:ve,useEffect:me,useLayoutEffect:be,useRef:_e,useImperativeHandle:Ee,useMemo:ke,useCallback:Te,useContext:Ae,useDebugValue:we,version:"16.8.0",Children:Be,render:function(e,t,n){if(null==t.__k)for(;t.firstChild;)t.removeChild(t.firstChild);return ne(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return re(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(ne(null,e),!0)},createPortal:Xe,createElement:N,createContext:ae,createFactory:function(e){return N.bind(null,e)},cloneElement:function(e){return nt(e)?ie.apply(null,arguments):e},createRef:F,Fragment:j,isValidElement:nt,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:B,PureComponent:Me,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Le(this.props,e)}function r(t){return this.shouldComponentUpdate=n,N(e,t)}return r.prototype.isReactComponent=!0,r.displayName="Memo("+(e.displayName||e.name)+")",r.t=!0,r},forwardRef:Fe,unstable_batchedUpdates:rt,StrictMode:j,Suspense:Ke,SuspenseList:ze,lazy:function(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return N(n,i)}return i.displayName="Lazy",i.t=!0,i}},at=(n(7),it.createContext(null)),ot=function(e){e()},st={notify:function(){}},lt=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=st,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=ot,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=st)},e}(),ut=function(e){var t=e.store,n=e.context,r=e.children,i=ke((function(){var e=new lt(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=ke((function(){return t.getState()}),[t]);me((function(){var e=i.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var o=n||at;return it.createElement(o.Provider,{value:i},r)};function ct(){return(ct=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pt(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var dt=n(2),ft=n.n(dt),ht=n(1),gt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?be:me,yt=[],vt=[null,null];function mt(e,t){var n=e[1];return[t.payload,n+1]}function bt(e,t,n){gt((function(){return e.apply(void 0,t)}),n)}function _t(e,t,n,r,i,a,o){e.current=r,t.current=i,n.current=!1,a.current&&(a.current=null,o())}function Et(e,t,n,r,i,a,o,s,l,u){if(e){var c=!1,p=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,i.current)}catch(e){n=e,p=e}n||(p=null),e===a.current?o.current||l():(a.current=e,s.current=e,o.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=d,n.trySubscribe(),d(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}}var kt=function(){return[null,0]};function Tt(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,a=n.methodName,o=void 0===a?"connectAdvanced":a,s=n.renderCountProp,l=void 0===s?void 0:s,u=n.shouldHandleStateChanges,c=void 0===u||u,p=n.storeKey,d=void 0===p?"store":p,f=(n.withRef,n.forwardRef),h=void 0!==f&&f,g=n.context,y=void 0===g?at:g,v=pt(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),m=y;return function(t){var n=t.displayName||t.name||"Component",r=i(n),a=ct({},v,{getDisplayName:i,methodName:o,renderCountProp:l,shouldHandleStateChanges:c,storeKey:d,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=v.pure,u=s?ke:function(e){return e()};function p(n){var r=ke((function(){var e=n.reactReduxForwardedRef,t=pt(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),i=r[0],o=r[1],s=r[2],l=ke((function(){return i&&i.Consumer&&Object(ht.isContextConsumer)(it.createElement(i.Consumer,null))?i:m}),[i,m]),p=Ae(l),d=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var f=d?n.store:p.store,h=ke((function(){return function(t){return e(t.dispatch,a)}(f)}),[f]),g=ke((function(){if(!c)return vt;var e=new lt(f,d?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,d,p]),y=g[0],v=g[1],b=ke((function(){return d?p:ct({},p,{subscription:y})}),[d,p,y]),_=ve(mt,yt,kt),E=_[0][0],k=_[1];if(E&&E.error)throw E.error;var T=_e(),A=_e(s),w=_e(),S=_e(!1),C=u((function(){return w.current&&s===A.current?w.current:h(f.getState(),s)}),[f,E,s]);bt(_t,[A,T,S,s,C,w,v]),bt(Et,[c,f,y,h,A,T,S,w,v,k],[f,y,h]);var x=ke((function(){return it.createElement(t,ct({},C,{ref:o}))}),[o,t,C]);return ke((function(){return c?it.createElement(l.Provider,{value:b},x):x}),[l,x,b])}var f=s?it.memo(p):p;if(f.WrappedComponent=t,f.displayName=r,h){var g=it.forwardRef((function(e,t){return it.createElement(f,ct({},e,{reactReduxForwardedRef:t}))}));return g.displayName=r,g.WrappedComponent=t,ft()(g,t)}return ft()(f,t)}}function At(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function wt(e,t){if(At(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!At(e[n[i]],t[n[i]]))return!1;return!0}var St=n(3),Ct=function(){return Math.random().toString(36).substring(7).split("").join(".")},xt={INIT:"@@redux/INIT"+Ct(),REPLACE:"@@redux/REPLACE"+Ct(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ct()}};function It(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Pt(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(Pt)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,a=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function p(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,u();var n=s.indexOf(e);s.splice(n,1),o=null}}}function d(e){if(!It(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,a=i(a,e)}finally{l=!1}for(var t=o=s,n=0;n<t.length;n++)(0,t[n])();return e}function f(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,d({type:xt.REPLACE})}function h(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[St.a]=function(){return this},e}return d({type:xt.INIT}),(r={dispatch:d,subscribe:p,getState:c,replaceReducer:f})[St.a]=h,r}function Dt(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function Rt(e,t){return function(){return t(e.apply(this,arguments))}}function Ot(e,t){if("function"==typeof e)return Rt(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=Rt(i,t))}return n}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mt(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(n,!0).forEach((function(t){Lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ut(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Ft(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function jt(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Bt(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=jt(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=jt(i),i=r(t,n)),i},r}}var Vt=[function(e){return"function"==typeof e?Bt(e):void 0},function(e){return e?void 0:Ft((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?Ft((function(t){return Ot(e,t)})):void 0}],Ht=[function(e){return"function"==typeof e?Bt(e):void 0},function(e){return e?void 0:Ft((function(){return{}}))}];function Kt(e,t,n){return ct({},n,{},e,{},t)}var Gt=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,a=n.areMergedPropsEqual,o=!1;return function(t,n,s){var l=e(t,n,s);return o?i&&a(l,r)||(r=l):(o=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return Kt}}];function zt(e,t,n,r){return function(i,a){return n(e(i,a),t(r,a),a)}}function Wt(e,t,n,r,i){var a,o,s,l,u,c=i.areStatesEqual,p=i.areOwnPropsEqual,d=i.areStatePropsEqual,f=!1;function h(i,f){var h,g,y=!p(f,o),v=!c(i,a);return a=i,o=f,y&&v?(s=e(a,o),t.dependsOnOwnProps&&(l=t(r,o)),u=n(s,l,o)):y?(e.dependsOnOwnProps&&(s=e(a,o)),t.dependsOnOwnProps&&(l=t(r,o)),u=n(s,l,o)):v?(h=e(a,o),g=!d(h,s),s=h,g&&(u=n(s,l,o)),u):u}return function(i,c){return f?h(i,c):(s=e(a=i,o=c),l=t(r,o),u=n(s,l,o),f=!0,u)}}function Yt(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,a=pt(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),o=n(e,a),s=r(e,a),l=i(e,a);return(a.pure?Wt:zt)(o,s,l,e,a)}function qt(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Xt(e,t){return e===t}var $t=function(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Tt:n,i=t.mapStateToPropsFactories,a=void 0===i?Ht:i,o=t.mapDispatchToPropsFactories,s=void 0===o?Vt:o,l=t.mergePropsFactories,u=void 0===l?Gt:l,c=t.selectorFactory,p=void 0===c?Yt:c;return function(e,t,n,i){void 0===i&&(i={});var o=i,l=o.pure,c=void 0===l||l,d=o.areStatesEqual,f=void 0===d?Xt:d,h=o.areOwnPropsEqual,g=void 0===h?wt:h,y=o.areStatePropsEqual,v=void 0===y?wt:y,m=o.areMergedPropsEqual,b=void 0===m?wt:m,_=pt(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),E=qt(e,a,"mapStateToProps"),k=qt(t,s,"mapDispatchToProps"),T=qt(n,u,"mergeProps");return r(p,ct({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:k,initMergeProps:T,pure:c,areStatesEqual:f,areOwnPropsEqual:g,areStatePropsEqual:v,areMergedPropsEqual:b},_))}}();function Qt(){return Ae(at)}function Zt(e){void 0===e&&(e=at);var t=e===at?Qt:function(){return Ae(e)};return function(){return t().store}}var Jt=Zt();function en(e){void 0===e&&(e=at);var t=e===at?Jt:Zt(e);return function(){return t().dispatch}}var tn=en(),nn=function(e,t){return e===t};function rn(e){void 0===e&&(e=at);var t=e===at?Qt:function(){return Ae(e)};return function(e,n){void 0===n&&(n=nn);var r=t(),i=function(e,t,n,r){var i,a=ve((function(e){return e+1}),0)[1],o=ke((function(){return new lt(n,r)}),[n,r]),s=_e(),l=_e(),u=_e(),c=_e(),p=n.getState();try{i=e!==l.current||p!==u.current||s.current?e(p):c.current}catch(e){throw s.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),e}return gt((function(){l.current=e,u.current=p,c.current=i,s.current=void 0})),gt((function(){function e(){try{var e=l.current(n.getState());if(t(e,c.current))return;c.current=e}catch(e){s.current=e}a()}return o.onStateChange=e,o.trySubscribe(),e(),function(){return o.tryUnsubscribe()}}),[n,o]),i}(e,n,r.store,r.subscription);return we(i),i}}var an=rn();ot=rt;var on=n(4),sn=n.n(on);function ln(e){return null!=e}function un(e,t){for(var n in t)e[n]=t[n];return e}var cn=/[?&#]intl=show/,pn=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getChildContext=function(){var e=this.props,t=e.scope,n=e.definition,r=e.mark,i=un({},this.context.intl||{});return t&&(i.scope=t),n&&(i.dictionary=function e(t,n){var r=un({},t);for(var i in n)n.hasOwnProperty(i)&&(t[i]&&n[i]&&"object"==typeof t[i]&&"object"==typeof n[i]?r[i]=e(t[i],n[i]):r[i]=t[i]||n[i]);return r}(i.dictionary||{},n)),(r||"undefined"!=typeof location&&String(location).match(cn))&&(i.mark=!0),{intl:i}},t.prototype.render=function(e){return e.children},t}(B);function dn(e,t){if(arguments.length<2)return t=e,function(e){return dn(e,t)};function n(n){return N(pn,t||{},N(e,n))}return n.getWrappedComponent=e&&e.getWrappedComponent||function(){return e},n}var fn,hn={};function gn(e,t){return fn=t||hn,e&&e.replace(/\{\{([\w.-]+)\}\}/g,yn)}function yn(e,t){for(var n=t.split("."),r=fn,i=0;i<n.length;i++)if(null==(r=r[n[i]]))return"";return"string"==typeof r&&r.match(/\{\{/)&&(r=gn(r,fn)),r}function vn(e,t,n,r,i,a){t&&(e=t+"."+e);var o=n&&sn()(n,e);return(i||0===i)&&o&&"object"==typeof o&&(o=o.splice?o[i]||o[0]:0===i&&ln(o.none)?o.none:1===i&&ln(o.one||o.singular)?o.one||o.singular:o.some||o.many||o.plural||o.other||o),o&&gn(o,r)||a||null}function mn(e,t){var n=e.value,r=e.id,i=t.intl;if(i&&i.mark){var a="dictionary"+(i&&i.scope?"."+i.scope:"")+"."+r;return N("mark",{style:{background:n?sn()(i,a)?"rgba(119,231,117,.5)":"rgba(229,226,41,.5)":"rgba(228,147,51,.5)"},title:r},n)}return n}function bn(e,t){var n=e.id,r=e.children,i=e.plural,a=e.fields,o=t.intl;return N(mn,{id:n,value:vn(n,o&&o.scope,o&&o.dictionary,a,i,r)})}function _n(e,t,n){var r={};for(var i in t=t||{},e=function(e){if("string"==typeof(e=e||{})&&(e=e.split(",")),"join"in e){for(var t={},n=0;n<e.length;n++){var r=e[n].trim();r&&(t[r.split(".").pop()]=r)}return t}return e}(e))if(e.hasOwnProperty(i)&&e[i]){var a=e[i];n||"string"!=typeof a?a.type===bn&&(a=un({fallback:a.props.children},a.props),r[i]=vn(a.id,t.scope,t.dictionary,a.fields,a.plural,a.fallback)):r[i]=vn(a,t.scope,t.dictionary)}return r}function En(e,t){var n=e.children,r=t.intl;return n&&n.length?n.map((function(e){return ie(e,_n(e.props,r,!0))})):n&&ie(n,_n(n.props,r,!0))}function kn(e){return N(En,null,N(Tn,{html:N(bn,e),id:e.id}))}function Tn(e){var t=e.html,n=e.id,r=t?"string"==typeof t?N("span",{dangerouslySetInnerHTML:{__html:t}}):N("span",null,t):t;return N(mn,{id:n,value:r})}function An(e){return function(t){function n(n,r){var i=_n("function"==typeof e?e(n,r):e,r.intl);return N(t,un(un({},n),i))}return n.getWrappedComponent=t&&t.getWrappedComponent||function(){return t},n}}dn.intl=dn,dn.IntlProvider=pn,dn.Text=bn,dn.MarkupText=kn,dn.Localizer=En,dn.withText=An;var wn=dn;function Sn(e){return e&&"object"==typeof e&&!Array.isArray(e)}function Cn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();if(Sn(e)&&Sn(i))for(var a in i){var o,s;Sn(i[a])?(e[a]||Object.assign(e,((o={})[a]={},o)),Cn(e[a],i[a])):Object.assign(e,((s={})[a]=i[a],s))}return Cn.apply(void 0,[e].concat(n))}var xn={get:function(){return{VERSION:"",DEBUG:{value:"",name:""},ERROR:{value:"",name:""},INFO:{value:"",name:""},OFF:{value:"",name:""},TIME:{value:"",name:""},TRACE:{value:"",name:""},WARN:{value:"",name:""},createDefaultHandler:function(){},debug:function(){},enabledFor:function(){},error:function(){},get:function(){},getLevel:function(){},info:function(){},log:function(){},setHandler:function(){},setLevel:function(){},time:function(){},timeEnd:function(){},trace:function(){},useDefaults:function(){},warn:function(){}}}},In={};function Pn(e){return xn.get(e)}var Dn=Pn,Rn="playkit-ui",On={UI_CLICKED:Rn+"-uiclicked",UI_VISIBILITY_CHANGED:Rn+"-uivisibilitychanged",GUI_RESIZE:Rn+"-guiresize",PLAYER_RESIZE:Rn+"-playerresize",VIDEO_RESIZE:Rn+"-videoresize",UI_PRESET_CHANGE:Rn+"-uipresetchange",USER_CLICKED_PLAY:Rn+"-userclickedplay",USER_CLICKED_PAUSE:Rn+"-userclickedpause",USER_CLICKED_REWIND:Rn+"-userclickedrewind",USER_CLICKED_FORWARD:Rn+"-userclickedforward",USER_CLICKED_LIVE_TAG:Rn+"-userclickedlivetag",USER_CLICKED_MUTE:Rn+"-userclickedmute",USER_CLICKED_UNMUTE:Rn+"-userclickedunmute",USER_CLICKED_ADVANCED_AUDIO_DESCRIPTION:Rn+"-userclickedadvancedaudiodescription",USER_CHANGED_VOLUME:Rn+"-userchangedvolume",USER_SELECTED_CAPTION_TRACK:Rn+"-userselectedcaptiontrack",USER_SHOWED_CAPTIONS:Rn+"-usershowedcaptions",USER_HID_CAPTIONS:Rn+"-userhidcaptions",USER_SELECTED_AUDIO_TRACK:Rn+"-userselectedaudiotrack",USER_SELECTED_QUALITY_TRACK:Rn+"-userselectedqualitytrack",USER_ENTERED_FULL_SCREEN:Rn+"-userenteredfullscreen",USER_EXITED_FULL_SCREEN:Rn+"-userexitedfullscreen",USER_ENTERED_PICTURE_IN_PICTURE:Rn+"-userenteredpictureinpicture",USER_EXITED_PICTURE_IN_PICTURE:Rn+"-userexitedpictureinpicture",USER_SELECTED_CAPTIONS_STYLE:Rn+"-userselectedcaptionsstyle",USER_SELECTED_SPEED:Rn+"-userselectedspeed",USER_SEEKED:Rn+"-userseeked",RESIZE:Rn+"-resize"},Ln={TAB:9,ENTER:13,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,P:80,C:67,F:70,M:77,SEMI_COLON:186,COMMA:188,PERIOD:190};function Mn(){return(Mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Nn,Un,Fn,jn=function(e){return function(t){return function(n){var r,i;function a(){var t;return(t=n.call(this)||this).logger=Dn("UI "+e),t.logger.debug("Initialized"),t}return i=n,(r=a).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i,a.prototype.render=function(){return N(t,Mn({},this.props,{logger:this.logger}))},a}(B)}};function Bn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hn="remove";function Kn(e,t){return e[t]=e[t]||{before:[],after:[],replace:null},e[t]}var Gn,zn,Wn,Yn={playerAreaComponents:null,hasPositionedComponents:!1,presetComponentsOnlyMode:!0},qn=jn("PlayerArea")(Nn=$t((function(e){return{activePresetName:e.shell.activePresetName}}))((Fn=Un=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Vn(Bn(t=e.call.apply(e,[this].concat(r))||this),"_updateAreaComponents",(function(e){var n=t.props,r=n.activePresetName,i=n.name;t.props.logger.debug("Player area '"+i+"' in preset '"+r+"' - update children components");var a={},o={appendedComponents:[],positionedComponentMap:a},s=!1;e.forEach((function(e){e.beforeComponent?(Kn(a,e.beforeComponent).before.push(e),s=!0):e.afterComponent?(Kn(a,e.afterComponent).after.push(e),s=!0):e.replaceComponent?(Kn(a,e.replaceComponent).replace=e,s=!0):o.appendedComponents.push(e)})),t.setState({playerAreaComponents:o,hasPositionedComponents:s,presetComponentsOnlyMode:!1})})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.shouldComponentUpdate=function(e,t){return e.shouldUpdate||this.state.playerAreaComponents!==t.playerAreaComponents||e.activePresetName!==this.props.activePresetName},i.componentDidUpdate=function(e){e.activePresetName!==this.props.activePresetName&&this._registerListener()},i._unregisterListener=function(){this.props.logger.debug("Player area '"+this.props.name+"' - unregister to changes"),"function"==typeof this._unregisterListenerCallback&&(this._unregisterListenerCallback(),this._unregisterListenerCallback=null)},i._registerListener=function(){var e=this.props,t=e.activePresetName,n=e.name;this._unregisterListener(),t&&n&&(this.props.logger.debug("Player area '"+n+"' in preset '"+t+"' - register to changes"),this._unregisterListenerCallback=this.context.playerAreaComponentsStore.listen(t,n,this._updateAreaComponents))},i.componentDidMount=function(){this.props.logger.debug("Player area '"+this.props.name+"' - handle did mount"),this.setState(Yn),this._registerListener(),this._actualChildren=[]},i.componentWillUpdate=function(e){var t=e.children;this._actualChildren=t&&t.type===j?t.props.children:t},i.componentWillUnmount=function(){var e=this.props.name;this.props.logger.debug("Player area '"+e+"' - handle will unmount"),this._unregisterListener()},i._renderUIComponent=function(e){return e.get?N(e.get,e.props):null},i.renderContent=function(e){return N(j,null,e)},i._getPositionedComponents=function(e){var t=this,n=this.state.playerAreaComponents,r=[];return W(e).forEach((function(e){if("div"===e.type||e.type===j)return e.props.children=t._getPositionedComponents(e.props.children),void r.push(e);var i,a=(i=e)&&i.type?i.type.displayName:null;if(a){var o=n.positionedComponentMap[a];if(o){var s=o.replace,l=o.before,u=o.after;if(s){if(s.get===Hn)return;return"string"!=typeof s.get&&(s.props=s.props||{},s.props.replacedComponentProps=e.props),void r.push(t._renderUIComponent(s))}l.length&&l.forEach((function(e){r.push(t._renderUIComponent(e))})),r.push(e),u.length&&u.forEach((function(e){r.push(t._renderUIComponent(e))}))}else r.push(e)}else r.push(e)})),r},i.render=function(){var e,t=this,n=this.props.show,r=this.state,i=r.playerAreaComponents,a=r.hasPositionedComponents;if(r.presetComponentsOnlyMode)return this.renderContent(this._actualChildren);if(!i||!n)return null;var o,s=[];a?s=this._getPositionedComponents(this._actualChildren):(o=s).push.apply(o,W(this._actualChildren));var l=i.appendedComponents.map((function(e){return t._renderUIComponent(e)})),u=s.length;return(e=s).splice.apply(e,[u,0].concat(l)),this.renderContent(s)},r}(B),Vn(Un,"defaultProps",{show:!0}),Nn=Fn))||Nn)||Nn,Xn=function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(e[n[i]]!==t[n[i]])return!1;return!0};function $n(){return($n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Qn={ADD_PLAYER_CLASS:"shell/ADD_PLAYER_CLASS",REMOVE_PLAYER_CLASS:"shell/REMOVE_PLAYER_CLASS",UPDATE_IS_MOBILE:"shell/UPDATE_IS_MOBILE",UPDATE_PLAYER_SIZE:"shell/UPDATE_PLAYER_SIZE",UPDATE_IS_SMALL_SIZE:"shell/UPDATE_IS_SMALL_SIZE",UPDATE_GUI_CLIENT_RECT:"shell/UPDATE_GUI_CLIENT_RECT",UPDATE_PLAYER_CLIENT_RECT:"shell/UPDATE_PLAYER_CLIENT_RECT",UPDATE_VIDEO_CLIENT_RECT:"shell/UPDATE_VIDEO_CLIENT_RECT",UPDATE_DOCUMENT_WIDTH:"shell/UPDATE_DOCUMENT_WIDTH",UPDATE_PLAYER_HOVER_STATE:"shell/UPDATE_PLAYER_HOVER_STATE",UPDATE_PLAYER_NAV_STATE:"shell/UPDATE_PLAYER_NAV_STATE",UPDATE_SMART_CONTAINER_OPEN:"shell/UPDATE_SMART_CONTAINER_OPEN",UPDATE_ACTIVE_PRESET_NAME:"shell/UPDATE_ACTIVE_PRESET_NAME",UPDATE_SIDE_PANEL_MODE:"shell/UPDATE_SIDE_PANEL_MODE",UPDATE_SIDE_PANEL_SIZE:"shell/UPDATE_SIDE_PANEL_SIZE",UPDATE_PRESET_SETTINGS:"shell/UPDATE_PRESET_SETTINGS",UPDATE_LAYOUT_STYLES:"shell/UPDATE_LAYOUT_STYLES"},Zn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Jn={LEFT:"left",TOP:"top",BOTTOM:"bottom",RIGHT:"right"},er={ALONGSIDE:"alongside",HIDDEN:"hidden",OVER:"over"},tr={Playback:"Playback",Live:"Live",Ads:"Ads",Error:"Error",Idle:"Idle"},nr={PlayerArea:"PlayerArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea",VideoArea:"VideoArea",GuiArea:"GuiArea",TopBar:"TopBar",BottomBar:"BottomBar",PresetFloating:"PresetFloating",TopBarLeftControls:"TopBarLeftControls",TopBarRightControls:"TopBarRightControls",BottomBarLeftControls:"BottomBarLeftControls",BottomBarRightControls:"BottomBarRightControls",SidePanelTop:"SidePanelTop",SidePanelLeft:"SidePanelLeft",SidePanelRight:"SidePanelRight",SidePanelBottom:"SidePanelBottom",SeekBar:"SeekBar",LoadingSpinner:"LoadingSpinner"},rr={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0},ir={position:"absolute",left:0,right:0,top:0,bottom:0},ar={playerClasses:[],guiClientRect:rr,playerClientRect:rr,videoClientRect:rr,layoutStyles:{video:ir,gui:ir,sidePanels:(Gn={},Gn[Jn.LEFT]={},Gn[Jn.RIGHT]={},Gn[Jn.TOP]={},Gn[Jn.BOTTOM]={},Gn)},playerHover:!1,playerNav:!1,smartContainerOpen:!1,activePresetName:"",sidePanelsModes:(zn={},zn[Jn.LEFT]=er.HIDDEN,zn[Jn.RIGHT]=er.HIDDEN,zn[Jn.TOP]=er.HIDDEN,zn[Jn.BOTTOM]=er.HIDDEN,zn),sidePanelsSizes:(Wn={},Wn[Zn.VERTICAL]={min:240,max:480,ratio:.33},Wn[Zn.HORIZONTAL]={min:144,max:288,ratio:.33},Wn),presetSettings:{allowSidePanels:!1,allowPlayerArea:!1}},or=function(e,t){var n;switch(void 0===e&&(e=ar),t.type){case Qn.ADD_PLAYER_CLASS:return e.playerClasses.includes(t.className)?e:$n({},e,{playerClasses:[].concat(e.playerClasses,[t.className])});case Qn.REMOVE_PLAYER_CLASS:return $n({},e,{playerClasses:e.playerClasses.filter((function(e){return e!==t.className}))});case Qn.UPDATE_IS_MOBILE:return $n({},e,{isMobile:t.isMobile});case Qn.UPDATE_PLAYER_SIZE:return $n({},e,{playerSize:t.playerSize});case Qn.UPDATE_IS_SMALL_SIZE:return $n({},e,{isSmallSize:t.isSmallSize});case Qn.UPDATE_GUI_CLIENT_RECT:return $n({},e,{guiClientRect:t.guiClientRect});case Qn.UPDATE_PLAYER_CLIENT_RECT:return $n({},e,{playerClientRect:t.playerClientRect});case Qn.UPDATE_LAYOUT_STYLES:var r,i=e.layoutStyles,a=i.sidePanels,o=i.video,s=i.gui,l=t.layoutStyles,u=l.sidePanels,c=l.video,p=l.gui;return $n({},e,{layoutStyles:{sidePanels:(r={},r[Jn.LEFT]=Xn(a[Jn.LEFT],u[Jn.LEFT])?a[Jn.LEFT]:u[Jn.LEFT],r[Jn.RIGHT]=Xn(a[Jn.RIGHT],u[Jn.RIGHT])?a[Jn.RIGHT]:u[Jn.RIGHT],r[Jn.TOP]=Xn(a[Jn.TOP],u[Jn.TOP])?a[Jn.TOP]:u[Jn.TOP],r[Jn.BOTTOM]=Xn(a[Jn.BOTTOM],u[Jn.BOTTOM])?a[Jn.BOTTOM]:u[Jn.BOTTOM],r),video:Xn(o,c)?o:c,gui:Xn(s,p)?s:p}});case Qn.UPDATE_VIDEO_CLIENT_RECT:return $n({},e,{videoClientRect:t.videoClientRect});case Qn.UPDATE_DOCUMENT_WIDTH:return $n({},e,{documentWidth:t.documentWidth});case Qn.UPDATE_PLAYER_HOVER_STATE:return $n({},e,{playerHover:t.hover});case Qn.UPDATE_PLAYER_NAV_STATE:return $n({},e,{playerNav:t.nav});case Qn.UPDATE_SMART_CONTAINER_OPEN:return $n({},e,{smartContainerOpen:t.open});case Qn.UPDATE_ACTIVE_PRESET_NAME:return $n({},e,{activePresetName:t.activePresetName});case Qn.UPDATE_SIDE_PANEL_MODE:return $n({},e,{sidePanelsModes:$n({},e.sidePanelsModes,(n={},n[t.position]=t.sidePanelMode,n))});case Qn.UPDATE_SIDE_PANEL_SIZE:var d,f=t.options,h=f.ratio,g=f.min,y=f.max,v=e.sidePanelsSizes[t.orientation],m={ratio:"number"==typeof h&&h<=1?h:v.ratio,min:"number"==typeof g?g:v.min,max:"number"==typeof y?y:v.max};return $n({},e,{sidePanelsSizes:$n({},e.sidePanelsSizes,(d={},d[t.orientation]=m,d))});case Qn.UPDATE_PRESET_SETTINGS:return $n({},e,{presetSettings:$n({},{allowSidePanels:!1,allowPlayerArea:!1},t.presetSettings||{})});default:return e}},sr={addPlayerClass:function(e){return{type:Qn.ADD_PLAYER_CLASS,className:e}},removePlayerClass:function(e){return{type:Qn.REMOVE_PLAYER_CLASS,className:e}},updateIsMobile:function(e){return{type:Qn.UPDATE_IS_MOBILE,isMobile:e}},updatePlayerSize:function(e){return{type:Qn.UPDATE_PLAYER_SIZE,playerSize:e}},updateIsSmallSize:function(e){return{type:Qn.UPDATE_IS_SMALL_SIZE,isSmallSize:e}},updateGuiClientRect:function(e){return{type:Qn.UPDATE_GUI_CLIENT_RECT,guiClientRect:e}},updatePlayerClientRect:function(e){return{type:Qn.UPDATE_PLAYER_CLIENT_RECT,playerClientRect:e}},updateVideoClientRect:function(e){return{type:Qn.UPDATE_VIDEO_CLIENT_RECT,videoClientRect:e}},updateDocumentWidth:function(e){return{type:Qn.UPDATE_DOCUMENT_WIDTH,documentWidth:e}},updatePlayerHoverState:function(e){return{type:Qn.UPDATE_PLAYER_HOVER_STATE,hover:e}},updatePlayerNavState:function(e){return{type:Qn.UPDATE_PLAYER_NAV_STATE,nav:e}},updateSmartContainerOpen:function(e){return{type:Qn.UPDATE_SMART_CONTAINER_OPEN,open:e}},updateActivePresetName:function(e){return{type:Qn.UPDATE_ACTIVE_PRESET_NAME,activePresetName:e}},updateSidePanelMode:function(e,t){return{type:Qn.UPDATE_SIDE_PANEL_MODE,position:e,sidePanelMode:t}},updateSidePanelSize:function(e,t){return{type:Qn.UPDATE_SIDE_PANEL_SIZE,orientation:e,options:t}},updatePresetSettings:function(e){return{type:Qn.UPDATE_PRESET_SETTINGS,presetSettings:e}},updateLayoutStyles:function(e){return{type:Qn.UPDATE_LAYOUT_STYLES,layoutStyles:e}}};function lr(){return(lr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ur(e){return function(t){return lr({},Ot(e,t))}}var cr=n(0),pr=n.n(cr);function dr(e,t,n){var r=n.config.components&&n.config.components[e];return r?Cn(t,r):t}function fr(e,t,n){return n.componentAlias===e?Cn(t,n.config):t}function hr(){return(hr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var gr={UPDATE:"config/UPDATE",UPDATE_COMPONENT:"config/UPDATE_COMPONENT",RESET:"config/RESET"},yr={forceTouchUI:!1,showCCButton:!0,settings:{showAudioMenu:!0,showCaptionsMenu:!0,showQualityMenu:!0,showSpeedMenu:!0,showAdvancedAudioDescToggle:!1,showAdvancedCaptionsMenu:!0},hoverTimeout:3e3,components:{watermark:{},seekbar:{},vrStereo:{},logo:{},fullscreen:{},sidePanels:{}}},vr=function(e,t){switch(void 0===e&&(e=yr),t.type){case gr.UPDATE:return hr({},e,Cn({},e,t.config));case gr.UPDATE_COMPONENT:var n;return hr({},e,{components:hr({},e.components,(n={},n[t.componentAlias]=Cn({},e.components[t.componentAlias],t.config),n))});default:return e}},mr={updateConfig:function(e){return{type:gr.UPDATE,config:e}},updateComponentConfig:function(e,t){return{type:gr.UPDATE_COMPONENT,componentAlias:e,config:t}}};function br(){return(br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _r={UPDATE_PLAYER_STATE:"engine/UPDATE_PLAYER_STATE",UPDATE_PRE_PLAYBACK:"engine/UPDATE_PRE_PLAYBACK",UPDATE_IS_PLAYING:"engine/UPDATE_IS_PLAYING",UPDATE_IS_PAUSED:"engine/UPDATE_IS_PAUSED",UPDATE_IS_SEEKING:"engine/UPDATE_IS_SEEKING",UPDATE_LAST_SEEK_POINT:"engine/UPDATE_LAST_SEEK_POINT",UPDATE_IS_CHANGING_SOURCE:"engine/UPDATE_IS_CHANGING_SOURCE",UPDATE_IS_ENDED:"engine/UPDATE_IS_ENDED",UPDATE_IS_PLAYBACK_STARTED:"engine/UPDATE_IS_PLAYBACK_STARTED",UPDATE_IS_PLAYBACK_ENDED:"engine/UPDATE_IS_PLAYBACK_ENDED",UPDATE_CURRENT_TIME:"engine/UPDATE_CURRENT_TIME",UPDATE_DURATION:"engine/UPDATE_DURATION",UPDATE_VOLUME:"engine/UPDATE_VOLUME",UPDATE_MUTED:"engine/UPDATE_MUTED",UPDATE_METADATA_LOADING_STATUS:"engine/UPDATE_METADATA_LOADING_STATUS",UPDATE_DATA_LOADING_STATUS:"engine/UPDATE_DATA_LOADING_STATUS",UPDATE_AUDIO_TRACKS:"engine/UPDATE_AUDIO_TRACKS",UPDATE_VIDEO_TRACKS:"engine/UPDATE_VIDEO_TRACKS",UPDATE_TEXT_TRACKS:"engine/UPDATE_TEXT_TRACKS",UPDATE_AD_BREAK:"engine/UPDATE_AD_BREAK",UPDATE_AD_BREAK_PROGRESS:"engine/UPDATE_AD_BREAK_PROGRESS",UPDATE_AD_BREAK_COMPLETED:"engine/UPDATE_AD_BREAK_COMPLETED",UPDATE_AD_IS_PLAYING:"engine/UPDATE_AD_IS_PLAYING",UPDATE_AD_SKIP_TIME_OFFSET:"engine/UPDATE_AD_SKIP_TIME_OFFSET",UPDATE_AD_SKIPPABLE_STATE:"engine/UPDATE_AD_SKIPPABLE_STATE",UPDATE_AD_URL:"engine/UPDATE_AD_URL",UPDATE_AD_IS_LINEAR:"engine/UPDATE_AD_IS_LINEAR",UPDATE_AD_IS_BUMPER:"engine/UPDATE_AD_IS_BUMPER",UPDATE_AD_CONTENT_TYPE:"engine/UPDATE_AD_CONTENT_TYPE",UPDATE_PLAYER_POSTER:"engine/UPDATE_PLAYER_POSTER",UPDATE_IS_LIVE:"engine/UPDATE_IS_LIVE",UPDATE_IS_DVR:"engine/UPDATE_IS_DVR",UPDATE_IS_IMG:"engine/UPDATE_IS_IMG",UPDATE_ERROR:"engine/ERROR",UPDATE_IS_IDLE:"engine/UPDATE_IS_IDLE",UPDATE_FALLBACK_TO_MUTED_AUTOPLAY:"engine/UPDATE_FALLBACK_TO_MUTED_AUTOPLAY",UPDATE_IS_VR:"engine/UPDATE_IS_VR",UPDATE_VR_STEREO_MODE:"engine/UPDATE_VR_STEREO_MODE",UPDATE_IS_CASTING:"engine/UPDATE_IS_CASTING",UPDATE_CAST_SESSION:"engine/UPDATE_CAST_SESSION",UPDATE_IS_CAST_AVAILABLE:"engine/UPDATE_IS_CAST_AVAILABLE",UPDATE_PLAYLIST:"engine/UPDATE_PLAYLIST",UPDATE_PICTURE_IN_PICTURE_SUPPORTED:"engine/UPDATE_PICTURE_IN_PICTURE_SUPPORTED",UPDATE_PICTURE_IN_PICTURE_MODE:"engine/UPDATE_PICTURE_IN_PICTURE_MODE",UPDATE_FULLSCREEN:"engine/UPDATE_FULLSCREEN"},Er={isIdle:!1,isPlaying:!1,isPaused:!1,isSeeking:!1,isEnded:!1,isPlaybackStarted:!1,isPlaybackEnded:!1,isChangingSource:!1,prePlayback:!0,metadataLoaded:!1,dataLoaded:!1,playerState:{previousState:"",currentState:""},fallbackToMutedAutoPlay:!1,poster:"",currentTime:0,lastSeekPoint:0,duration:0,volume:1,muted:!1,videoTracks:[],audioTracks:[],textTracks:[],adIsLinear:!1,adBreak:!1,adIsPlaying:!1,adSkipTimeOffset:0,adSkippableState:!1,adIsBumper:!1,adContentType:null,isLive:!1,isDvr:!1,isImg:!1,adProgress:{currentTime:0,duration:0},adUrl:"",hasError:!1,isVr:!1,vrStereoMode:!1,isCasting:!1,castSession:null,isCastAvailable:!1,pictureInPictureSupported:!1,isInPictureInPicture:!1,playlist:null,fullscreen:!1},kr=function(e,t){switch(void 0===e&&(e=Er),t.type){case gr.UPDATE:return dr("engine",e,t);case gr.UPDATE_COMPONENT:return fr("engine",e,t);case _r.UPDATE_ERROR:return br({},e,{hasError:t.hasError});case _r.UPDATE_PLAYER_STATE:return br({},e,{playerState:t.playerState});case _r.UPDATE_PRE_PLAYBACK:return br({},e,{prePlayback:t.prePlayback});case _r.UPDATE_IS_PLAYING:return br({},e,{isPlaying:t.isPlaying});case _r.UPDATE_IS_PAUSED:return br({},e,{isPaused:t.isPaused});case _r.UPDATE_IS_SEEKING:return br({},e,{isSeeking:t.isSeeking});case _r.UPDATE_LAST_SEEK_POINT:return br({},e,{lastSeekPoint:t.lastSeekPoint});case _r.UPDATE_IS_ENDED:return br({},e,{isEnded:t.isEnded});case _r.UPDATE_IS_PLAYBACK_STARTED:return br({},e,{isPlaybackStarted:t.isPlaybackStarted});case _r.UPDATE_IS_PLAYBACK_ENDED:return br({},e,{isPlaybackEnded:t.isPlaybackEnded});case _r.UPDATE_CURRENT_TIME:return br({},e,{currentTime:t.currentTime});case _r.UPDATE_DURATION:return br({},e,{duration:t.duration});case _r.UPDATE_VOLUME:return br({},e,{volume:t.volume});case _r.UPDATE_MUTED:return br({},e,{muted:t.muted});case _r.UPDATE_METADATA_LOADING_STATUS:return br({},e,{metadataLoaded:t.metadataLoaded});case _r.UPDATE_DATA_LOADING_STATUS:return br({},e,{dataLoaded:t.dataLoaded});case _r.UPDATE_AUDIO_TRACKS:return br({},e,{audioTracks:t.tracks});case _r.UPDATE_VIDEO_TRACKS:return br({},e,{videoTracks:t.tracks});case _r.UPDATE_TEXT_TRACKS:return br({},e,{textTracks:t.tracks});case _r.UPDATE_AD_BREAK:return br({},e,{adBreak:t.adBreak});case _r.UPDATE_AD_BREAK_PROGRESS:return br({},e,{adProgress:t.adProgress});case _r.UPDATE_AD_BREAK_COMPLETED:return br({},e,{adProgress:{currentTime:e.adProgress.duration,duration:e.adProgress.duration}});case _r.UPDATE_AD_IS_PLAYING:return br({},e,{adIsPlaying:t.adIsPlaying});case _r.UPDATE_AD_IS_LINEAR:return br({},e,{adIsLinear:t.adIsLinear});case _r.UPDATE_AD_SKIP_TIME_OFFSET:return br({},e,{adSkipTimeOffset:t.adSkipTimeOffset});case _r.UPDATE_AD_SKIPPABLE_STATE:return br({},e,{adSkippableState:t.adSkippableState});case _r.UPDATE_AD_URL:return br({},e,{adUrl:t.adUrl});case _r.UPDATE_AD_IS_BUMPER:return br({},e,{adIsBumper:t.adIsBumper});case _r.UPDATE_AD_CONTENT_TYPE:return br({},e,{adContentType:t.adContentType});case _r.UPDATE_PLAYER_POSTER:return br({},e,{poster:t.poster});case _r.UPDATE_IS_LIVE:return br({},e,{isLive:t.isLive});case _r.UPDATE_IS_DVR:return br({},e,{isDvr:t.isDvr});case _r.UPDATE_IS_IMG:return br({},e,{isImg:t.isImg});case _r.UPDATE_IS_IDLE:return br({},e,{isIdle:t.IsIdle});case _r.UPDATE_FALLBACK_TO_MUTED_AUTOPLAY:return br({},e,{fallbackToMutedAutoPlay:t.fallback});case _r.UPDATE_IS_VR:return br({},e,{isVr:t.isVr});case _r.UPDATE_VR_STEREO_MODE:return br({},e,{vrStereoMode:t.vrStereoMode});case _r.UPDATE_IS_CASTING:return br({},e,{isCasting:t.isCasting});case _r.UPDATE_CAST_SESSION:return br({},e,{castSession:t.castSession});case _r.UPDATE_IS_CAST_AVAILABLE:return br({},e,{isCastAvailable:t.isCastAvailable});case _r.UPDATE_IS_CHANGING_SOURCE:return br({},e,{isChangingSource:t.isChangingSource});case _r.UPDATE_PLAYLIST:return br({},e,{playlist:t.playlist});case _r.UPDATE_PICTURE_IN_PICTURE_SUPPORTED:return br({},e,{isPictureInPictureSupported:t.isPictureInPictureSupported});case _r.UPDATE_PICTURE_IN_PICTURE_MODE:return br({},e,{isInPictureInPicture:t.isInPictureInPicture});case _r.UPDATE_FULLSCREEN:return br({},e,{fullscreen:t.fullscreen});default:return e}},Tr={updateHasError:function(e){return{type:_r.UPDATE_ERROR,hasError:e}},updatePlayerState:function(e,t){return{type:_r.UPDATE_PLAYER_STATE,playerState:{prevoiusState:e,currentState:t}}},updatePrePlayback:function(e){return{type:_r.UPDATE_PRE_PLAYBACK,prePlayback:e}},updateIsPlaying:function(e){return{type:_r.UPDATE_IS_PLAYING,isPlaying:e}},updateIsPaused:function(e){return{type:_r.UPDATE_IS_PAUSED,isPaused:e}},updateIsSeeking:function(e){return{type:_r.UPDATE_IS_SEEKING,isSeeking:e}},updateLastSeekPoint:function(e){return{type:_r.UPDATE_LAST_SEEK_POINT,lastSeekPoint:e}},updateIsEnded:function(e){return{type:_r.UPDATE_IS_ENDED,isEnded:e}},updateIsPlaybackStarted:function(e){return{type:_r.UPDATE_IS_PLAYBACK_STARTED,isPlaybackStarted:e}},updateIsPlaybackEnded:function(e){return{type:_r.UPDATE_IS_PLAYBACK_ENDED,isPlaybackEnded:e}},updateCurrentTime:function(e){return{type:_r.UPDATE_CURRENT_TIME,currentTime:e}},updateDuration:function(e){return{type:_r.UPDATE_DURATION,duration:e}},updateVolume:function(e){return{type:_r.UPDATE_VOLUME,volume:e}},updateMuted:function(e){return{type:_r.UPDATE_MUTED,muted:e}},updateMetadataLoadingStatus:function(e){return{type:_r.UPDATE_METADATA_LOADING_STATUS,metadataLoaded:e}},updateDataLoadingStatus:function(e){return{type:_r.UPDATE_DATA_LOADING_STATUS,dataLoaded:e}},updateAudioTracks:function(e){return{type:_r.UPDATE_AUDIO_TRACKS,tracks:e}},updateVideoTracks:function(e){return{type:_r.UPDATE_VIDEO_TRACKS,tracks:e}},updateTextTracks:function(e){return{type:_r.UPDATE_TEXT_TRACKS,tracks:e}},updateAdBreak:function(e){return{type:_r.UPDATE_AD_BREAK,adBreak:e}},updateAdBreakProgress:function(e,t){return{type:_r.UPDATE_AD_BREAK_PROGRESS,adProgress:{currentTime:e,duration:t}}},updateAdBreakCompleted:function(){return{type:_r.UPDATE_AD_BREAK_COMPLETED}},updateAdIsPlaying:function(e){return{type:_r.UPDATE_AD_IS_PLAYING,adIsPlaying:e}},updateAdSkipTimeOffset:function(e){return{type:_r.UPDATE_AD_SKIP_TIME_OFFSET,adSkipTimeOffset:e}},updateAdSkippableState:function(e){return{type:_r.UPDATE_AD_SKIPPABLE_STATE,adSkippableState:e}},updateAdClickUrl:function(e){return{type:_r.UPDATE_AD_URL,adUrl:e}},updateAdIsLinear:function(e){return{type:_r.UPDATE_AD_IS_LINEAR,adIsLinear:e}},updateAdIsBumper:function(e){return{type:_r.UPDATE_AD_IS_BUMPER,adIsBumper:e}},updateAdContentType:function(e){return{type:_r.UPDATE_AD_CONTENT_TYPE,adContentType:e}},updatePlayerPoster:function(e){return{type:_r.UPDATE_PLAYER_POSTER,poster:e}},updateIsLive:function(e){return{type:_r.UPDATE_IS_LIVE,isLive:e}},updateIsDvr:function(e){return{type:_r.UPDATE_IS_DVR,isDvr:e}},updateIsImg:function(e){return{type:_r.UPDATE_IS_IMG,isImg:e}},updateIsIdle:function(e){return{type:_r.UPDATE_IS_IDLE,IsIdle:e}},updateFallbackToMutedAutoPlay:function(e){return{type:_r.UPDATE_FALLBACK_TO_MUTED_AUTOPLAY,fallback:e}},updateIsVr:function(e){return{type:_r.UPDATE_IS_VR,isVr:e}},updateVrStereoMode:function(e){return{type:_r.UPDATE_VR_STEREO_MODE,vrStereoMode:e}},updateIsCasting:function(e){return{type:_r.UPDATE_IS_CASTING,isCasting:e}},updateCastSession:function(e){return{type:_r.UPDATE_CAST_SESSION,castSession:e}},updateIsCastAvailable:function(e){return{type:_r.UPDATE_IS_CAST_AVAILABLE,isCastAvailable:e}},updateIsChangingSource:function(e){return{type:_r.UPDATE_IS_CHANGING_SOURCE,isChangingSource:e}},updatePlaylist:function(e){return{type:_r.UPDATE_PLAYLIST,playlist:e}},updatePictureInPictureSupport:function(e){return{type:_r.UPDATE_PICTURE_IN_PICTURE_SUPPORTED,isPictureInPictureSupported:e}},updateIsInPictureInPicture:function(e){return{type:_r.UPDATE_PICTURE_IN_PICTURE_MODE,isInPictureInPicture:e}},updateFullscreen:function(e){return{type:_r.UPDATE_FULLSCREEN,fullscreen:e}}},Ar=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{player:this.props.player}},i.render=function(){return this.props.children&&W(this.props.children)[0]||null},r}(B);function wr(){return(wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Sr=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i.prototype.render=function(){var t=this.context.player;return N(e,wr({},this.props,{player:t}))},i}(B)};function Cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xr,Ir,Pr=function(){function e(){this._map=new Map}var t=e.prototype;return t.push=function(e,t){if(this._map.has(e)){var n=this._map.get(e);Array.isArray(n)&&(n.push(t),this._map.set(e,n))}else this._map.set(e,[t])},t.set=function(e,t){this._map.set(e,t)},t.has=function(e){return this._map.has(e)},t.get=function(e){var t=this._map.get(e);return t?t.slice():[]},t.getAll=function(){for(var e,t=[],n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(this._map.values());!(e=n()).done;){var r=e.value;t=t.concat(r)}return t},t.remove=function(e,t){if(this._map.has(e)){var n=this._map.get(e);if(Array.isArray(n))for(var r=0;r<n.length;++r)n[r]===t&&(n.splice(r,1),--r)}},t.keys=function(){return this._map.keys()},t.clear=function(){this._map.clear()},e}(),Dr=function(){function e(e,t){this.bubbles=!1,this.cancelable=!1,this.defaultPrevented=!1,this.timeStamp=window.performance?window.performance.now():Date.now(),this.type=e,this.isTrusted=!1,this.currentTarget=null,this.target=null,this.stopped=!1,t&&(this.payload=t)}var t=e.prototype;return t.preventDefault=function(){},t.stopImmediatePropagation=function(){this.stopped=!0},t.stopPropagation=function(){},e}();Ir=On,"Type"in(xr=Dr)?Object.defineProperty(xr,"Type",{value:Ir,enumerable:!0,configurable:!0,writable:!0}):xr.Type=Ir;var Rr=function(){function e(){this._listeners=new Pr,this.dispatchTarget=this,this.__logger=Dn("UI FakeEventTarget")}var t=e.prototype;return t.addEventListener=function(e,t){this._listeners.push(e,t)},t.removeEventListener=function(e,t){this._listeners.remove(e,t)},t.dispatchEvent=function(e){for(var t=this._listeners.get(e.type)||[],n=0;n<t.length;++n){e.target=this.dispatchTarget,e.currentTarget=this.dispatchTarget;var r=t[n];try{r.handleEvent?r.handleEvent(e):r.call(this,e)}catch(t){this.__logger.error("Error occurred when handling event: "+e.type+".",t)}if(e.stopped)break}return e.defaultPrevented},e}();function Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Lr=function(){function e(){this._bindingMap=new Pr}var t=e.prototype;return t.destroy=function(){return this.removeAll(),this._bindingMap=null,Promise.resolve()},t.listenOnce=function(e,t,n,r){var i=this;this.listen(e,t,(function r(a){i.unlisten(e,t,r),n.call(i,a)}),r)},t.listen=function(e,t,n,r){var i=new Mr(e,t,n,r);this._bindingMap&&this._bindingMap.push(t,i)},t.unlisten=function(e,t,n){if(this._bindingMap)for(var r=this._bindingMap.get(t),i=0;i<r.length;++i){var a=r[i];a.target!==e||a.listener!==n&&n||(a.unlisten(),this._bindingMap&&this._bindingMap.remove(t,a))}},t.removeAll=function(){if(this._bindingMap){for(var e,t=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Or(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(this._bindingMap.getAll());!(e=t()).done;)e.value.unlisten();this._bindingMap&&this._bindingMap.clear()}},e}(),Mr=function(){function e(e,t,n,r){this.target=e,this.type=t,this.listener=n,this.options=r,this.target.addEventListener(t,n,!1)}return e.prototype.unlisten=function(){this.target&&(this.target.removeEventListener(this.type,this.listener,this.options),this.target=null,this.listener=null,this.options=null)},e}();function Nr(){return(Nr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ur(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jr,Br=function(e){return function(t){var n,r;function i(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Fr(Ur(e=t.call.apply(t,[this].concat(r))||this),"eventManager",new Lr),e}r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a=i.prototype;return a.componentWillUnmount=function(){this.eventManager&&(this.eventManager.destroy(),this.eventManager=null)},a.render=function(){return N(e,Nr({},this.props,{eventManager:this.eventManager}))},i}(B)},Vr=function(e){var t,n;function r(t){var n;return(n=e.call(this,Dr.Type.USER_SELECTED_AUDIO_TRACK)||this).payload={audioTrack:t},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),Hr=function(e){var t,n;function r(t){var n;return(n=e.call(this,Dr.Type.USER_SELECTED_CAPTION_TRACK)||this).payload={captionTrack:t},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),Kr=function(e){var t,n;function r(t){var n;return(n=e.call(this,Dr.Type.USER_SELECTED_CAPTIONS_STYLE)||this).payload={captionsStyle:t},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),Gr=function(e){var t,n;function r(t){var n;return(n=e.call(this,Dr.Type.USER_SELECTED_QUALITY_TRACK)||this).payload={qualityTrack:t},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),zr=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,Dr.Type.USER_SEEKED)||this).payload={from:t,to:n},r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),Wr=function(e){var t,n;function r(t){var n;return(n=e.call(this,Dr.Type.USER_SELECTED_SPEED)||this).payload={speed:t},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),Yr=function(e){var t,n;function r(t){var n;return(n=e.call(this,Dr.Type.UI_VISIBILITY_CHANGED)||this).payload={visible:t},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),qr=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,Dr.Type.USER_CLICKED_REWIND)||this).payload={from:t,to:n},r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),Xr=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,Dr.Type.USER_CLICKED_FORWARD)||this).payload={from:t,to:n},r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),$r=function(e){var t,n;function r(t){var n;return(n=e.call(this,Dr.Type.USER_CHANGED_VOLUME)||this).payload={volume:t},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr);function Qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jr=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Zr(Qr(t=e.call.apply(e,[this].concat(r))||this),"_notifyClick",(function(e){return ni(t.props.store,e,t.props.player)})),Zr(Qr(t),"_notifyChange",(function(e){return ti(t.props.store,e,t.props.player)})),Zr(Qr(t),"_notifyHoverChange",(function(e){return ei(t.props.store,e,t.props.player)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{notifyClick:this._notifyClick,notifyChange:this._notifyChange,notifyHoverChange:this._notifyHoverChange}},i.render=function(){return this.props.children&&W(this.props.children)[0]||null},r}(B);function ei(e,t,n){var r=e.getState().engine,i=e.getState().shell;!r.adBreak&&r.isPlaying&&i.playerHover!==t.payload.hover&&n.dispatchEvent(new Yr(t.payload.hover))}function ti(e,t,n){switch(t.name){case"Volume":n.dispatchEvent(new $r(t.payload.volume));break;case"SeekBarPlaybackContainer":case"SeekBarLivePlaybackContainer":n.dispatchEvent(new zr(t.payload.from,t.payload.to));break;case"ActivePreset":n.dispatchEvent(new Dr(Dr.Type.UI_PRESET_CHANGE,t.payload))}}function ni(e,t,n){switch(t.name){case"Keyboard":si[t.payload.key](e,t,n);break;case"OverlayAction":!function(e,t,n){"PlayPause"===t.payload.type?ri(e,0,n):"Fullscreen"===t.payload.type&&ai(0,0,n)}(e,t,n);break;case"Settings":!function(e,t,n){t.payload.type===n.Track.VIDEO?n.dispatchEvent(new Gr(t.payload.track)):"speed"===t.payload.type?n.dispatchEvent(new Wr(t.payload.speed)):"AdvancedAudioDescription"===t.payload.type&&n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_ADVANCED_AUDIO_DESCRIPTION,t.payload))}(0,t,n);break;case"CVAAOverlay":n.dispatchEvent(new Kr(t.payload.textStyle));break;case"Fullscreen":ai(0,0,n);break;case"CaptionsMenu":case"AudioMenu":!function(e,t,n){t.payload.type===n.Track.AUDIO?n.dispatchEvent(new Vr(t.payload.track)):t.payload.type===n.Track.TEXT&&n.dispatchEvent(new Hr(t.payload.track))}(0,t,n);break;case"Shell":n.dispatchEvent(new Dr(Dr.Type.UI_CLICKED));break;case"Rewind":n.dispatchEvent(new qr(t.payload.from,t.payload.to));break;case"Forward":n.dispatchEvent(new Xr(t.payload.from,t.payload.to));break;case"LiveTag":n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_LIVE_TAG));break;case"PrePlaybackPlayOverlay":case"PlayPause":ri(e,0,n);break;case"Volume":ii(e,0,n);break;case"PictureInPicture":oi(0,0,n);break;case"ClosedCaptions":!function(e,t,n){t.payload?n.dispatchEvent(new Dr(Dr.Type.USER_HID_CAPTIONS)):n.dispatchEvent(new Dr(Dr.Type.USER_SHOWED_CAPTIONS))}(0,t,n)}}function ri(e,t,n){var r=e.getState().engine;r.adBreak?r.adIsPlaying?n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_PAUSE)):n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_PLAY)):r.isPlaying?n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_PAUSE)):n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_PLAY))}function ii(e,t,n){e.getState().engine.muted?n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_MUTE)):n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_UNMUTE))}function ai(e,t,n){n.isFullscreen()?n.dispatchEvent(new Dr(Dr.Type.USER_EXITED_FULL_SCREEN)):n.dispatchEvent(new Dr(Dr.Type.USER_ENTERED_FULL_SCREEN))}function oi(e,t,n){n.isInPictureInPicture()?n.dispatchEvent(new Dr(Dr.Type.USER_EXITED_PICTURE_IN_PICTURE)):n.dispatchEvent(new Dr(Dr.Type.USER_ENTERED_PICTURE_IN_PICTURE))}var si=((jr={})[Ln.SPACE]=function(e,t,n){ri(e,0,n)},jr[Ln.UP]=function(e,t,n){n.dispatchEvent(new $r(t.payload.volume))},jr[Ln.DOWN]=function(e,t,n){n.dispatchEvent(new $r(t.payload.volume))},jr[Ln.F]=function(e,t,n){ai(0,0,n)},jr[Ln.P]=function(e,t,n){oi(0,0,n)},jr[Ln.ESC]=function(e,t,n){ai(0,0,n)},jr[Ln.LEFT]=function(e,t,n){n.dispatchEvent(new zr(t.payload.from,t.payload.to))},jr[Ln.RIGHT]=function(e,t,n){n.dispatchEvent(new zr(t.payload.from,t.payload.to))},jr[Ln.HOME]=function(e,t,n){n.dispatchEvent(new zr(t.payload.from,t.payload.to))},jr[Ln.END]=function(e,t,n){n.dispatchEvent(new zr(t.payload.from,t.payload.to))},jr[Ln.M]=function(e,t,n){ii(e,0,n)},jr[Ln.SEMI_COLON]=function(e,t,n){n.dispatchEvent(new Wr(t.payload.speed))},jr[Ln.PERIOD]=function(e,t,n){n.dispatchEvent(new Wr(t.payload.speed))},jr[Ln.COMMA]=function(e,t,n){n.dispatchEvent(new Wr(t.payload.speed))},jr[Ln.C]=function(e,t,n){n.dispatchEvent(new Hr(t.payload.track))},jr);function li(){return(li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ui,ci,pi,di,fi=function(e){return function(t){return function(n){var r,i;function a(){return n.apply(this,arguments)||this}i=n,(r=a).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var o=a.prototype;return o.notifyClick=function(t){this.context.notifyClick({name:e,payload:t})},o.notifyChange=function(t){this.context.notifyChange({name:e,payload:t})},o.notifyHoverChange=function(t){this.context.notifyHoverChange({name:e,payload:t})},o.render=function(){var e=this;return N(t,li({},this.props,{notifyHoverChange:function(t){return e.notifyHoverChange(t)},notifyChange:function(t){return e.notifyChange(t)},notifyClick:function(t){return e.notifyClick(t)}}))},a}(B)}},hi=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.destroy=function(){this._observer&&this._observer.disconnect(),this._observer=null,this._el=null},i.init=function(e){this._observer||(this._el=e,window.ResizeObserver?this._createNativeObserver():this._createIframeObserver(),this._el instanceof HTMLElement&&this._observer&&this._observer.observe(this._el))},i._createNativeObserver=function(){var e=this;this._observer=new window.ResizeObserver((function(t){t.forEach((function(){e._triggerResize()}))}))},i._createIframeObserver=function(){this._observer=new gi(this._triggerResize.bind(this))},i._triggerResize=function(){this.dispatchEvent(new Dr(Dr.Type.RESIZE))},r}(Rr),gi=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_observersStore",{}),this._onChangeCallback=e}var t=e.prototype;return t.observe=function(e){var t=this,n=this._createIframe(),r=e.getAttribute("id");this._observersStore[r]=n,e.appendChild(n),n.contentWindow.onresize=function(){return t._onChangeCallback()}},t.disconnect=function(){for(var e in this._observersStore){var t=document.getElementById(e),n=this._observersStore[e];n.onresize=null,t&&(t.removeChild(n),delete this._observersStore[t.getAttribute("id")])}},t._createIframe=function(){var e=document.createElement("iframe");return e.className="playkit-size-iframe",e},e}(),yi=function(e,t,n){var r;return void 0===n&&(n=!0),function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=void 0;n&&!r&&e.apply(s,a),clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(s,a)}),t)}};function vi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bi(){return(bi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _i,Ei={TINY:"tiny",EXTRA_SMALL:"extrasmall",SMALL:"small",MEDIUM:"medium",LARGE:"large",EXTRA_LARGE:"extralarge"},ki=(ui=$t((function(e){return{targetId:e.config.targetId,forceTouchUI:e.config.forceTouchUI,hoverTimeout:e.config.hoverTimeout,metadataLoaded:e.engine.metadataLoaded,currentState:e.engine.playerState.currentState,playerClasses:e.shell.playerClasses,isMobile:e.shell.isMobile,playerSize:e.shell.playerSize,isCasting:e.engine.isCasting,guiClientRect:e.shell.guiClientRect,playerHover:e.shell.playerHover,playerNav:e.shell.playerNav,seekbarDraggingActive:e.seekbar.draggingActive,seekbarHoverActive:e.seekbar.hoverActive,volumeHoverActive:e.volume.hover,adBreak:e.engine.adBreak,prePlayback:e.engine.prePlayback,smartContainerOpen:e.shell.smartContainerOpen,fullscreen:e.engine.fullscreen,fallbackToMutedAutoPlay:e.engine.fallbackToMutedAutoPlay,playlist:e.engine.playlist}}),ur(bi({},sr,Tr))),ci=jn("Shell"),pi=fi("Shell"),ui(di=Sr(di=Br(di=ci(di=pi(di=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return mi(vi(t=e.call.apply(e,[this].concat(r))||this),"onMouseOver",(function(){t.props.isMobile||t.state.nav&&(t.setState({nav:!1}),t.props.updatePlayerNavState(!1))})),mi(vi(t),"onMouseLeave",(function(e){Object.prototype.hasOwnProperty.call(e,"toElement")&&(t.props.isMobile||t.state.hover&&t._updatePlayerHover(!1))})),mi(vi(t),"onMouseMove",(function(){t.props.isMobile||t._updatePlayerHoverState()})),mi(vi(t),"onMouseUp",(function(){t.unMuteFallback(),t.props.notifyClick(),t._startHoverTimeout()})),mi(vi(t),"onTouchEnd",(function(e){t.props.prePlayback||(t.props.fallbackToMutedAutoPlay&&(t.props.player.muted=!1),t.state.hover||e.stopPropagation(),t._updatePlayerHoverState())})),mi(vi(t),"onKeyDown",(function(e){t.state.nav||e.keyCode!==Ln.TAB||(t.setState({nav:!0}),t.props.updatePlayerNavState(!0)),!t.state.nav||e.keyCode!==Ln.ENTER&&e.keyCode!==Ln.SPACE||(t.unMuteFallback(),e.srcElement.contains(t._playerRef)&&(e.preventDefault(),t.props.player.paused?t.props.player.play():t.props.player.pause()))})),mi(vi(t),"_onWindowResize",(function(){t._updatePlayerClientRect(),document.body&&t.props.updateDocumentWidth(document.body.clientWidth)})),mi(vi(t),"_updatePlayerClientRect",(function(){var e=document.getElementById(t.props.targetId);e&&t.props.updatePlayerClientRect(e.getBoundingClientRect())})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.unMuteFallback=function(){this.props.fallbackToMutedAutoPlay&&(this.props.player.muted=!1)},i.componentWillMount=function(){var e=this.props,t=e.player,n=e.forceTouchUI;this._environmentClasses=["playkit-"+t.env.os.name.replace(/ /g,"-"),"playkit-"+t.env.browser.name.replace(/ /g,"-")];var r=t.env,i=r.isIPadOS,a=r.isTablet,o=r.isMobile;this.props.updateIsMobile(i||a||o||n)},i.componentDidMount=function(){var e=this,t=this.props,n=t.player,r=t.eventManager;r.listen(window,"resize",yi(this._onWindowResize,100)),r.listen(document,"scroll",yi(this._updatePlayerClientRect,100)),this._playerResizeWatcher=new hi,this._playerResizeWatcher.init(document.getElementById(this.props.targetId)),r.listen(this._playerResizeWatcher,Dr.Type.RESIZE,yi(this._onWindowResize,100)),r.listen(n,n.Event.FIRST_PLAY,(function(){return e._onWindowResize()})),this._onWindowResize()},i.componentWillUnmount=function(){this._clearHoverTimeout(),this._playerResizeWatcher.destroy()},i._updatePlayerHoverState=function(){this.props.prePlayback||(this.state.hover||this._updatePlayerHover(!0),this._startHoverTimeout())},i._updatePlayerHover=function(e){this.props.updatePlayerHoverState(e),this.props.notifyHoverChange({hover:e}),this.setState({hover:e})},i._canEndHoverState=function(){return!this.props.seekbarDraggingActive&&!this.props.seekbarHoverActive&&!this.props.volumeHoverActive&&!this.props.smartContainerOpen&&(!this.props.player.paused||this.props.adBreak)},i._startHoverTimeout=function(){var e=this;this._clearHoverTimeout(),this.props.hoverTimeout&&(this.hoverTimeout=setTimeout((function(){e._canEndHoverState()&&e._updatePlayerHover(!1)}),this.props.hoverTimeout))},i._clearHoverTimeout=function(){this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null)},i.componentDidUpdate=function(e){(this.state.hover!==this.props.playerHover||"playing"===this.props.currentState&&"paused"===e.currentState||!this.props.prePlayback&&e.prePlayback||!this.props.adBreak&&e.adBreak||this.props.adBreak&&!e.adBreak)&&(this.state.hover!==this.props.playerHover&&this.props.notifyHoverChange({hover:this.props.playerHover}),this._updatePlayerHoverState())},i.render=function(e){var t=this,n=[pr.a.player,pr.a.skinDefault].concat(this._environmentClasses).concat(e.playerClasses);return this.props.prePlayback&&n.push(pr.a.prePlayback),this.props.isCasting&&n.push("playkit-casting"),this.props.isMobile&&n.push(pr.a.touch),this.props.playerNav&&n.push(pr.a.nav),(this.props.playerHover||this.props.playerNav)&&n.push(pr.a.hover),this.props.metadataLoaded&&n.push(pr.a.metadataLoaded),this.props.adBreak&&n.push(pr.a.adBreak),this.props.metadataLoaded&&n.push(pr.a["state-"+this.props.currentState]),this.props.seekbarDraggingActive&&n.push(pr.a.hover),this.props.fullscreen&&n.push(pr.a.fullscreen),this.props.playlist&&n.push(pr.a.playlist),this.props.guiClientRect&&(this.props.guiClientRect.width<=280?(n.push(pr.a.sizeTy),this.props.updatePlayerSize(Ei.TINY)):this.props.guiClientRect.width<=380?(n.push(pr.a.sizeXs),this.props.updatePlayerSize(Ei.EXTRA_SMALL)):this.props.guiClientRect.width<=480?(n.push(pr.a.sizeSm),this.props.updatePlayerSize(Ei.SMALL)):this.props.guiClientRect.width<=768?(n.push(pr.a.sizeMd),this.props.updatePlayerSize(Ei.MEDIUM)):this.props.guiClientRect.width<=1024?(n.push(pr.a.sizeLg),this.props.updatePlayerSize(Ei.LARGE)):this.props.updatePlayerSize(Ei.EXTRA_LARGE),this.props.updateIsSmallSize([Ei.SMALL,Ei.EXTRA_SMALL].includes(this.props.playerSize))),n.push("notranslate"),N("div",{tabIndex:"0",ref:function(e){return t._playerRef=e},"aria-label":"Video Player",className:n=n.join(" "),onTouchEnd:this.onTouchEnd,onMouseUp:this.onMouseUp,onMouseOver:this.onMouseOver,onMouseMove:this.onMouseMove,onMouseLeave:this.onMouseLeave,onKeyDown:this.onKeyDown},e.children)},r}(B))||di)||di)||di)||di)||di);function Ti(){return(Ti=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ai(e){var t,n=e.sidePanelsSizes,r=e.sidePanelsModes,i=e.playerClientRect,a=e.isVideo,o=n[Zn.VERTICAL],s=i.width,l=Math.max(o.min,Math.min(o.max,s*o.ratio)),u=r[Jn.LEFT],c=r[Jn.RIGHT],p=s-(t=a?u===er.ALONGSIDE&&c===er.ALONGSIDE?2:1:u!==er.HIDDEN&&c!==er.HIDDEN?2:1)*l;return s<480&&(p=s,l=s),{verticalPanelWidth:l,videoWidth:p,verticalPanelCount:t}}function wi(e){var t,n=e.sidePanelsSizes,r=e.sidePanelsModes,i=e.playerClientRect,a=e.isVideo,o=n[Zn.HORIZONTAL],s=i.height,l=Math.max(o.min,Math.min(o.max,s*o.ratio)),u=r[Jn.TOP],c=r[Jn.BOTTOM],p=s-(t=a?u===er.ALONGSIDE&&c===er.ALONGSIDE?2:1:u!==er.HIDDEN&&c!==er.HIDDEN?2:1)*l;return i.width<480&&(p=s,l=s),{horizontalPanelHeight:l,videoHeight:p,horizontalPanelCount:t}}function Si(e){var t=e.sidePanelsModes,n=e.allowSidePanels,r={position:"absolute",left:0,right:0,top:0,bottom:0},i=n?t[Jn.LEFT]:er.HIDDEN,a=n?t[Jn.RIGHT]:er.HIDDEN,o=n?t[Jn.TOP]:er.HIDDEN,s=n?t[Jn.BOTTOM]:er.HIDDEN;if(e.playerClientRect.width>480){if(i===er.ALONGSIDE||a===er.ALONGSIDE){var l=Ai(Ti({},e,{isVideo:!0})),u=l.verticalPanelWidth,c=l.videoWidth;r.left=i===er.ALONGSIDE?u:0,r.right=a===er.ALONGSIDE?u:0,r.width=c,r.position="absolute"}if(o===er.ALONGSIDE||s===er.ALONGSIDE){var p=wi(Ti({},e,{isVideo:!0})),d=p.horizontalPanelHeight,f=p.videoHeight;r.top=o===er.ALONGSIDE?d:0,r.bottom=s===er.ALONGSIDE?d:0,r.height=f,r.position="absolute"}}return r}function Ci(e){var t=e.position,n=e.sidePanelsModes,r=n[Jn.LEFT],i=n[Jn.RIGHT],a=n[Jn.TOP],o=n[Jn.BOTTOM];if(-1!==[Jn.RIGHT,Jn.LEFT].indexOf(t)){var s={},l=Ai(e).verticalPanelWidth;return s.width=l,t===Jn.RIGHT?(i===er.HIDDEN?(s.right=-l,s.opacity=0):(s.right=0,s.opacity=1),s):(r===er.HIDDEN?(s.left=-l,s.opacity=0):(s.left=0,s.opacity=1),s)}var u={},c=wi(e).horizontalPanelHeight,p=Ai(e).verticalPanelWidth;return u.height=c,r!==er.HIDDEN&&(u.left=p),i!==er.HIDDEN&&(u.right=p),t===Jn.TOP?(a===er.HIDDEN?(u.top=-c,u.opacity=0):(u.top=0,u.opacity=1),u):(o===er.HIDDEN?(u.bottom=-c,u.opacity=0):(u.bottom=0,u.opacity=1),u)}function xi(){return(xi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ii(e){var t,n;return e.allowSidePanels?((t={})[Jn.TOP]=Ci(xi({},e,{position:Jn.TOP})),t[Jn.BOTTOM]=Ci(xi({},e,{position:Jn.BOTTOM})),t[Jn.RIGHT]=Ci(xi({},e,{position:Jn.RIGHT})),t[Jn.LEFT]=Ci(xi({},e,{position:Jn.LEFT})),t):((n={})[Jn.TOP]={},n[Jn.BOTTOM]={},n[Jn.RIGHT]={},n[Jn.LEFT]={},n)}var Pi,Di=$t((function(e){return{sidePanelsModes:e.shell.sidePanelsModes,sidePanelsSizes:e.shell.sidePanelsSizes,allowSidePanels:e.shell.presetSettings.allowSidePanels,playerClientRect:e.shell.playerClientRect}}),ur(sr))(_i=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.shouldComponentUpdate=function(e){var t=this.props,n=t.sidePanelsModes,r=t.sidePanelsSizes,i=t.allowSidePanels,a=t.playerClientRect,o=e.sidePanelsModes,s=e.sidePanelsSizes,l=e.allowSidePanels,u=e.playerClientRect;return!(n===o&&r===s&&i===l&&a===u)},i.componentDidUpdate=function(){var e={sidePanelsModes:this.props.sidePanelsModes,sidePanelsSizes:this.props.sidePanelsSizes,playerClientRect:this.props.playerClientRect,allowSidePanels:this.props.allowSidePanels},t=function(e){var t=e.sidePanelsModes,n=e.playerClientRect,r=e.allowSidePanels,i={position:"absolute",left:0,right:0,top:0,bottom:0},a=n.width,o=n.height,s=r?t[Jn.LEFT]:er.HIDDEN,l=r?t[Jn.RIGHT]:er.HIDDEN,u=r?t[Jn.TOP]:er.HIDDEN,c=r?t[Jn.BOTTOM]:er.HIDDEN;if(n.width>480){if(s!==er.HIDDEN||l!==er.HIDDEN){var p=Ai(e).verticalPanelWidth;s!==er.HIDDEN&&(i.left=p),l!==er.HIDDEN&&(i.right=p)}if(u!==er.HIDDEN||c!==er.HIDDEN){var d=wi(e).horizontalPanelHeight;u!==er.HIDDEN&&(i.top=d),c!==er.HIDDEN&&(i.bottom=d)}a=a-i.right-i.left,o=o-i.top-i.bottom}var f=n.left+(s!==er.HIDDEN?i.left:0),h=n.top+(u!==er.HIDDEN?i.top:0);return{style:i,rect:{x:f,y:h,width:a,height:o,top:h,right:n.right+(l!==er.HIDDEN?i.right:0),bottom:n.bottom+(c!==er.HIDDEN?i.bottom:0),left:f}}}(e),n=t.style,r=t.rect;this.props.updateLayoutStyles({gui:n,video:Si(e),sidePanels:Ii(e)}),this.props.updateGuiClientRect(r)},i.render=function(){return null},r}(B))||_i;function Ri(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Li=jn("PlayerAreaProvider")(Pi=$t((function(e){return{activePresetName:e.shell.activePresetName}}))(Pi=function(e){var t,n;function r(){var t;return Oi(Ri(t=e.call(this)||this),"_validateComponentData",(function(e){var n=e.container||e.area;return!!(e.get&&e.presets&&n)||(t.props.logger.warn("component data with label '"+(e.label||"")+"' is invalid (did you remember to set 'get', 'presets' and 'area'?)"),!1)})),Oi(Ri(t),"_addNewComponentAndUpdateListeners",(function(e){return t._addNewComponent(e,!0)})),Oi(Ri(t),"_addNewComponent",(function(e,n){var r=Object.assign({},e);if(r.container&&(r.area=r.area||r.container,delete r.container),!t._validateComponentData(r))return function(){};var i=r.area;return r.presets.forEach((function(e){if((t._componentsByPreset[e]||(t._componentsByPreset[e]=[])).push(r),n){var a=t._findListeners(i,e);t._emitListeners(a)}})),function(){t._removeNewComponent(r)}})),Oi(Ri(t),"_removeNewComponent",(function(e){t._validateComponentData(e)&&e.presets.forEach((function(n){var r=t._componentsByPreset[n]||[],i=r.indexOf(e);if(-1!==i){r.splice(i,1);var a=t._findListeners(e.area,e.presetName);t._emitListeners(a)}}))})),Oi(Ri(t),"_findListeners",(function(e,n){return e?t._listeners.filter((function(t){return(!n||t.presetName===n)&&t.areaName===e})):[]})),Oi(Ri(t),"_listen",(function(e,n,r){if(!e||!n||!r)return function(){};var i=t._findListeners(n,e);i&&i.length>0&&(t.props.logger.warn("Another component is already registered to updates for player area '"+n+"' in preset '"+e+"'. Unlisten to previous listener"),i.forEach((function(e){t._unlisten(e)})));var a={presetName:e,areaName:n,callback:r};return t._listeners.push(a),t._emitListeners([a]),function(){t._unlisten(a)}})),Oi(Ri(t),"_unlisten",(function(e){var n=t._listeners.indexOf(e);-1!==n&&t._listeners.splice(n,1)})),Oi(Ri(t),"_getAreaComponents",(function(e,n){if(!n||!e)return[];var r=t._componentsByPreset[e];return(r?r.filter((function(e){return e.area===n})):[])||[]})),t._listeners=[],t._componentsByPreset={},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i._initializePlayerComponents=function(){this.props.uiComponents&&this.props.uiComponents.length>0&&(this.props.uiComponents.forEach(this._addNewComponent),this._emitAllListeners())},i._emitListeners=function(e){var t=this,n=this.props.activePresetName;(e||[]).forEach((function(e){var r=e.presetName===n?t._getAreaComponents(n,e.areaName):[];try{e.callback(r)}catch(n){t.props.logger.error("Error occurred when handling player area "+e.areaName+" of preset "+e.presetName+".",n)}}))},i._emitAllListeners=function(){this._emitListeners(this._listeners)},i.componentDidMount=function(){this.props.setApi(this._addNewComponentAndUpdateListeners),this._initializePlayerComponents()},i.componentDidUpdate=function(e){e.activePresetName!==this.props.activePresetName&&this._emitAllListeners()},i.getChildContext=function(){return{playerAreaComponentsStore:{listen:this._listen,addNewComponent:this._addNewComponentAndUpdateListeners,getAreaComponents:this._getAreaComponents}}},i.render=function(e){return N(j,null,N(Di,null),e.children)},r}(B))||Pi)||Pi,Mi={allowSidePanels:!1,allowPlayerArea:!1},Ni=function(e){return function(t){var n;return $t(null,ur(sr))(n=function(n){var r,i;function a(){return n.apply(this,arguments)||this}i=n,(r=a).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var o=a.prototype;return o.componentDidMount=function(){var t=Object.assign({},Mi,e),n=t.allowSidePanels,r=t.allowPlayerArea;this.props.updatePresetSettings({allowSidePanels:n,allowPlayerArea:r})},o.shouldComponentUpdate=function(){return!1},o.render=function(e){return N(t,e)},a}(B))||n}};function Ui(){return(Ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Fi={UPDATE_SEEKBAR_DRAGGING_STATUS:"seekbar/UPDATE_SEEKBAR_DRAGGING_STATUS",UPDATE_SEEKBAR_HOVER_ACTIVE:"seekbar/UPDATE_SEEKBAR_HOVER_ACTIVE",UPDATE_SEEKBAR_PREVIEW_HOVER_ACTIVE:"seekbar/UPDATE_SEEKBAR_PREVIEW_HOVER_ACTIVE",UPDATE_SEEKBAR_CLIENT_RECT:"seekbar/UPDATE_SEEKBAR_CLIENT_RECT",UPDATE_HIDE_SEEKBAR_PREVIEW:"seekbar/UPDATE_HIDE_SEEKBAR_PREVIEW",UPDATE_HIDE_SEEKBAR_TIME_BUBBLE:"seekbar/UPDATE_HIDE_SEEKBAR_TIME_BUBBLE",UPDATE_CURRENT_TIME:"seekbar/UPDATE_CURRENT_TIME",UPDATE_VIRTUAL_TIME:"seekbar/UPDATE_VIRTUAL_TIME"},ji={currentTime:0,virtualTime:0,draggingActive:!1,hoverActive:!1,previewHoverActive:!1,clientRect:{x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0},hidePreview:!1,hideTimeBubble:!1},Bi=function(e,t){switch(void 0===e&&(e=ji),t.type){case Fi.UPDATE_SEEKBAR_DRAGGING_STATUS:return Ui({},e,{draggingActive:t.draggingActive});case Fi.UPDATE_SEEKBAR_HOVER_ACTIVE:return Ui({},e,{hoverActive:t.hoverActive});case Fi.UPDATE_SEEKBAR_PREVIEW_HOVER_ACTIVE:return Ui({},e,{previewHoverActive:t.previewHoverActive});case Fi.UPDATE_SEEKBAR_CLIENT_RECT:return Ui({},e,{clientRect:t.clientRect});case Fi.UPDATE_HIDE_SEEKBAR_PREVIEW:return Ui({},e,{hidePreview:t.hidePreview});case Fi.UPDATE_HIDE_SEEKBAR_TIME_BUBBLE:return Ui({},e,{hideTimeBubble:t.hideTimeBubble});case Fi.UPDATE_CURRENT_TIME:return Ui({},e,{currentTime:t.currentTime});case Fi.UPDATE_VIRTUAL_TIME:return Ui({},e,{virtualTime:t.virtualTime});default:return e}},Vi={updateSeekbarDraggingStatus:function(e){return{type:Fi.UPDATE_SEEKBAR_DRAGGING_STATUS,draggingActive:e}},updateSeekbarHoverActive:function(e){return{type:Fi.UPDATE_SEEKBAR_HOVER_ACTIVE,hoverActive:e}},updateSeekbarPreviewHoverActive:function(e){return{type:Fi.UPDATE_SEEKBAR_PREVIEW_HOVER_ACTIVE,previewHoverActive:e}},updateSeekbarClientRect:function(e){return{type:Fi.UPDATE_SEEKBAR_CLIENT_RECT,clientRect:e}},updateHideSeekbarPreview:function(e){return{type:Fi.UPDATE_HIDE_SEEKBAR_PREVIEW,hidePreview:e}},updateHideSeekbarTimeBubble:function(e){return{type:Fi.UPDATE_HIDE_SEEKBAR_TIME_BUBBLE,hideTimeBubble:e}},updateCurrentTime:function(e){return{type:Fi.UPDATE_CURRENT_TIME,currentTime:e}},updateVirtualTime:function(e){return{type:Fi.UPDATE_VIRTUAL_TIME,virtualTime:e}}};function Hi(){return(Hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ki={UPDATE_VOLUME_DRAGGING_STATUS:"volume/UPDATE_VOLUME_DRAGGING_STATUS",UPDATE_HOVER:"volume/UPDATE_HOVER"},Gi={draggingActive:!1,hover:!1},zi=function(e,t){switch(void 0===e&&(e=Gi),t.type){case Ki.UPDATE_VOLUME_DRAGGING_STATUS:return Hi({},e,{draggingActive:t.draggingActive});case Ki.UPDATE_HOVER:return Hi({},e,{hover:t.hover});default:return e}},Wi={updateVolumeDraggingStatus:function(e){return{type:Ki.UPDATE_VOLUME_DRAGGING_STATUS,draggingActive:e}},updateVolumeHover:function(e){return{type:Ki.UPDATE_HOVER,hover:e}}};function Yi(){return(Yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var qi={UPDATE_LOADING_SPINNER_STATE:"loading/UPDATE_LOADING_SPINNER_STATE"},Xi={show:!1},$i=function(e,t){switch(void 0===e&&(e=Xi),t.type){case gr.UPDATE:return dr("loading",e,t);case gr.UPDATE_COMPONENT:return fr("loading",e,t);case qi.UPDATE_LOADING_SPINNER_STATE:return Yi({},e,{show:t.show});default:return e}},Qi={updateLoadingSpinnerState:function(e){return{type:qi.UPDATE_LOADING_SPINNER_STATE,show:e}}};function Zi(){return(Zi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ji={UPDATE_CAPTIONS_STYLE:"cvaa/UPDATE_CAPTIONS_STYLE"},ea={style:"default"},ta=function(e,t){switch(void 0===e&&(e=ea),t.type){case Ji.UPDATE_CAPTIONS_STYLE:return Zi({},e,{style:t.style});default:return e}},na={updateCaptionsStyle:function(e){return{type:Ji.UPDATE_CAPTIONS_STYLE,style:e}}};function ra(){return(ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ia={UPDATE_QUALITY:"settings/UPDATE_QUALITY",UPDATE_SPEED:"settings/UPDATE_SPEED",UPDATE_AUDIO:"settings/UPDATE_AUDIO",UPDATE_ADVANCED_AUDIO_DESC:"settings/UPDATE_ADVANCED_AUDIO_DESC"},aa={quality:1,speed:2,advancedAudioDesc:!1},oa=function(e,t){switch(void 0===e&&(e=aa),t.type){case ia.UPDATE_QUALITY:return ra({},e,{quality:t.quality});case ia.UPDATE_SPEED:return ra({},e,{speed:t.speed});case ia.UPDATE_AUDIO:return ra({},e,{speed:t.audio});case ia.UPDATE_ADVANCED_AUDIO_DESC:return ra({},e,{advancedAudioDesc:t.isChecked});default:return e}},sa={updateQuality:function(e){return{type:ia.UPDATE_QUALITY,quality:e}},updateSpeed:function(e){return{type:ia.UPDATE_SPEED,speed:e}},updateAudio:function(e){return{type:ia.UPDATE_AUDIO,audio:e}},updateAdvancedAudioDesc:function(e){return{type:ia.UPDATE_ADVANCED_AUDIO_DESC,isChecked:e}}};function la(){return(la=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ua={UPDATE_ACTION_ICON:"overlay-action/UPDATE_ACTION_ICON"},ca={iconType:null},pa=function(e,t){switch(void 0===e&&(e=ca),t.type){case ua.UPDATE_ACTION_ICON:return la({},e,{iconType:t.iconType});default:return e}},da={updateOverlayActionIcon:function(e){return{type:ua.UPDATE_ACTION_ICON,iconType:e}}};function fa(){return(fa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ha={UPDATE_PLAYLIST_COUNTDOWN_CANCELED:"playlist-countdown/UPDATE_PLAYLIST_COUNTDOWN_CANCELED"},ga={countdownCanceled:!1},ya=function(e,t){switch(void 0===e&&(e=ga),t.type){case ha.UPDATE_PLAYLIST_COUNTDOWN_CANCELED:return fa({},e,{countdownCanceled:t.countdownCanceled});default:return e}},va={updatePlaylistCountdownCanceled:function(e){return{type:ha.UPDATE_PLAYLIST_COUNTDOWN_CANCELED,countdownCanceled:e}}};function ma(){return(ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ba,_a,Ea,ka={UPDATE_OVERLAY:"overlay/UPDATE_OVERLAY"},Ta={isOpen:!1},Aa=function(e,t){switch(void 0===e&&(e=Ta),t.type){case ka.UPDATE_OVERLAY:return ma({},e,{isOpen:t.isOpen});default:return e}},wa={updateOverlay:function(e){return{type:ka.UPDATE_OVERLAY,isOpen:e}}},Sa=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var a,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:xt.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:xt.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+xt.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},s=0;s<o.length;s++){var l=o[s],u=n[l],c=e[l],p=u(c,t);if(void 0===p){var d=Dt(l,t);throw new Error(d)}i[l]=p,r=r||p!==c}return(r=r||o.length!==Object.keys(e).length)?i:e}}({config:vr,engine:kr,shell:or,seekbar:Bi,volume:zi,loading:$i,cvaa:ta,settings:oa,overlayAction:pa,playlist:ya,overlay:Aa}),Ca=n(6);function xa(){return(xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ia,Pa,Da=Vi.updateCurrentTime,Ra=(ba=$t(kr,ur(xa({},Tr,Qi,sr,{seekbarUpdateCurrentTime:Da}))),_a=jn("EngineConnector"),ba(Ea=Sr(Ea=Br(Ea=_a(Ea=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){var e=this,t=this.props,n=t.player,r=t.eventManager,i=n.Track;this.props.updatePrePlayback(!n.config.playback.autoplay),r.listen(n,n.Event.PLAYER_RESET,(function(t){e.props.updateCurrentTime(0),e.props.seekbarUpdateCurrentTime(0),t.payload.isChangeMedia||e.props.updateIsIdle(!0),e.props.updateIsPlaybackStarted(!1),e.props.updateDataLoadingStatus(!1)})),r.listen(n,n.Event.SOURCE_SELECTED,(function(){e.props.updateIsCastAvailable(n.isCastAvailable()),e.props.updateIsLive(n.isLive()),e.props.updateIsVr(n.isVr()),e.props.updateIsImg(n.isUntimedImg()),e.props.updateIsInPictureInPicture(n.isInPictureInPicture()),n.config.playback.autoplay?e.props.updateLoadingSpinnerState(!0):e.props.updateLoadingSpinnerState(!1)})),r.listen(n,n.Event.CHANGE_SOURCE_STARTED,(function(){e.props.updatePrePlayback(!n.config.playback.autoplay&&!e.props.engine.isPlaybackStarted),e.props.updateIsChangingSource(!0),e.props.updateFallbackToMutedAutoPlay(!1),e.props.updateAdBreak(!1),e.props.updateAdIsPlaying(!1),e.props.updateIsPlaying(!1),e.props.updateIsEnded(!1),e.props.updateIsPlaybackEnded(!1),e.props.updateLastSeekPoint(0),e.props.updateIsPaused(!1),e.props.engine.isCasting&&e.props.updateLoadingSpinnerState(!0)})),r.listen(n,n.Event.CHANGE_SOURCE_ENDED,(function(){e.props.updateIsChangingSource(!1),e.props.updatePlayerPoster(n.poster),e.props.updateIsIdle(!1)})),r.listen(n,n.Event.PLAYER_STATE_CHANGED,(function(t){e.props.updatePlayerState(t.payload.oldState.type,t.payload.newState.type)})),r.listen(n,n.Event.TIME_UPDATE,(function(){e.props.updateCurrentTime(n.currentTime)})),r.listen(n,n.Event.DURATION_CHANGE,(function(){e.props.updateDuration(n.isLive()?n.liveDuration:n.duration)})),r.listen(n,n.Event.LOADED_DATA,(function(){e.props.updateDuration(n.isLive()?n.liveDuration:n.duration),e.props.updatePictureInPictureSupport(n.isPictureInPictureSupported()),e.props.updateDataLoadingStatus(!0)})),r.listen(n,n.Event.LOADED_METADATA,(function(){e.props.updateMuted(n.muted),e.props.updateMetadataLoadingStatus(!0),e.props.updateIsLive(n.isLive()),e.props.updateIsDvr(n.isDvr()),e.props.updatePlayerPoster(n.poster)})),r.listen(n,n.Event.VOLUME_CHANGE,(function(){e.props.updateVolume(n.volume)})),r.listen(n,n.Event.MUTE_CHANGE,(function(){e.props.updateMuted(n.muted),e.props.engine.fallbackToMutedAutoPlay&&e.props.updateFallbackToMutedAutoPlay(n.muted)})),r.listen(n,n.Event.PLAYBACK_START,(function(){e.props.updatePrePlayback(!1),e.props.updateIsPlaybackStarted(!0),e.props.updateLoadingSpinnerState(!0)})),r.listen(n,n.Event.AUTOPLAY_FAILED,(function(){e.props.updatePrePlayback(!0)})),r.listen(n,n.Event.FIRST_PLAY,(function(){e.props.updatePrePlayback(!1)})),r.listen(n,n.Event.PLAY,(function(){e.props.updateIsPlaying(!0),e.props.updateIsEnded(!1),e.props.updateIsPaused(!1),e.props.updateIsPlaybackEnded(!1)})),r.listen(n,n.Event.PAUSE,(function(){e.props.updateIsPlaying(!1),e.props.updateIsPaused(!0)})),r.listen(n,n.Event.SEEKING,(function(){e.props.updateIsSeeking(!0)})),r.listen(n,n.Event.SEEKED,(function(){e.props.updateIsSeeking(!1),e.props.updateLastSeekPoint(n.currentTime),e.props.updateIsPlaybackEnded(!1)})),r.listen(n,n.Event.ENDED,(function(){e.props.updateIsEnded(!0),e.props.updateIsPlaying(!1),e.props.updateIsPaused(!0)})),r.listen(n,n.Event.PLAYBACK_ENDED,(function(){e.props.updateIsPlaybackEnded(!0)})),r.listen(n,n.Event.TRACKS_CHANGED,(function(){var t=n.getTracks(i.AUDIO),r=n.getTracks(i.VIDEO),a=n.getTracks(i.TEXT);e.props.updateAudioTracks(t),e.props.updateVideoTracks(r),e.props.updateTextTracks(a)})),r.listen(n,n.Event.TEXT_TRACK_CHANGED,(function(){var t=n.getTracks(i.TEXT);e.props.updateTextTracks(t)})),r.listen(n,n.Event.AUDIO_TRACK_CHANGED,(function(){var t=n.getTracks(i.AUDIO);e.props.updateAudioTracks(t)})),r.listen(n,n.Event.VIDEO_TRACK_CHANGED,(function(){var t=n.getTracks(i.VIDEO);e.props.updateVideoTracks(t)})),r.listen(n,n.Event.AD_BREAK_START,(function(){e.props.updateHasError(!1),e.props.updateAdBreak(!0)})),r.listen(n,n.Event.AD_BREAK_END,(function(){e.props.updateAdBreak(!1)})),r.listen(n,n.Event.ALL_ADS_COMPLETED,(function(){e.props.updateAdBreak(!1)})),r.listen(n,n.Event.AD_PROGRESS,(function(t){var n=t.payload.adProgress.currentTime,r=t.payload.adProgress.duration;e.props.updateAdBreakProgress(n,r)})),r.listen(n,n.Event.AD_COMPLETED,(function(){e.props.updateAdBreakCompleted()})),r.listen(n,n.Event.AD_STARTED,(function(t){var n=t.payload.ad;e.props.updateLoadingSpinnerState(!1),e.props.updateAdIsPlaying(!0),e.props.updatePrePlayback(!1),e.props.updateAdIsBumper(n.bumper),e.props.updateAdContentType(n.contentType)})),r.listen(n,n.Event.AD_RESUMED,(function(){e.props.updateAdIsPlaying(!0)})),r.listen(n,n.Event.AD_PAUSED,(function(){e.props.updateAdIsPlaying(!1)})),r.listen(n,n.Event.AD_ERROR,(function(t){t.payload.severity===n.Error.Severity.CRITICAL&&e.props.updateAdBreak(!1)})),r.listen(n,n.Event.FALLBACK_TO_MUTED_AUTOPLAY,(function(){e.props.updateFallbackToMutedAutoPlay(!0)})),r.listen(n,n.Event.AD_LOADED,(function(t){var n=t.payload.ad;e.props.updateAdIsLinear(n.linear),e.props.updateAdIsBumper(n.bumper),e.props.updateAdClickUrl(n.clickThroughUrl),e.props.updateAdSkipTimeOffset(n.skipOffset),e.props.updateAdSkippableState(n.skippable)})),r.listen(n,n.Event.VR_STEREO_MODE_CHANGED,(function(t){e.props.updateVrStereoMode(t.payload.mode)})),r.listen(n,n.Event.ERROR,(function(t){t.payload.severity===n.Error.Severity.CRITICAL&&(e.props.updateIsIdle(!1),e.props.updateHasError(!0))})),r.listen(n,n.Event.Cast.CAST_SESSION_STARTED,(function(t){var n=t.payload.session;e.props.updateIsCasting(!0),e.props.updateCastSession(n),n.resuming&&e.props.updateLoadingSpinnerState(!1)})),r.listen(n,n.Event.Cast.CAST_SESSION_ENDED,(function(){e.props.updateIsCasting(!1),e.props.updateCastSession(null)})),r.listen(n,n.Event.Cast.CAST_AVAILABLE,(function(t){var n=t.payload.available;e.props.updateIsCastAvailable(n)})),r.listen(n,n.Event.Playlist.PLAYLIST_ITEM_CHANGED,(function(){e.props.updatePlaylist({next:n.playlist.next,prev:n.playlist.prev})})),r.listen(n,n.Event.ENTER_PICTURE_IN_PICTURE,(function(){e.props.updateIsInPictureInPicture(!0)})),r.listen(n,n.Event.LEAVE_PICTURE_IN_PICTURE,(function(){e.props.updateIsInPictureInPicture(!1)})),r.listen(n,n.Event.PRESENTATION_MODE_CHANGED,(function(){e.props.updateIsInPictureInPicture(n.isInPictureInPicture()),e.props.updateFullscreen(n.isFullscreen())})),r.listen(n,n.Event.ENTER_FULLSCREEN,(function(){e.props.updateFullscreen(!0)})),r.listen(n,n.Event.EXIT_FULLSCREEN,(function(){e.props.updateFullscreen(!1)}))},i.shouldComponentUpdate=function(){return!1},i.render=function(){return N("span",null)},r}(B))||Ea)||Ea)||Ea)||Ea);function Oa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function La(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ra.displayName="EngineConnector";var Ma=(Ia=$t((function(e){return{videoStyles:e.shell.layoutStyles.video,targetId:e.config.targetId}}),ur(sr)),Sr(Pa=Br(Pa=Ia(Pa=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return La(Oa(t=e.call.apply(e,[this].concat(r))||this),"_onVideoResize",(function(){var e=t.props.player.getVideoElement();e&&t.props.updateVideoClientRect(e.getBoundingClientRect())})),La(Oa(t),"_setRef",(function(e){t._videoResizeWatcher&&(t.props.eventManager.unlisten(t._videoResizeWatcher,Dr.Type.RESIZE,t._onVideoResize),t._videoResizeWatcher.destroy()),e&&(t._el=e),t._el?t._el.appendChild(t.props.player.getView()):t.props.updateVideoClientRect({x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0})})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.shouldComponentUpdate=function(e){return e.videoStyles!==this.props.videoStyles},i.componentDidMount=function(){var e=this,t=this.props,n=t.eventManager,r=t.player;n.listen(r,r.Event.SOURCE_SELECTED,(function(){return e._onVideoResize()}));var i=new hi;i.init(this._el),this._videoResizeWatcher=i,this.props.eventManager.listen(this._videoResizeWatcher,Dr.Type.RESIZE,this._onVideoResize)},i.componentWillUnmount=function(){this._videoResizeWatcher.destroy()},i.render=function(){var e=this.props,t=e.videoStyles;return N("div",{id:e.targetId+"-video",className:pr.a.videoPlayer,style:t,ref:this._setRef},N(qn,{name:"VideoContainer"}))},r}(B))||Pa)||Pa)||Pa);function Na(){return(Na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ja(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ba,Va=function(e){return function(t){var n,r;function i(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return ja(Fa(e=t.call.apply(t,[this].concat(r))||this),"_accessibleChildren",[]),ja(Fa(e),"_isModal",!1),ja(Fa(e),"onKeyDown",(function(t){switch(t.keyCode){case Ln.ESC:e.props.onClose&&(e.props.onClose(),t.stopPropagation());break;case Ln.DOWN:case Ln.UP:if(document.activeElement&&!e._isModal){var n=e._accessibleChildren.indexOf(document.activeElement);n=(n+(t.keyCode==Ln.DOWN?1:-1)+e._accessibleChildren.length)%e._accessibleChildren.length,e._accessibleChildren[n].focus(),t.preventDefault(),t.stopPropagation()}break;case Ln.TAB:e._isModal?t.shiftKey||document.activeElement!==e._accessibleChildren[e._accessibleChildren.length-1]?t.shiftKey&&document.activeElement===e._accessibleChildren[0]&&(e._accessibleChildren[e._accessibleChildren.length-1].focus(),t.preventDefault(),t.stopPropagation()):(e._accessibleChildren[0].focus(),t.preventDefault(),t.stopPropagation()):(e._previouslyActiveElement=null,e.props.onClose&&e.props.onClose())}})),ja(Fa(e),"setDefaultFocusedElement",(function(t){t&&(e._defaultFocusedElement=t)})),ja(Fa(e),"addAccessibleChild",(function(t){t&&-1==e._accessibleChildren.indexOf(t)&&e._accessibleChildren.push(t)})),ja(Fa(e),"clearAccessibleChildren",(function(){e._accessibleChildren=[]})),ja(Fa(e),"focusOnDefault",(function(){var t=e._defaultFocusedElement||e._accessibleChildren.length&&e._accessibleChildren[0];t&&(e._previouslyActiveElement=document.activeElement,t.focus())})),ja(Fa(e),"setIsModel",(function(t){e.isModal=t})),e}r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a,o,s=i.prototype;return s.componentDidMount=function(){this.focusOnDefault()},s.componentWillUnmount=function(){this._previouslyActiveElement&&this._previouslyActiveElement.focus()},s.render=function(t){return N(e,Na({},t,{setDefaultFocusedElement:this.setDefaultFocusedElement,focusOnDefault:this.focusOnDefault,addAccessibleChild:this.addAccessibleChild,clearAccessibleChildren:this.clearAccessibleChildren,handleKeyDown:this.onKeyDown,setIsModal:this.setIsModel}))},a=i,(o=[{key:"isModal",set:function(e){this._isModal=e}}])&&Ua(a.prototype,o),i}(B)};function Ha(e){var t=parseInt(e,10),n=Math.floor(t/3600),r=Math.floor((t-3600*n)/60),i=t-3600*n-60*r;return n<10&&(n="0"+n),r<10&&(r="0"+r),i<10&&(i="0"+i),("00"!==n?n+":":"")+r+":"+i}function Ka(e){for(var t=e.split(":"),n=0,r=1,i=t.length-1;i>=0;i--){var a=parseInt(t[i]);if(isNaN(a)||a>59){n=0;break}n+=a*r,r*=60}return n}function Ga(e){var t=parseInt(e);return t<10?"00:0"+e:t<=59?"00:"+e:Ha(t)}function za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wa,Ya,qa,Xa,$a,Qa=fi("ActivePreset")(Ba=$t((function(e){return{state:{shell:e.shell,engine:{adBreak:e.engine.adBreak,isLive:e.engine.isLive,hasError:e.engine.hasError,isIdle:e.engine.isIdle,isVr:e.engine.isVr,isImg:e.engine.isImg,playlist:e.engine.playlist}},config:e.config}}),ur(sr))(Ba=function(e){var t,n;function r(){var t;return t=e.call(this)||this,r.logger=Dn("ActivePreset"),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getMatchedUI=function(e,t){for(var n,r,i=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return za(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?za(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(e);!(r=i()).done;){var a=r.value;if(void 0===a.condition||a.condition(t)){n=a;break}}return n},i.render=function(e){var t,n=this.props,i=n.uis,a=n.state.shell.activePresetName;if(i.length>0){var o=(t=this.getMatchedUI(i,e.state))?t.template(e):i[i.length-1].template(e),s=o&&o.type.displayName||"";return a!==s&&(e.notifyChange({from:a,to:s}),e.updateActivePresetName(s),e.updatePresetSettings(null),r.logger.debug("update active preset to '"+a+"' and reset preset settings")),o}},r}(B))||Ba)||Ba,Za=$t((function(e){return{sidePanelsStyles:e.shell.layoutStyles.sidePanels,playerClientRect:e.shell.playerClientRect}}))(Wa=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.shouldComponentUpdate=function(e){var t=this.props,n=t.sidePanelsStyles,r=t.position,i=e.sidePanelsStyles,a=e.position;return n[r]!==i[a]},i.render=function(e){var t=e.position,n=e.sidePanelsStyles,r=-1!==[Jn.RIGHT,Jn.LEFT].indexOf(t)?"verticalSidePanel":"horizontalSidePanel",i=[pr.a.sidePanel,pr.a[r]],a="SidePanel"+(t.charAt(0).toUpperCase()+t.slice(1).toLowerCase());return N("div",{style:n[t],className:i.join(" ")},N("div",{className:pr.a.sidePanelContent},N(qn,{name:a})))},r}(B))||Wa,Ja=$t((function(e){return{allowSidePanels:e.shell.presetSettings.allowSidePanels,allowPlayerArea:e.shell.presetSettings.allowPlayerArea,sidePanelsConfig:e.config.components.sidePanels}}),ur(sr))(Ya=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidUpdate=function(){var e=this.props.sidePanelsConfig,t=e.verticalSizes,n=e.horizontalSizes;t&&this.props.updateSidePanelSize(Zn.VERTICAL,t),n&&this.props.updateSidePanelSize(Zn.HORIZONTAL,n)},i.render=function(){var e=this.props,t=e.uis,n=e.playerContainer,r=e.allowSidePanels,i=e.allowPlayerArea;return N(j,null,N(Qa,{uis:t,playerContainer:n}),r?N(j,null,N(Za,{position:Jn.RIGHT}),N(Za,{position:Jn.LEFT}),N(Za,{position:Jn.TOP}),N(Za,{position:Jn.BOTTOM})):void 0,i?N(qn,{name:"PlayerArea"}):void 0)},r}(B))||Ya,eo=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){return N("div",{className:pr.a.spinner},Array(8).fill(0).map((function(e,t){return N("span",{key:t+1})})))},r}(B);eo.displayName="Spinner";var to,no=(qa=$t((function(e){return{show:e.loading.show,isMobile:e.shell.isMobile,adBreak:e.engine.adBreak,adIsLinear:e.engine.adIsLinear}}),ur(Qi)),Xa=jn("Loading"),qa($a=Sr($a=Br($a=Xa($a=function(e){var t,n;function r(){return e.call(this)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){var e=this,t=this.props,n=t.player,r=t.eventManager;r.listen(n,n.Event.PLAYER_STATE_CHANGED,(function(t){var r=n.State;t.payload.newState.type===r.IDLE||t.payload.newState.type===r.PLAYING||t.payload.newState.type===r.PAUSED?e.props.updateLoadingSpinnerState(!1):e.props.updateLoadingSpinnerState(!0)})),r.listen(n,n.Event.AD_BREAK_START,(function(){e.props.updateLoadingSpinnerState(!0)})),r.listen(n,n.Event.AD_PROGRESS,(function(){e.props.updateLoadingSpinnerState(!1)})),r.listen(n,n.Event.AD_STARTED,(function(){e.props.adIsLinear&&e.props.updateLoadingSpinnerState(!1)})),r.listen(n,n.Event.ALL_ADS_COMPLETED,(function(){e.props.updateLoadingSpinnerState(!1)})),r.listen(n,n.Event.AUTOPLAY_FAILED,(function(){e.props.updateLoadingSpinnerState(!1)})),r.listen(n,n.Event.PLAYING,(function(){e.props.updateLoadingSpinnerState(!1)}))},i.render=function(e){if(e.show)return N("div",{className:[pr.a.loadingBackdrop,pr.a.show].join(" ")},N("div",{className:pr.a.spinnerContainer},N(qn,{name:nr.LoadingSpinner},N(eo,null))))},r}(B))||$a)||$a)||$a)||$a);function ro(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function io(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}no.displayName="Loading";var ao,oo=$t((function(e){return{guiStyles:e.shell.layoutStyles.gui}}))(to=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return io(ro(t=e.call.apply(e,[this].concat(r))||this),"_setRef",(function(e){e&&(t._ref=e,t.setState((function(e){return{render:!e.render}})))})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.shouldComponentUpdate=function(e,t){return e.guiStyles!==this.props.guiStyles||t.render!==this.state.render},i.render=function(){var e=this.props,t=e.guiStyles,n=W(e.children),r=n[0],i=n[1];return N("div",{ref:this._setRef,style:t,className:pr.a.guiArea},N("div",{style:{pointerEvents:"auto"}},N(qn,{name:"GuiArea"},r)),"function"==typeof i?i({containerRef:this._ref}):i)},r}(B))||to,so=Ni({allowSidePanels:!0,allowPlayerArea:!0})(ao=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){return N("div",{className:pr.a.playbackGuiWrapper},N(qn,{name:"PresetArea"},N(oo,null,N(no,null))))},r}(B))||ao;function lo(e){return N(so,e)}function uo(){return(uo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function co(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}so.displayName="Idle";var fo,ho,go,yo,vo={Maximize:"maximize",Minimize:"minimize",Play:"play",Pause:"pause",VolumeBase:"volume-base",VolumeWaves:"volume-waves",VolumeWave:"volume-wave",VolumeMute:"volume-mute",Close:"close",Settings:"settings",Check:"check",CheckActive:"check-active",Language:"language",Quality:"quality",Captions:"captions",Speed:"speed",SpeedDown:"speed-down",SpeedUp:"speed-up",Audio:"audio",ArrowDown:"arrow-down",StartOver:"start-over",SeekEnd:"seek-end",Rewind:"rewind",Rewind10:"rewind10",Forward:"forward",Forward10:"forward10",vrStereo:"vr-stereo",vrStereoFull:"vr-stereo-full",Cast:"cast",CastBrand:"cast-brand",Next:"next",Prev:"prev",PictureInPictureStart:"picture-in-picture-start",PictureInPictureStop:"picture-in-picture-stop",ClosedCaptionsOn:"closed-captions-on",ClosedCaptionsOff:"closed-captions-off",AdvancedAudioDescription:"advanced-audio-description"},mo={qualityHd:pr.a.badgeIcon+" "+pr.a.iconQualityHd,qualityHdActive:pr.a.badgeIcon+" "+pr.a.iconQualityHdActive,quality4k:pr.a.badgeIcon+" "+pr.a.iconQuality4K,quality4kActive:pr.a.badgeIcon+" "+pr.a.iconQuality4KActive,quality8k:pr.a.badgeIcon+" "+pr.a.iconQuality8K,quality8kActive:pr.a.badgeIcon+" "+pr.a.iconQuality8KActive},bo={INACTIVE:0,ACTIVE:1},_o=function(e){var t,n;function r(t){var n;po(co(n=e.call(this,t)||this),"_defaultColor",pr.a.white),po(co(n),"_activeColor",pr.a.brandColor),po(co(n),"_className",""),po(co(n),"createDynamicIconClass",(function(e){var t=e.path,r=e.state,i=e.color,a=e.activeColor,o=e.width,s=e.height,l=e.viewBox,u=e.fillRule,c=n.getFillColor(r,i,a),p=n.getPathTag(t,c),d=n.getSVGUrl(p,o,s,l,u),f="."+n._className+" { background-image: "+d+"; }",h=document.getElementById(gf);h&&h.appendChild(document.createTextNode(f))})),po(co(n),"getSVGUrl",(function(e,t,n,r,i){void 0===t&&(t=36),void 0===n&&(n=36),void 0===r&&(r="0 0 1024 1024"),void 0===i&&(i="nonzero");for(var a='<svg xmlns="http://www.w3.org/2000/svg"  xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="'+r+'" width="'+t+'" height="'+n+'" fill-rule="'+i+'">'+e+"</svg>",o=[['"',"'"],["%","%25"],["&","%26"],["#","%23"],["{","%7B"],["}","%7D"],["<","%3C"],[">","%3E"]],s=Math.ceil(a.length/2e3),l=0,u="",c=0;c<s;c++){for(var p=a.slice(l,l+2e3-1),d=0;d<o.length;d++)p=p.split(o[d][0]).join(o[d][1]);u=""+u+p,l+=2e3}return'url("data:image/svg+xml,'+u+'")'})),po(co(n),"getFillColor",(function(e,t,r){return e===bo.ACTIVE?r||n._activeColor:t||n._defaultColor})),po(co(n),"getPathTag",(function(e,t){return Array.isArray(e)||(e=[e]),e.map((function(e){var n="string"==typeof e?{d:e,fill:t}:uo({},e,{fill:t});return"<path "+Object.keys(n).map((function(e){return e+'="'+n[e]+'"'})).join(" ")+" />"})).join(" ")}));var r=t.path,i=t.id;if(r&&i){n._className="playkit-icon-"+i;var a=Array.from(document.styleSheets).find((function(e){return e.ownerNode.id===gf}));a&&Array.from(a.rules).find((function(e){return e.selectorText==="."+n._className}))||n.createDynamicIconClass(t)}return n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentWillUpdate=function(e){this._className&&this.props.state!==e.state&&this.createDynamicIconClass(e)},i.render=function(e){if(this._className)return N("i",{className:[pr.a.icon,this._className].join(" ")});switch(e.type){case vo.Maximize:return N("i",{className:[pr.a.icon,pr.a.iconMaximize].join(" ")});case vo.Minimize:return N("i",{className:[pr.a.icon,pr.a.iconMinimize].join(" ")});case vo.Play:return N("i",{className:[pr.a.icon,pr.a.iconPlay].join(" ")});case vo.Pause:return N("i",{className:[pr.a.icon,pr.a.iconPause].join(" ")});case vo.VolumeBase:return N("i",{className:[pr.a.icon,pr.a.iconVolumeBase].join(" ")});case vo.VolumeWaves:return N("i",{className:[pr.a.icon,pr.a.iconVolumeWaves].join(" ")});case vo.VolumeWave:return N("i",{className:[pr.a.icon,pr.a.iconVolumeWave].join(" ")});case vo.VolumeMute:return N("i",{className:[pr.a.icon,pr.a.iconVolumeMute].join(" ")});case vo.Close:return N("i",{className:[pr.a.icon,pr.a.iconClose].join(" ")});case vo.Settings:return N("i",{className:[pr.a.icon,pr.a.iconSettings].join(" ")});case vo.Check:return N("i",{className:[pr.a.icon,pr.a.iconCheck].join(" ")});case vo.CheckActive:return N("i",{className:[pr.a.icon,pr.a.iconCheckActive].join(" ")});case vo.Language:return N("i",{className:[pr.a.icon,pr.a.iconLanguage].join(" ")});case vo.Quality:return N("i",{className:[pr.a.icon,pr.a.iconQuality].join(" ")});case vo.Captions:return N("i",{className:[pr.a.icon,pr.a.iconCaptions].join(" ")});case vo.Speed:return N("i",{className:[pr.a.icon,pr.a.iconSpeed].join(" ")});case vo.SpeedDown:return N("i",{className:[pr.a.icon,pr.a.iconSpeedDown].join(" ")});case vo.SpeedUp:return N("i",{className:[pr.a.icon,pr.a.iconSpeedUp].join(" ")});case vo.Audio:return N("i",{className:[pr.a.icon,pr.a.iconAudio].join(" ")});case vo.ArrowDown:return N("i",{className:[pr.a.icon,pr.a.iconArrowDown].join(" ")});case vo.StartOver:return N("i",{className:[pr.a.icon,pr.a.iconStartOver].join(" ")});case vo.SeekEnd:return N("i",{className:[pr.a.icon,pr.a.iconSeekEnd].join(" ")});case vo.Rewind:return N("i",{className:[pr.a.icon,pr.a.iconRewind].join(" ")});case vo.Rewind10:return N("i",{className:[pr.a.icon,pr.a.iconRewind10].join(" ")});case vo.Forward:return N("i",{className:[pr.a.icon,pr.a.iconForward].join(" ")});case vo.Forward10:return N("i",{className:[pr.a.icon,pr.a.iconForward10].join(" ")});case vo.vrStereo:return N("i",{className:[pr.a.icon,pr.a.iconVrStereo].join(" ")});case vo.vrStereoFull:return N("i",{className:[pr.a.icon,pr.a.iconVrStereoFull].join(" ")});case vo.Cast:return N("i",{className:[pr.a.icon,pr.a.iconChromecast].join(" ")});case vo.CastBrand:return N("i",{className:[pr.a.icon,pr.a.iconChromecastBrand].join(" ")});case vo.Next:return N("i",{className:[pr.a.icon,pr.a.iconNext].join(" ")});case vo.Prev:return N("i",{className:[pr.a.icon,pr.a.iconPrev].join(" ")});case vo.PictureInPictureStart:return N("i",{className:[pr.a.icon,pr.a.iconPictureInPictureStart].join(" ")});case vo.PictureInPictureStop:return N("i",{className:[pr.a.icon,pr.a.iconPictureInPictureStop].join(" ")});case vo.ClosedCaptionsOn:return N("i",{className:[pr.a.icon,pr.a.iconClosedCaptionsOn].join(" ")});case vo.ClosedCaptionsOff:return N("i",{className:[pr.a.icon,pr.a.iconClosedCaptionsOff].join(" ")});case vo.AdvancedAudioDescription:return N("i",{className:[pr.a.icon,pr.a.iconAdvancedAudioDescription].join(" ")})}},r}(B),Eo=_o,ko=function(e){return e.adBreak&&e.adIsPlaying||!e.adBreak&&e.isPlaying};function To(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wo(){return(wo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var So,Co,xo,Io=(fo=$t((function(e){return{isPlayingAdOrPlayback:ko(e.engine),iconType:e.overlayAction.iconType,playerHover:e.shell.playerHover,isMobile:e.shell.isMobile,guiStyles:e.shell.layoutStyles.gui,isSmartContainerOpen:e.shell.smartContainerOpen,fullscreenConfig:e.config.components.fullscreen,seekbarDraggingActive:e.seekbar.draggingActive}}),ur(wo({},da,sr))),ho=jn("OverlayAction"),go=fi("OverlayAction"),fo(yo=Sr(yo=ho(yo=go(yo=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ao(To(t=e.call.apply(e,[this].concat(r))||this),"_iconTimeout",null),Ao(To(t),"_pointerDownPosX",NaN),Ao(To(t),"_pointerDownPosY",NaN),Ao(To(t),"_firstClickTime",0),Ao(To(t),"_clickTimeout",null),Ao(To(t),"togglePlayPause",(function(){t.props.isPlayingAdOrPlayback?(t.props.player.pause(),t.props.updateOverlayActionIcon(vo.Pause)):(t.props.player.play(),t.props.updateOverlayActionIcon(vo.Play)),t.props.updatePlayerHoverState(!0),t.props.notifyClick({type:"PlayPause"})})),Ao(To(t),"onOverlayPointerDown",(function(e){t._pointerDownPosX=e.clientX||e.changedTouches&&e.changedTouches[0]&&e.changedTouches[0].clientX,t._pointerDownPosY=e.clientY||e.changedTouches&&e.changedTouches[0]&&e.changedTouches[0].clientY})),Ao(To(t),"onOverlayMouseUp",(function(e){t.isDragging(e)||t.overlayClick()})),Ao(To(t),"onOverlayTouchEnd",(function(e){e.preventDefault(),t.props.playerHover&&!t.isDragging(e)&&t.togglePlayPause()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentWillUnmount=function(){this.cancelClickTimeout(),this.cancelIconTimeout()},i.toggleFullscreen=function(){this.props.player.isFullscreen()?(this.props.logger.debug("Exit fullscreen"),this.props.player.exitFullscreen()):(this.props.logger.debug("Enter fullscreen"),this.props.player.enterFullscreen()),this.props.notifyClick({type:"Fullscreen"})},i.isDragging=function(e){var t=e.clientX||e.changedTouches&&e.changedTouches[0]&&e.changedTouches[0].clientX,n=e.clientY||e.changedTouches&&e.changedTouches[0]&&e.changedTouches[0].clientY;return this.props.seekbarDraggingActive||Math.abs(t-this._pointerDownPosX)>5||Math.abs(n-this._pointerDownPosY)>5},i.overlayClick=function(){var e=this;if(!this.props.isSmartContainerOpen){if(!this.props.fullscreenConfig.disableDoubleClick){var t=Date.now();if(t-this._firstClickTime<200)return this.cancelClickTimeout(),void this.toggleFullscreen();if(t-this._firstClickTime<500)return this.cancelClickTimeout(),this.togglePlayPause(),this.toggleFullscreen(),void(this._firstClickTime=0);this._firstClickTime=t}this._clickTimeout=setTimeout((function(){e._clickTimeout=null,e.togglePlayPause()}),200)}},i.cancelClickTimeout=function(){this._clickTimeout&&(clearTimeout(this._clickTimeout),this._clickTimeout=null)},i.cancelIconTimeout=function(){this._iconTimeout&&(clearTimeout(this._iconTimeout),this._iconTimeout=null)},i.shouldComponentUpdate=function(e){return e.iconType&&this.toggleOverlayActionIcon(e.iconType),!0},i.toggleOverlayActionIcon=function(e){var t=this,n=function(){t.setState({animation:!0,iconType:e},(function(){t._iconTimeout=setTimeout((function(){t._iconTimeout=null,t.setState({animation:!1})}),300)}))};null!==this._iconTimeout?(this.cancelIconTimeout(),this.setState({animation:!1},(function(){t.forceUpdate(),n()}))):n()},i.render=function(){return N("div",{style:this.props.guiStyles,className:pr.a.overlayAction+" "+(this.state.animation?pr.a.in:""),onMouseDown:this.onOverlayPointerDown,onTouchStart:this.onOverlayPointerDown,onMouseUp:this.onOverlayMouseUp,onTouchEnd:this.onOverlayTouchEnd},this.state.animation?this.renderIcons():void 0)},i.renderIcons=function(){return Array.isArray(this.state.iconType)?this.state.iconType.map((function(e,t){return N(Eo,{key:t,type:e})})):N(Eo,{type:this.state.iconType})},i.componentDidUpdate=function(){this.state.animation&&this.props.updateOverlayActionIcon(null)},r}(B))||yo)||yo)||yo)||yo);function Po(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Do(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Io.displayName="OverlayAction";var Ro={Top:"top",Bottom:"bottom",TopRight:"top-right",TopLeft:"top-left",BottomRight:"bottom-right",BottomLeft:"bottom-left",Left:"left",Right:"right"},Oo=$t((function(e){return{playerClientRect:e.shell.playerClientRect,guiClientRect:e.shell.guiClientRect,isMobile:e.shell.isMobile}}))(So=Br((xo=Co=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Do(Po(t=e.call.apply(e,[this].concat(r))||this),"_hoverTimeout",null),Do(Po(t),"lastAlternativeTypeIndex",-1),Do(Po(t),"showTooltip",(function(){t.setState({showTooltip:!0})})),Do(Po(t),"hideTooltip",(function(){t.setState({showTooltip:!1})})),Do(Po(t),"handleFocusOnChildren",(function(){var e=t.props.children.props.onFocus;t.showTooltip(),e&&e()})),Do(Po(t),"handleBlurOnChildren",(function(){var e=t.props.children.props.onBlur;t.hideTooltip(),e&&e()})),Do(Po(t),"onMouseOver",(function(){t._clearHoverTimeout(),t._hoverTimeout=setTimeout((function(){t.showTooltip()}),750)})),Do(Po(t),"onMouseLeave",(function(){t.hideTooltip(),t._clearHoverTimeout()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i._clearHoverTimeout=function(){this._hoverTimeout&&(clearTimeout(this._hoverTimeout),this._hoverTimeout=null)},i.getAlternateType=function(){var e=this;return Object.values(Ro).find((function(t,n){return n>e.lastAlternativeTypeIndex&&t!=e.props.type&&(e.lastAlternativeTypeIndex=n,!0)}))},i.isToolTipInBoundaries=function(){var e=this.textElement.getBoundingClientRect(),t=this.props.playerClientRect;return e.top>t.top+5&&e.bottom<t.bottom-5&&e.right<t.right-5&&e.left>t.left+5},i.componentWillMount=function(){this.setState({valid:!1,type:this.props.type})},i.componentDidMount=function(){var e=this;this.props.eventManager.listen(document,"click",(function(t){return e.handleClickOutside(t)}))},i.handleClickOutside=function(e){var t;!(null==(t=this.tooltipElement)?void 0:t.contains(e.target))&&this.state.showTooltip&&this.hideTooltip()},i.componentDidUpdate=function(e){if(this.props.guiClientRect!==e.guiClientRect)this.lastAlternativeTypeIndex=-1,this.setState({valid:!1,type:this.props.type});else if(this.state.showTooltip)if(this.isToolTipInBoundaries())this.state.valid||this.setState({valid:!0});else{var t=this.getAlternateType();t&&this.setState({valid:!1,type:t})}},i.componentWillUnmount=function(){this._clearHoverTimeout()},i.render=function(e){var t=this,n=[pr.a.tooltipLabel,pr.a["tooltip-"+this.state.type]];if(this.state.showTooltip&&this.state.valid?n.push(pr.a.show):n.push(pr.a.hide),e.isMobile)return W(e.children)[0];var r=ie(e.children,{onFocus:this.handleFocusOnChildren,onBlur:this.handleBlurOnChildren});return N("div",{className:pr.a.tooltip,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,ref:function(e){return e?t.tooltipElement=e:void 0}},r,N("span",{style:{maxWidth:e.maxWidth},ref:function(e){return e?t.textElement=e:void 0},className:n.join(" ")},e.label))},r}(B),Do(Co,"defaultProps",{type:Ro.Top,maxWidth:"240px"}),So=xo))||So)||So;function Lo(){return(Lo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Mo,No,Uo,Fo,jo,Bo=Fe((function(e,t){return N("button",Lo({type:"button",ref:t},e))}));function Vo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Bo.displayName="Button";var Ko=(Mo=$t((function(e){return{prePlayback:e.engine.prePlayback,isPlaybackEnded:e.engine.isPlaybackEnded,playlist:e.engine.playlist,loading:e.loading.show}}),ur(Qi)),No=jn("PrePlaybackPlayOverlay"),Uo=fi("PrePlaybackPlayOverlay"),Fo=An({startOverText:"controls.startOver",playText:"controls.play"}),Mo(jo=Sr(jo=No(jo=Uo(jo=Fo(jo=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Ho(Vo(t=e.call.apply(e,[this].concat(r))||this),"handleClick",(function(){t.props.player.getView().focus(),t.props.playlist&&t.props.isPlaybackEnded?t.props.player.playlist.playNext():t.props.player.play(),t.props.notifyClick()})),Ho(Vo(t),"onKeyDown",(function(e){e.keyCode===Ln.ENTER&&t.handleClick()})),Ho(Vo(t),"onMouseOver",(function(e){e.stopPropagation()})),t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){var t=e.isPlaybackEnded&&!e.player.config.playback.loop&&!(e.playlist&&e.playlist.next);if((e.prePlayback||t)&&!e.loading){var n=e.isPlaybackEnded?e.startOverText:e.playText;return N("div",{className:pr.a.prePlaybackPlayOverlay,onMouseOver:this.onMouseOver,onClick:this.handleClick},N(Bo,{className:pr.a.prePlaybackPlayButton,tabIndex:"0","aria-label":n,onKeyDown:this.onKeyDown},N(Oo,{label:n},e.isPlaybackEnded?N(Eo,{type:vo.StartOver}):N(Eo,{type:vo.Play}))))}},r}(B))||jo)||jo)||jo)||jo)||jo);function Go(){return(Go=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ko.displayName="PrePlaybackPlayOverlay";var Yo=function(e){return function(t){return Br(function(n){var r,i;function a(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Wo(zo(t=n.call.apply(n,[this].concat(i))||this),"ref",{current:null}),Wo(zo(t),"animate",(function(){t.ref.current&&(t.ref.current.classList.add(e),t.props.eventManager.listenOnce(t.ref.current,"animationend",(function(){t.ref.current.classList.remove(e)})))})),t}return i=n,(r=a).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i,a.prototype.render=function(){return N(t,Go({},this.props,{innerRef:this.ref,animate:this.animate}))},a}(B))}};function qo(){return(qo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Xo,$o,Qo,Zo,Jo,es,ts=Fe((function(e,t){var n=e.className,r=e.children,i=e.name,a=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["className","children","name"]),o=[pr.a.controlButtonContainer,"playkit-control-"+ns(i)];if(n){var s=Array.isArray(n)?n:[n];o=o.concat(s)}return N("div",qo({className:o.join(" "),ref:t},a),r)})),ns=function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()};function rs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function is(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var as,os,ss,ls,us,cs,ps=(Xo=$t((function(e){return{isDvr:e.engine.isDvr,isLive:e.engine.isLive}})),$o=jn("Rewind"),Qo=fi("Rewind"),Zo=Yo(pr.a.rotate),Jo=An({rewindText:"controls.rewind"}),Xo(es=Sr(es=$o(es=Qo(es=Zo(es=Jo(es=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return is(rs(t=e.call.apply(e,[this].concat(r))||this),"onClick",(function(){var e,n=t.props.player;t.props.animate();var r=t.props.step||10,i=n.currentTime,a=n.isLive()?n.getStartTimeOfDvrWindow():0;n.currentTime-r<a?t.props.isDvr||(e=a):e=n.currentTime-r,n.currentTime=e,t.props.notifyClick({from:i,to:e})})),t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){return e.isLive&&!e.isDvr?void 0:N(ts,{name:"Rewind",className:pr.a.noIdleControl},N(Oo,{label:this.props.rewindText},N(Bo,{tabIndex:"0","aria-label":this.props.rewindText,className:""+pr.a.controlButton,ref:this.props.innerRef,onClick:this.onClick},N(Eo,{type:e.step&&10!==e.step?vo.Rewind:vo.Rewind10}))))},r}(B))||es)||es)||es)||es)||es)||es);function ds(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ps.displayName="Rewind";var hs,gs,ys,vs,ms=(as=$t((function(e){return{isDvr:e.engine.isDvr,isLive:e.engine.isLive}})),os=jn("Forward"),ss=fi("Forward"),ls=Yo(pr.a.reverseRotate),us=An({forwardText:"controls.forward"}),as(cs=Sr(cs=os(cs=ss(cs=ls(cs=us(cs=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return fs(ds(t=e.call.apply(e,[this].concat(r))||this),"onClick",(function(){var e,n=t.props.player;t.props.animate();var r=t.props.step||10,i=n.currentTime,a=n.isLive()?n.liveDuration:n.duration;n.currentTime+r>a?n.isOnLiveEdge()||(e=a):e=n.currentTime+r,n.currentTime=e,t.props.notifyClick({from:i,to:e})})),t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){return e.isLive&&!e.isDvr?void 0:N(ts,{name:"Forward",className:pr.a.noIdleControl},N(Oo,{label:this.props.forwardText},N(Bo,{tabIndex:"0","aria-label":this.props.forwardText,className:""+pr.a.controlButton,ref:this.props.innerRef,onClick:this.onClick},N(Eo,{type:e.step&&10!==e.step?vo.Forward:vo.Forward10}))))},r}(B))||cs)||cs)||cs)||cs)||cs)||cs);function bs(){return(bs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ms.displayName="Forward";var ks,Ts,As,ws={preventDefault:!1,payload:null},Ss=(hs=$t((function(e){return{isPlayingAdOrPlayback:ko(e.engine),playerNav:e.shell.playerNav,textTracks:e.engine.textTracks,overlayOpen:e.overlay.isOpen}}),ur(Object.assign({},sr,da))),gs=jn("Keyboard"),ys=fi("Keyboard"),hs(vs=Sr(vs=gs(vs=ys(vs=function(e){var t,n;function r(t){var n,r;Es(_s(r=e.call(this)||this),"_lastActiveTextLanguage",""),Es(_s(r),"_hoverTimeout",null),Es(_s(r),"keyboardHandlers",((n={})[Ln.SPACE]=function(){return r.props.isPlayingAdOrPlayback?(r.props.player.pause(),r.props.updateOverlayActionIcon(vo.Pause)):(r.props.player.play(),r.props.updateOverlayActionIcon(vo.Play)),r.props.updatePlayerHoverState(!0),{preventDefault:!0,payload:!0}},n[Ln.UP]=function(){var e=(Math.round(100*r.props.player.volume)+5)/100;return e=e>1?1:e,r.props.logger.debug("Changing volume. "+r.props.player.volume+" => "+e),r.props.player.muted&&(r.props.player.muted=!1),r.props.player.volume=e,r.props.updateOverlayActionIcon([vo.VolumeBase,vo.VolumeWaves]),{preventDefault:!0,payload:{volume:r.props.player.volume}}},n[Ln.DOWN]=function(){var e=(Math.round(100*r.props.player.volume)-5)/100;return e=e<0?0:e,r.props.logger.debug("Changing volume. "+r.props.player.volume+" => "+e),r.props.player.volume=e,0===e?(r.props.player.muted=!0,r.props.updateOverlayActionIcon([vo.VolumeBase,vo.VolumeMute])):r.props.updateOverlayActionIcon([vo.VolumeBase,vo.VolumeWave]),{preventDefault:!0,payload:{volume:r.props.player.volume}}},n[Ln.F]=function(){return r.props.player.isFullscreen()?{preventDefault:!0,payload:null}:(r.props.logger.debug("Enter fullscreen"),r.props.player.enterFullscreen(),{preventDefault:!0,payload:!0})},n[Ln.P]=function(){return r.props.player.isInPictureInPicture()?(r.props.logger.debug("Exit Picture In Picture"),r.props.player.exitPictureInPicture()):(r.props.logger.debug("Enter Picture In Picture"),r.props.player.enterPictureInPicture()),r.props.updatePlayerHoverState(!0),{preventDefault:!0,payload:!0}},n[Ln.ESC]=function(){return r.props.player.isFullscreen()?(r.props.logger.debug("Exit fullscreen"),r.props.player.exitFullscreen(),{preventDefault:!0,payload:!0}):{preventDefault:!0,payload:null}},n[Ln.LEFT]=function(){if((!r.props.player.ads||!r.props.player.ads.isAdBreak())&&(!r.props.player.isLive()||r.props.player.isDvr())){var e=r.props.player.currentTime-5,t=r.props.player.currentTime,n=e>0?e:0;return r.props.logger.debug("Seek. "+t+" => "+n),r.props.player.currentTime=n,r.props.updateOverlayActionIcon(vo.Rewind),r.props.updatePlayerHoverState(!0),{preventDefault:!0,payload:{from:t,to:n}}}return{preventDefault:!0,payload:null}},n[Ln.RIGHT]=function(){if((!r.props.player.ads||!r.props.player.ads.isAdBreak())&&(!r.props.player.isLive()||r.props.player.isDvr())){var e=r.props.player.currentTime+5,t=r.props.player.currentTime,n=e>r.props.player.duration?r.props.player.duration:e;return r.props.logger.debug("Seek. "+t+" => "+n),r.props.player.currentTime=e>r.props.player.duration?r.props.player.duration:e,r.props.updateOverlayActionIcon(vo.Forward),r.props.updatePlayerHoverState(!0),{preventDefault:!0,payload:{from:t,to:n}}}return{preventDefault:!0,payload:null}},n[Ln.HOME]=function(){if((!r.props.player.ads||!r.props.player.ads.isAdBreak())&&(!r.props.player.isLive()||r.props.player.isDvr())){var e=r.props.player.currentTime;return r.props.logger.debug("Seek. "+e+" => 0"),r.props.player.currentTime=0,r.props.updateOverlayActionIcon(vo.StartOver),r.props.updatePlayerHoverState(!0),{preventDefault:!0,payload:{from:e,to:0}}}return{preventDefault:!0,payload:null}},n[Ln.END]=function(){if((!r.props.player.ads||!r.props.player.ads.isAdBreak())&&(!r.props.player.isLive()||r.props.player.isDvr())){var e=r.props.player.currentTime,t=r.props.player.duration;return r.props.logger.debug("Seek. "+e+" => "+t),r.props.player.currentTime=t,r.props.updateOverlayActionIcon(vo.SeekEnd),r.props.updatePlayerHoverState(!0),{preventDefault:!0,payload:{from:e,to:t}}}return{preventDefault:!0,payload:null}},n[Ln.M]=function(){return r.props.logger.debug(r.props.player.muted?"Umnute":"Mute"),r.props.player.muted=!r.props.player.muted,r.props.player.muted?r.props.updateOverlayActionIcon([vo.VolumeBase,vo.VolumeMute]):r.props.updateOverlayActionIcon([vo.VolumeBase,vo.VolumeWaves]),{preventDefault:!0,payload:!0}},n[Ln.SEMI_COLON]=function(e){return e.shiftKey?r.props.player.playbackRate!==r.props.player.defaultPlaybackRate?(r.props.logger.debug("Changing playback rate. "+r.props.player.playbackRate+" => "+r.props.player.defaultPlaybackRate),r.props.player.playbackRate=r.props.player.defaultPlaybackRate,r.props.updateOverlayActionIcon(vo.Speed),{preventDefault:!0,payload:{speed:r.props.player.defaultPlaybackRate}}):{preventDefault:!0,payload:null}:ws},n[Ln.PERIOD]=function(e){if(e.shiftKey){var t=r.props.player.playbackRate,n=r.props.player.playbackRates.indexOf(t);return n<r.props.player.playbackRates.length-1?(r.props.logger.debug("Changing playback rate. "+t+" => "+r.props.player.playbackRates[n+1]),r.props.player.playbackRate=r.props.player.playbackRates[n+1],r.props.updateOverlayActionIcon(vo.SpeedUp),{preventDefault:!0,payload:{speed:r.props.player.playbackRates[n+1]}}):{preventDefault:!0,payload:null}}return ws},n[Ln.COMMA]=function(e){if(e.shiftKey){var t=r.props.player.playbackRate,n=r.props.player.playbackRates.indexOf(t);return n>0?(r.props.logger.debug("Changing playback rate. "+t+" => "+r.props.player.playbackRates[n-1]),r.props.player.playbackRate=r.props.player.playbackRates[n-1],r.props.updateOverlayActionIcon(vo.SpeedDown),{preventDefault:!0,payload:{speed:r.props.player.playbackRates[n-1]}}):{preventDefault:!0,payload:null}}return ws},n[Ln.C]=function(e){var t=r.props.player.getActiveTracks().text;if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return ws;if(t){if("off"===t.language&&r._lastActiveTextLanguage){r.props.logger.debug("Changing text track to language",r._lastActiveTextLanguage);var n=r.props.player.getTracks("text").find((function(e){return e.language===r._lastActiveTextLanguage}));return r.props.player.selectTrack(n),{preventDefault:!0,payload:{track:n}}}"off"===t.language||r._lastActiveTextLanguage||(r.props.logger.debug("Hiding text track"),r._lastActiveTextLanguage=t.language,r.props.player.hideTextTrack())}return{preventDefault:!0,payload:null}},n));var i=document.getElementById(t.config.targetId);return i?(i.onkeydown=function(e){var t=e.target instanceof Node&&e.target.nodeName||"";if(-1===["INPUT","SELECT","TEXTAREA"].indexOf(t)&&!r.props.overlayOpen&&!r.props.playerNav&&"function"==typeof r.keyboardHandlers[e.keyCode]){r.props.logger.debug("KeyDown -> keyName: "+function(e){for(var t in Ln)if(Ln[t]===e)return t;return"NOT_FOUND"}(e.keyCode)+", shiftKey: "+e.shiftKey.toString());var n=r.keyboardHandlers[e.keyCode](e),i=n.preventDefault,a=n.payload;i&&e.preventDefault(),a&&r.props.notifyClick(bs({key:e.keyCode},a))}},r):_s(r)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.componentWillReceiveProps=function(e){var t=this.props.textTracks.find((function(e){return e.active})),n=e.textTracks.find((function(e){return e.active}));t&&"off"!==t.language&&n&&"off"===n.language?this._lastActiveTextLanguage=t.language:n&&"off"!==n.language&&(this._lastActiveTextLanguage="")},r}(B))||vs)||vs)||vs)||vs);function Cs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Is=["keydown","keyup"],Ps=(ks=$t((function(e){return{playerNav:e.shell.playerNav,overlayOpen:e.overlay.isOpen}})),Ts=jn("KEYBOARD_PROVIDER"),ks(As=Br(As=Ts(As=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return xs(Cs(t=e.call.apply(e,[this].concat(r))||this),"_keyboardListeners",[]),xs(Cs(t),"_isKeyboardEnable",!1),xs(Cs(t),"_componentToHandle",null),xs(Cs(t),"_addKeyboardHandler",(function(e,n,r,i){var a=t._createKeyCode(n,r);t._keyboardListeners[a]?t.props.logger.warn("Combination of key "+r.code+" altKey "+(!!r.altKey).toString()+" ctrlKey "+(!!r.ctrlKey).toString()+"\n      metaKey "+(!!r.metaKey).toString()+" shiftKey "+(!!r.shiftKey).toString()+" already exist"):t._keyboardListeners[a]={callback:i,componentName:e}})),xs(Cs(t),"_removeKeyboardHandler",(function(e,n){var r=t._createKeyCode(e,n);t._keyboardListeners[r]&&delete t._keyboardListeners[r]})),xs(Cs(t),"_updateIsKeyboardEnabled",(function(e){t._isKeyboardEnable=e})),xs(Cs(t),"_setKeyboardEventToScope",(function(e){t._componentToHandle=e})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){var e=this,t=this.props,n=t.eventManager,r=t.playerContainer;this.keyEventHandler=this._keyEventHandler.bind(this),Is.forEach((function(t){n.listen(r,t,e.keyEventHandler)}))},i.shouldComponentUpdate=function(){return!1},i._keyEventHandler=function(e){var t=this._createKeyCode(e.type,{code:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}),n=e.target instanceof Node&&e.target.nodeName||"";-1!==["INPUT","SELECT","TEXTAREA"].indexOf(n)||!this._shouldHandleKeyboardEvents()||!this._keyboardListeners[t]||"function"!=typeof this._keyboardListeners[t].callback||this._componentToHandle&&this._keyboardListeners[t].componentName!==this._componentToHandle||(e.preventDefault(),e.stopPropagation(),this._keyboardListeners[t].callback(e))},i._shouldHandleKeyboardEvents=function(){return this._isKeyboardEnable&&!this.props.playerNav&&!this.props.overlayOpen},i._createKeyCode=function(e,t){var n=Is.indexOf(e),r=t.altKey?1:0,i=t.ctrlKey?1:0,a=t.metaKey?1:0,o=t.shiftKey?1:0;return parseInt(""+n+t.code+r+i+a+o)},i.getChildContext=function(){return{addKeyboardHandler:this._addKeyboardHandler,removeKeyboardHandler:this._removeKeyboardHandler,updateIsKeyboardEnabled:this._updateIsKeyboardEnabled,setKeyboardEventToScope:this._setKeyboardEventToScope}},i.render=function(){return this.props.children&&W(this.props.children)[0]||null},r}(B))||As)||As)||As);function Ds(){return(Ds=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Rs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ls,Ms,Ns,Us,Fs=function(e){return function(t){return function(n){var r,i;function a(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Os(Rs(t=n.call.apply(n,[this].concat(i))||this),"keyboardEventHandlers",[]),Os(Rs(t),"_updateIsKeyboardEnabled",(function(e){t.context.updateIsKeyboardEnabled(e)})),Os(Rs(t),"_setKeyboardEventToScope",(function(n){n?t.context.setKeyboardEventToScope(e):t.context.setKeyboardEventToScope(null)})),t}i=n,(r=a).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var o=a.prototype;return o.componentDidMount=function(){var t=this;this.keyboardEventHandlers.forEach((function(n){var r=n.eventType?n.eventType:Is[0];t._addKeyboardHandler(e,r,n.key,n.action)}))},o.componentWillUnmount=function(){var e=this;this.keyboardEventHandlers.forEach((function(t){var n=t.eventType?t.eventType:Is[0];e._removeKeyboardHandler(n,t.key)}))},o.registerKeyboardEvents=function(e){this.keyboardEventHandlers=e},o._addKeyboardHandler=function(e,t,n,r){this.context.addKeyboardHandler(e,t,n,r)},o._removeKeyboardHandler=function(e,t){this.context.removeKeyboardHandler(e,t)},o.render=function(){var e=this;return N(t,Ds({},this.props,{setKeyboardEventToScope:function(t){return e._setKeyboardEventToScope(t)},updateIsKeyboardEnabled:function(t){return e._updateIsKeyboardEnabled(t)},registerKeyboardEvents:function(t){return e.registerKeyboardEvents(t)}}))},a}(B)}},js="chromecast";function Bs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hs,Ks,Gs,zs,Ws,Ys,qs=(Ls=$t((function(e){return{isCasting:e.engine.isCasting,isCastAvailable:e.engine.isCastAvailable}})),Ms=jn("Cast"),Ns=An({castText:"cast.play_on_tv"}),Ls(Us=Sr(Us=Br(Us=Ms(Us=Ns(Us=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Vs(Bs(t=e.call.apply(e,[this].concat(r))||this),"onClick",(function(){t.props.player.setIsCastInitiator(js,!0),t.props.eventManager.listenOnce(t.props.player,t.props.player.Event.Cast.CAST_SESSION_START_FAILED,(function(){return t.props.player.setIsCastInitiator(js,!1)}))})),Vs(Bs(t),"onKeyDown",(function(e){e.keyCode===Ln.ENTER&&t.props.player.startCasting(js)})),t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){if(e.isCasting||e.isCastAvailable){var t=e.isCasting?pr.a.castButton+" "+pr.a.castButtonActive:pr.a.castButton;return N("div",{role:"button","aria-label":this.props.castText,className:pr.a.controlButtonContainer,onClick:this.onClick,onKeyDown:this.onKeyDown},N(Oo,{label:this.props.castText},N("google-cast-launcher",{className:t,tabIndex:"0"})))}},r}(B))||Us)||Us)||Us)||Us)||Us);function Xs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qs.displayName="Cast";var Qs,Zs,Js,el,tl,nl,rl=(Hs=$t((function(e){return{isInFullscreen:e.engine.fullscreen,targetId:e.config.targetId}})),Ks=jn("Fullscreen"),Gs=Fs("Fullscreen"),zs=fi("Fullscreen"),Ws=An({fullscreenText:"controls.fullscreen",fullscreenExitText:"controls.fullscreenExit"}),Hs(Ys=Sr(Ys=Ks(Ys=Gs(Ys=zs(Ys=Ws(Ys=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return $s(Xs(t=e.call.apply(e,[this].concat(r))||this),"_keyboardEventHandlers",[{key:{code:Ln.F},action:function(e){t.handleKeydown(e)}},{key:{code:Ln.ESC},action:function(e){t.handleKeydown(e)}}]),$s(Xs(t),"toggleFullscreen",(function(){var e=t.props,n=e.targetId,r=e.logger,i=e.player;r.debug("Toggle fullscreen");var a=document.getElementById(n);i.isFullscreen()?i.exitFullscreen():i.enterFullscreen(),a&&a.focus(),t.props.notifyClick()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){this.props.registerKeyboardEvents(this._keyboardEventHandlers)},i.handleKeydown=function(e){switch(e.keyCode){case Ln.F:this.props.player.isFullscreen()||this.toggleFullscreen();break;case Ln.ESC:this.props.player.isFullscreen()&&this.toggleFullscreen()}},i.render=function(){return N(ts,{name:"Fullscreen"},N(Oo,{label:this.props.isInFullscreen?this.props.fullscreenExitText:this.props.fullscreenText},N(Bo,{tabIndex:"0","aria-label":this.props.isInFullscreen?this.props.fullscreenExitText:this.props.fullscreenText,className:this.props.isInFullscreen?[pr.a.controlButton,pr.a.isFullscreen].join(" "):pr.a.controlButton,onClick:this.toggleFullscreen},N(Eo,{type:vo.Maximize}),N(Eo,{type:vo.Minimize}))))},r}(B))||Ys)||Ys)||Ys)||Ys)||Ys)||Ys);function il(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function al(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ol(){return(ol=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}rl.displayName="Fullscreen";var sl,ll=(Qs=$t((function(e){return{isPlayingAdOrPlayback:ko(e.engine),isPlaying:e.engine.isPlaying,adBreak:e.engine.adBreak,isPlaybackEnded:e.engine.isPlaybackEnded}}),ur(ol({},sr,sa,da))),Zs=Fs("PlayPause"),Js=jn("PlayPause"),el=fi("PlayPause"),tl=An({startOverText:"controls.startOver",pauseText:"controls.pause",playText:"controls.play"}),Qs(nl=Sr(nl=Zs(nl=Js(nl=el(nl=tl(nl=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return al(il(t=e.call.apply(e,[this].concat(r))||this),"_keyboardEventHandlers",[{key:{code:Ln.SPACE},action:function(){t.props.isPlayingAdOrPlayback?t.props.updateOverlayActionIcon(vo.Pause):t.props.updateOverlayActionIcon(vo.Play),t.togglePlayPause(),t.props.updatePlayerHoverState(!0)}}]),al(il(t),"togglePlayPause",(function(){t.props.logger.debug("Toggle play"),t.props.isPlayingAdOrPlayback?t.props.player.pause():t.props.player.play(),t.props.notifyClick()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){this.props.registerKeyboardEvents(this._keyboardEventHandlers)},i.render=function(e){var t=this.props.isPlayingAdOrPlayback?[pr.a.controlButton,pr.a.isPlaying].join(" "):pr.a.controlButton,n=e.isPlaybackEnded&&!this.props.adBreak,r=this.props.isPlayingAdOrPlayback?this.props.pauseText:this.props.playText,i=n?this.props.startOverText:r;return N(ts,{name:"PlayPause"},N(Oo,{label:i},N(Bo,{tabIndex:"0","aria-label":i,className:t,onClick:this.togglePlayPause},n?N(Eo,{type:vo.StartOver}):N("div",null,N(Eo,{type:vo.Play}),N(Eo,{type:vo.Pause})))))},r}(B))||nl)||nl)||nl)||nl)||nl)||nl);function ul(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pl(){return(pl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}ll.displayName="PlayPause";var dl,fl,hl,gl,yl,vl,ml=$t((function(e){return{audioTracks:e.engine.audioTracks,textTracks:e.engine.textTracks,videoTracks:e.engine.videoTracks,isMobile:e.shell.isMobile,isSmallSize:e.shell.isSmallSize,isLive:e.engine.isLive,showQualityMenu:e.config.settings.showQualityMenu,showAudioMenu:e.config.settings.showAudioMenu,showCaptionsMenu:e.config.settings.showCaptionsMenu,showSpeedMenu:e.config.settings.showSpeedMenu,showAdvancedAudioDescToggle:e.config.settings.showAdvancedAudioDescToggle}}),ur(pl({},sa,da)))(sl=An({buttonLabel:"controls.settings"})(sl=Sr(sl=Br(sl=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return cl(ul(t=e.call.apply(e,[this].concat(r))||this),"onControlButtonClick",(function(){t.setState((function(e){return{smartContainerOpen:!e.smartContainerOpen}}))})),cl(ul(t),"toggleCVAAOverlay",(function(){t.setState((function(e){return{cvaaOverlay:!e.cvaaOverlay}}))})),cl(ul(t),"onCVAAOverlayClose",(function(){t.toggleCVAAOverlay(),t.onControlButtonClick()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentWillMount=function(){this.setState({smartContainerOpen:!1,cvaaOverlay:!1})},i.componentDidMount=function(){var e=this;this.props.eventManager.listen(document,"click",(function(t){return e.handleClickOutside(t)}))},i.handleClickOutside=function(e){this.state.cvaaOverlay||this.props.isMobile||this.props.isSmallSize||!this._controlSettingsElement||this._controlSettingsElement.contains(e.target)||!this.state.smartContainerOpen||this.setState({smartContainerOpen:!1})},i.getButtonBadgeType=function(){var e,t,n=null==(e=this.props.player.getActiveTracks())||null==(t=e.video)?void 0:t.height;return n?id(n):null},i.render=function(e){var t=this,n=e.showAudioMenu&&e.audioTracks.length>1,r=n&&e.showAdvancedAudioDescToggle,i=e.showCaptionsMenu&&e.textTracks.length>1,a=e.showQualityMenu&&e.videoTracks.length>1,o=e.showSpeedMenu&&e.player.playbackRates.length>1&&!e.isLive;if((n||i||a||o)&&!(e.isLive&&e.videoTracks.length<=1)){var s=this.getButtonBadgeType()||"",l=document.getElementById(this.props.player.config.targetId)||document;return N(ts,{name:"Settings",ref:function(e){return e?t._controlSettingsElement=e:void 0}},N(Oo,{label:e.buttonLabel},N(Bo,{tabIndex:"0","aria-label":e.buttonLabel,className:[pr.a.controlButton,pr.a.buttonBadge,mo[s+"Active"],this.state.smartContainerOpen?pr.a.active:""].join(" "),onClick:this.onControlButtonClick},N(Eo,{type:vo.Settings}))),this.state.smartContainerOpen&&!this.state.cvaaOverlay&&N(fc,{targetId:e.player.config.targetId,title:N(bn,{id:"settings.title"}),onClose:this.onControlButtonClick},r&&N(pd,null),n&&N(Bp,null),i&&N(Xp,{onAdvancedCaptionsClick:this.toggleCVAAOverlay}),a&&N(sd,null),o&&N(nd,null)),this.state.cvaaOverlay?Xe(N(Mu,{onClose:this.onCVAAOverlayClose}),l.querySelector(".overlay-portal")):N("div",null))}},r}(B))||sl)||sl)||sl)||sl;function bl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function El(){return(El=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}ml.displayName="Settings";var kl,Tl,Al,wl,Sl=(dl=$t((function(e){return{isDraggingActive:e.volume.draggingActive,volume:e.engine.volume,muted:e.engine.muted,isMobile:e.shell.isMobile}}),ur(El({},Wi,Tr,da))),fl=Fs("Volume"),hl=jn("Volume"),gl=fi("Volume"),yl=An((function(e){return{tooltipLabel:e.muted?N(bn,{id:"controls.unmute"},"Unmute"):N(bn,{id:"controls.mute"},"Mute"),volBtnAriaLabel:e.muted?N(bn,{id:"volume.muted_click_to_unmute"},"Muted. Click to unmute"):N(bn,{id:"volume.volume_click_to_mute",fields:{vol:(100*e.player.volume).toFixed()}},100*e.player.volume+" volume. Click to mute")}})),dl(vl=Sr(vl=Br(vl=fl(vl=hl(vl=gl(vl=yl(vl=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return _l(bl(t=e.call.apply(e,[this].concat(r))||this),"_keyboardEventHandlers",[{key:{code:Ln.UP},action:function(e){t.handleKeydown(e)}},{key:{code:Ln.DOWN},action:function(e){t.handleKeydown(e)}},{key:{code:Ln.M},action:function(e){t.handleKeydown(e)}}]),_l(bl(t),"onVolumeProgressBarMouseDown",(function(){t.props.updateVolumeDraggingStatus(!0)})),_l(bl(t),"onVolumeProgressBarMouseMove",(function(e){t.props.isDraggingActive&&t.changeVolume(e)})),_l(bl(t),"onMouseOver",(function(){t.props.isMobile||(t.props.updateVolumeHover(!0),t.setState({hover:!0}))})),_l(bl(t),"onMouseOut",(function(){t.props.isMobile||(t.props.updateVolumeHover(!1),t.setState({hover:!1}))})),_l(bl(t),"onKeyDown",(function(e){switch(e.keyCode){case Ln.UP:case Ln.DOWN:case Ln.ENTER:case Ln.SPACE:e.preventDefault(),e.stopPropagation(),t.handleKeydown(e);break;default:t.setState({hover:!1})}})),_l(bl(t),"onFocus",(function(){t.state.hover||t.setState({hover:!0})})),_l(bl(t),"onTouchEnd",(function(e){e.stopImmediatePropagation()})),_l(bl(t),"onVolumeProgressBarMouseUp",(function(e){t.props.isDraggingActive&&(t.props.updateVolumeDraggingStatus(!1),t.changeVolume(e))})),_l(bl(t),"toggleMute",(function(){var e=t.props.player;0===e.volume?(t.props.logger.debug("Toggle mute. Volume is 0, set mute to false & volume to 0.5"),e.muted=!1,e.volume=.5):(t.props.logger.debug("Toggle mute. "+e.muted+" => "+!e.muted),e.muted=!e.muted),t.props.notifyClick()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){var e=this,t=this.props.player;this.props.eventManager.listen(t,t.Event.LOADED_METADATA,(function(){e.props.updateVolume(t.volume),e.props.updateMuted(t.muted)})),this.props.eventManager.listen(t,t.Event.VOLUME_CHANGE,(function(){e.props.updateMuted(t.muted),e.props.updateVolume(t.volume)})),this.props.eventManager.listen(document,"mouseup",this.onVolumeProgressBarMouseUp),this.props.eventManager.listen(document,"mousemove",this.onVolumeProgressBarMouseMove),this.props.eventManager.listen(document,"click",(function(t){return e.handleClickOutside(t)})),this.props.registerKeyboardEvents(this._keyboardEventHandlers)},i.handleClickOutside=function(e){!this.props.isMobile&&this._volumeControlElement&&!this._volumeControlElement.contains(e.target)&&this.state.hover&&this.setState({hover:!1})},i.getVolumeProgressHeight=function(){return this.props.muted?"0%":Math.round(100*this.props.volume)+"%"},i.handleKeydown=function(e){var t,n=this,r=this.props.player,i=function(e){e===r.volume||e>100||e<0||(r.muted=e<5,r.volume=e/100,n.props.notifyChange({volume:r.volume}))};switch(e.keyCode){case Ln.UP:this.props.updateOverlayActionIcon([vo.VolumeBase,vo.VolumeWaves]),i(t=Math.min(Math.round(100*r.volume)+5,100));break;case Ln.DOWN:0===(t=Math.max(Math.round(100*r.volume)-5,0))?this.props.updateOverlayActionIcon([vo.VolumeBase,vo.VolumeMute]):this.props.updateOverlayActionIcon([vo.VolumeBase,vo.VolumeWave]),i(t);break;case Ln.M:r.muted?this.props.updateOverlayActionIcon([vo.VolumeBase,vo.VolumeWaves]):this.props.updateOverlayActionIcon([vo.VolumeBase,vo.VolumeMute]),this.toggleMute();break;case Ln.ENTER:case Ln.SPACE:this.toggleMute()}},i.changeVolume=function(e){var t,n=this.props.player,r=this._volumeProgressBarElement.getBoundingClientRect();t=r.height>r.width?this._getVerticalVolume(r,e):this._getHorizontalVolume(r,e),(t=parseFloat(t.toFixed(2)))<=1&&t>=0&&(this.props.logger.debug("Change volume from "+n.volume+" => "+t),n.volume=t,this.props.muted&&(n.muted=!1),this.props.notifyChange({volume:n.volume}))},i._getHorizontalVolume=function(e,t){var n=e.width,r=e.left,i=t.clientX;return 0!=n?(i-r)/n:0},i._getVerticalVolume=function(e,t){var n=e.height,r=e.top,i=t.clientY;return 0!=n?1-(i-r)/n:0},i.render=function(){var e=this;if(!this.props.player.isImage()){var t=this.props,n=t.player,r=t.isDraggingActive,i=t.muted,a=t.volume,o=t.smartContainerOpen,s=[pr.a.volumeControl];return r&&s.push(pr.a.draggingActive),(i||0===a)&&s.push(pr.a.isMuted),this.state.hover&&!o&&s.push(pr.a.hover),N(ts,{role:"application",name:"Volume",ref:function(t){return t?e._volumeControlElement=t:void 0},className:s,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut},N(Oo,{label:this.props.tooltipLabel,type:this.props.toolTipType?this.props.toolTipType:Ro.Left},N(Bo,{tabIndex:"0","aria-live":"polite","aria-label":this.props.volBtnAriaLabel,className:pr.a.controlButton,onMouseUp:this.toggleMute,onTouchEnd:this.onTouchEnd,onKeyDown:this.onKeyDown,onFocus:this.onFocus},N(Eo,{type:vo.VolumeBase}),N(Eo,{type:vo.VolumeWaves}),N(Eo,{type:vo.VolumeMute}))),N("div",{className:pr.a.volumeControlBar,role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":100*n.volume,"aria-valuetext":100*n.volume+"% volume "+(n.muted?"muted":"")},N("div",{className:pr.a.bar,ref:function(t){return t?e._volumeProgressBarElement=t:void 0},onMouseDown:this.onVolumeProgressBarMouseDown},N("div",{className:pr.a.progress,style:{height:this.getVolumeProgressHeight()}}))))}},r}(B))||vl)||vl)||vl)||vl)||vl)||vl)||vl);function Cl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Il(){return(Il=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Sl.displayName="Volume";var Pl=(kl=$t((function(e){return{isVr:e.engine.isVr,vrStereoMode:e.engine.vrStereoMode,config:e.config.components.vrStereo}}),ur(Il({},sr,Tr))),Tl=jn("VrStereo"),Al=An({vrStereoText:"controls.vrStereo"}),kl(wl=Sr(wl=Tl(wl=Al(wl=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return xl(Cl(t=e.call.apply(e,[this].concat(r))||this),"onClick",(function(){t.props.player.toggleVrStereoMode(),t.props.updateVrStereoMode(!t.props.vrStereoMode)})),xl(Cl(t),"onKeyDown",(function(e){e.keyCode===Ln.ENTER&&t.onClick()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i._shouldRender=function(){var e=this.props.config;return this.props.isVr&&!(0===Object.keys(e).length&&e.constructor===Object)},i.componentWillMount=function(){this.props.updateVrStereoMode(this.props.config.vrStereoMode)},i.render=function(){if(this._shouldRender())return N(ts,{name:"VrStereo"},N(Oo,{label:this.props.vrStereoText},N(Bo,{tabIndex:"0","aria-label":this.props.vrStereoText,className:this.props.vrStereoMode?[pr.a.controlButton,pr.a.vrStereoMode].join(" "):pr.a.controlButton,onClick:this.onClick,onKeyDown:this.onKeyDown},N(Eo,{type:vo.vrStereo}),N(Eo,{type:vo.vrStereoFull}))))},r}(B))||wl)||wl)||wl)||wl);Pl.displayName="VrStereo";var Dl,Rl=$t((function(e){return{textTracks:e.engine.textTracks,showCCButton:e.config.showCCButton}}))(jn("ClosedCaptions")(fi("ClosedCaptions")(An({closedCaptionsOnText:"controls.closedCaptionsOn",closedCaptionsOffText:"controls.closedCaptionsOff"})((function(e,t){var n,r=ye(!1),i=r[0],a=r[1],o=e.textTracks,s=t.player,l=o.find((function(e){return e.active}));if(me((function(){a("off"!==(null==l?void 0:l.language))}),[l]),(null==(n=e.textTracks)?void 0:n.length)&&e.showCCButton)return N(ts,{name:"ClosedCaptions"},i?N(Oo,{label:e.closedCaptionsOnText},N(Bo,{tabIndex:"0","aria-label":e.closedCaptionsOnText,className:[pr.a.controlButton,pr.a.ccOn].join(" "),onClick:function(){e.notifyClick(!0),s.hideTextTrack()}},N(Eo,{type:vo.ClosedCaptionsOn}))):N(Oo,{label:e.closedCaptionsOffText},N(Bo,{tabIndex:"0","aria-label":e.closedCaptionsOffText,className:pr.a.controlButton,onClick:function(){e.notifyClick(!1),s.showTextTrack()}},N(Eo,{type:vo.ClosedCaptionsOff}))))})))));Rl.displayName="ClosedCaptions";var Ol,Ll,Ml,Nl=$t((function(e){return{url:e.engine.adUrl}}))(Dl=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){return N("a",{href:e.url,target:"_blank",rel:"noreferrer",className:[pr.a.btn,pr.a.btnDarkTransparent,pr.a.learnMore].join(" ")},N(bn,{id:"ads.learn_more"}))},r}(B))||Dl;function Ul(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Nl.displayName="AdLearnMore";var jl=(Ol=$t((function(e){return{currentTime:e.engine.adProgress.currentTime,duration:e.engine.adProgress.duration,adSkipTimeOffset:e.engine.adSkipTimeOffset,adSkippableState:e.engine.adSkippableState}})),Ll=jn("AdSkip"),Ol(Ml=Sr(Ml=Ll(Ml=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Fl(Ul(t=e.call.apply(e,[this].concat(r))||this),"skipAd",(function(){t.props.player.ads.skipAd()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getSkipTimeOffset=function(){return Math.ceil(this.props.adSkipTimeOffset-this.props.currentTime)},i.render=function(){return this.props.adSkippableState?this.getSkipTimeOffset()<=0?N(En,null,N("a",{className:[pr.a.btn,pr.a.btnBranded,pr.a.btnSkipAd].join(" "),onClick:this.skipAd},N(bn,{id:"ads.skip_ad"}))):N(En,null,N("span",{className:pr.a.skipAd},N(bn,{id:"ads.skip_in"})," "+this.getSkipTimeOffset())):void 0},r}(B))||Ml)||Ml)||Ml);jl.displayName="AdSkip";var Bl=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){return N("span",{className:pr.a.adNotice},N(bn,{id:"ads.ad_notice"}))},r}(B);Bl.displayName="AdNotice";var Vl,Hl=function(e){var t,n;function r(t){var n;return(n=e.call(this,Dr.Type.PLAYER_RESIZE)||this).payload={playerSize:t},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),Kl=function(e){var t,n;function r(t){var n;return(n=e.call(this,Dr.Type.GUI_RESIZE)||this).payload={guiSize:t},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),Gl=function(e){var t,n;function r(t){var n;return(n=e.call(this,Dr.Type.VIDEO_RESIZE)||this).payload={videoSize:t},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dr),zl="event-dispatcher-middleware/COMPONENT_CLICKED",Wl="event-dispatcher-middleware/COMPONENT_CHANGED";function Yl(e,t,n){var r=e.getState().engine;r.adBreak?r.adIsPlaying?n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_PAUSE)):n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_PLAY)):r.isPlaying?n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_PAUSE)):n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_PLAY))}function ql(e,t,n){e.getState().engine.muted?n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_MUTE)):n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_UNMUTE))}function Xl(e,t,n){n.isFullscreen()?n.dispatchEvent(new Dr(Dr.Type.USER_EXITED_FULL_SCREEN)):n.dispatchEvent(new Dr(Dr.Type.USER_ENTERED_FULL_SCREEN))}var $l,Ql=((Vl={})[Ln.SPACE]=function(e,t,n){Yl(e,0,n)},Vl[Ln.UP]=function(e,t,n){n.dispatchEvent(new $r(t.payload.volume))},Vl[Ln.DOWN]=function(e,t,n){n.dispatchEvent(new $r(t.payload.volume))},Vl[Ln.F]=function(e,t,n){Xl(0,0,n)},Vl[Ln.P]=function(e,t,n){!function(e,t,n){n.isInPictureInPicture()?n.dispatchEvent(new Dr(Dr.Type.USER_EXITED_PICTURE_IN_PICTURE)):n.dispatchEvent(new Dr(Dr.Type.USER_ENTERED_PICTURE_IN_PICTURE))}(0,0,n)},Vl[Ln.ESC]=function(e,t,n){Xl(0,0,n)},Vl[Ln.LEFT]=function(e,t,n){n.dispatchEvent(new zr(t.payload.from,t.payload.to))},Vl[Ln.RIGHT]=function(e,t,n){n.dispatchEvent(new zr(t.payload.from,t.payload.to))},Vl[Ln.HOME]=function(e,t,n){n.dispatchEvent(new zr(t.payload.from,t.payload.to))},Vl[Ln.END]=function(e,t,n){n.dispatchEvent(new zr(t.payload.from,t.payload.to))},Vl[Ln.M]=function(e,t,n){ql(e,0,n)},Vl[Ln.SEMI_COLON]=function(e,t,n){n.dispatchEvent(new Wr(t.payload.speed))},Vl[Ln.PERIOD]=function(e,t,n){n.dispatchEvent(new Wr(t.payload.speed))},Vl[Ln.COMMA]=function(e,t,n){n.dispatchEvent(new Wr(t.payload.speed))},Vl[Ln.C]=function(e,t,n){n.dispatchEvent(new Hr(t.payload.track))},Vl),Zl=function(e){var t,n;function r(t){var n;return void 0===t&&(t={config:{}}),(n=e.call(this)||this).name=t.name,n.config=t.config,n.player=t.player,n.eventManager=new Lr,n.logger=Dn("UI "+n.name),n.logger.debug("Initialized"),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.notifyClick=function(e){this.context.store.dispatch({type:zl,name:this.name,payload:e})},i.notifyChange=function(e){this.context.store.dispatch({type:Wl,name:this.name,payload:e})},i.componentWillUnmount=function(){this.eventManager.removeAll()},r}(B);function Jl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Zl,"defaultProps",{});var tu=$t((function(e){return{isCasting:e.engine.isCasting,isPlaybackEnded:e.engine.isPlaybackEnded,guiClientRect:e.shell.guiClientRect}}),ur(sr))($l=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return eu(Jl(t=e.call.apply(e,[this].concat(r))||this),"_ref",{current:null}),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidUpdate=function(){var e=this._ref.current.scrollHeight>pr.a.bottomBarMaxHeight;this.state.lineBreak!==e&&this.setState({lineBreak:e})},i.render=function(e){var t=e.leftControls,n=e.rightControls,r=[pr.a.bottomBar];return e.isCasting&&e.isPlaybackEnded&&r.push(pr.a.hide),this.state.lineBreak&&r.push(pr.a.lineBreak),N("div",{ref:this._ref,className:r.join(" ")},N("div",{className:pr.a.bottomBarArea},N(qn,{name:"BottomBar"},e.children)),N("div",{className:pr.a.leftControls},N(qn,{name:"BottomBarLeftControls"},t)),N("div",{className:pr.a.rightControls},N(qn,{name:"BottomBarRightControls"},n)))},r}(B))||$l;tu.displayName="BottomBar";var nu,ru=function(e){var t=_e(null);return me((function(){var n;e.isActive&&(null==(n=t)||n.focus())}),[]),N("div",{role:"button",tabIndex:"0",ref:function(n){t=n,e.addAccessibleChild(n)},className:e.classNames.join(" "),onClick:e.changeCaptionsStyle,onKeyDown:function(t){t.keyCode===Ln.ENTER&&e.changeCaptionsStyle()}},e.children,e.isActive?N("div",{className:pr.a.activeTick},N(Eo,{type:vo.Check})):void 0)};function iu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function au(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ou,su=Sr(nu=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return au(iu(t=e.call.apply(e,[this].concat(r))||this),"transitionToState",(function(){t.props.transitionToState(t.props.cvaaOverlayState.CustomCaptions)})),au(iu(t),"onKeyDown",(function(e){e.keyCode===Ln.ENTER&&t.transitionToState()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentWillMount=function(){var e=this.props.player;this.captionsStyleDefault=e.TextStyle.fromJson({backgroundOpacity:e.TextStyle.StandardOpacities.TRANSPARENT}),this.captionsStyleYellow=e.TextStyle.fromJson({backgroundOpacity:e.TextStyle.StandardOpacities.TRANSPARENT,fontColor:e.TextStyle.StandardColors.YELLOW}),this.captionsStyleBlackBG=e.TextStyle.fromJson({backgroundColor:e.TextStyle.StandardColors.BLACK,fontColor:e.TextStyle.StandardColors.WHITE})},i.render=function(e){var t=this;return N("div",{className:[pr.a.overlayScreen,pr.a.active].join(" ")},N("div",{className:pr.a.title},N(bn,{id:"cvaa.title"})),N("div",null,N(ru,{addAccessibleChild:e.addAccessibleChild,classNames:[pr.a.sample],changeCaptionsStyle:function(){return e.changeCaptionsStyle(t.captionsStyleDefault)},isActive:e.player.textStyle.isEqual(this.captionsStyleDefault)},N(bn,{id:"cvaa.sample_caption_tag",fields:{number:"1"}})),N(ru,{addAccessibleChild:e.addAccessibleChild,classNames:[pr.a.sample,pr.a.blackBg],changeCaptionsStyle:function(){return e.changeCaptionsStyle(t.captionsStyleBlackBG)},isActive:e.player.textStyle.isEqual(this.captionsStyleBlackBG)},N(bn,{id:"cvaa.sample_caption_tag",fields:{number:"2"}})),N(ru,{addAccessibleChild:e.addAccessibleChild,classNames:[pr.a.sample,pr.a.yellowText],changeCaptionsStyle:function(){return e.changeCaptionsStyle(t.captionsStyleYellow)},isActive:e.player.textStyle.isEqual(this.captionsStyleYellow)},N(bn,{id:"cvaa.sample_caption_tag",fields:{number:"3"}}))),this.isAdvancedStyleApplied()?N("div",{className:pr.a.customCaptionsApplied},N("div",{className:[pr.a.sample,pr.a.custom].join(" "),style:e.customTextStyle.toCSS()},N(bn,{id:"cvaa.sample_custom_caption_tag"}),N("div",{className:pr.a.activeTick},N(Eo,{type:vo.Check}))),N("a",{role:"button",tabIndex:"0","aria-haspopup":"true",onClick:this.transitionToState,ref:function(t){e.addAccessibleChild(t)},onKeyDown:this.onKeyDown},N(bn,{id:"cvaa.edit_caption"}))):N("a",{role:"button","aria-haspopup":"true",tabIndex:"0",className:pr.a.buttonSaveCvaa,onClick:this.transitionToState,ref:function(t){e.addAccessibleChild(t)},onKeyDown:this.onKeyDown},N(bn,{id:"cvaa.set_custom_caption"})))},i.isAdvancedStyleApplied=function(){var e=this.props.player;return!e.textStyle.isEqual(this.captionsStyleDefault)&&!e.textStyle.isEqual(this.captionsStyleBlackBG)&&!e.textStyle.isEqual(this.captionsStyleYellow)},r}(B))||nu;function lu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pu=$t((function(e){return{isMobile:e.shell.isMobile,isSmallSize:e.shell.isSmallSize,guiClientRect:e.shell.guiClientRect}}))(ou=Br(ou=Va(ou=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return cu(lu(t=e.call.apply(e,[this].concat(r))||this),"handleClickOutside",(function(e){t.props.isMobile||t.props.isSmallSize||!t._menuElement||t._menuElement.contains(e.target)||t.props.onClose()})),cu(lu(t),"onChange",(function(e){t.onSelect(t.props.options[e.target.value])})),t}uu(t,e);var n=t.prototype;return n.componentWillMount=function(){this.setState({position:[pr.a.top,pr.a.left]})},n.componentDidMount=function(){this.props.eventManager.listen(document,"click",this.handleClickOutside),this.props.isMobile||this.props.isSmallSize||this.setState({position:this.getPosition()})},n.getPosition=function(){var e=this._menuElement.getBoundingClientRect(),t=this.props.guiClientRect;return e.top>=t.top?[pr.a.top,pr.a.left]:e.bottom+e.height<t.bottom?[pr.a.bottom,pr.a.left]:(this._menuElement.style.maxHeight=.8*t.height+"px",[pr.a.stickBottom,pr.a.left])},n.isSelected=function(e){return e.active},n.onSelect=function(e){this.props.onMenuChosen(e.value),this.props.options.filter((function(e){return e.active})).forEach((function(e){e.active=!1})),this.props.options.filter((function(t){return t.value===e.value}))[0].active=!0},n.renderNativeSelect=function(e){var t=this,n=this.props.hideSelect?pr.a.mobileHiddenSelect:"";return N("select",{"aria-labelledby":e,role:"listbox",ref:function(e){t.props.pushRef&&t.props.pushRef(e)},className:n+=" "+pr.a.dropdown,onChange:this.onChange},this.props.options.map((function(e,n){return N("option",{role:"option","aria-selected":t.isSelected(e)?"true":"",selected:t.isSelected(e),value:n,key:n},e.label)})))},n.render=function(e){var t=this;return e.clearAccessibleChildren(),e.isMobile||e.isSmallSize?this.renderNativeSelect(e.labelledby):N("div",{role:"menu",onKeyDown:e.handleKeyDown,ref:function(e){return e?t._menuElement=e:void 0},className:[pr.a.dropdownMenu].concat(this.state.position).join(" ")},e.options.map((function(n,r){return N(fu,{setDefaultFocusedElement:e.setDefaultFocusedElement,addAccessibleChild:e.addAccessibleChild,isSelected:t.isSelected,onSelect:function(e){t.onSelect(e)},key:r,data:n})})))},t}(B))||ou)||ou)||ou;pu.displayName="Menu";var du,fu=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return cu(lu(t=e.call.apply(e,[this].concat(r))||this),"onClick",(function(e){e.stopPropagation(),t.props.onSelect(t.props.data)})),cu(lu(t),"onKeyDown",(function(e){switch(e.keyCode){case Ln.ENTER:t.props.onSelect(t.props.data),e.stopPropagation()}})),t}return uu(t,e),t.prototype.render=function(e){var t=this,n=e.data.badgeType&&!e.isSelected(e.data)?mo[e.data.badgeType]:mo[e.data.badgeType+"Active"];return N("div",{role:"menuitemradio",tabIndex:"-1","aria-checked":e.isSelected(e.data)?"true":"false",ref:function(n){t.props.addAccessibleChild(n),e.isSelected(e.data)&&e.setDefaultFocusedElement(n)},className:e.isSelected(e.data)?[pr.a.dropdownMenuItem,pr.a.active].join(" "):pr.a.dropdownMenuItem,onClick:this.onClick,onKeyDown:this.onKeyDown},N("span",{className:n?[pr.a.labelBadge,n].join(" "):""},e.data.label),N("span",{className:[pr.a.menuIconContainer,pr.a.active].join(" ")},N(Eo,{type:vo.CheckActive})))},t}(B);function hu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yu=$t((function(e){return{isMobile:e.shell.isMobile,isSmallSize:e.shell.isSmallSize}}))(du=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return gu(hu(t=e.call.apply(e,[this].concat(r))||this),"onMenuChosen",(function(e){t.props.onMenuChosen(e),t.setState({dropMenuActive:!1})})),gu(hu(t),"onClick",(function(){t.state.dropMenuActive||setTimeout((function(){return t.toggleDropDown()}))})),gu(hu(t),"onKeyDown",(function(e){switch(e.keyCode){case Ln.ENTER:t.onClick();break;case Ln.SPACE:e.preventDefault(),t.onClick();break;case Ln.ESC:t.state.dropMenuActive&&(t.onClose(),e.stopPropagation())}})),gu(hu(t),"onClose",(function(){t.setState({dropMenuActive:!1})})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentWillMount=function(){this.setState({dropMenuActive:!1})},i.componentDidMount=function(){this.props.registerParentSelectedCallback&&this.props.registerParentSelectedCallback(this.toggleDropDown.bind(this))},i.isSelected=function(e){return e.active},i.getActiveOption=function(){return this.props.options.find((function(e){return e.active}))||this.props.options[0]||{label:"Unlabled"}},i.renderNativeSelect=function(e){return N(pu,{labelledby:e,pushRef:this.props.pushRef,options:this.props.options,onMenuChosen:this.onMenuChosen,onClose:this.onClose})},i.render=function(e){var t,n,r=this,i=e.name+"Active",a=this.getActiveOption(),o=(null==a||null==(t=a.dropdownOptions)?void 0:t.label)||a.label,s=mo[a.badgeType||(null==a||null==(n=a.dropdownOptions)?void 0:n.badgeType)];return e.isMobile||e.isSmallSize?this.renderNativeSelect(e.name):N("div",{name:e.name,className:this.state.dropMenuActive?[pr.a.dropdown,pr.a.active].join(" "):pr.a.dropdown,ref:function(e){return e?r._el=e:void 0}},N("div",{tabIndex:e.tabbable?0:-1,ref:function(t){e.pushRef&&e.pushRef(t)},role:"menuitem","aria-haspopup":"true","aria-expanded":this.state.dropMenuActive?"true":"false","aria-labelledby":[e.name,i].join(" "),className:pr.a.dropdownButton,onClick:this.onClick,onKeyDown:this.onKeyDown},N("span",{id:i,className:s?[pr.a.labelBadge,s].join(" "):""},o),N(Eo,{type:vo.ArrowDown}),this.state.dropMenuActive?N(pu,{parentEl:this._el,options:e.options,onMenuChosen:this.onMenuChosen,onClose:this.onClose}):void 0))},i.toggleDropDown=function(){this.setState((function(e){return{dropMenuActive:!e.dropMenuActive}}))},r}(B))||du;yu.displayName="DropDown";var vu=function(e){return N("div",{className:e.classNames.join(" ")},N("label",{id:e.styleName},N(bn,{id:e.labelId})),N(yu,{name:e.styleName,pushRef:function(t){e.addAccessibleChild(t)},tabbable:!0,onMenuChosen:function(t){var n={};n[e.styleName]=t,e.changeCustomStyle(n)},options:e.options}))};function mu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _u=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return bu(mu(t=e.call.apply(e,[this].concat(r))||this),"mouseDownHandler",(function(e){t._sliderElementOffsetLeft=t._sliderElement.getBoundingClientRect().left,t.state.dragging||t.setState((function(n){return{dragging:!0,value:t.mouseEventToValue(e,n)}}),(function(){t.props.onChange(t.mouseEventToValue(e,t.state))}))})),bu(mu(t),"onKeyDown",(function(e){e.keyCode!==Ln.LEFT&&e.keyCode!==Ln.RIGHT||t.onKeyboardDragging(e)})),bu(mu(t),"mouseMoveHandler",(function(e){t.state.dragging&&t.setState((function(n){return{value:t.mouseEventToValue(e,n)}}),(function(){t.props.onChange(t.mouseEventToValue(e,t.state))}))})),bu(mu(t),"mouseUpHandler",(function(e){t.state.dragging&&t.setState((function(n){return{value:t.mouseEventToValue(e,n),dragging:!1}}),(function(){t.props.onChange(t.mouseEventToValue(e,t.state))}))})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentWillMount=function(){this.setState({value:this.props.value||0,min:this.props.min||0,max:this.props.max||100,dragging:!1}),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("mousemove",this.mouseMoveHandler),document.addEventListener("touchend",this.mouseUpHandler),document.addEventListener("touchmove",this.mouseMoveHandler)},i.componentWillUnmount=function(){document.removeEventListener("mouseup",this.mouseUpHandler),document.removeEventListener("mousemove",this.mouseMoveHandler),document.removeEventListener("touchend",this.mouseUpHandler),document.removeEventListener("touchmove",this.mouseMoveHandler)},i.componentDidMount=function(){this.sliderWidth=this._sliderElement.clientWidth,this._sliderElementOffsetLeft=this._sliderElement.getBoundingClientRect().left},i.onKeyboardDragging=function(e){var t=this;e.stopPropagation(),this._sliderElementOffsetLeft=this._sliderElement.getBoundingClientRect().left;var n=this.props.value;switch(e.keyCode){case Ln.RIGHT:(n+=5)>this.state.max&&(n=this.state.max);break;case Ln.LEFT:(n-=5)<this.state.min&&(n=this.state.min)}this.setState({value:n,dragging:!1},(function(){t.props.onChange(n)}))},i.mouseEventToValue=function(e,t){var n=(e.touches&&e.touches.length>0?e.touches[0].clientX:e.changedTouches?e.changedTouches[0].pageX:e.clientX)-this._sliderElement.getBoundingClientRect().left,r=Math.round(n/this._sliderElement.clientWidth*100);return this.getValueByPersentage(r)<t.min?t.min:this.getValueByPersentage(r)>t.max?t.max:this.getValueByPersentage(r)},i.getValueByPersentage=function(e){return this.state.max/100*e},i.getPercentageByValue=function(){return Math.round(this.state.value/this.state.max*100)},i.render=function(e){var t=this;return N("div",{role:"slider","aria-valuemin":this.state.min,"aria-valuenow":this.state.value,"aria-valuemax":this.state.max,"aria-labelledby":e.name,tabIndex:"0",ref:function(n){n&&(t._sliderElement=n,e.pushRef&&e.pushRef(n))},className:pr.a.slider,onMouseDown:this.mouseDownHandler,onTouchStart:this.mouseDownHandler,onKeyDown:this.onKeyDown},N("div",{className:pr.a.progress,style:{width:this.getPercentageByValue()+"%"}},N("div",{className:pr.a.handle,onMouseDown:this.mouseDownHandler,onTouchStart:this.mouseDownHandler})))},r}(B);_u.displayName="Slider";var Eu,ku=function(e){return N("div",{className:e.classNames.join(" ")},N("label",{id:e.styleName},N(bn,{id:e.labelId})),N(_u,{name:e.styleName,pushRef:function(t){e.addAccessibleChild(t)},min:0,max:100,value:100*e.value,onChange:function(t){var n={};n[e.styleName]=t/100,e.changeCustomStyle(n)}}))};function Tu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Au(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wu,Su,Cu,xu,Iu=Sr(Eu=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Au(Tu(t=e.call.apply(e,[this].concat(r))||this),"changeCaptionsStyle",(function(){t.props.changeCaptionsStyle(t.props.customTextStyle)})),Au(Tu(t),"onKeyDown",(function(e){e.keyCode===Ln.ENTER&&t.changeCaptionsStyle()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){this.props.focusOnDefault()},i.render=function(e){var t=this.props.player,n=t.TextStyle.FontFamily,r=t.TextStyle.EdgeStyles,i=t.TextStyle.StandardColors,a=t.TextStyle.FontSizes.map((function(t){return{value:t.label,label:t.label,active:e.customTextStyle.fontSize===t.label}})),o=Object.keys(i).map((function(t){return{value:i[t],label:t.charAt(0).toUpperCase()+t.toLowerCase().slice(1),active:e.customTextStyle.fontColor.every((function(e,n){return e===i[t][n]}))}})),s=Object.keys(n).map((function(t){return{value:n[t],label:n[t],active:e.customTextStyle.fontFamily===n[t]}})),l=Object.keys(r).map((function(t){return{value:r[t],label:t.charAt(0).toUpperCase()+t.toLowerCase().slice(1),active:e.customTextStyle.fontEdge===r[t]}})),u=Object.keys(i).map((function(t){return{value:i[t],label:t.charAt(0).toUpperCase()+t.toLowerCase().slice(1),active:e.customTextStyle.backgroundColor.every((function(e,n){return e===i[t][n]}))}}));return N("div",{className:[pr.a.overlayScreen,pr.a.active].join(" ")},N("form",{className:[pr.a.form,pr.a.customCaptionForm].join(" ")},N(vu,{addAccessibleChild:e.addAccessibleChild,labelId:"cvaa.size_label",options:a,classNames:[pr.a.formGroupRow,pr.a.fontSize],styleName:"fontSize",changeCustomStyle:e.changeCustomStyle}),N(vu,{addAccessibleChild:e.addAccessibleChild,labelId:"cvaa.font_color_label",options:o,classNames:[pr.a.formGroupRow,pr.a.fontColor],styleName:"fontColor",changeCustomStyle:e.changeCustomStyle}),N(vu,{addAccessibleChild:e.addAccessibleChild,labelId:"cvaa.font_family_label",options:s,classNames:[pr.a.formGroupRow,pr.a.fontFamily],styleName:"fontFamily",changeCustomStyle:e.changeCustomStyle}),N(vu,{addAccessibleChild:e.addAccessibleChild,labelId:"cvaa.font_style_label",options:l,classNames:[pr.a.formGroupRow,pr.a.fontStyle],styleName:"fontEdge",changeCustomStyle:e.changeCustomStyle}),N(ku,{addAccessibleChild:e.addAccessibleChild,labelId:"cvaa.font_opacity_label",value:e.customTextStyle.fontOpacity,classNames:[pr.a.formGroupRow,pr.a.fontOpacity],styleName:"fontOpacity",changeCustomStyle:e.changeCustomStyle}),N(vu,{addAccessibleChild:e.addAccessibleChild,labelId:"cvaa.background_color_label",options:u,classNames:[pr.a.formGroupRow,pr.a.backgroundColor],styleName:"backgroundColor",changeCustomStyle:e.changeCustomStyle}),N(ku,{addAccessibleChild:e.addAccessibleChild,labelId:"cvaa.background_opacity_label",value:e.customTextStyle.backgroundOpacity,classNames:[pr.a.formGroupRow,pr.a.backgroundOpacity],styleName:"backgroundOpacity",changeCustomStyle:e.changeCustomStyle}),N("div",{className:pr.a.formGroupRow},N("a",{role:"button",tabIndex:"0",ref:function(t){e.addAccessibleChild(t)},onClick:this.changeCaptionsStyle,onKeyDown:this.onKeyDown,className:[pr.a.btn,pr.a.btnBranded,pr.a.btnBlock].join(" ")},N(bn,{id:"cvaa.apply"}))),N("div",{className:pr.a.previewContainer},N("span",{style:e.getPreviewStyle()},N(bn,{id:"cvaa.caption_preview"})))))},r}(B))||Eu;function Pu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Du(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ru(){return(Ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ou,Lu={Main:"main",CustomCaptions:"custom-captions"},Mu=(wu=$t((function(e){return{style:e.cvaa.style}}),ur(Ru({},na,sr))),Su=jn("CVAAOverlay"),Cu=fi("CVAAOverlay"),wu(xu=Sr(xu=Su(xu=Cu(xu=Va(xu=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Du(Pu(t=e.call.apply(e,[this].concat(r))||this),"transitionToState",(function(e){t.setState({activeWindow:e})})),Du(Pu(t),"changeCaptionsStyle",(function(e){t.props.updateCaptionsStyle(e),t.props.player.textStyle=e,t.props.onClose(),t.props.notifyClick({textStyle:e})})),Du(Pu(t),"getPreviewStyle",(function(){return"font-size: "+100*t.state.customTextStyle.implicitFontScale+"%!important; "+t.state.customTextStyle.toCSS()})),Du(Pu(t),"changeCustomStyle",(function(e){t.setState((function(t){var n=t.customTextStyle.clone();return{customTextStyle:Object.assign(n,e)}}))})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentWillUnmount=function(){this.setState({activeWindow:Lu.Main})},i.componentWillMount=function(){var e=this.props.player;this.setState({activeWindow:Lu.Main,customTextStyle:e.textStyle}),this.props.setIsModal(!0)},i.render=function(e){return e.clearAccessibleChildren(),N(ju,{open:!0,handleKeyDown:this.props.handleKeyDown,addAccessibleChild:this.props.addAccessibleChild,onClose:e.onClose,type:"cvaa"},this.state.activeWindow===Lu.Main?N(su,{cvaaOverlayState:Lu,addAccessibleChild:e.addAccessibleChild,captionsStyleDefault:this.captionsStyleDefault,captionsStyleBlackBG:this.captionsStyleBlackBG,captionsStyleYellow:this.captionsStyleYellow,changeCaptionsStyle:this.changeCaptionsStyle,transitionToState:this.transitionToState,customTextStyle:this.state.customTextStyle}):N(Iu,{addAccessibleChild:e.addAccessibleChild,focusOnDefault:this.props.focusOnDefault,changeCaptionsStyle:this.changeCaptionsStyle,changeCustomStyle:this.changeCustomStyle,getPreviewStyle:this.getPreviewStyle,customTextStyle:this.state.customTextStyle}))},r}(B))||xu)||xu)||xu)||xu)||xu);function Nu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fu(){return(Fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Mu.displayName="CVAAOverlay";var ju=$t((function(e){return{overlayOpen:e.overlay.isOpen}}),ur(Fu({},sr,wa)))(Ou=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Uu(Nu(t=e.call.apply(e,[this].concat(r))||this),"_timeoutId",null),Uu(Nu(t),"onCloseButtonKeyDown",(function(e){e.keyCode!==Ln.ENTER&&e.keyCode!==Ln.SPACE||(e.preventDefault(),t.props.onClose())})),Uu(Nu(t),"onKeyDown",(function(e){t.props.handleKeyDown&&t.props.handleKeyDown(e)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){var e=this;this._timeoutId=setTimeout((function(){return e.props.addPlayerClass(pr.a.overlayActive)}),0)},i.componentWillUnmount=function(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null),this.props.removePlayerClass(pr.a.overlayActive)},i.renderCloseButton=function(e){return e.permanent?void 0:N(En,null,N("a",{role:"button",ref:function(t){e.addAccessibleChild&&e.addAccessibleChild(t)},tabIndex:"0",onClick:function(){e.updateOverlay(!1),e.onClose()},onKeyDown:this.onCloseButtonKeyDown,"aria-label":N(bn,{id:"overlay.close"}),className:pr.a.closeOverlay},N(Eo,{type:vo.Close})))},i.render=function(e){var t=[pr.a.overlay];if(e.type){var n=pr.a[e.type+"-overlay"]?pr.a[e.type+"-overlay"]:e.type+"-overlay";t.push(n)}return e.open&&(this.props.updateOverlay(e.open),t.push(pr.a.active)),N("div",{tabIndex:"-1",className:t.join(" "),role:"dialog",onKeyDown:this.onKeyDown},N("div",{className:pr.a.overlayContents},e.children),this.renderCloseButton(e))},r}(B))||Ou;function Bu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ju.displayName="Overlay";var Hu,Ku,Gu,zu=[{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 4C5.89543 4 5 4.89543 5 6V13C5 14.1046 5.89543 15 7 15H11C12.1046 15 13 14.1046 13 13V6C13 4.89543 12.1046 4 11 4H7ZM7 6H11V13H7V6Z"},{d:"M15 11H16V18H12V17.2H10V18.1C10 19.2458 10.9971 20 12 20H16C17.0029 20 18 19.2458 18 18.1V10.9C18 9.75416 17.0029 9 16 9H15V11Z"}],Wu=function(e){var t,n;function r(t){var n;return Vu(Bu(n=e.call(this,t)||this),"_timeoutId",null),Vu(Bu(n),"copy",(function(){try{n.props.copy(),n.setState({copySuccess:!0}),n._timeoutId=setTimeout((function(){n.setState({copySuccess:!1})}),2e3)}catch(e){n.setState({copySuccess:!1})}})),Vu(Bu(n),"onKeyDown",(function(e){e.keyCode===Ln.ENTER&&n.copy()})),n.setState({copySuccess:!1}),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentWillUnmount=function(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},i.render=function(e){var t=[pr.a.btnCopyUrl,pr.a.btnBorderless,pr.a.onlyIcon].join(" ");return t+=this.state.copySuccess?" "+pr.a.copied:"",N(En,null,N(ts,{name:"CopyButton"},N(Oo,{label:N(bn,{id:"copy.button"})},N(Bo,{tabIndex:"0",ref:function(t){e.addAccessibleChild&&e.addAccessibleChild(t)},className:t,onClick:this.copy,onKeyDown:this.onKeyDown},N(_o,{id:"copy",color:"#fff",path:zu,width:"24",height:"24",viewBox:"0 0 24 24"}),N(_o,{type:vo.Check})))))},r}(B);function Yu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Vu(Wu,"defaultProps",{icon:vo.Copy}),Wu.displayName="CopyButton";var Xu,$u,Qu,Zu,Ju=(Hu=$t((function(e){return{hasError:e.engine.hasError}}),ur(Tr)),Ku=jn("ErrorOverlay"),Hu(Gu=Sr(Gu=Ku(Gu=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return qu(Yu(t=e.call.apply(e,[this].concat(r))||this),"copyError",(function(){var e=window.getSelection(),n=document.createRange();n.selectNode(t.sessionEl),e.removeAllRanges(),e.addRange(n),document.execCommand("copy")})),qu(Yu(t),"handleClick",(function(){var e=t.props.player.getMediaInfo();t.props.player.loadMedia(e)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.renderSessionID=function(){var e=this,t=this.props.player,n=t&&t.config&&t.config.session&&t.config.session.id;return n?N("div",{className:pr.a.linkOptionsContainer},N("div",{className:pr.a.copyUrlRow},N("div",{ref:function(t){return t?e.sessionEl=t:void 0},className:pr.a.errorSession},N(bn,{id:"error.default_session_text"})," "," "+n),N(Wu,{copy:this.copyError}))):void 0},i.renderRetryButton=function(){if(this.props.player.getMediaInfo())return N("div",{className:pr.a.controlButtonContainer,onClick:this.handleClick},N(Bo,{className:[pr.a.controlButton,pr.a.retryBtn].join(" ")},N(bn,{id:"error.retry"})))},i.render=function(){return this.props&&this.props.hasError?N("div",{className:"overlay-portal"},N(ju,{open:!0,permanent:!0,type:"error"},N("div",{className:pr.a.errorOverlay},N("p",{className:pr.a.errorText}),N("div",{className:pr.a.svgContainer},N("svg",{width:"124",height:"110",viewBox:"0 0 124 110",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},N("defs",null,N("polygon",{id:"path-1",points:"58.0906294 70 50.7492774 88.8201923 60.1881585 88.8201923 54.22331 107 73.8876457 84.2307692 64.0554779 84.2307692 70.6102564 70"})),N("g",{id:"Player-v3",fill:"none",fillRule:"evenodd"},N("g",{id:"Desktop---Default---Error",transform:"translate(-365 -103)"},N("g",{id:"Cloud",transform:"translate(366 104)"},N("path",{d:"M63.5662942,30.179068 C61.0506558,29.4162424 58.3339083,29 55.5,29 C42.5213084,29 32,37.7304474 32,48.5 C32,48.6497107 32.0020332,48.7990274 32.0060779,48.947932 L32.0060779,48.947932 C20.975194,51.4855427 13,58.8323573 13,67.5 C13,71.2164926 14.4662425,74.6901504 17.0109182,77.6459815 C17.3714483,67.0552274 26.624181,58.1393462 39.3259742,55.0194402 L39.3259742,55.0194402 C39.3212229,54.8326784 39.3188345,54.6453999 39.3188345,54.4576271 C39.3188345,41.956968 49.9040267,31.6467441 63.5662942,30.179068 Z",id:"Combined-Shape",fillOpacity:".08",fill:"#2E2E2E"}),N("path",{d:"M31.0032591,48.1614253 C31.2192187,36.9518144 42.1402046,28 55.5,28 C64.749856,28 73.0886419,32.3249294 77.2653132,39.0733535 C84.8537029,39.7078593 90.7909537,44.3809769 90.9945979,50.1913309 C102.911627,51.5069936 112,59.4322556 112,69 C112,79.5603607 100.981582,88 87.5,88 C84.4639246,88 81.503099,87.5724513 78.7283559,86.7489741 C74.6488476,88.1943213 69.4726739,89 64,89 C58.7323857,89 53.737093,88.2538247 49.7263698,86.9058736 C46.7827225,87.6274324 43.6763865,88 40.5,88 C24.8190401,88 12,78.9101352 12,67.5 C12,58.659353 19.7679337,51.004786 31.0032591,48.1614253 Z",id:"Combined-Shape",stroke:"#666",strokeWidth:"2"}),N("g",{id:"Path-8",strokeLinecap:"round",strokeLinejoin:"round"},N("use",{fill:"#666",xlinkHref:"#path-1"}),N("path",{stroke:"#1D1D1D",strokeWidth:"2",d:"M65.6170644,83.2307692 L76.0725949,83.2307692 L51.7165365,111.432521 L58.8076053,89.8201923 L49.2858112,89.8201923 L57.4073201,69 L72.1718429,69 L65.6170644,83.2307692 Z"})),N("path",{d:"M59.9991166,0 L59.9991166,7.04768642 C59.9991166,7.59997117 60.4468318,8.04768642 60.9991166,8.04768642 C61.5514013,8.04768642 61.9991166,7.59997117 61.9991166,7.04768642 L61.9991166,0 C61.9991166,-0.55228475 61.5514013,-1 60.9991166,-1 C60.4468318,-1 59.9991166,-0.55228475 59.9991166,0 Z M95.3084192,8.85153517 L90.7782537,14.2503762 C90.4232519,14.6734508 90.4784359,15.3042064 90.9015106,15.6592082 C91.3245852,16.01421 91.9553408,15.9590261 92.3103426,15.5359514 L96.8405081,10.1371104 C97.1955099,9.71403572 97.140326,9.08328013 96.7172513,8.72827833 C96.2941766,8.37327654 95.663421,8.4284605 95.3084192,8.85153517 Z M121.628196,36.6783398 L114.687579,37.9021577 C114.143685,37.9980609 113.780517,38.5167193 113.87642,39.0606136 C113.972323,39.6045079 114.490981,39.9676764 115.034876,39.8717732 L121.975492,38.6479553 C122.519386,38.552052 122.882555,38.0333936 122.786652,37.4894993 C122.690748,36.945605 122.17209,36.5824365 121.628196,36.6783398 Z M0.0227411046,38.6479553 L6.96335733,39.8717732 C7.50725163,39.9676764 8.02591002,39.6045079 8.12181326,39.0606136 C8.2177165,38.5167193 7.85454799,37.9980609 7.31065368,37.9021577 L0.37003746,36.6783398 C-0.173856844,36.5824365 -0.69251523,36.945605 -0.788418471,37.4894993 C-0.884321711,38.0333936 -0.521153199,38.552052 0.0227411046,38.6479553 Z M25.157725,10.1371104 L29.6878905,15.5359514 C30.0428923,15.9590261 30.6736479,16.01421 31.0967226,15.6592082 C31.5197972,15.3042064 31.5749812,14.6734508 31.2199794,14.2503762 L26.6898139,8.85153517 C26.3348121,8.4284605 25.7040565,8.37327654 25.2809818,8.72827833 C24.8579072,9.08328013 24.8027232,9.71403572 25.157725,10.1371104 Z",id:"Path-9",fill:"#666",fillRule:"nonzero"})))))),N("div",{className:pr.a.headline},this.props.errorHead?this.props.errorHead:N(bn,{id:"error.default_error"})),this.renderSessionID(),this.renderRetryButton()))):void 0},r}(B))||Gu)||Gu)||Gu);function ec(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ju.displayName="ErrorOverlay";var nc=(Xu=$t((function(e){return{isLive:e.engine.isLive,isDvr:e.engine.isDvr,currentTime:e.engine.currentTime,duration:e.engine.duration}})),$u=jn("LiveTag"),Qu=fi("LiveTag"),Xu(Zu=Sr(Zu=$u(Zu=Qu(Zu=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return tc(ec(t=e.call.apply(e,[this].concat(r))||this),"onKeyDown",(function(e){e.keyCode===Ln.ENTER&&t.onClick()})),tc(ec(t),"onClick",(function(){t.isOnLiveEdge()||(t.props.player.seekToLiveEdge(),t.props.player.paused&&t.props.player.play()),t.props.notifyClick()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.isOnLiveEdge=function(){return this.props.player.isOnLiveEdge()},i.render=function(e){var t=[pr.a.liveTag];return e.isDvr&&!this.isOnLiveEdge()&&t.push(pr.a.nonLivePlayhead),N("div",{tabIndex:"0",className:t.join(" "),onClick:this.onClick,onKeyDown:this.onKeyDown},N(bn,{id:"controls.live"}))},r}(B))||Zu)||Zu)||Zu)||Zu);nc.displayName="LiveTag";var rc,ic,ac,oc,sc=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.shouldComponentUpdate=function(){return!1},i.render=function(e){return N("div",{className:"overlay-portal","aria-live":"polite"},e.children)},r}(B);function lc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}sc.displayName="OverlayPortal";var uc,cc=(rc=$t((function(e){return{currentTime:e.seekbar.currentTime,virtualTime:e.seekbar.virtualTime,isDraggingActive:e.seekbar.draggingActive,isMobile:e.shell.isMobile,poster:e.engine.poster,isDvr:e.engine.isDvr,dataLoaded:e.engine.dataLoaded}}),ur(Vi)),ic=fi("SeekBarLivePlaybackContainer"),ac=jn("SeekBarLivePlaybackContainer"),rc(oc=Sr(oc=Br(oc=ic(oc=ac(oc=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i,a,o=r.prototype;return o.componentDidMount=function(){var e=this.props,t=e.eventManager,n=e.player,r=e.isDraggingActive,i=e.updateCurrentTime;t.listen(n,n.Event.TIME_UPDATE,(function(){r||i(Math.max(n.normalizedCurrentTime,0))})),t.listen(n,n.Event.LOADED_DATA,(function(){i(Math.max(n.normalizedCurrentTime,0))}))},o.render=function(e){var t=this;if(e.isDvr)return N(Id,{playerElement:this.props.playerContainer,showFramePreview:this.props.showFramePreview,showTimeBubble:this.props.showTimeBubble,changeCurrentTime:function(e){t.props.player.isOnLiveEdge()&&e===t.duration||(t.props.player.normalizedCurrentTime=e)},playerPoster:this.props.poster,updateSeekbarDraggingStatus:function(e){return t.props.updateSeekbarDraggingStatus(e)},updateSeekbarHoverActive:function(e){return t.props.updateSeekbarHoverActive(e)},updateSeekbarClientRect:function(e){return t.props.updateSeekbarClientRect(e)},updateCurrentTime:function(e){return t.props.updateCurrentTime(e)},updateVirtualTime:function(e){return t.props.updateVirtualTime(e)},isDvr:this.props.isDvr,currentTime:this.currentTime,virtualTime:this.props.virtualTime,duration:this.duration,isDraggingActive:this.props.isDraggingActive,isMobile:this.props.isMobile,notifyChange:function(e){return t.props.notifyChange(e)},forceFullProgress:this.props.player.isOnLiveEdge(),dataLoaded:this.props.dataLoaded})},i=r,(a=[{key:"currentTime",get:function(){return Math.min(this.props.currentTime,this.duration)}},{key:"duration",get:function(){return this.props.player.normalizedDuration}}])&&lc(i.prototype,a),r}(B))||oc)||oc)||oc)||oc)||oc);function pc(){return(pc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function dc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}cc.displayName="SeekBarLivePlaybackContainer";var fc=$t((function(e){return{isMobile:e.shell.isMobile,isSmallSize:e.shell.isSmallSize}}),ur(sr))(uc=Va(uc=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i,a,o=r.prototype;return o.componentWillMount=function(){this.props.addPlayerClass(pr.a.smartContainerOpen),this.props.updateSmartContainerOpen(!0)},o.componentWillUnmount=function(){this.props.removePlayerClass(pr.a.smartContainerOpen),this.props.updateSmartContainerOpen(!1)},o.componentDidMount=function(){this.props.setIsModal(this.isPortal)},o.render=function(e){var t=document.getElementById(this.props.targetId)||document;return e.clearAccessibleChildren(),this.isPortal?Xe(N(ju,{open:!0,onClose:e.onClose,handleKeyDown:this.props.handleKeyDown,addAccessibleChild:this.props.addAccessibleChild},N("div",{className:pr.a.title},e.title),this.renderChildren(e)),t.querySelector(".overlay-portal")):N("div",{onKeyDown:e.handleKeyDown,tabIndex:"-1",className:[pr.a.smartContainer,pr.a.top,pr.a.left].join(" ")},this.renderChildren(e))},o.renderChildren=function(e){var t=this;return W(e.children).map((function(n){if(n)return ie(n,pc({pushRef:function(t){e.addAccessibleChild(t)}},t.props))}))},i=r,(a=[{key:"isPortal",get:function(){return this.props.isMobile||this.props.isSmallSize}}])&&dc(i.prototype,a),r}(B))||uc)||uc;fc.displayName="SmartContainer";var hc=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){var t=e.label&&e.label.toLowerCase();return N("div",{className:[pr.a.smartContainerItem,pr.a.selectMenuItem].join(" ")},N("label",{id:t,htmlFor:t},e.icon?N("div",{className:pr.a.labelIcon},N(Eo,{type:e.icon})):void 0,e.label),e.options&&e.options.length?N(yu,{pushRef:function(t){e.pushRef(t)},name:t,onMenuChosen:function(t){return e.onMenuChosen(t)},options:e.options}):N("div",{style:{paddingLeft:"20px"}},N(Op,{pushRef:function(t){e.pushRef(t)},name:t,isChecked:e.isChecked,onMenuChosen:function(t){return e.onMenuChosen(t)}})))},r}(B);hc.displayName="SmartContainerItem";var gc,yc=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getTimeDisplay=function(e,t,n){var r=n||"current / total",i=Ha(e),a=Ha(t),o=Ha(t-e);return(r=(r=r.replace(/current/g,i)).replace(/total/g,a)).replace(/left/g,o)},i.render=function(e){return N("div",{className:pr.a.timeDisplay},N("span",null,this.getTimeDisplay(e.currentTime,e.duration,e.format)))},r}(B);function vc(){return(vc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}yc.displayName="TimeDisplay";var mc,bc=$t((function(e){return{adProgress:e.engine.adProgress}}))(gc=jn("TimeDisplayAdsContainer")(gc=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){return N(yc,vc({currentTime:Math.round(e.adProgress.currentTime),duration:Math.round(e.adProgress.duration)},e))},r}(B))||gc)||gc;function _c(){return(_c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}bc.displayName="TimeDisplayAdsContainer";var Ec,kc=$t((function(e){return{currentTime:e.engine.currentTime,duration:e.engine.duration}}))(mc=jn("TimeDisplayPlaybackContainer")(mc=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){return N(yc,_c({currentTime:e.currentTime,duration:e.duration},e))},r}(B))||mc)||mc;kc.displayName="TimeDisplayPlaybackContainer";var Tc,Ac,wc,Sc=$t((function(e){return{isCasting:e.engine.isCasting,isPlaybackEnded:e.engine.isPlaybackEnded}}))(Ec=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){var t=e.disabled,n=e.isPlaybackEnded,r=e.isCasting,i=e.leftControls,a=e.rightControls,o=[pr.a.topBar];return t&&o.push(pr.a.disabled),r&&n&&o.push(pr.a.hide),N("div",{className:o.join(" ")},N("div",{className:pr.a.topBarArea},N(qn,{name:"TopBar"})),e.children,N("div",{className:pr.a.leftControls},N(qn,{name:"TopBarLeftControls"},i)),N("div",{className:pr.a.rightControls},N(qn,{name:"TopBarRightControls"},a)))},r}(B))||Ec;function Cc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Sc.displayName="TopBar";var Ic,Pc,Dc,Rc=(Tc=$t((function(e){return{fallbackToMutedAutoPlay:e.engine.fallbackToMutedAutoPlay}}),null),Ac=jn("UnmuteIndication"),Tc(wc=Sr(wc=Br(wc=Ac(wc=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return xc(Cc(t=e.call.apply(e,[this].concat(r))||this),"_iconTimeout",null),xc(Cc(t),"onKeyDown",(function(e){e.keyCode===Ln.ENTER&&(t.props.player.muted=!t.props.player.muted)})),xc(Cc(t),"onMouseOver",(function(){return t.setState({iconOnly:!1})})),xc(Cc(t),"onMouseOut",(function(){return t.setState({iconOnly:!0})})),xc(Cc(t),"onMouseUp",(function(){return t.props.player.muted=!t.props.player.muted})),xc(Cc(t),"onTouchEnd",(function(e){return e.stopImmediatePropagation()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidUpdate=function(e){var t=this;!e.fallbackToMutedAutoPlay&&this.props.fallbackToMutedAutoPlay&&(this.props.eventManager.listenOnce(this.props.player,this.props.player.Event.PLAYING,(function(){return t._iconOnlyTimeout()})),this.props.eventManager.listenOnce(this.props.player,this.props.player.Event.AD_STARTED,(function(){return t._iconOnlyTimeout()})))},i.componentWillUnmount=function(){this._iconTimeout&&(clearTimeout(this._iconTimeout),this._iconTimeout=null)},i._iconOnlyTimeout=function(){var e=this;this._iconTimeout=setTimeout((function(){e.setState({iconOnly:!0})}),3e3)},i.render=function(e){if(this.props.fallbackToMutedAutoPlay){var t=[pr.a.unmuteButtonContainer];return e.hasTopBar&&t.push(pr.a.hasTopBar),this.state.iconOnly&&t.push(pr.a.showIconOnly),N(En,null,N("div",{tabIndex:"0","aria-label":N(bn,{id:"controls.unmute"}),className:t.join(" "),onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd,onKeyDown:this.onKeyDown},N("a",{className:[pr.a.btn,pr.a.btnDarkTransparent,pr.a.unmuteButton].join(" ")},N("div",{className:pr.a.unmuteIconContainer},N(Eo,{type:vo.VolumeBase}),N(Eo,{type:vo.VolumeMute})),N("span",null,N(bn,{id:"unmute.unmute"})))))}},r}(B))||wc)||wc)||wc)||wc);Rc.displayName="UnmuteIndication";var Oc,Lc,Mc,Nc=(Ic=$t((function(e){return{config:Object.assign({placement:"top-left",timeout:0},e.config.components.watermark)}})),Pc=jn("Watermark"),Ic(Dc=Sr(Dc=Br(Dc=Pc(Dc=function(e){var t,n;function r(){var t;return function(e,t,n){t in e?Object.defineProperty(e,t,{value:null,enumerable:!0,configurable:!0,writable:!0}):e[t]=null}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call(this)||this),"_timeoutId"),t.setState({show:!0}),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){var e=this,t=function(){e.props.config.timeout>0&&(e._timeoutId=setTimeout((function(){return e.setState({show:!1})}),e.props.config.timeout))},n=this.props.player;this.props.eventManager.listenOnce(n,n.Event.PLAYING,t),this.props.eventManager.listen(n,n.Event.CHANGE_SOURCE_ENDED,(function(){e.setState({show:!0}),e.props.eventManager.listenOnce(n,n.Event.PLAYING,t)}))},i.componentWillUnmount=function(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},i.render=function(e){if(e.config.img){var t=[pr.a.watermark];return e.config.placement.split("-").forEach((function(e){t.push(pr.a[e])})),e.config.url||t.push(pr.a.emptyUrl),this.state.show||t.push(pr.a.hideWatermark),N("div",{className:t.join(" ")},N("a",{href:e.config.url,target:"_blank",rel:"noopener noreferrer"},N("img",{src:e.config.img})))}},r}(B))||Dc)||Dc)||Dc)||Dc);Nc.displayName="Watermark";var Uc,Fc,jc,Bc=(Oc=$t((function(e){return{isMobile:e.shell.isMobile,playerSize:e.shell.playerSize,config:e.config.components.logo}})),Lc=jn("Logo"),Oc(Mc=Sr(Mc=Lc(Mc=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i._shouldRender=function(){return!(0===Object.keys(this.props.config).length&&this.props.config.constructor===Object)},i.render=function(e){if(this._shouldRender()){var t=[Ei.TINY,Ei.EXTRA_SMALL,Ei.SMALL].includes(this.props.playerSize);return e.config.img&&!t?N("div",{className:[pr.a.controlButtonContainer,e.config.url?"":pr.a.emptyUrl].join(" "),"aria-label":N(bn,{id:"controls.logo"}),title:e.config.text},N("a",{className:pr.a.controlButton,href:e.config.url,target:"_blank",rel:"noopener noreferrer"},N("img",{className:pr.a.icon,src:e.config.img}))):void 0}},r}(B))||Mc)||Mc)||Mc);Bc.displayName="Logo";var Vc,Hc,Kc,Gc,zc,Wc=$t((function(e){return{poster:e.engine.poster,castSession:e.engine.castSession,isIdle:e.engine.isIdle,isPlaying:e.engine.isPlaying,isPlaybackEnded:e.engine.isPlaybackEnded,isPaused:e.engine.isPaused,isChangingSource:e.engine.isChangingSource}}))(Uc=jn("CastOverlay")((jc=Fc=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getStatus=function(){return this.props.isPlaying||this.props.isPaused?N(bn,{id:"cast.status.playing_on"}):this.props.isPlaybackEnded||this.props.isChangingSource||this.props.castSession.resuming?N(bn,{id:"cast.status.connected_to"}):N(bn,{id:"cast.status.connecting_to"})},i.getIcon=function(){return this.props.isPlaying||this.props.isPaused||this.props.isPlaybackEnded||this.props.isChangingSource||this.props.castSession.resuming?N(_o,{type:this.props.icon}):N("div",{className:pr.a.castConnectingSpinner})},i.render=function(e){if(e.castSession){var t={},n=[pr.a.castPoster];e.poster&&(t={backgroundImage:e.isChangingSource?"":"url("+e.poster+")",backgroundSize:"contain"},n.push(pr.a.hasPoster));var r=this.getStatus(),i=this.getIcon();return N("div",null,N("div",{className:pr.a.castOverlay},N("div",{className:n.join(" "),style:t,onMouseOver:function(e){return e.stopPropagation()}}),N("div",{className:pr.a.castBlackCover})),N("div",{className:pr.a.castBox},N("div",{className:pr.a.castIcon},i),N("div",{className:pr.a.castText},N(En,null,N("span",{className:pr.a.castStatus},r)),N("br",null),N("span",{className:pr.a.castDevice},e.castSession.deviceFriendlyName))))}},r}(B),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Fc,"defaultProps",{icon:vo.Cast}),Uc=jc))||Uc)||Uc;function Yc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Wc.displayName="CastOverlay";var Xc,$c,Qc,Zc,Jc,ep=(Vc=$t((function(e){return{isPlaybackEnded:e.engine.isPlaybackEnded,prePlayback:e.engine.prePlayback,loading:e.loading.show,isCastAvailable:e.engine.isCastAvailable}})),Hc=jn("CastBeforePlay"),Vc(Kc=Sr(Kc=Hc((zc=Gc=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return qc(Yc(t=e.call.apply(e,[this].concat(r))||this),"_timeoutId",null),qc(Yc(t),"onClick",(function(){t.props.player.startCasting(js)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){var e=this;this._timeoutId=setTimeout((function(){e.setState({show:!0})}),700)},i.componentWillUnmount=function(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},i.render=function(e){if(e.isCastAvailable&&!e.loading&&e.prePlayback){var t=[pr.a.castOnTvButtonContainer];return this.state.show&&t.push(pr.a.showCastOnTv),N("div",{className:t.join(" ")},N(En,null,N(Bo,{tabIndex:"0","aria-label":N(bn,{id:"cast.play_on_tv"}),onClick:this.onClick,className:[pr.a.btn,pr.a.btnDarkTransparent,pr.a.castOnTvButton].join(" ")},N("div",{className:pr.a.castOnTvIconContainer},N(_o,{type:e.icon})),N("span",null,N(bn,{id:"cast.play_on_tv"})))))}},r}(B),qc(Gc,"defaultProps",{icon:vo.Cast}),Kc=zc))||Kc)||Kc)||Kc);function tp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function np(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ep.displayName="CastBeforePlay";var rp,ip=(Xc=$t((function(e){return{isPlaybackEnded:e.engine.isPlaybackEnded,isCasting:e.engine.isCasting}}),null),$c=jn("CastAfterPlay"),Xc(Qc=Sr(Qc=$c((Jc=Zc=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return np(tp(t=e.call.apply(e,[this].concat(r))||this),"_timeoutId",null),np(tp(t),"onClick",(function(e){e.stopPropagation(),t.props.player.stopCasting()})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){var e=this;this._timeoutId=setTimeout((function(){e.setState({show:!0})}),700)},i.componentWillUnmount=function(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},i.render=function(e){if(e.isCasting&&e.isPlaybackEnded){var t=[pr.a.castOnTvButtonContainer];return this.state.show&&t.push(pr.a.showCastOnTv),N("div",null,N("div",{className:t.join(" "),onClick:this.onClick},N("a",{className:[pr.a.btn,pr.a.btnDarkTransparent,pr.a.castOnTvButton].join(" ")},N("div",{className:pr.a.castOnTvIconContainer},N(_o,{type:e.icon})),N(En,null,N("span",null,N(bn,{id:"cast.disconnect_from_tv"}))))))}},r}(B),np(Zc,"defaultProps",{icon:vo.CastBrand}),Qc=Jc))||Qc)||Qc)||Qc);ip.displayName="CastAfterPlay";var ap,op=An({prevControlsText:"controls.prev",nextControlsText:"controls.next",playlistPrevText:"playlist.prev",playlistUpNextText:"playlist.up_next"})(rp=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){var t,n,r=e.type,i=e.item,a=e.onClick,o="next"===r?vo.Next:vo.Prev,s=e[e.type+"ControlsText"],l="prev"===r?this.props.playlistPrevText:this.props.playlistUpNextText,u=null==i||null==(t=i.sources)?void 0:t.poster,c=(null==i||null==(n=i.sources)?void 0:n.metadata)?i.sources.metadata.name:"",p=N(Bo,{disabled:!i,tabIndex:"0","aria-label":s,className:""+pr.a.controlButton,onClick:a},N("div",null,N(Eo,{type:o})));return N("div",{className:[pr.a.controlButtonContainer,pr.a.controlPlaylistButton].join(" ")},e.showPreview&&(u||c)?N(j,null,N("div",{className:pr.a.posterPreview},u?N("div",{className:pr.a.posterPreviewImg,style:"background-image: url("+u+");"}):void 0,N("div",{className:pr.a.posterPreviewText},N("div",{className:pr.a.posterPreviewTextTitle},l),N("div",{className:pr.a.posterPreviewTextName},""+(c||"")))),p):N(Oo,{label:s},p))},r}(B))||rp;function sp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var up,cp,pp,dp=$t((function(e){return{playlist:e.engine.playlist}}))(ap=Sr(ap=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return lp(sp(t=e.call.apply(e,[this].concat(r))||this),"onClick",(function(){"prev"===t.props.type?t.props.player.playlist.playPrev():t.props.player.playlist.playNext()})),t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){var t=e.playlist[e.type];return N(op,{type:e.type,item:t,onClick:this.onClick.bind(this),showPreview:e.showPreview})},r}(B))||ap)||ap;function fp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}dp.displayName="PlaylistButton";var gp,yp,vp,mp,bp,_p,Ep=(up=$t((function(e){return{playlist:e.engine.playlist,isPlaybackEnded:e.engine.isPlaybackEnded}})),cp=jn("PlaylistNextScreen"),up(pp=Sr(pp=cp(pp=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return hp(fp(t=e.call.apply(e,[this].concat(r))||this),"onPosterClick",(function(){t.props.player.playlist.playNext()})),hp(fp(t),"onKeyDown",(function(e){e.keyCode!==Ln.ENTER&&e.keyCode!==Ln.SPACE||(e.preventDefault(),t.onPosterClick())})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidUpdate=function(e){!this._shouldRender(e)&&this._shouldRender(this.props)&&this.focusElement&&this.focusElement.focus()},i._shouldRender=function(e){return!(!(e.playlist&&e.playlist.next&&e.playlist.next.sources&&e.isPlaybackEnded)||e.player.playlist.options.autoContinue)},i._getPosterUrl=function(){var e=this.props.playlist.next;return e.sources.poster?e.sources.poster.indexOf("entry_id/"+e.sources.id)>-1&&-1===e.sources.poster.indexOf("/width/")?e.sources.poster+"/width/384":e.sources.poster:""},i.render=function(e){var t=this;if(this._shouldRender(e)){var n=e.playlist.next;return N("div",{className:pr.a.playlistNextScreenOverlay},N("div",{className:pr.a.playlistNextScreenContent},N("div",{id:"playlistNextScreenTextId",className:pr.a.playlistNextScreenText},N(En,null,N("div",{className:pr.a.playlistNextScreenTextTitle},N(bn,{id:"playlist.next"}))),N("div",{className:pr.a.playlistNextScreenTextName},""+(n.sources.metadata?n.sources.metadata.name:""))),N("div",{className:pr.a.playlistNextScreenPosterPlaceholder},N("div",{className:pr.a.playlistNextScreenPosterAspectRatio},N("div",{role:"button","aria-labelledby":"playlistNextScreenTextId",ref:function(e){return e?t.focusElement=e:void 0},tabIndex:"0",className:pr.a.playlistNextScreenPoster,onClick:this.onPosterClick,onKeyDown:this.onKeyDown},N("div",{className:pr.a.playlistNextScreenPosterImg,style:"background-image: url("+this._getPosterUrl()+");"}),N(Eo,{type:vo.Play}))))))}},r}(B))||pp)||pp)||pp);function kp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ep.displayName="PlaylistNextScreen";var Ap,wp=(gp=$t((function(e){return{isPictureInPictureSupported:e.engine.isPictureInPictureSupported,isInPictureInPicture:e.engine.isInPictureInPicture,playerSize:e.shell.playerSize}}),ur(sr)),yp=Fs("PictureInPicture"),vp=jn("PictureInPicture"),mp=fi("PictureInPicture"),bp=An({pictureInPictureText:"controls.pictureInPicture",pictureInPictureExitText:"controls.pictureInPictureExit",pictureInPictureExpandText:"controls.pictureInPictureExpand"}),gp(_p=Sr(_p=yp(_p=vp(_p=mp(_p=bp(_p=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Tp(kp(t=e.call.apply(e,[this].concat(r))||this),"_keyboardEventHandlers",[{key:{code:Ln.P},action:function(){t.togglePip(),t.props.updatePlayerHoverState(!0)}}]),Tp(kp(t),"togglePip",(function(){var e=t.props.player;e.isInPictureInPicture()?(t.props.logger.debug("Exit Picture In Picture"),t.props.notifyClick(),e.exitPictureInPicture()):(t.props.logger.debug("Enter Picture In Picture"),t.props.notifyClick(),e.enterPictureInPicture())})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){this.props.registerKeyboardEvents(this._keyboardEventHandlers)},i.render=function(){if(this.props.isPictureInPictureSupported&&this.props.playerSize!==Ei.EXTRA_SMALL)return N(ts,{name:"PictureInPicture"},N(Oo,{label:this.props.isInPictureInPicture?this.props.pictureInPictureExpandText:this.props.pictureInPictureText},N(Bo,{tabIndex:"0","aria-label":this.props.isInPictureInPicture?this.props.pictureInPictureExitText:this.props.pictureInPictureText,className:this.props.isInPictureInPicture?[pr.a.controlButton,pr.a.isInPictureInPicture].join(" "):pr.a.controlButton,onClick:this.togglePip},N(Eo,{type:vo.PictureInPictureStart}),N(Eo,{type:vo.PictureInPictureStop}))))},r}(B))||_p)||_p)||_p)||_p)||_p)||_p);wp.displayName="PictureInPicture";var Sp=$t((function(e){return{playlist:e.engine.playlist}}))(Ap=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){this.setState({shouldUpdate:!1})},i.componentDidUpdate=function(e){!!e.playlist!=!!this.props.playlist&&this.setState({shouldUpdate:!0})},i.render=function(e){var t=e.name,n=e.className,r=this.state.shouldUpdate;return r&&this.setState({shouldUpdate:!1}),N("div",{className:[pr.a.playbackControls,n].join(" ")},N(qn,{name:t,shouldUpdate:r},e.playlist?N(j,null,N(dp,{type:"prev",showPreview:e.showPreview}),N(ll,null),N(dp,{type:"next",showPreview:e.showPreview})):N(ll,null)))},r}(B))||Ap;function Cp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Sp.displayName="PlaybackControls";var Ip,Pp,Dp,Rp,Op=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return xp(Cp(t=e.call.apply(e,[this].concat(r))||this),"onChange",(function(e){t.props.onMenuChosen(e)})),xp(Cp(t),"handleOnKeyDown",(function(e){e.keyCode!==Ln.ENTER&&e.keyCode!==Ln.SPACE||(e.preventDefault(),t.onChange(!t.props.isChecked))})),t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){var t=this;return N("label",{onKeyDown:function(e){return t.handleOnKeyDown(e)},className:pr.a.switch,ref:function(t){e.pushRef&&e.pushRef(t)},"aria-label":e.name,role:"switch","aria-checked":e.isChecked,tabIndex:"-1"},N("input",{name:e.name,className:pr.a.toggleInput,type:"checkbox",checked:e.isChecked,onChange:function(e){return t.onChange(e.target.checked)}}),N("span",{className:pr.a.slider}))},r}(B);Op.displayName="ToggleSwitch";var Lp,Mp,Np,Up,Fp,jp,Bp=(Ip=$t((function(e){return{audioTracks:e.engine.audioTracks}}),ur(sa)),Pp=fi("AudioMenu"),Dp=An({audioLabelText:"settings.audio"}),Ip(Rp=Sr(Rp=Pp(Rp=Dp(Rp=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.onAudioChange=function(e){this.props.updateAudio(e),this.props.player.selectTrack(e),this.props.notifyClick({type:this.props.player.Track.AUDIO,track:e})},i.render=function(e){var t=this,n=e.audioTracks.filter((function(e){return e.label||e.language})).map((function(e){return{label:e.label||e.language,active:e.active,value:e}}));return N(hc,{pushRef:function(t){e.pushRef(t)},icon:vo.Audio,label:this.props.audioLabelText,options:n,onMenuChosen:function(e){return t.onAudioChange(e)}})},r}(B))||Rp)||Rp)||Rp)||Rp);function Vp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Bp.displayName="AudioMenu";var Kp,Gp,zp,Wp,Yp,qp,Xp=(Lp=$t((function(e){return{textTracks:e.engine.textTracks,isMobile:e.shell.isMobile,isSmallSize:e.shell.isSmallSize,showAdvancedCaptionsMenu:e.config.settings.showAdvancedCaptionsMenu}}),ur(na)),Mp=Fs("CaptionsMenu"),Np=jn("CaptionsMenu"),Up=fi("CaptionsMenu"),Fp=An({captionsLabelText:"captions.captions",advancedCaptionsSettingsText:"captions.advanced_captions_settings"}),Lp(jp=Sr(jp=Br(jp=Mp(jp=Np(jp=Up(jp=Fp(jp=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Hp(Vp(t=e.call.apply(e,[this].concat(r))||this),"_lastActiveTextLanguage",""),Hp(Vp(t),"_keyboardEventHandlers",[{key:{code:Ln.C},action:function(){var e=t.props,n=e.player,r=e.logger,i=n.getActiveTracks().text;if(i)if("off"===i.language&&t._lastActiveTextLanguage){r.debug("Changing text track to language",t._lastActiveTextLanguage);var a=n.getTracks("text").find((function(e){return e.language===t._lastActiveTextLanguage}));n.selectTrack(a)}else"off"===i.language||t._lastActiveTextLanguage||(r.debug("Hiding text track"),t._lastActiveTextLanguage=i.language,n.hideTextTrack())}}]),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentWillReceiveProps=function(e){var t=this.props.textTracks.find((function(e){return e.active})),n=e.textTracks.find((function(e){return e.active}));t&&"off"!==t.language&&n&&"off"===n.language?this._lastActiveTextLanguage=t.language:n&&"off"!==n.language&&(this._lastActiveTextLanguage="")},i.onCaptionsChange=function(e){e!==this.props.advancedCaptionsSettingsText?(this.props.player.selectTrack(e),this.props.notifyClick({type:this.props.player.Track.TEXT,track:e})):this.props.onAdvancedCaptionsClick()},i.render=function(e){var t=this,n=e.textTracks.map((function(e){return{label:e.label||e.language,active:e.active,value:e}}));return e.showAdvancedCaptionsMenu&&n.push({label:e.advancedCaptionsSettingsText,value:e.advancedCaptionsSettingsText,active:!1}),N(hc,{pushRef:function(t){e.pushRef(t)},icon:vo.Captions,label:this.props.captionsLabelText,options:n,onMenuChosen:function(e){return t.onCaptionsChange(e)}})},r}(B))||jp)||jp)||jp)||jp)||jp)||jp)||jp);function $p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xp.displayName="CaptionsMenu";var Zp,Jp,ed,td,nd=(Kp=$t(null,ur(sa)),Gp=Fs("SpeedMenu"),zp=jn("SpeedMenu"),Wp=fi("SpeedMenu"),Yp=An({speedLabelText:"settings.speed",speedNormalLabelText:"settings.speedNormal"}),Kp(qp=Sr(qp=Gp(qp=zp(qp=Wp(qp=Yp(qp=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Qp($p(t=e.call.apply(e,[this].concat(r))||this),"_keyboardEventHandlers",[{key:{code:Ln.PERIOD,shiftKey:!0},action:function(e){t.handleKeydown(e)}},{key:{code:Ln.SEMI_COLON,shiftKey:!0},action:function(e){t.handleKeydown(e)}},{key:{code:Ln.COMMA,shiftKey:!0},action:function(e){t.handleKeydown(e)}}]),Qp($p(t),"onSpeedChange",(function(e){t.props.updateSpeed(e),t.props.player.playbackRate=e,t.props.notifyClick({type:"speed",speed:e})})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){this.props.registerKeyboardEvents(this._keyboardEventHandlers)},i.handleKeydown=function(e){var t,n,r=this.props,i=r.player,a=r.logger;switch(e.keyCode){case Ln.PERIOD:t=i.playbackRate,(n=i.playbackRates.indexOf(t))<i.playbackRates.length-1&&(a.debug("Changing playback rate. "+t+" => "+i.playbackRates[n+1]),i.playbackRate=i.playbackRates[n+1],this.props.updateOverlayActionIcon(vo.SpeedUp),i.dispatchEvent(new Wr(i.playbackRate)));break;case Ln.SEMI_COLON:i.playbackRate!==i.defaultPlaybackRate&&(a.debug("Changing playback rate. "+i.playbackRate+" => "+i.defaultPlaybackRate),i.playbackRate=i.defaultPlaybackRate,this.props.updateOverlayActionIcon(vo.Speed),i.dispatchEvent(new Wr(i.playbackRate)));break;case Ln.COMMA:t=i.playbackRate,(n=i.playbackRates.indexOf(t))>0&&(a.debug("Changing playback rate. "+t+" => "+i.playbackRates[n-1]),i.playbackRate=i.playbackRates[n-1],this.props.updateOverlayActionIcon(vo.SpeedDown),i.dispatchEvent(new Wr(i.playbackRate)))}},i.render=function(e){var t=e.player.playbackRates.reduce((function(t,n){var r={value:n,label:1===n?e.speedNormalLabelText:n,active:!1};return n===e.player.playbackRate&&(r.active=!0),t.push(r),t}),[]);return N(hc,{pushRef:function(t){e.pushRef(t)},icon:vo.Speed,label:e.speedLabelText,options:t,onMenuChosen:this.onSpeedChange})},r}(B))||qp)||qp)||qp)||qp)||qp)||qp);nd.displayName="SpeedMenu";var rd={HD:1080,UHD_4K:2160,UHD_8K:4320};function id(e){var t=Object.keys(mo),n=t[0],r=t[2],i=t[4];return e>=rd.HD&&e<rd.UHD_4K?n:e>=rd.UHD_4K&&e<rd.UHD_8K?r:e>=rd.UHD_8K?i:null}var ad,od=["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"],sd=(Zp=$t((function(e){return{videoTracks:e.engine.videoTracks}}),ur(sa)),Jp=fi("QualityMenu"),ed=An({qualityLabelText:"settings.quality",qualityAutoLabelText:"settings.qualityAuto"}),Zp(td=Sr(td=Jp(td=ed(td=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.onQualityChange=function(e){this.props.updateQuality(e);var t=this.props.player;"auto"===e?t.enableAdaptiveBitrate():t.selectTrack(e),this.props.notifyClick({type:t.Track.VIDEO,track:e})},i.filterUniqueQualities=function(e,t){var n=e.length-1,r=e[n];return n>-1&&t.label===r.label?(t.bandwidth>r.bandwidth&&(e[n]=t),e[n].active=t.active||r.active):e.push(t),e},i.render=function(e){var t=this,n=e.videoTracks.sort((function(e,t){return e.height<t.height?1:-1})).filter((function(e){return e.bandwidth||e.height})).reduce(this.filterUniqueQualities,[]).map((function(t){return{label:t.label,active:!e.player.isAdaptiveBitrateEnabled()&&t.active,value:t,badgeType:id(t.height)}}));if(n.length>1&&"progressive"!==e.player.streamType){var r,i=n.find((function(e){return!0===e.value.active})).value;r=od.includes(this.props.player._localPlayer._config.ui.locale)?i.label+" - "+this.props.qualityAutoLabelText:this.props.qualityAutoLabelText+" - "+i.label,n.unshift({label:this.props.qualityAutoLabelText,dropdownOptions:{label:r,badgeType:id(i.height)},active:e.player.isAdaptiveBitrateEnabled(),value:"auto"})}return N(hc,{pushRef:function(t){e.pushRef(t)},icon:vo.Quality,label:e.qualityLabelText,options:n,onMenuChosen:function(e){return t.onQualityChange(e)}})},r}(B))||td)||td)||td)||td);function ld(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ud(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}sd.displayName="QualityMenu";var cd,pd=$t((function(e){return{isAdvancedAudioDescChecked:e.settings.advancedAudioDesc}}),ur(sa))(ad=fi("AdvancedAudioDescToggle")(ad=An({advancedAudioText:"settings.advancedAudioDescription"})(ad=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return ud(ld(t=e.call.apply(e,[this].concat(r))||this),"onAdvancedAudioClick",(function(e){t.props.updateAdvancedAudioDesc(e),t.props.notifyClick({type:"AdvancedAudioDescription",checked:e})})),t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(e){return N(hc,{pushRef:function(t){e.pushRef(t)},icon:vo.AdvancedAudioDescription,label:e.advancedAudioText,isChecked:e.isAdvancedAudioDescChecked,onMenuChosen:this.onAdvancedAudioClick})},r}(B))||ad)||ad)||ad;pd.displayName="AdvancedAudioDescToggle";var dd,fd,hd,gd,yd,vd,md,bd=$t((function(e){return{videoStyles:e.shell.layoutStyles.video}}))(cd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.shouldComponentUpdate=function(e){return e.videoStyles!==this.props.videoStyles},i.render=function(){var e=this.props,t=e.videoStyles,n=e.children;return N("div",{style:t,className:pr.a.videoArea},N("div",{style:{pointerEvents:"auto"}},N(qn,{name:"VideoArea"},n)))},r}(B))||cd,_d=Sr(dd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.shouldComponentUpdate=function(){return!1},i.render=function(){var e=this.props.children;return N("div",{className:pr.a.interactiveArea},N("div",{style:{pointerEvents:"auto"}},N(qn,{name:"InteractiveArea"},e)))},r}(B))||dd,Ed=(fd=$t((function(e){return{duration:e.engine.duration}})),Sr(hd=fd(hd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i._getFramePreviewImgStyle=function(e){return"background: url("+e.url+");background-position: -"+e.x+"px -"+e.y+"px;"},i._getFramePreviewImgContainerStyle=function(e){return{height:e.height+4+"px",width:e.width+4+"px"}},i.render=function(){var e=this.props.player.getThumbnail(this.props.virtualTime);if(e)return N("div",{style:this._getFramePreviewImgContainerStyle(e),className:[pr.a.framePreviewImgContainer,pr.a.nonSticky].join(" ")},N("div",{className:pr.a.framePreviewImg,style:this._getFramePreviewImgStyle(e)}))},r}(B))||hd)||hd);function kd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Td(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ad(){return(Ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Ed.displayName="SeekBarPreview";var wd,Sd,Cd,xd,Id=(gd=$t((function(e){return{config:e.config.components.seekbar,isMobile:e.shell.isMobile,previewHoverActive:e.seekbar.previewHoverActive,hidePreview:e.seekbar.hidePreview,hideTimeBubble:e.seekbar.hideTimeBubble}}),ur(Ad({},sr,da))),yd=Fs("SeekBar"),vd=An({sliderAriaLabel:"controls.seekBarSlider"}),gd(md=Sr(md=Br(md=yd(md=vd(md=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Td(kd(t=e.call.apply(e,[this].concat(r))||this),"_keyboardEventHandlers",[{key:{code:Ln.LEFT},action:function(e){t.handleKeydown(e,!1)}},{key:{code:Ln.RIGHT},action:function(e){t.handleKeydown(e,!1)}},{key:{code:Ln.HOME},action:function(e){t.handleKeydown(e,!1)}},{key:{code:Ln.END},action:function(e){t.handleKeydown(e,!1)}}]),Td(kd(t),"onSeekbarMouseDown",(function(e){if(!t.props.isMobile&&!t.props.previewHoverActive&&(e.preventDefault(),e.stopPropagation(),t.props.updateSeekbarDraggingStatus(!0),t.props.isDraggingActive)){var n=t.getTime(e);t.updateSeekBarProgress(n,t.props.duration)}})),Td(kd(t),"onPlayerMouseUp",(function(e){if(!t.props.isMobile&&!t.props.previewHoverActive&&t.props.isDraggingActive){var n=t.props.currentTime,r=t.getTime(e);t.props.changeCurrentTime(r),t.updateSeekBarProgress(r,t.props.duration),t.props.updateSeekbarDraggingStatus(!1),t.props.notifyChange({from:n,to:r})}})),Td(kd(t),"onPlayerMouseMove",(function(e){if(!t.props.isMobile&&t.props.isDraggingActive){var n=t.getTime(e);t.updateSeekBarProgress(n,t.props.duration),t.updateSeekBarProgress(n,t.props.duration,!0)}})),Td(kd(t),"onSeekbarMouseMove",(function(e){if(!t.props.isMobile&&!t.props.previewHoverActive){var n=t.getTime(e);t.updateSeekBarProgress(n,t.props.duration,!0)}})),Td(kd(t),"onSeekbarTouchStart",(function(e){if(t.props.updateSeekbarDraggingStatus(!0),t.props.isDraggingActive){var n=t.getTime(e);t.updateSeekBarProgress(n,t.props.duration)}})),Td(kd(t),"onSeekbarTouchMove",(function(e){var n=t.getTime(e);t.updateSeekBarProgress(n,t.props.duration,!0),t.props.isDraggingActive&&t.updateSeekBarProgress(n,t.props.duration),e.preventDefault()})),Td(kd(t),"onKeyDown",(function(e){switch(e.keyCode){case Ln.LEFT:case Ln.RIGHT:t.handleKeydown(e,!0);break;case Ln.ENTER:case Ln.SPACE:e.preventDefault(),t.togglePlayPause()}})),Td(kd(t),"togglePlayPause",(function(){t.props.player.paused?t.props.player.play():t.props.player.pause()})),Td(kd(t),"onSeekbarTouchEnd",(function(e){if(t.props.isDraggingActive){var n=t.getTime(e),r=t.props.currentTime,i=n;t.props.changeCurrentTime(i),t.updateSeekBarProgress(i,t.props.duration),t.props.notifyChange({from:r,to:i})}t.props.updateSeekbarDraggingStatus(!1)})),Td(kd(t),"onSeekbarMouseOver",(function(){t.props.isMobile||t.props.updateSeekbarHoverActive(!0)})),Td(kd(t),"onSeekbarMouseLeave",(function(){t.props.isMobile||t.props.updateSeekbarHoverActive(!1)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){var e=this,t=this.props,n=t.player,r=t.eventManager,i=this._seekBarElement.getBoundingClientRect();this.props.updateSeekbarClientRect(i),r.listen(n,Dr.Type.GUI_RESIZE,(function(){e.setState({resizing:!0}),setTimeout((function(){var t=e._seekBarElement.getBoundingClientRect();e.props.updateSeekbarClientRect(t),e.setState({resizing:!1})}),pr.a.defaultTransitionTime)})),document.addEventListener("mouseup",this.onPlayerMouseUp),document.addEventListener("mousemove",this.onPlayerMouseMove),this.props.registerKeyboardEvents(this._keyboardEventHandlers)},i.componentWillUnmount=function(){document.removeEventListener("mouseup",this.onPlayerMouseUp),document.removeEventListener("mousemove",this.onPlayerMouseMove)},i.handleKeydown=function(e,t){var n=this,r=this.props,i=r.duration,a=r.currentTime,o=function(e,t){n.props.changeCurrentTime(t),n.updateSeekBarProgress(t,i,!0),n.props.notifyChange({from:e,to:t})};switch(this.props.updatePlayerHoverState(!0),e.keyCode){case Ln.LEFT:t||this.props.updateOverlayActionIcon(vo.Rewind),o(a,a-5>0?a-5:0);break;case Ln.RIGHT:t||this.props.updateOverlayActionIcon(vo.Forward),o(a,a+5>i?i:a+5);break;case Ln.HOME:t||this.props.updateOverlayActionIcon(vo.StartOver),o(a,0);break;case Ln.END:t||this.props.updateOverlayActionIcon(vo.SeekEnd),o(a,i)}},i.updateSeekBarProgress=function(e,t,n){void 0===n&&(n=!1),n?this.props.updateVirtualTime(e):this.props.updateCurrentTime(e)},i.getOffset=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-e.scrollLeft+this._getTransformX(e),n+=e.offsetTop-e.scrollTop,e=e.offsetParent;return this.props.player.isFullscreen()&&(t=0),{top:n,left:t}},i._getTransformX=function(e){var t=getComputedStyle(e),n=(t.getPropertyValue("transform")||t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")).match(/-?\d+/g),r=0;return n&&n.length>0&&(r=parseFloat(n[4])),r},i.getTime=function(e){var t,n=("number"==typeof e.clientX?e.clientX:null==e||null==(t=e.changedTouches[0])?void 0:t.clientX)-this._seekBarElement.getBoundingClientRect().left,r=parseFloat((this.props.duration/this._seekBarElement.offsetWidth*n).toFixed(2));return r<0?0:r>this.props.duration?this.props.duration:r},i.getBufferedPercent=function(){var e=this.props.player;if(this.props.duration>0&&e.buffered.length>0){var t=(e.isLive()?e.buffered.end(0)-e.getStartTimeOfDvrWindow():e.buffered.end(0))/this.props.duration*100;return t<100?t:100}return 0},i.getFramePreviewOffset=function(){if(this._seekBarElement&&this._framePreviewElement){var e=this.props.virtualTime/this.props.duration*this._seekBarElement.clientWidth-this._framePreviewElement.clientWidth/2;return e<0?0:e>this._seekBarElement.clientWidth-this._framePreviewElement.clientWidth?this._seekBarElement.clientWidth-this._framePreviewElement.clientWidth:e}return 0},i.getTimeBubbleOffset=function(){if(this._timeBubbleElement){var e=this.props.virtualTime/this.props.duration*this._seekBarElement.clientWidth-this._timeBubbleElement.clientWidth/2;return e<0?0:e>this._seekBarElement.clientWidth-this._timeBubbleElement.clientWidth?this._seekBarElement.clientWidth-this._timeBubbleElement.clientWidth:e}return 0},i.renderFramePreview=function(){var e=this;if(this.props.showFramePreview&&!this.props.isMobile)return N("div",{className:this.props.hidePreview?[pr.a.framePreview,pr.a.hideFramePreview].join(" "):pr.a.framePreview,style:this._getFramePreviewStyle(),ref:function(t){return t?e._framePreviewElement=t:void 0}},N(Ed,{virtualTime:this.props.virtualTime}))},i._getFramePreviewStyle=function(){return"left: "+this.getFramePreviewOffset()+"px;"},i.renderTimeBubble=function(){var e=this;if(!this.props.hideTimeBubble&&this.props.showTimeBubble&&!this.props.isMobile){var t="left: "+this.getTimeBubbleOffset()+"px",n=this.props.isDvr?"-"+Ha(this.props.duration-this.props.virtualTime):Ha(this.props.virtualTime);return N("div",{className:pr.a.timePreview,style:t,ref:function(t){return t?e._timeBubbleElement=t:void 0}},n)}},i.render=function(e,t){var n=this,r=e.virtualTime/e.duration*100+"%",i=(e.forceFullProgress?100:e.currentTime/e.duration*100)+"%",a=Math.round(this.getBufferedPercent())+"%",o=[pr.a.seekBar];return e.adBreak&&o.push(pr.a.adBreak),e.isDvr&&o.push(pr.a.live),e.isMobile&&o.push(pr.a.hover),e.isDraggingActive&&o.push(pr.a.hover),t.resizing&&o.push(pr.a.resizing),N("div",{tabIndex:"0",className:o.join(" "),ref:function(e){return e?n._seekBarElement=e:void 0},role:"slider","aria-label":e.sliderAriaLabel,"aria-valuemin":"0","aria-valuemax":Math.round(this.props.duration),"aria-valuenow":Math.round(this.props.currentTime),"aria-valuetext":Ha(this.props.currentTime)+" of "+Ha(this.props.duration),onMouseOver:this.onSeekbarMouseOver,onMouseLeave:this.onSeekbarMouseLeave,onMouseMove:this.onSeekbarMouseMove,onMouseDown:this.onSeekbarMouseDown,onTouchStart:this.onSeekbarTouchStart,onTouchMove:this.onSeekbarTouchMove,onTouchEnd:this.onSeekbarTouchEnd,onKeyDown:this.onKeyDown},N("div",{className:pr.a.progressBar},N(qn,{name:"SeekBar",shouldUpdate:!0},this.renderFramePreview(),this.renderTimeBubble(),N("div",{className:pr.a.buffered,style:{width:a}}),e.dataLoaded?N("div",{className:pr.a.progress,style:{width:i}},e.adBreak?void 0:N("a",{className:pr.a.scrubber})):void 0,N("div",{className:pr.a.virtualProgress,style:{width:r}},N("div",{className:pr.a.virtualProgressIndicator})))))},r}(B))||md)||md)||md)||md)||md);Id.displayName="SeekBar";var Pd,Dd,Rd,Od=(wd=$t((function(e){return{currentTime:e.seekbar.currentTime,virtualTime:e.seekbar.virtualTime,duration:e.engine.duration,isDraggingActive:e.seekbar.draggingActive,isMobile:e.shell.isMobile,poster:e.engine.poster,dataLoaded:e.engine.dataLoaded}}),ur(Vi)),Sd=jn("SeekBarPlaybackContainer"),Cd=fi("SeekBarPlaybackContainer"),wd(xd=Sr(xd=Br(xd=Sd(xd=Cd(xd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){var e=this;this.props.eventManager.listen(this.props.player,this.props.player.Event.TIME_UPDATE,(function(){e.props.isDraggingActive||e.props.updateCurrentTime(e.props.player.currentTime)}))},i.render=function(){var e=this;return N(Id,{playerElement:this.props.playerContainer,showFramePreview:this.props.showFramePreview,showTimeBubble:this.props.showTimeBubble,changeCurrentTime:function(t){return e.props.player.currentTime=t},playerPoster:this.props.poster,updateSeekbarDraggingStatus:function(t){return e.props.updateSeekbarDraggingStatus(t)},updateSeekbarHoverActive:function(t){return e.props.updateSeekbarHoverActive(t)},updateSeekbarClientRect:function(t){return e.props.updateSeekbarClientRect(t)},updateCurrentTime:function(t){return e.props.updateCurrentTime(t)},updateVirtualTime:function(t){return e.props.updateVirtualTime(t)},currentTime:this.props.currentTime,virtualTime:this.props.virtualTime,duration:this.props.duration,isDraggingActive:this.props.isDraggingActive,isMobile:this.props.isMobile,notifyChange:function(t){return e.props.notifyChange(t)},dataLoaded:this.props.dataLoaded})},r}(B))||xd)||xd)||xd)||xd)||xd);function Ld(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Md(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Od.displayName="SeekBarPlaybackContainer";var Nd,Ud,Fd,jd=(Pd=$t((function(e){return{playlist:e.engine.playlist,currentTime:e.engine.currentTime,duration:e.engine.duration,lastSeekPoint:e.engine.lastSeekPoint,isSeeking:e.engine.isSeeking,isPlaybackEnded:e.engine.isPlaybackEnded,countdownCanceled:e.playlist.countdownCanceled}}),ur(va)),Dd=jn("PlaylistCountdown"),Pd(Rd=Sr(Rd=Br(Rd=Dd(Rd=function(e){var t,n;function r(t){var n;return Md(Ld(n=e.call(this,t)||this),"onClick",(function(){n.props.player.playlist.playNext()})),Md(Ld(n),"cancelNext",(function(e){n.props.logger.debug("Cancel auto play next item"),e.stopPropagation(),n.props.updatePlaylistCountdownCanceled(!0)})),Md(Ld(n),"onKeyDown",(function(e){switch(e.keyCode){case Ln.ENTER:n.onClick();break;case Ln.ESC:n.cancelNext(e)}})),Md(Ld(n),"onCancelButtonKeyDown",(function(e){e.keyCode===Ln.ENTER&&n.cancelNext(e)})),n.setState({focusable:!1}),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i._shouldRender=function(e){return this.state.timeToShow&&e.playlist&&e.playlist.next&&e.playlist.next.sources&&e.player.playlist.countdown.showing&&(e.player.playlist.options.autoContinue||e.player.playlist.options.loop)},i._getTimeToShow=function(){var e=this.props.player.playlist.countdown,t=this.props.duration-e.duration;return e.timeToShow>=0&&e.timeToShow<=this.props.duration&&(t=Math.max(e.timeToShow,this.props.lastSeekPoint)),Math.max(0,Math.min(t,this.props.duration))},i.componentWillUpdate=function(e){var t=this._getTimeToShow();e.currentTime>=t?this.setState({timeToShow:!0}):(this.setState({timeToShow:!1}),this.props.updatePlaylistCountdownCanceled(!1))},i.isHidden=function(e){return!e.timeToShow||this.props.player.playlist.countdown.duration>=this.props.duration},i.isCanceled=function(){return this.props.countdownCanceled},i.isShown=function(e){return!this.isHidden(e)&&!this.isCanceled()},i.componentDidUpdate=function(e,t){var n=this;if(this._shouldRender(e)){var r=this._getTimeToShow(),i=this.props.player.playlist.countdown;e.isSeeking||this.props.countdownCanceled||!(this.props.isPlaybackEnded||this.props.currentTime>=r+i.duration&&this.props.currentTime<this.props.duration)||this.props.player.playlist.playNext()}!t.shown&&this.state.shown?this.focusElement&&this.props.eventManager.listenOnce(this.focusElement,"animationend",(function(){n.isShown(n.state)&&(n.focusElement.focus(),n.setState({focusable:!0}))})):t.shown&&!this.state.shown&&this.setState({focusable:!1}),this.isShown(this.state)!==this.state.shown&&this.setState((function(e){return{shown:n.isShown(e)}}))},i.shouldComponentUpdate=function(e){return this.props.duration>0&&!e.isSeeking&&!this.props.isPlaybackEnded},i.render=function(e){var t=this;if(this._shouldRender(e)&&(this.isShown(this.state)&&(this.nextShown=e.playlist.next),e.playlist.next&&e.playlist.next.sources&&this.nextShown)){var n=this.props.player.playlist.countdown,r=this._getTimeToShow(),i=e.currentTime-r,a=Math.min(n.duration,e.duration-r),o=Math.ceil(a-(i>0?i:0)),s=[pr.a.playlistCountdown];return this.isHidden(this.state)?s.push(pr.a.hidden):this.isCanceled()?s.push(pr.a.canceled):s.push(pr.a.slideIn),N("div",{role:"button","aria-labelledby":"playlistCountdownTextId",ref:function(e){return e?t.focusElement=e:void 0},tabIndex:this.state.focusable?0:-1,className:s.join(" "),onKeyDown:this.onKeyDown,onClick:this.onClick},N("div",{className:pr.a.playlistCountdownPoster,style:"background-image: url("+this.nextShown.sources.poster+");"}),N("div",{className:pr.a.playlistCountdownContentPlaceholder},N("div",{className:pr.a.playlistCountdownContentBackground},N("div",{className:pr.a.playlistCountdownContent},N(En,null,N("div",{id:"playlistCountdownTextId",className:pr.a.playlistCountdownText},N("div",{className:pr.a.playlistCountdownTextTitle},N(bn,{id:"playlist.up_next_in"}),N("div",{className:pr.a.playlistCountdownTimeLeft},o)),N("div",{className:pr.a.playlistCountdownTextName},""+(this.nextShown.sources.metadata?this.nextShown.sources.metadata.name:"")))),N("div",{className:[pr.a.controlButtonContainer,pr.a.playlistCountdownCancel].join(" ")},N(En,null,N(Bo,{tabIndex:this.state.focusable?0:-1,"aria-label":N(bn,{id:"playlist.cancel"}),className:[pr.a.controlButton,pr.a.playlistCountdownCancelButton].join(" "),onClick:this.cancelNext,onKeyDown:this.onCancelButtonKeyDown},N(Eo,{type:vo.Close}))))))))}},r}(B))||Rd)||Rd)||Rd)||Rd);jd.displayName="PlaylistCountdown";var Bd,Vd=(Nd=$t((function(e){return{poster:e.engine.poster,isInPictureInPicture:e.engine.isInPictureInPicture,isChangingSource:e.engine.isChangingSource}})),Ud=jn("PictureInPictureOverlay"),Nd(Fd=Sr(Fd=Ud(Fd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i._handleClick=function(){this.props.player.exitPictureInPicture()},i.render=function(){if(this.props.isInPictureInPicture){var e={},t=[pr.a.pictureInPicturePoster];return this.props.poster&&(e={backgroundImage:this.props.isChangingSource?"":"url("+this.props.poster+")",backgroundSize:"contain"},t.push(pr.a.hasPoster)),N("div",null,N("div",{className:pr.a.pictureInPictureOverlay},N("div",{className:t.join(" "),style:e,onMouseOver:function(e){return e.stopPropagation()}},N("div",{className:pr.a.darkLayer})),N("div",{className:pr.a.pictureInPictureControl},N(En,null,N("span",{className:pr.a.pictureInPictureText},N(bn,{id:"pictureInPicture.overlay_text"}))))))}},r}(B))||Fd)||Fd)||Fd);Vd.displayName="PictureInPictureOverlay";var Hd,Kd=Ni({allowSidePanels:!0,allowPlayerArea:!0})(Bd=Fs("Playback")(Bd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){this.props.updateIsKeyboardEnabled(!0)},i.render=function(){return N("div",{className:pr.a.playbackGuiWrapper},N(qn,{name:"PresetArea"},N("div",{className:pr.a.playerGui,id:"player-gui"},N(Io,null),N(bd,null),N(oo,null,N(j,null,N(Rc,null),N(no,null),N(sc,null),N(Vd,null),N(Sp,{name:"OverlayPlaybackControls",className:pr.a.centerPlaybackControls}),N(Ep,null),N(Ko,null),N(ep,null)),(function(e){var t=e.containerRef;return N(j,null,N(Sc,null),N(_d,null,N(Nc,null),N(jd,null)),N(tu,{leftControls:N(j,null,N(Sp,{name:"BottomBarPlaybackControls",showPreview:!0}),N(ps,{step:10}),N(ms,{step:10}),N(kc,{format:"current / total"})),rightControls:N(j,null,N(Pl,null),N(Sl,null),N(Rl,null),N(ml,null),N(qs,null),N(wp,null),N(rl,null),N(Bc,null))},N(Od,{showFramePreview:!0,showTimeBubble:!0,playerContainer:t})))})))))},r}(B))||Bd)||Bd;function Gd(e){return N(Kd,e)}Kd.displayName="Playback";var zd=$t((function(e){return{isBumper:e.engine.adIsBumper}}))(Hd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){return this.props.isBumper?null:N(Bl,null)},r}(B))||Hd;zd.displayName="AdLeftControls";var Wd,Yd=$t((function(e){return{state:{shell:e.shell,engine:{adIsLinear:e.engine.adIsLinear,adContentType:e.engine.adContentType}}}}))(Fs("Ads")((function(e,t){if(e.updateIsKeyboardEnabled(!0),function(e,t){var n=e.state.shell.isMobile&&!t.player.env.isIPadOS,r=!1;try{var i=t.player.config.plugins.ima.adsRenderingSettings;r=i&&i.useStyledLinearAds}catch(e){}return n||r}(e,t))return N("div",{className:pr.a.adGuiWrapper},N(qn,{name:"PresetArea"},N("div",{className:pr.a.playerGui,id:"player-gui"},N(oo,null,N(j,null,N(no,null),N(Rc,{hasTopBar:!0})),N(j,null,N(Sc,{disabled:!0,leftControls:N(zd,null)}))))));var n=!1,r=!1,i=N(tu,{leftControls:N(j,null,N(Sp,{name:"BottomBarPlaybackControls",showPreview:!0}),N(bc,null)),rightControls:N(j,null,N(Sl,null),N(rl,null))}),a=N(tu,{rightControls:N(j,null,N(rl,null))});return N("div",{className:pr.a.adGuiWrapper},N(qn,{name:"PresetArea"},N("div",{className:pr.a.playerGui,id:"player-gui"},N(oo,null,N(j,null,N(no,null),N(Rc,{hasTopBar:!0}),r?N(jl,null):void 0,N(Sp,{name:"OverlayPlaybackControls",className:pr.a.centerPlaybackControls})),N(j,null,N(Sc,{disabled:!0,leftControls:N(zd,null),rightControls:n?N(Nl,null):void 0}),function(e){var t=e.state.engine,n=t.adIsLinear,r=t.adContentType;return!(n&&r&&!r.startsWith("video"))}(e)?i:a)))))})));function qd(e){return N(Yd,e)}function Xd(){return N("div",{className:pr.a.playbackGuiWrapper},N(qn,{name:"PresetArea"},N(oo,null,N(j,null,N(Ju,null)))))}function $d(e){return N(Xd,e)}Yd.displayName="Ads",Xd.displayName="Error";var Qd,Zd=Ni({allowSidePanels:!0,allowPlayerArea:!0})(Wd=Fs("Live")(Wd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){this.props.updateIsKeyboardEnabled(!0)},i.render=function(){return N("div",{className:pr.a.playbackGuiWrapper},N(qn,{name:"PresetArea"},N("div",{className:pr.a.playerGui,id:"player-gui"},N(Io,null),N(bd,null),N(oo,null,N(j,null,N(no,null),N(sc,null),N(Vd,null),N(Sp,{name:"OverlayPlaybackControls",className:pr.a.centerPlaybackControls}),N(Ko,null),N(ep,null)),(function(e){var t=e.containerRef;return N(j,null,N(Sc,null),N(_d,null,N(Nc,null),N(Rc,null)),N(tu,{leftControls:N(j,null,N(Sp,{name:"BottomBarPlaybackControls",showPreview:!0}),N(ps,{step:10}),N(ms,{step:10}),N(nc,null)),rightControls:N(j,null,N(Pl,null),N(Sl,null),N(Rl,null),N(ml,null),N(qs,null),N(wp,null),N(rl,null),N(Bc,null))},N(cc,{showFramePreview:!0,showTimeBubble:!0,playerContainer:t})))})))))},r}(B))||Wd)||Wd;function Jd(e){return N(Zd,e)}Zd.displayName="Live";var ef,tf=Ni({allowSidePanels:!0,allowPlayerArea:!0})(Qd=Fs("Img")(Qd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.componentDidMount=function(){this.props.updateIsKeyboardEnabled(!0)},i.render=function(){return N("div",{className:pr.a.playbackGuiWrapper},N(qn,{name:"PresetArea"},N("div",{className:pr.a.playerGui,id:"player-gui"},N(bd,null),N(oo,null,N(j,null,N(Rc,null),N(no,null),N(sc,null),N(Sp,{name:"OverlayPlaybackControls",className:pr.a.centerPlaybackControls}),N(ep,null)),(function(){return N(j,null,N(Sc,null),N(_d,null,N(Nc,null)),N(tu,{rightControls:N(j,null,N(Pl,null),N(qs,null),N(rl,null),N(Bc,null))}))})))))},r}(B))||Qd)||Qd;function nf(e){return N(tf,e)}tf.displayName="Img";var rf=function(e,t){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return Nt({},n,{dispatch:r=Ut.apply(void 0,a)(n.dispatch)})}}}(function(e){return function(t){return function(t){return function(n){ef||(ef=Dn("UILoggerMiddleware")),e.debugActions&&ef.debug("Action fired",n),t(n)}}}}(t),function(e){return function(t){return function(n){return function(r){switch(r.type){case zl:!function(e,t,n){switch(t.name){case"Keyboard":Ql[t.payload.key](e,t,n);break;case"OverlayAction":!function(e,t,n){"PlayPause"===t.payload.type?Yl(e,0,n):"Fullscreen"===t.payload.type&&Xl(0,0,n)}(e,t,n);break;case"Settings":!function(e,t,n){t.payload.type===n.Track.VIDEO?n.dispatchEvent(new Gr(t.payload.track)):n.dispatchEvent(new Wr(t.payload.speed))}(0,t,n);break;case"CVAAOverlay":n.dispatchEvent(new Kr(t.payload.textStyle));break;case"Fullscreen":Xl(0,0,n);break;case"Language":!function(e,t,n){t.payload.type===n.Track.AUDIO?n.dispatchEvent(new Vr(t.payload.track)):t.payload.type===n.Track.TEXT&&n.dispatchEvent(new Hr(t.payload.track))}(0,t,n);break;case"Shell":n.dispatchEvent(new Dr(Dr.Type.UI_CLICKED));break;case"Rewind":n.dispatchEvent(new qr(t.payload.from,t.payload.to));break;case"Forward":n.dispatchEvent(new Xr(t.payload.from,t.payload.to));break;case"LiveTag":n.dispatchEvent(new Dr(Dr.Type.USER_CLICKED_LIVE_TAG));break;case"PrePlaybackPlayOverlay":case"PlayPause":Yl(e,0,n);break;case"Volume":ql(e,0,n)}}(t,r,e);break;case Wl:!function(e,t,n){switch(t.name){case"Volume":n.dispatchEvent(new $r(t.payload.volume));break;case"SeekBarPlaybackContainer":n.dispatchEvent(new zr(t.payload.from,t.payload.to));break;case"ActivePreset":n.dispatchEvent(new Dr(Dr.Type.UI_PRESET_CHANGE,t.payload))}}(0,r,e);break;case Qn.UPDATE_PLAYER_HOVER_STATE:!function(e,t,n){var r=e.getState().engine,i=e.getState().shell;!r.adBreak&&r.isPlaying&&i.playerHover!==t.hover&&n.dispatchEvent(new Yr(t.hover))}(t,r,e)}switch(n(r),r.type){case Qn.UPDATE_GUI_CLIENT_RECT:!function(e,t,n){var r=e.getState().shell.guiClientRect;n.dispatchEvent(new Kl(r))}(t,0,e);break;case Qn.UPDATE_PLAYER_CLIENT_RECT:!function(e,t,n){var r=e.getState().shell.playerClientRect;n.dispatchEvent(new Hl(r))}(t,0,e);break;case Qn.UPDATE_VIDEO_CLIENT_RECT:!function(e,t,n){var r=e.getState().shell.videoClientRect;n.dispatchEvent(new Gl(r))}(t,0,e)}}}}}(e))};function af(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var of={colors:{live:"--playkit-live-color",playerBackground:"--playkit-player-background-color"}},sf=["primary","secondary","success","danger","warning"],lf=["--playkit-icon-data-url","--playkit-icon-chromecast-url","--playkit-icon-quality-HD-active-url","--playkit-icon-quality-4K-active-url","--playkit-icon-quality-8K-active-url"],uf=function(){function e(e,t,n){this.player=e,this.config=t,this.playerContainerElement=document.querySelector("#"+n)}var t=e.prototype;return t.applyUserTheme=function(){this.config&&this.setColors(this.config)},t.setColors=function(e){for(var t in e.colors.primary&&this.setSvgFillColor(e.colors.primary),e.colors)sf.includes(t)?this.setAccentOrAcknowledgementColor(t,e.colors[t]):this.setColor(of.colors[t],e.colors[t])},t.setAccentOrAcknowledgementColor=function(e,t){var n,r,i,a,o,s,l,u,c=function(e){return function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.min(n,r,i),o=Math.max(n,r,i),s=o-a;o===a?t=0:n===o?t=(r-i)/s:r===o?t=2+(i-n)/s:i===o&&(t=4+(n-r)/s),(t=Math.min(60*t,360))<0&&(t+=360);var l=(a+o)/2;return[t,100*(o===a?0:l<=.5?s/(o+a):s/(2-o-a)),100*l]}(function(e){var t=e.toString().match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]}(e))}(t),p=c[0],d=c[1],f=c[2];null==(n=this.playerContainerElement)||null==(r=n.querySelector("."+pr.a.player))||r.style.setProperty("--playkit-{name}-color".replace("{name}",e),t),null==(i=this.playerContainerElement)||null==(a=i.querySelector("."+pr.a.player))||a.style.setProperty("--playkit-{name}-hsl-hue".replace("{name}",e),Math.round(p)+"deg"),null==(o=this.playerContainerElement)||null==(s=o.querySelector("."+pr.a.player))||s.style.setProperty("--playkit-{name}-hsl-saturation".replace("{name}",e),Math.round(d)+"%"),null==(l=this.playerContainerElement)||null==(u=l.querySelector("."+pr.a.player))||u.style.setProperty("--playkit-{name}-hsl-lightness".replace("{name}",e),Math.round(f)+"%")},t.setColor=function(e,t){var n,r;null==(n=this.playerContainerElement)||null==(r=n.querySelector("."+pr.a.player))||r.style.setProperty(e,t)},t.setSvgFillColor=function(e){for(var t,n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return af(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?af(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(lf);!(t=n()).done;){var r,i,a,o=t.value,s=getComputedStyle(null==(r=this.playerContainerElement)?void 0:r.querySelector("."+pr.a.player)).getPropertyValue(o),l=e.replace("#","%23");null==(i=this.playerContainerElement)||null==(a=i.querySelector("."+pr.a.player))||a.style.setProperty(o,s.replace(/fill='%23([a-f0-9]{3}){1,2}\b'/,"fill='"+l+"'"))}},e}();function cf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var df=function(){function e(e,t){var n,r;pf(this,"_translations",{en:Ca.en}),pf(this,"_locale","en"),(n=t.logger)&&"function"==typeof n.getLogger&&(xn.get=n.getLogger),n&&n.LogLevel&&(In=n.LogLevel),this._uiComponents=[].concat(t.uiComponents||[]),this.player=e,this.targetId=t.targetId,this._createStore(t),this.setConfig(t),this._setLocaleTranslations(t),this._themesManager=new uf(e,t.userTheme,t.targetId),r=this.player.env,Ln.SEMI_COLON="firefox"===r.browser.name.toLowerCase()?59:186}var t,n,r=e.prototype;return r.setConfig=function(e,t){t?this.store.dispatch(mr.updateComponentConfig(t,e)):this.store.dispatch(mr.updateConfig(e))},r.addComponent=function(e){return function(){}},r.buildDefaultUI=function(){var e=[{template:function(e){return lo(e)},condition:function(e){return e.engine.isIdle}},{template:function(e){return $d(e)},condition:function(e){return e.engine.hasError}},{template:function(e){return qd(e)},condition:function(e){return e.engine.adBreak}},{template:function(e){return Jd(e)},condition:function(e){return e.engine.isLive}},{template:function(e){return nf(e)},condition:function(e){return e.engine.isImg}},{template:function(e){return Gd(e)}}];this._buildUI(e),this._themesManager.applyUserTheme()},r.buildCustomUI=function(e){if(e.length>0)this._buildUI(e);else{var t=[{template:function(e){return Gd(e)}}];this._buildUI(t)}this._themesManager.applyUserTheme()},r._setLocaleTranslations=function(e){var t=this;e.translations&&Object.entries(e.translations).forEach((function(e){var n=e[0],r=e[1];r=Cn({},t._translations.en,r),t._translations[n]=r})),e.locale&&this._translations[e.locale]&&(this._locale=e.locale)},r._createStore=function(e){var t=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Ut;this.store=Pt(Sa,t(rf(this.player,e)))},r._buildUI=function(e){var t=this;this.player&&(this.container=document.getElementById(this.targetId),this.container&&ne(N(ut,{store:this.store},N(Li,{uiComponents:this._uiComponents,setApi:function(e){e&&(t.addComponent=e)}},N(pn,{definition:this._translations[this._locale]},N(Ar,{player:this.player},N(Jr,{player:this.player,store:this.store},N(Ps,{playerContainer:this.container},N(ki,null,N(Ra,null),N(Ma,null),N(Ja,{uis:e,playerContainer:this.container})))))))),this.container))},r.destroy=function(){this.container&&(this.container.prepend(this.player.getView()),ne("",this.container))},r.getLogLevel=function(e){return function(e){return Pn(e).getLevel()}(e)},r.setLogLevel=function(e,t){!function(e,t){Pn(t).setLevel(e)}(e,t)},t=e,(n=[{key:"config",get:function(){return function e(t){var n;return Array.isArray(t)?(n=t.length>0?t.slice(0):[]).forEach((function(t,r){("object"==typeof t&&t!=={}||Array.isArray(t)&&t.length>0)&&(n[r]=e(t))})):"object"==typeof t?(n=Object.assign({},t),Object.keys(n).forEach((function(t){("object"==typeof n[t]&&n[t]!=={}||Array.isArray(n[t])&&n[t].length>0)&&(n[t]=e(n[t]))}))):n=t,n}(this.store.getState().config)}},{key:"LogLevel",get:function(){return In}},{key:"Event",get:function(){return On}}])&&cf(t.prototype,n),e}(),ff=On,hf="0.77.2",gf="@playkit-js/playkit-js-ui"}])},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(10),i=n(30);e.exports=n(9)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(47),i=n(26);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){var r=n(20);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(48),i=n(30),a=n(17),o=n(28),s=n(15),l=n(93),u=Object.getOwnPropertyDescriptor;t.f=n(9)?u:function(e,t){if(e=a(e),t=o(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(1),i=n(8),a=n(3);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",o)}},function(e,t,n){var r=n(19),i=n(47),a=n(11),o=n(7),s=n(109);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,p=6==e,d=5==e||p,f=t||s;return function(t,s,h){for(var g,y,v=a(t),m=i(v),b=r(s,h,3),_=o(m.length),E=0,k=n?f(t,_):l?f(t,0):void 0;_>E;E++)if((d||E in m)&&(y=b(g=m[E],E,v),e))if(n)k[E]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:k.push(g)}else if(c)return!1;return p?-1:u||c?c:k}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){"use strict";if(n(9)){var r=n(32),i=n(2),a=n(3),o=n(1),s=n(62),l=n(88),u=n(19),c=n(44),p=n(30),d=n(16),f=n(45),h=n(21),g=n(7),y=n(120),v=n(34),m=n(28),b=n(15),_=n(49),E=n(5),k=n(11),T=n(80),A=n(35),w=n(37),S=n(36).f,C=n(82),x=n(31),I=n(6),P=n(24),D=n(52),R=n(50),O=n(84),L=n(42),M=n(55),N=n(43),U=n(83),F=n(111),j=n(10),B=n(22),V=j.f,H=B.f,K=i.RangeError,G=i.TypeError,z=i.Uint8Array,W=Array.prototype,Y=l.ArrayBuffer,q=l.DataView,X=P(0),$=P(2),Q=P(3),Z=P(4),J=P(5),ee=P(6),te=D(!0),ne=D(!1),re=O.values,ie=O.keys,ae=O.entries,oe=W.lastIndexOf,se=W.reduce,le=W.reduceRight,ue=W.join,ce=W.sort,pe=W.slice,de=W.toString,fe=W.toLocaleString,he=I("iterator"),ge=I("toStringTag"),ye=x("typed_constructor"),ve=x("def_constructor"),me=s.CONSTR,be=s.TYPED,_e=s.VIEW,Ee=P(1,(function(e,t){return Se(R(e,e[ve]),t)})),ke=a((function(){return 1===new z(new Uint16Array([1]).buffer)[0]})),Te=!!z&&!!z.prototype.set&&a((function(){new z(1).set({})})),Ae=function(e,t){var n=h(e);if(n<0||n%t)throw K("Wrong offset!");return n},we=function(e){if(E(e)&&be in e)return e;throw G(e+" is not a typed array!")},Se=function(e,t){if(!E(e)||!(ye in e))throw G("It is not a typed array constructor!");return new e(t)},Ce=function(e,t){return xe(R(e,e[ve]),t)},xe=function(e,t){for(var n=0,r=t.length,i=Se(e,r);r>n;)i[n]=t[n++];return i},Ie=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},Pe=function(e){var t,n,r,i,a,o,s=k(e),l=arguments.length,c=l>1?arguments[1]:void 0,p=void 0!==c,d=C(s);if(null!=d&&!T(d)){for(o=d.call(s),r=[],t=0;!(a=o.next()).done;t++)r.push(a.value);s=r}for(p&&l>2&&(c=u(c,arguments[2],2)),t=0,n=g(s.length),i=Se(this,n);n>t;t++)i[t]=p?c(s[t],t):s[t];return i},De=function(){for(var e=0,t=arguments.length,n=Se(this,t);t>e;)n[e]=arguments[e++];return n},Re=!!z&&a((function(){fe.call(new z(1))})),Oe=function(){return fe.apply(Re?pe.call(we(this)):we(this),arguments)},Le={copyWithin:function(e,t){return F.call(we(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(we(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return U.apply(we(this),arguments)},filter:function(e){return Ce(this,$(we(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return J(we(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(we(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(we(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(we(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(we(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(we(this),arguments)},lastIndexOf:function(e){return oe.apply(we(this),arguments)},map:function(e){return Ee(we(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(we(this),arguments)},reduceRight:function(e){return le.apply(we(this),arguments)},reverse:function(){for(var e,t=we(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this},some:function(e){return Q(we(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ce.call(we(this),e)},subarray:function(e,t){var n=we(this),r=n.length,i=v(e,r);return new(R(n,n[ve]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===t?r:v(t,r))-i))}},Me=function(e,t){return Ce(this,pe.call(we(this),e,t))},Ne=function(e){we(this);var t=Ae(arguments[1],1),n=this.length,r=k(e),i=g(r.length),a=0;if(i+t>n)throw K("Wrong length!");for(;a<i;)this[t+a]=r[a++]},Ue={entries:function(){return ae.call(we(this))},keys:function(){return ie.call(we(this))},values:function(){return re.call(we(this))}},Fe=function(e,t){return E(e)&&e[be]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},je=function(e,t){return Fe(e,t=m(t,!0))?p(2,e[t]):H(e,t)},Be=function(e,t,n){return!(Fe(e,t=m(t,!0))&&E(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?V(e,t,n):(e[t]=n.value,e)};me||(B.f=je,j.f=Be),o(o.S+o.F*!me,"Object",{getOwnPropertyDescriptor:je,defineProperty:Be}),a((function(){de.call({})}))&&(de=fe=function(){return ue.call(this)});var Ve=f({},Le);f(Ve,Ue),d(Ve,he,Ue.values),f(Ve,{slice:Me,set:Ne,constructor:function(){},toString:de,toLocaleString:Oe}),Ie(Ve,"buffer","b"),Ie(Ve,"byteOffset","o"),Ie(Ve,"byteLength","l"),Ie(Ve,"length","e"),V(Ve,ge,{get:function(){return this[be]}}),e.exports=function(e,t,n,l){var u=e+((l=!!l)?"Clamped":"")+"Array",p="get"+e,f="set"+e,h=i[u],v=h||{},m=h&&w(h),b=!h||!s.ABV,k={},T=h&&h.prototype,C=function(e,n){V(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[p](n*t+r.o,ke)}(this,n)},set:function(e){return function(e,n,r){var i=e._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[f](n*t+i.o,r,ke)}(this,n,e)},enumerable:!0})};b?(h=n((function(e,n,r,i){c(e,h,u,"_d");var a,o,s,l,p=0,f=0;if(E(n)){if(!(n instanceof Y||"ArrayBuffer"==(l=_(n))||"SharedArrayBuffer"==l))return be in n?xe(h,n):Pe.call(h,n);a=n,f=Ae(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw K("Wrong length!");if((o=v-f)<0)throw K("Wrong length!")}else if((o=g(i)*t)+f>v)throw K("Wrong length!");s=o/t}else s=y(n),a=new Y(o=s*t);for(d(e,"_d",{b:a,o:f,l:o,e:s,v:new q(a)});p<s;)C(e,p++)})),T=h.prototype=A(Ve),d(T,"constructor",h)):a((function(){h(1)}))&&a((function(){new h(-1)}))&&M((function(e){new h,new h(null),new h(1.5),new h(e)}),!0)||(h=n((function(e,n,r,i){var a;return c(e,h,u),E(n)?n instanceof Y||"ArrayBuffer"==(a=_(n))||"SharedArrayBuffer"==a?void 0!==i?new v(n,Ae(r,t),i):void 0!==r?new v(n,Ae(r,t)):new v(n):be in n?xe(h,n):Pe.call(h,n):new v(y(n))})),X(m!==Function.prototype?S(v).concat(S(m)):S(v),(function(e){e in h||d(h,e,v[e])})),h.prototype=T,r||(T.constructor=h));var x=T[he],I=!!x&&("values"==x.name||null==x.name),P=Ue.values;d(h,ye,!0),d(T,be,u),d(T,_e,!0),d(T,ve,h),(l?new h(1)[ge]==u:ge in T)||V(T,ge,{get:function(){return u}}),k[u]=h,o(o.G+o.W+o.F*(h!=v),k),o(o.S,u,{BYTES_PER_ELEMENT:t}),o(o.S+o.F*a((function(){v.of.call(h,1)})),u,{from:Pe,of:De}),"BYTES_PER_ELEMENT"in T||d(T,"BYTES_PER_ELEMENT",t),o(o.P,u,Le),N(u),o(o.P+o.F*Te,u,{set:Ne}),o(o.P+o.F*!I,u,Ue),r||T.toString==de||(T.toString=de),o(o.P+o.F*a((function(){new h(1).slice()})),u,{slice:Me}),o(o.P+o.F*(a((function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()}))||!a((function(){T.toLocaleString.call([1,2])}))),u,{toLocaleString:Oe}),L[u]=I?x:P,r||I||d(T,he,P)}}else e.exports=function(){}},function(e,t,n){var r=n(5);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(31)("meta"),i=n(5),a=n(15),o=n(10).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(3)((function(){return l(Object.preventExtensions({}))})),c=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&p.NEED&&l(e)&&!a(e,r)&&c(e),e}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(95),i=n(67);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(21),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},function(e,t,n){var r=n(4),i=n(96),a=n(67),o=n(66)("IE_PROTO"),s=function(){},l=function(){var e,t=n(64)("iframe"),r=a.length;for(t.style.display="none",n(68).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(95),i=n(67).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(15),i=n(11),a=n(66)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(6)("unscopables"),i=Array.prototype;null==i[r]&&n(16)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var r=n(5);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var r=n(10).f,i=n(15),a=n(6)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(1),i=n(26),a=n(3),o=n(70),s="["+o+"]",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),c=function(e,t,n){var i={},s=a((function(){return!!o[e]()||"​"!="​"[e]()})),l=i[e]=s?t(p):o[e];n&&(i[n]=l),r(r.P+r.F*s,"String",i)},p=c.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=c},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(2),i=n(10),a=n(9),o=n(6)("species");e.exports=function(e){var t=r[e];a&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(12);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),window._babelPolyfill||n(126);var r,i,a,o=function(){function e(){}return e.register=function(t){e._polyfills.push(t)},e.installAll=function(){for(var t=0;t<e._polyfills.length;t++)e._polyfills[t].install()},e}();r=o,a=[],(i=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(i="_polyfills"))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a},function(e,t,n){var r=n(25);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(25),i=n(6)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){var r=n(4),i=n(20),a=n(6)("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||null==(n=r(o)[a])?t:i(n)}},function(e,t,n){var r=n(8),i=n(2),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(32)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(17),i=n(7),a=n(34);e.exports=function(e){return function(t,n,o){var s,l=r(t),u=i(l.length),c=a(o,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(25);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(6)("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(4);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(49),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";n(113);var r=n(12),i=n(16),a=n(3),o=n(26),s=n(6),l=n(85),u=s("species"),c=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),p=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var d=s(e),f=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=f?!a((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!t})):void 0;if(!f||!h||"replace"===e&&!c||"split"===e&&!p){var g=/./[d],y=n(o,d,""[e],(function(e,t,n,r,i){return t.exec===l?f&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=y[0],m=y[1];r(String.prototype,e,v),i(RegExp.prototype,d,2==t?function(e,t){return m.call(e,this,t)}:function(e){return m.call(e,this)})}}},function(e,t,n){var r=n(19),i=n(108),a=n(80),o=n(4),s=n(7),l=n(82),u={},c={};(t=e.exports=function(e,t,n,p,d){var f,h,g,y,v=d?function(){return e}:l(e),m=r(n,p,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(a(v)){for(f=s(e.length);f>b;b++)if((y=t?m(o(h=e[b])[0],h[1]):m(e[b]))===u||y===c)return y}else for(g=v.call(e);!(h=g.next()).done;)if((y=i(g,m,h.value,t))===u||y===c)return y}).BREAK=u,t.RETURN=c},function(e,t,n){var r=n(2).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(2),i=n(1),a=n(12),o=n(45),s=n(29),l=n(59),u=n(44),c=n(5),p=n(3),d=n(55),f=n(40),h=n(71);e.exports=function(e,t,n,g,y,v){var m=r[e],b=m,_=y?"set":"add",E=b&&b.prototype,k={},T=function(e){var t=E[e];a(E,e,"delete"==e||"has"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(v||E.forEach&&!p((function(){(new b).entries().next()})))){var A=new b,w=A[_](v?{}:-0,1)!=A,S=p((function(){A.has(1)})),C=d((function(e){new b(e)})),x=!v&&p((function(){for(var e=new b,t=5;t--;)e[_](t,t);return!e.has(-0)}));C||((b=t((function(t,n){u(t,b,e);var r=h(new m,t,b);return null!=n&&l(n,y,r[_],r),r}))).prototype=E,E.constructor=b),(S||x)&&(T("delete"),T("has"),y&&T("get")),(x||w)&&T(_),v&&E.clear&&delete E.clear}else b=g.getConstructor(t,e,y,_),o(b.prototype,n),s.NEED=!0;return f(b,e),k[e]=b,i(i.G+i.W+i.F*(b!=m),k),v||g.setStrong(b,e,y),b}},function(e,t,n){for(var r,i=n(2),a=n(16),o=n(31),s=o("typed_array"),l=o("view"),u=!(!i.ArrayBuffer||!i.DataView),c=u,p=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");p<9;)(r=i[d[p++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:s,VIEW:l}},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function e(t,n,r,i){void 0===i&&(i={}),this.severity=t,this.category=n,this.code=r,this.data=i,e._logger.error("Category:"+n+" | Code:"+r+" |",i)};i(a,"Severity",{RECOVERABLE:1,CRITICAL:2}),i(a,"Category",{NETWORK:1,SERVICE:2,PROVIDER:3}),i(a,"Code",{UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,BAD_SERVER_RESPONSE:1005,MULTIREQUEST_API_ERROR:1006,API_RESPONSE_MISMATCH:1007,ERROR:2e3,BLOCK_ACTION:2001,MEDIA_STATUS_NOT_READY:2002,MISSING_MANDATORY_PARAMS:3e3,MISSING_PLAY_SOURCE:3001,METHOD_NOT_IMPLEMENTED:3002}),i(a,"_logger",Object(r.b)("Error"))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(8);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){function e(){this.metadata=new Map,this.sources=new r.a,this.type=e.Type.UNKNOWN}return e.prototype.toJSON=function(){return{id:this.id,name:this.name,sources:this.sources.toJSON(),duration:this.duration,dvrStatus:this.dvrStatus,status:this.status,metadata:this.metadata,type:this.type,poster:this.poster,assetReferenceType:this.assetReferenceType}},e}();i(a,"Type",{VOD:"Vod",LIVE:"Live",IMAGE:"Image",AUDIO:"Audio",UNKNOWN:"Unknown"}),i(a,"DvrStatus",{ON:1,OFF:0})},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return i}));var r={get:function(){return{VERSION:"",DEBUG:{value:"",name:""},ERROR:{value:"",name:""},INFO:{value:"",name:""},OFF:{value:"",name:""},TIME:{value:"",name:""},TRACE:{value:"",name:""},WARN:{value:"",name:""},createDefaultHandler:function(){},debug:function(){},enabledFor:function(){},error:function(){},get:function(){},getLevel:function(){},info:function(){},log:function(){},setHandler:function(){},setLevel:function(){},time:function(){},timeEnd:function(){},trace:function(){},useDefaults:function(){},warn:function(){}}}},i={};function a(e){e&&"function"==typeof e.getLogger&&(r.get=e.getLogger),e&&e.LogLevel&&(i=e.LogLevel)}function o(e){return r.get(e)}function s(e){return o(e).getLevel()}function l(e,t){o(t).setLevel(e)}t.b=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){function e(e){void 0===e&&(e=new Map),i(this,"retryConfig",{async:!0,timeout:0,maxAttempts:4}),i(this,"_attemptCounter",1),this.headers=e}var t=e.prototype;return t.getUrl=function(e){return e+"/service/"+this.service+(this.action?"/action/"+this.action:"")},t.doHttpRequest=function(){var e=this,t=new Promise((function(t,n){e._requestPromise={resolve:t,reject:n}}));return this.url||this._requestPromise.reject(new r.a(r.a.Severity.CRITICAL,r.a.Category.NETWORK,r.a.Code.MALFORMED_DATA_URI,{url:this.url})),this._createXHR(),t},t._createXHR=function(){var e=this,t=new XMLHttpRequest;t.onreadystatechange=function(){if(4===t.readyState&&200===t.status)try{var n=JSON.parse(t.responseText);return e.responseHeaders=e._getResponseHeaders(t),e._requestPromise.resolve(n)}catch(n){e._requestPromise.reject(e._createError(t,r.a.Code.BAD_SERVER_RESPONSE,{text:t.responseText}))}},t.open(this.method,this.url,this.retryConfig.async),this.retryConfig.async&&this.retryConfig.timeout&&(t.timeout=this.retryConfig.timeout);var n=performance.now();t.ontimeout=function(){e._handleError(t,r.a.Code.TIMEOUT,{timeout:(performance.now()-n)/1e3,statusText:t.statusText})},t.onerror=t.onabort=function(){e._handleError(t,r.a.Code.HTTP_ERROR,{text:t.responseText,statusText:t.statusText})},this.headers.forEach((function(e,n){t.setRequestHeader(n,e)})),t.send(this.params)},t._getResponseHeaders=function(e){return e.getAllResponseHeaders().split("\n").filter((function(e){return 0===e.toLowerCase().indexOf("x-")}))},t._handleError=function(e,t,n){var r=this._createError(e,t,n);if(e.onreadystatechange=function(){},e.onerror=function(){},e.ontimeout=function(){},e.onabort=function(){},!(this.retryConfig.maxAttempts&&this._attemptCounter<this.retryConfig.maxAttempts))return this._requestPromise.reject(r);this._attemptCounter++,this._createXHR()},t._createError=function(e,t,n){return Object.assign(n,{url:this.url,headers:this._getResponseHeaders(e),attempt:this._attemptCounter}),new r.a(r.a.Severity.CRITICAL,r.a.Category.NETWORK,t,n)},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){var t;(t="hasError")in this?Object.defineProperty(this,t,{value:!1,enumerable:!0,configurable:!0,writable:!0}):this[t]=!1,"KalturaAPIException"===e.objectType?(this.hasError=!0,this.error=new i(e.code,e.message)):e.error&&"KalturaAPIException"===e.error.objectType?(this.hasError=!0,this.error=new i(e.error.code,e.error.message)):this.data=e},i=function(e,t){this.code=e,this.message=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var r={DASH:{name:"dash",mimeType:"application/dash+xml",pathExt:"mpd"},HLS:{name:"hls",mimeType:"application/x-mpegURL",pathExt:"m3u8"},WVM:{name:"wvm",mimeType:"video/wvm",pathExt:"wvm"},MP4:{name:"mp4",mimeType:"video/mp4",pathExt:"mp4"},MP3:{name:"mp3",mimeType:"audio/mpeg",pathExt:"mp3"}},i=new Map([["mpegdash",r.DASH],["applehttp",r.HLS],["url",r.MP4]]);function a(e){var t=i.get(e);return!!t&&t.name===r.MP4.name}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r,i,a,o=function(e){this.scheme=e.scheme,this.licenseURL=e.licenseURL,this.certificate=e.certificate};a={"drm.PLAYREADY_CENC":"com.microsoft.playready","drm.WIDEVINE_CENC":"com.widevine.alpha","fairplay.FAIRPLAY":"com.apple.fairplay",WIDEVINE_CENC:"com.widevine.alpha",PLAYREADY_CENC:"com.microsoft.playready",FAIRPLAY:"com.apple.fairplay"},(i="Scheme")in(r=o)?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){this.message=e.message,this.code=e.code}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n(9);var r=n(5),i=(n(13),function(){function e(){this.progressive=[],this.dash=[],this.hls=[],this.image=[]}var t=e.prototype;return t.map=function(e,t){if(t)switch(t.name){case r.a.MP4.name:this.progressive.push(e);break;case r.a.DASH.name:this.dash.push(e);break;case r.a.HLS.name:this.hls.push(e)}},t.toJSON=function(){var e={progressive:[],dash:[],hls:[],image:[]};return this.progressive.forEach((function(t){return e.progressive.push(t.toJSON())})),this.hls.forEach((function(t){return e.hls.push(t.toJSON())})),this.dash.forEach((function(t){return e.dash.push(t.toJSON())})),e.image=this.image,e},e}())},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n(12);var r=function(){function e(){}return e.prototype.toJSON=function(){var e={id:this.id,url:this.url,mimetype:this.mimetype};return this.bandwidth&&(e.bandwidth=this.bandwidth),this.width&&(e.width=this.width),this.height&&(e.height=this.height),this.label&&(e.label=this.label),this.drmData&&this.drmData.length>0&&(e.drmData=[],this.drmData.forEach((function(t){Array.isArray(e.drmData)&&e.drmData.push(t.toJSON())}))),e},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n(11);var r=n(0);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){function e(e){i(this,"_loadersResponseMap",new Map),i(this,"_loaders",new Map),this._networkRetryConfig=e}var t=e.prototype;return t.add=function(e,t,n){var r=this,i=new e(t);if(i.isValid()){this._loaders.set(e.id,i);var a=this._multiRequest.requests.length,o=i.requests;this._multiRequest.retryConfig=this._networkRetryConfig,o.forEach((function(e){e.params=e.params||{},e.params.ks=e.params.ks||n,r._multiRequest.add(e)}));var s=Array.from(new Array(o.length),(function(e,t){return t+a}));this._loadersResponseMap.set(e.id,s)}},t.fetchData=function(e){var t=this;return new Promise((function(n,i){t._multiRequest.execute(e).then((function(e){t._multiResponse=e.response,t.prepareData(e.response).success?n(t._loaders):i(new r.a(r.a.Severity.CRITICAL,r.a.Category.NETWORK,r.a.Code.API_RESPONSE_MISMATCH,{headers:e.headers}))}),(function(e){i(e)}))}))},t.prepareData=function(e){var t=this;return this._loaders.forEach((function(n,r){var i=t._loadersResponseMap.get(r);try{i&&i.length>0&&(n.response=e.results.slice(i[0],i[i.length-1]+1))}catch(e){return{success:!1,error:e}}})),{success:!0,data:this._loaders}},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(3),i=n(2),a=n(4),o=n(0);function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return l(s(t=e.call.apply(e,[this].concat(r))||this),"requests",[]),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.add=function(e){var t;this.requests.push(e);var n={},r={service:e.service,action:e.action};return Object.assign(n,((t={})[this.requests.length]=Object.assign(r,e.params),t)),Object.assign(n,this.params),this.params=n,this},i.execute=function(e){var t=this;return new Promise((function(n,i){try{t.params=JSON.stringify(t.params)}catch(e){r._logger.error(""+e.message),i(new o.a(o.a.Severity.CRITICAL,o.a.Category.PROVIDER,o.a.Code.FAILED_PARSING_REQUEST,{error:e,params:t.params}))}t.doHttpRequest().then((function(r){var a=new c(r,e);a.success?n({headers:t.responseHeaders,response:a}):i(new o.a(o.a.Severity.CRITICAL,o.a.Category.NETWORK,o.a.Code.MULTIREQUEST_API_ERROR,{url:t.url,headers:t.responseHeaders,results:a.results}))}),(function(e){i(e)}))}))},r}(r.a);l(u,"_logger",Object(i.b)("MultiRequestBuilder"));var c=function e(t,n){void 0===n&&(n=!0),l(this,"results",[]);var r=t.result?t.result:t,i=(Array.isArray(r)?r:[r]).map((function(e){return new a.a(e)})),o=i.filter((function(e){return e.hasError}));o.forEach((function(t){e._logger.error("Service returned an error with error code: "+t.error.code+" and message: "+t.error.message+".")})),this.results=i,n&&o.length||o.length===this.results.length?this.success=!1:(this.results=this.results.filter((function(e){return!e.hasError})),this.success=!0)};l(c,"_logger",Object(i.b)("MultiRequestResult"))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e,t,n){this.licenseUrl=e,this.scheme=t,n&&(this.certificate=n)}return e.prototype.toJSON=function(){var e={licenseUrl:this.licenseUrl,scheme:this.scheme};return this.certificate&&(e.certificate=this.certificate),e},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(t){this.id=t.id,this.url=e.extractBaseThumbnailUrl(t.dataUrl),this.mimetype=""}return e.extractBaseThumbnailUrl=function(e){return e.match(".+entry_id/[a-zA-Z0-9_]+/")[0].slice(0,-1)},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=(n(10),n(0));function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var s=function(){function e(e,t){var n,i;i={async:!0,timeout:0,maxAttempts:4},(n="_networkRetryConfig")in this?Object.defineProperty(this,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[n]=i,Object(r.e)(e.logger),this._partnerId=e.partnerId,this._widgetId=e.widgetId,this._uiConfId=e.uiConfId,this._isAnonymous=!e.ks,this._ks=e.ks||"",this._playerVersion=t}o(e,[{key:"partnerId",get:function(){return this._partnerId}},{key:"widgetId",get:function(){return this._widgetId||this.defaultWidgetId}},{key:"defaultWidgetId",get:function(){return"_"+this._partnerId}},{key:"uiConfId",get:function(){return this._uiConfId}},{key:"ks",get:function(){return this._ks},set:function(e){this._ks=e}},{key:"playerVersion",get:function(){return this._playerVersion}},{key:"isAnonymous",get:function(){return this._isAnonymous}}]);var t=e.prototype;return t.getMediaConfig=function(e){return Promise.reject(new i.a(i.a.Severity.CRITICAL,i.a.Category.PROVIDER,i.a.Code.METHOD_NOT_IMPLEMENTED,{message:"getMediaConfig method must be implement by the derived class"}))},t.getPlaylistConfig=function(e){return Promise.reject(new i.a(i.a.Severity.CRITICAL,i.a.Category.PROVIDER,i.a.Code.METHOD_NOT_IMPLEMENTED,{message:"The provider does not support loading playlist by id"}))},t.getEntryListConfig=function(e){return Promise.reject(new i.a(i.a.Severity.CRITICAL,i.a.Category.PROVIDER,i.a.Code.METHOD_NOT_IMPLEMENTED,{message:"The provider does not support loading entry list"}))},t._verifyHasSources=function(e){if(0===e.hls.concat(e.dash,e.progressive,e.image).length)throw new i.a(i.a.Severity.CRITICAL,i.a.Category.SERVICE,i.a.Code.MISSING_PLAY_SOURCE,{action:"",messages:"No play source for entry id: "+e.id})},t.getLogLevel=function(e){return Object(r.c)(e)},t.setLogLevel=function(e,t){Object(r.d)(e,t)},o(e,[{key:"LogLevel",get:function(){return r.a}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function e(t){var n;return Array.isArray(t)?(n=t.length>0?t.slice(0):[]).forEach((function(t,r){("object"==typeof t&&t!=={}||Array.isArray(t)&&t.length>0)&&(n[r]=e(t))})):"object"==typeof t?(n=Object.assign({},t),Object.keys(n).forEach((function(t){("object"==typeof n[t]&&n[t]!=={}||Array.isArray(n[t])&&n[t].length>0)&&(n[t]=e(n[t]))}))):n=t,n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n(1);var r=function(){this.items=[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){this.url=e.url,this.clickThroughUrl=e.clickThroughUrl}},function(e,t,n){"use strict";n.r(t),n.d(t,"Provider",(function(){return ke})),n.d(t,"ProviderParser",(function(){return K})),n.d(t,"NAME",(function(){return Te})),n.d(t,"VERSION",(function(){return Ae})),n.d(t,"RequestBuilder",(function(){return G.a})),n.d(t,"ResponseTypes",(function(){return r}));var r={};n.r(r),n.d(r,"KalturaBaseEntryListResponse",(function(){return $})),n.d(r,"KalturaMediaEntry",(function(){return S})),n.d(r,"KalturaAccessControlModifyRequestHostRegexAction",(function(){return y})),n.d(r,"KalturaBumper",(function(){return m})),n.d(r,"KalturaFlavorAsset",(function(){return v})),n.d(r,"KalturaMediaEntries",(function(){return oe})),n.d(r,"KalturaMetadata",(function(){return T})),n.d(r,"KalturaMetadataListResponse",(function(){return A})),n.d(r,"KalturaPlaybackContext",(function(){return E})),n.d(r,"KalturaPlaybackSource",(function(){return h})),n.d(r,"KalturaPlaylist",(function(){return ae})),n.d(r,"KalturaRuleAction",(function(){return g})),n.d(r,"KalturaUIConfResponse",(function(){return ye})),n.d(r,"KalturaDrmPlaybackPluginData",(function(){return f.a})),n.d(r,"KalturaAccessControlMessage",(function(){return d.a})),n.d(r,"BaseServiceResult",(function(){return p.a}));var i,a,o,s=n(2),l=n(15),u={serviceUrl:"https://cdnapisec.kaltura.com/api_v3",cdnUrl:"https://cdnapisec.kaltura.com",serviceParams:{apiVersion:"3.3.0",format:1},useApiCaptions:!0,loadThumbnailWithKs:!1,replaceHostOnlyManifestUrls:!1},c=function(){function e(){}return e.set=function(e){e&&Object.assign(u,e)},e.get=function(){return Object(l.a)(u)},e}(),p=n(4),d=n(7),f=n(6),h=function(){function e(e){var t,n=this;t=[],"drm"in this?Object.defineProperty(this,"drm",{value:t,enumerable:!0,configurable:!0,writable:!0}):this.drm=t,this.format=e.format,this.deliveryProfileId=e.deliveryProfileId,this.url=e.url,this.protocols=e.protocols,this.flavorIds=e.flavorIds,e.drm&&e.drm.map((function(e){return n.drm.push(new f.a(e))}))}var t=e.prototype;return t.hasDrmData=function(){return this.drm&&this.drm.length>0},t.hasFlavorIds=function(){return!!this.flavorIds&&this.flavorIds.length>0},t.getProtocol=function(e){var t="";if(this.protocols&&this.protocols.length>0)this.protocols.split(",").forEach((function(n){n===e&&(t=n)}));else if("http"===e)return e;return t},e}(),g=function(e){this.type=e.type};o={DRM_POLICY:"drm.DRM_POLICY",BLOCK:1,PREVIEW:2,LIMIT_FLAVORS:3,ADD_TO_STORAGE:4,LIMIT_DELIVERY_PROFILES:5,SERVE_FROM_REMOTE_SERVER:6,REQUEST_HOST_REGEX:7,LIMIT_THUMBNAIL_CAPTURE:8},(a="Type")in(i=g)?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o;var y=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).pattern=t.pattern,n.replacement=t.replacement,n.replacmenServerNodeId=t.replacmenServerNodeId,n.checkAliveTimeoutMs=t.checkAliveTimeoutMs,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(g),v=function(e){this.id=e.id,this.flavorParamsId=e.flavorParamsId,this.fileExt=e.fileExt,this.bitrate=e.bitrate,this.width=e.width,this.height=e.height,this.id=e.id,this.frameRate=e.frameRate,this.isOriginal=e.isOriginal,this.isWeb=e.isWeb,this.containerFormat=e.containerFormat,this.videoCodecId=e.videoCodecId,this.status=e.status,this.language=e.language,this.label=e.label};!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(v,"Status",{ERROR:-1,QUEUED:0,CONVERTING:1,READY:2,DELETED:3,NOT_APPLICABLE:4,TEMP:5,WAIT_FOR_CONVERT:6,IMPORTING:7,VALIDATING:8,EXPORTING:9});var m=function(e){this.entryId=e.entryId,this.clickThroughUrl=e.url,this.sources=e.sources?e.sources.map((function(e){return new h(e)})):[]};function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e){var t,n;function r(t){var n;if(_(b(n=e.call(this,t)||this),"sources",[]),_(b(n),"actions",[]),_(b(n),"messages",[]),_(b(n),"flavorAssets",[]),_(b(n),"bumperData",[]),!n.hasError){var r=t.messages;r&&r.map((function(e){return n.messages.push(new d.a(e))}));var i=t.actions;i&&i.map((function(e){e.type===g.Type.REQUEST_HOST_REGEX?n.actions.push(new y(e)):n.actions.push(new g(e))}));var a=t.sources;a&&a.map((function(e){return n.sources.push(new h(e))}));var o=t.flavorAssets;o&&o.map((function(e){return n.flavorAssets.push(new v(e))}));var s=t.bumperData;s&&s.map((function(e){return n.bumperData.push(new m(e))}))}return n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.hasBlockAction=function(){return void 0!==this.getBlockAction()},i.getBlockAction=function(){return this.actions.find((function(e){return e.type===g.Type.BLOCK}))},i.getErrorMessages=function(){return this.messages},i.getRequestHostRegexAction=function(){var e=this.actions.find((function(e){return e.type===g.Type.REQUEST_HOST_REGEX}));if(e instanceof y)return e},r}(p.a);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=function(e){this.id=e.id,this.metadataProfileId=e.metadataProfileId,this.metadataProfileVersion=e.metadataProfileVersion,this.metadataProfileId=e.metadataProfileId,this.metadataObjectType=e.metadataObjectType,this.objectId=e.objectId,this.version=e.version,this.created=new Date(0),this.created.setUTCSeconds(e.createdAt),this.updated=new Date(0),this.updated.setUTCSeconds(e.updatedAt),this.status=e.status,this.xml=e.xml};k(T,"ObjectType",{AD_CUE_POINT:"adCuePointMetadata.AdCuePoint",ANNOTATION:"annotationMetadata.Annotation",CODE_CUE_POINT:"codeCuePointMetadata.CodeCuePoint",THUMB_CUE_POINT:"thumbCuePointMetadata.thumbCuePoint",ENTRY:1,CATEGORY:2,USER:3,PARTNER:4,DYNAMIC_OBJECT:5}),k(T,"Status",{VALID:1,INVALID:2,DELETED:3});var A=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).hasError||(n.totalCount=t.totalCount,n.totalCount>0&&(n.metas=[],t.objects.map((function(e){return n.metas.push(new T(e))})))),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(p.a);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){this.id=e.id,this.referenceId=e.referenceId,this.externalSourceType=e.externalSourceType,this.name=e.name,this.description=e.description,this.dataUrl=e.dataUrl,this.type=e.type,this.entryType=e.mediaType,this.flavorParamsIds=e.flavorParamsIds,this.duration=e.duration,this.poster=e.thumbnailUrl,this.status=e.status,this.dvrStatus=e.dvrStatus,this.tags=e.tags};w(S,"EntryType",{AUTOMATIC:{value:-1},EXTERNAL_MEDIA:{value:"externalMedia.externalMedia"},MEDIA_CLIP:{value:1},MIX:{value:2},PLAYLIST:{value:5},DATA:{value:6},LIVE_STREAM:{value:7},LIVE_CHANNEL:{value:8},DOCUMENT:{value:10}}),w(S,"MediaType",{VIDEO:{value:1},IMAGE:{value:2},AUDIO:{value:5},LIVE_STREAM_FLASH:{value:201},LIVE_STREAM_WINDOWS_MEDIA:{value:202},LIVE_STREAM_REAL_MEDIA:{value:203},LIVE_STREAM_QUICK_TIME:{value:204}}),w(S,"EntryStatus",{ERROR_IMPORTING:-2,ERROR_CONVERTING:-1,SCAN_FAILURE:"virusScan.ScanFailure",IMPORT:0,INFECTED:"virusScan.Infected",PRECONVERT:1,READY:2,DELETED:3,PENDING:4,MODERATE:5,BLOCKED:6,NO_CONTENT:7}),w(S,"EntryModerationStatus",{PENDING_MODERATION:1,APPROVED:2,REJECTED:3,FLAGGED_FOR_REVIEW:4,MODERATE:5,AUTO_APPROVED:6});var C=function(){function e(){}return e.build=function(e){var t=c.get(),n=t.serviceUrl.substr(0,t.serviceUrl.lastIndexOf("/")),r=e.partnerId,i=e.entryId,a=e.ks,o=e.uiConfId,s=e.format,l=e.protocol,u=e.extension,p=e.flavorIds;if(!n||isNaN(Number.parseInt(r))||!i||!s||!l)return"";var d=n;return n.endsWith("/")||(d+="/"),d+="p/"+r+"/sp/"+r+"00/playManifest/entryId/"+i+"/protocol/"+l+"/format/"+s,p?d+="/flavorIds/"+p:o&&(d+="/uiConfId/"+o),""!==a&&(d+="/ks/"+a),""!==u&&(d+="/a."+u),o&&""!==p&&(d+="?uiConfId="+o),d},e}(),x=function(){function e(){}return e.xmlToJson=function(e){var t={};if(1===e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var r=e.attributes.item(n);t["@attributes"][r.nodeName]=r.nodeValue}}}else 3===e.nodeType&&(t=e.nodeValue);if(e.hasChildNodes())for(var i=0;i<e.childNodes.length;i++){var a=e.childNodes.item(i),o=a.nodeName;if(void 0===t[o])t[o]=this.xmlToJson(a);else{if(void 0===t[o].push){var s=t[o];t[o]=[],t[o].push(s)}t[o].push(this.xmlToJson(a))}}return t},e}(),I=n(1),P=n(12),D=n(9),R=n(8),O=n(5),L=function(){this.items=[]},M=n(16),N=n(17),U={SRT:"1",DFXP:"2",WEBVTT:"3",CAP:"4"},F={3:"vtt",1:"srt"},j=function(){function e(){}return e.createConfig=function(e,t){return e.map((function(e){var n=e.url,r=F[e.format];return[U.DFXP,U.CAP].includes(e.format)&&(n=e.webVttUrl,r=F[U.WEBVTT]),n=H(n,t),{default:!!e.isDefault,type:r,language:e.languageCode,label:e.label,url:n}}))},e}(),B=n(13),V=function(){function e(){}return e.getMediaEntry=function(t,n,r,i){var a=new I.a,o=i.entry,s=i.playBackContextResult,l=i.metadataListResult,u=s.sources;return a.sources=e._getParsedSources(u,t,n,r,o,s),e._fillBaseData(a,o,l),a.type!==I.a.Type.LIVE&&c.get().useApiCaptions&&s.data.playbackCaptions&&(a.sources.captions=j.createConfig(s.data.playbackCaptions,t)),a},e.addKsToUrl=function(e,t){var n;return t?(n=-1!==e.split("?")[0].replace(/^.*[\\/]/,"").indexOf(".")?-1===e.indexOf("?")?"?ks=":"&ks=":"/ks/",e+n+t):e},e.getPlaylist=function(t){var n=new L,r=t.playlistData,i=t.playlistItems.entries;return n.id=r.id,n.name=r.name,n.description=r.description,n.poster=r.poster,i.forEach((function(t){var r=new I.a;e._fillBaseData(r,t),n.items.push(r)})),n},e.getEntryList=function(t){var n=new M.a;return t.playlistItems.entries.forEach((function(t){var r=new I.a;e._fillBaseData(r,t),n.items.push(r)})),n},e.getBumper=function(t,n,r){var i=t.playBackContextResult,a=i.bumperData[0];if(a){var o=(a&&a.sources).find((function(e){return Object(O.c)(e.format)}));if(o){var s=e._parseProgressiveSources(o,i,n,r,0,a.entryId);if(s[0])return new N.a({url:s[0].url,clickThroughUrl:a.clickThroughUrl})}}},e._fillBaseData=function(t,n,r){return t.poster=n.poster,t.id=n.id,t.duration=n.duration,t.metadata=e._parseMetadata(r),t.metadata.description=n.description||"",t.metadata.entryId=n.id||"",t.metadata.name=n.name||"",t.metadata.tags=n.tags||"",t.status=n.status,t.type=e._getEntryType(n.entryType,n.type),t.type===I.a.Type.LIVE&&(t.dvrStatus=n.dvrStatus),t},e._getEntryType=function(e,t){var n=I.a.Type.UNKNOWN;switch(e){case S.MediaType.IMAGE.value:n=I.a.Type.IMAGE;break;case S.MediaType.AUDIO.value:n=I.a.Type.AUDIO;break;default:switch(t){case S.EntryType.MEDIA_CLIP.value:n=I.a.Type.VOD;break;case S.EntryType.LIVE_STREAM.value:case S.EntryType.LIVE_CHANNEL.value:n=I.a.Type.LIVE;break;default:n=I.a.Type.UNKNOWN}}return n},e._getParsedSources=function(t,n,r,i,a,o){var s,l,u=new R.a;return a.type===S.EntryType.EXTERNAL_MEDIA.value?((l=new D.a).mimetype="video/youtube",l.url=a.referenceId,l.id=a.id+"_youtube",u.progressive.push(l)):a.entryType===S.MediaType.IMAGE.value?u.image.push(new B.a(a)):t&&t.length>0&&(t.filter((function(e){return!Object(O.c)(e.format)})).forEach((function(t){var s=e._parseAdaptiveSource(t,o,n,r,i,a.id);if(s){var l=O.b.get(t.format);u.map(s,l)}})),s=t.find((function(t){return Object(O.c)(t.format)&&""!==t.getProtocol(e._getBaseProtocol())})),u.progressive=e._parseProgressiveSources(s,o,n,r,i,a.id)),u},e._parseAdaptiveSource=function(t,n,r,i,a,o){var s=new D.a;if(t){var l="",u=O.b.get(t.format),c=t.getProtocol(e._getBaseProtocol()),p=t.deliveryProfileId,d=t.format,h="";if(u&&(h=u.pathExt,s.mimetype=u.mimeType),t.hasFlavorIds()?(!h&&n.flavorAssets&&n.flavorAssets.length>0&&(h=n.flavorAssets[0].fileExt),l=C.build({entryId:o,flavorIds:t.flavorIds,format:d,ks:r,partnerId:i,uiConfId:a,extension:h,protocol:c})):l=e.addKsToUrl(t.url,r),!l){var g="failed to create play url from source, discarding source: ("+o+"_"+p+"), "+d;return e._logger.warn(g),null}if(s.url=l,s.id=o+"_"+p+","+d,t.hasDrmData()){var y=[];t.drm.forEach((function(e){y.push(new P.a(e.licenseURL,f.a.Scheme[e.scheme],e.certificate))})),s.drmData=y}}return s},e._parseProgressiveSources=function(t,n,r,i,a,o){var s=[],l=[];if(t){var u=t.getProtocol(e._getBaseProtocol()),c=t.format,p=t.deliveryProfileId,d=p+","+c;n.flavorAssets.map((function(t){var n=new D.a;n.id=t.id+d,n.mimetype="mp3"===t.fileExt?"audio/mp3":"video/mp4",n.height=t.height,n.width=t.width,n.bandwidth=1024*t.bitrate,n.label=t.label||t.language;var f=C.build({entryId:o,flavorIds:t.id,format:c,ks:r,partnerId:i,uiConfId:a,extension:t.fileExt,protocol:u});if(""===f)return e._logger.warn("failed to create play url from source, discarding source: ("+o+"_"+p+"), "+c+"."),null;n.url=f,t.height&&t.width?s.push(n):l.push(n)}))}return l.length&&!s.length?l:s},e._parseMetadata=function(e){var t={};return e&&e.metas&&e.metas.length>0&&e.metas.forEach((function(e){if(e.xml){var n,r=new DOMParser;e.xml=e.xml.replace(/\r?\n|\r/g,""),e.xml=e.xml.replace(/>\s*/g,">"),e.xml=e.xml.replace(/>\s*/g,">"),n=r.parseFromString(e.xml,"text/xml");var i=x.xmlToJson(n);Object.keys(i.metadata).forEach((function(e){t[e]=i.metadata[e]["#text"]}))}})),t},e._getBaseProtocol=function(){var e=c.get(),t=/^https?:/.exec(e.cdnUrl),n=t?t[0]:document.location.protocol;return"string"==typeof n?n.slice(0,-1):"https"},e.hasBlockAction=function(e){return e.playBackContextResult.hasBlockAction()},e.getBlockAction=function(e){return e.playBackContextResult.getBlockAction()},e.getErrorMessages=function(e){return e.playBackContextResult.getErrorMessages()},e}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(V,"_logger",Object(s.b)("OVPProviderParser"));var H=V.addKsToUrl,K=V,G=n(3),z=n(11),W=function(){function e(){}return e.getMultiRequest=function(e,t,n){var r=c.get(),i=r.serviceParams;Object.assign(i,{ks:t,clientTag:"html5:v"+e}),n&&Object.assign(i,{partnerId:n});var a=new Map;a.set("Content-Type","application/json");var o=new z.a(a);return o.method="POST",o.service="multirequest",o.url=o.getUrl(r.serviceUrl),o.params=i,o},e}(),Y=function e(t){void 0===t&&(t={}),this.type=t.type||e.Type.INCLUDE_FIELDS,this.fields=t.fields||"id,referenceId,name,description,thumbnailUrl,dataUrl,duration,msDuration,flavorParamsIds,mediaType,type,tags,dvrStatus,externalSourceType,status"};!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Y,"Type",{INCLUDE_FIELDS:1,EXCLUDE_FIELDS:2});var q=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.getPlaybackContext=function(e,t,n){var r=new Map;r.set("Content-Type","application/json");var i=new G.a(r);return i.service="baseEntry",i.action="getPlaybackContext",i.method="POST",i.url=i.getUrl(e),i.tag="baseEntry-getPlaybackContext",i.params={entryId:n,ks:t,contextDataParams:{objectType:"KalturaContextDataParams",flavorTags:"all"}},i},r.list=function(e,t,n,i,a){var o=new Map;o.set("Content-Type","application/json");var s=new G.a(o);return s.service="baseEntry",s.action="list",s.method="POST",s.url=s.getUrl(e),s.tag="list",s.params=r.getEntryListReqParams(n,t,i,a),s},r.getEntryListReqParams=function(e,t,n,r){var i={};return e?i=n?{redirectFromEntryId:e}:{idEqual:e}:r&&(i={objectType:"KalturaBaseEntryFilter",referenceIdEqual:r}),{ks:t,filter:i,responseProfile:new Y}},r}(W),X=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.list=function(e,t,n){var r=new Map;r.set("Content-Type","application/json");var i=new G.a(r);i.service="metadata_metadata",i.action="list",i.method="POST",i.url=i.getUrl(e),i.tag="metadata_metadata-list";var a={objectType:"KalturaMetadataFilter",objectIdEqual:n,metadataObjectTypeEqual:"1"};return i.params={filter:a,ks:t},i},r}(W),$=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).hasError||(n.totalCount=t.totalCount,n.totalCount>0&&(n.entries=[],t.objects.map((function(e){return n.entries.push(new S(e))})))),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(p.a);function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t,n){return t&&Q(e.prototype,t),n&&Q(e,n),e}var J=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_response",{}),this.requests=this.buildRequests(e),this._entryId=e.entryId,this._referenceId=e.referenceId}Z(e,null,[{key:"id",get:function(){return"media"}}]);var t=e.prototype;return t.buildRequests=function(e){var t=c.get(),n=[];n.push(q.list(t.serviceUrl,e.ks,e.entryId,e.redirectFromEntryId,e.referenceId));var r="{1:result:ks}"===e.ks?"{2:result:objects:0:id}":"{1:result:objects:0:id}";return n.push(q.getPlaybackContext(t.serviceUrl,e.ks,r)),n.push(X.list(t.serviceUrl,e.ks,r)),n},t.isValid=function(){return!(!this._entryId&&!this._referenceId)},Z(e,[{key:"requests",set:function(e){this._requests=e},get:function(){return this._requests}},{key:"response",set:function(e){var t=new $(e[0].data);this._response.entry=t.entries[0],this._response.playBackContextResult=new E(e[1].data),this._response.metadataListResult=new A(e[2].data)},get:function(){return this._response}}]),e}(),ee=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.anonymousSession=function(e,t){var n=new Map;n.set("Content-Type","application/json");var r=new G.a(n);return r.service="session",r.action="startWidgetSession",r.method="POST",r.url=r.getUrl(e),r.tag="session-startWidget",r.params={widgetId:t},r},r}(W);function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ne=function(){var e,t,n;function r(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_response",{}),this.requests=this.buildRequests(e),this._widgetId=e.widgetId}e=r,n=[{key:"id",get:function(){return"session"}}],(t=[{key:"requests",set:function(e){this._requests=e},get:function(){return this._requests}},{key:"response",set:function(e){this._response.ks=e[0].data.ks},get:function(){return this._response.ks}}])&&te(e.prototype,t),n&&te(e,n);var i=r.prototype;return i.buildRequests=function(e){var t=c.get(),n=[];return n.push(ee.anonymousSession(t.serviceUrl,e.widgetId)),n},i.isValid=function(){return!!this._widgetId},r}(),re=function(e){var t,n;function r(t,n,r,i){var a;return void 0===r&&(r=""),(a=e.call(this,i)||this)._multiRequest=W.getMultiRequest(t,r,n),a}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(n(10).a),ie=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.execute=function(e,t,n){var r=new Map;r.set("Content-Type","application/json");var i=new G.a(r);return i.service="playlist",i.action="execute",i.method="POST",i.url=i.getUrl(e),i.tag="playlist-execute",i.params={ks:t,id:n,responseProfile:new Y},i},r.get=function(e,t,n){var r=new Map;r.set("Content-Type","application/json");var i=new G.a(r);return i.service="playlist",i.action="get",i.method="POST",i.url=i.getUrl(e),i.tag="playlist-get",i.params={ks:t,id:n,responseProfile:{fields:"id,name,description,thumbnailUrl",type:1}},i},r}(W),ae=function(e){this.id=e.id,this.name=e.name,this.description=e.description,this.poster=e.thumbnailUrl},oe=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).hasError||(n.entries=[],t.map((function(e){return n.entries.push(new S(e))}))),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(p.a);function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function le(e,t,n){return t&&se(e.prototype,t),n&&se(e,n),e}var ue=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_response",{}),this.requests=this.buildRequests(e),this._playlistId=e.playlistId}le(e,null,[{key:"id",get:function(){return"playlist"}}]);var t=e.prototype;return t.buildRequests=function(e){var t=c.get(),n=[];return n.push(ie.get(t.serviceUrl,e.ks,e.playlistId)),n.push(ie.execute(t.serviceUrl,e.ks,e.playlistId)),n},t.isValid=function(){return!!this._playlistId},le(e,[{key:"requests",set:function(e){this._requests=e},get:function(){return this._requests}},{key:"response",set:function(e){this._response.playlistData=new ae(e[0].data),this._response.playlistItems=new oe(e[1].data)},get:function(){return this._response}}]),e}(),ce=n(14);function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),e}var fe=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_response",{playlistItems:{entries:[]}}),this.requests=this.buildRequests(e),this._entries=e.entries}de(e,null,[{key:"id",get:function(){return"entry_list"}}]);var t=e.prototype;return t.buildRequests=function(e){var t=c.get(),n=[];return e.entries.forEach((function(r){n.push(q.list(t.serviceUrl,e.ks,r.entryId||r,e.redirectFromEntryId,r.referenceId))})),n},t.isValid=function(){return!(!this._entries||!this._entries.length)},de(e,[{key:"requests",set:function(e){this._requests=e},get:function(){return this._requests}},{key:"response",set:function(e){var t,n=this;e.forEach((function(e){t=new $(e.data),n._response.playlistItems.entries.push(t.entries[0])}))},get:function(){return this._response}}]),e}(),he=n(0);function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).hasError||(n.name=t.name,n.description=t.description,n.objTypeAsString=t.objTypeAsString,n.width=t.width,n.height=t.height,n.htmlParams=t.htmlParams,n.swfUrl=t.swfUrl,n.confFilePath=t.confFilePath,n.confFile=t.confFile,n.confFileFeatures=t.confFileFeatures,n.config=t.config,n.confVars=t.confVars,n.useCdn=t.useCdn,n.tags=t.tags,n.swfUrlVersion=t.swfUrlVersion,n.created=new Date(0),n.created.setUTCSeconds(t.createdAt),n.updated=new Date(0),n.updated.setUTCSeconds(t.updatedAt),n.html5Url=t.description,n.version=t.description,n.partnerTags=t.description,n.objType=t.description,n.creationMode=t.description),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(p.a);function ve(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function me(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){ve(a,r,i,o,s,"next",e)}function s(e){ve(a,r,i,o,s,"throw",e)}o(void 0)}))}}ge(ye,"Type",{PLAYER:1,CONTRIBUTION_WIZARD:2,SIMPLE_EDITOR:3,ADVANCED_EDITOR:4,PLAYLIST:5,APP_STUDIO:6,KRECORD:7,PLAYER_V3:8,KMC_ACCOUNT:9,KMC_ANALYTICS:10,KMC_CONTENT:11,KMC_DASHBOARD:12,KMC_LOGIN:13,PLAYER_SL:14,CLIENTSIDE_ENCODER:15,KMC_GENERAL:16,KMC_ROLES_AND_PERMISSIONS:17,CLIPPER:18,KSR:19,KUPLOAD:20,WEBCASTING:21}),ge(ye,"CreationMode",{WIZARD:2,ADVANCED:3});var be=function(){function e(){}return e._applyRegexAction=function(e,t){if(e){var n=new RegExp(e.pattern,"i");if(t.match(n))return t.replace(n,e.replacement+"/")}return t},e._isECDNUrlAlive=function(){var t=me(regeneratorRuntime.mark((function t(n,r){var i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=r+"/api_v3/service/system/action/ping/format/1",(a=new XMLHttpRequest).open("GET",i),a.timeout=n.checkAliveTimeoutMs,a.onreadystatechange=function(){if(4===a.readyState)return 200===a.status},a.ontimeout=function(){return e._logger.warn("Got timeout while pinging the ECDN url. the ping url: "+i),!1},a.send();case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),e.handleRegexAction=function(){var t=me(regeneratorRuntime.mark((function t(n,r){var i,a,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=c.get().cdnUrl,a=e._extractRegexActionFromData(r),o=e._getRegExp(a),t.t0=i&&a&&o&&i.match(o),!t.t0){t.next=11;break}if(t.t1=a.checkAliveTimeoutMs>0,!t.t1){t.next=10;break}return t.next=9,e._isECDNUrlAlive(a,i.replace(o,a.replacement));case 9:t.t1=!t.sent;case 10:t.t0=!t.t1;case 11:if(!t.t0){t.next=14;break}return e._replaceHostUrls(n,a),t.abrupt("return",n);case 14:return e._logger.debug("exiting handleRegexAction - not applying regex action."),t.abrupt("return",n);case 16:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),e._replaceHostUrls=function(t,n){e._logger.debug("Starting to modify urls...");var r=t.sources,i=r.hls,a=r.dash,o=r.progressive,s=r.image;[].concat(i,a,o,s).forEach((function(t){return t.url=e._applyRegexAction(n,t.url)})),c.get().replaceHostOnlyManifestUrls||(e._logger.debug("replaceHostOnlyManifestUrls flag is off - modifying captions and poster URLs"),r.captions&&r.captions.forEach((function(t){return t.url=e._applyRegexAction(n,t.url)})),"string"==typeof r.poster&&(r.poster=e._applyRegexAction(n,r.poster))),e._logger.debug("Finished modifying urls")},e._extractRegexActionFromData=function(e){var t,n;return null==(t=e.get(J.id))||null==(n=t.response)?void 0:n.playBackContextResult.getRequestHostRegexAction()},e._getRegExp=function(e){if(e&&e.pattern&&e.replacement)return new RegExp(e.pattern,"i")},e}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(be,"_logger",Object(s.b)("RegexActionHandler"));var _e=be;function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ke=function(e){var t,n;function r(t,n){var r;return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r=e.call(this,t,n)||this),"_filterOptionsConfig",{redirectFromEntryId:!0}),r._logger=Object(s.b)("OVPProvider"),c.set(t.env),r._setFilterOptionsConfig(t.filterOptions),r._networkRetryConfig=Object.assign(r._networkRetryConfig,t.networkRetryParameters),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i,a,o=r.prototype;return o.getMediaConfig=function(e){var t=this;return e.ks&&(this.ks=e.ks,this._isAnonymous=!1),this.widgetId!==this.defaultWidgetId&&(this._isAnonymous=!1),this._dataLoader=new re(this.playerVersion,this.partnerId,this.ks,this._networkRetryConfig),new Promise((function(n,r){var i=e.entryId,a=e.referenceId;if(i||a){var o=t.ks;o||(o="{1:result:ks}",t._dataLoader.add(ne,{widgetId:t.widgetId}));var s=t._getEntryRedirectFilter(e);return t._dataLoader.add(J,{entryId:i,ks:o,redirectFromEntryId:s,referenceId:a}),t._dataLoader.fetchData().then((function(e){try{var i=t._parseDataFromResponse(e);_e.handleRegexAction(i,e).then(n)}catch(e){r(e)}}),(function(e){r(e)}))}r(new he.a(he.a.Severity.CRITICAL,he.a.Category.PROVIDER,he.a.Code.MISSING_MANDATORY_PARAMS,{message:"missing entry id"}))}))},o.doRequest=function(e,t){var n=this,r=t||this.ks,i=new re(this.playerVersion,this.partnerId,r,this._networkRetryConfig);return new Promise((function(t,a){return r||i.add(ne,{widgetId:n.widgetId}),e.forEach((function(e){i.add(e.loader,e.params,r||"{1:result:ks}")})),i.fetchData().then((function(e){try{t(e)}catch(e){a(e)}}),(function(e){a(e)}))}))},o._getEntryRedirectFilter=function(e){return"boolean"==typeof e.redirectFromEntryId?e.redirectFromEntryId:"boolean"!=typeof this._filterOptionsConfig.redirectFromEntryId||this._filterOptionsConfig.redirectFromEntryId},o._setFilterOptionsConfig=function(e){e&&"boolean"==typeof e.redirectFromEntryId&&(this._filterOptionsConfig.redirectFromEntryId=e.redirectFromEntryId)},o._parseDataFromResponse=function(e){this._logger.debug("Data parsing started");var t={session:{isAnonymous:this._isAnonymous,partnerId:this.partnerId},sources:this._getDefaultSourcesObject(),plugins:{}};if(this.uiConfId&&(t.session.uiConfId=this.uiConfId),e){if(e.has(ne.id)){var n=e.get(ne.id);n&&n.response&&(t.session.ks=n.response,this.widgetId!==this.defaultWidgetId&&(this.ks=t.session.ks))}else t.session.ks=this.ks;if(e.has(J.id)){var r=e.get(J.id);if(r&&r.response){var i=r.response;if(K.hasBlockAction(i))throw new he.a(he.a.Severity.CRITICAL,he.a.Category.SERVICE,he.a.Code.BLOCK_ACTION,{action:K.getBlockAction(i),messages:K.getErrorMessages(i)});var a=K.getMediaEntry(this.isAnonymous?"":this.ks,this.partnerId,this.uiConfId,i);Object.assign(t.sources,this._getSourcesObject(a)),this._verifyMediaStatus(a),this._verifyHasSources(t.sources);var o=K.getBumper(i,this.isAnonymous?"":this.ks,this.partnerId);o&&Object.assign(t.plugins,{bumper:o})}}}return this._logger.debug("Data parsing finished",t),t},o._verifyMediaStatus=function(e){if([S.EntryStatus.IMPORT,S.EntryStatus.PRECONVERT].includes(e.status))throw new he.a(he.a.Severity.CRITICAL,he.a.Category.SERVICE,he.a.Code.MEDIA_STATUS_NOT_READY,{messages:"Status of entry id "+e.id+" is "+e.status+" and is still being imported or converted",data:{status:status}})},o.getPlaylistConfig=function(e){var t=this;return e.ks&&(this.ks=e.ks,this._isAnonymous=!1),this.widgetId!==this.defaultWidgetId&&(this._isAnonymous=!1),this._dataLoader=new re(this.playerVersion,this.partnerId,this.ks,this._networkRetryConfig),new Promise((function(n,r){var i=e.playlistId;if(i){var a=t.ks;a||(a="{1:result:ks}",t._dataLoader.add(ne,{widgetId:t.widgetId})),t._dataLoader.add(ue,{playlistId:i,ks:a}),t._dataLoader.fetchData().then((function(e){n(t._parsePlaylistDataFromResponse(e))}),(function(e){r(e)}))}else r({success:!1,data:"Missing mandatory parameter"})}))},o._parsePlaylistDataFromResponse=function(e){var t=this;this._logger.debug("Data parsing started");var n=this._getPlaylistObject();if(e&&e.has(ue.id)){var r=e.get(ue.id);if(r&&r.response){var i=K.getPlaylist(r.response);n.id=i.id,n.poster=i.poster,n.metadata.name=i.name,n.metadata.description=i.description,i.items.forEach((function(e){return n.items.push({sources:t._getSourcesObject(e)})}))}}return this._logger.debug("Data parsing finished",n),n},o.getEntryListConfig=function(e){var t=this;return e.ks&&(this.ks=e.ks,this._isAnonymous=!1),this.widgetId!==this.defaultWidgetId&&(this._isAnonymous=!1),this._dataLoader=new re(this.playerVersion,this.partnerId,this.ks,this._networkRetryConfig),new Promise((function(n,r){var i=e.entries;if(i&&i.length){var a=t.ks;a||(a="{1:result:ks}",t._dataLoader.add(ne,{widgetId:t.widgetId}));var o=t._getEntryRedirectFilter(e);t._dataLoader.add(fe,{entries:i,ks:a,redirectFromEntryId:o}),t._dataLoader.fetchData(!1).then((function(e){n(t._parseEntryListDataFromResponse(e))}),(function(e){r(e)}))}else r({success:!1,data:"Missing mandatory parameter"})}))},o._parseEntryListDataFromResponse=function(e){var t=this;this._logger.debug("Data parsing started");var n=this._getPlaylistObject();if(e&&e.has(fe.id)){var r=e.get(fe.id);r&&r.response&&K.getEntryList(r.response).items.forEach((function(e){return n.items.push({sources:t._getSourcesObject(e)})}))}return this._logger.debug("Data parsing finished",n),n},o._getPlaylistObject=function(){return{id:"",metadata:{name:"",description:""},poster:"",items:[]}},o._getDefaultSourcesObject=function(){return{hls:[],dash:[],progressive:[],image:[],id:"",duration:0,type:I.a.Type.UNKNOWN,poster:"",dvr:!1,vr:null,metadata:{name:"",description:"",tags:""}}},o._getSourcesObject=function(e){var t=this._getDefaultSourcesObject(),n=e.sources.toJSON();return t.hls=n.hls,t.dash=n.dash,t.progressive=n.progressive,t.image=n.image,t.id=e.id,t.duration=e.duration,t.type=e.type,t.dvr=!!e.dvrStatus,t.poster=e.poster,e.sources.captions&&(t.captions=e.sources.captions),e.metadata&&"string"==typeof e.metadata.tags&&e.metadata.tags.search(/\b360\b/)>-1&&(t.vr={}),Object.assign(t.metadata,e.metadata),t},i=r,(a=[{key:"env",get:function(){return c.get()}}])&&Ee(i.prototype,a),r}(ce.a),Te="@playkit-js/playkit-js-providers-ovp",Ae="2.39.3"}])},function(e,t,n){var r=n(5),i=n(2).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){t.f=n(6)},function(e,t,n){var r=n(51)("keys"),i=n(31);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(5),i=n(4),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(19)(Function.call,n(22).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t){e.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(e,t,n){var r=n(5),i=n(69).set;e.exports=function(e,t,n){var a,o=t.constructor;return o!==n&&"function"==typeof o&&(a=o.prototype)!==n.prototype&&r(a)&&i&&i(e,a),e}},function(e,t,n){"use strict";var r=n(21),i=n(26);e.exports=function(e){var t=String(i(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var r=n(21),i=n(26);e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===u||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(32),i=n(1),a=n(12),o=n(16),s=n(42),l=n(107),u=n(40),c=n(37),p=n(6)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,h,g,y,v){l(n,t,h);var m,b,_,E=function(e){if(!d&&e in w)return w[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",T="values"==g,A=!1,w=e.prototype,S=w[p]||w["@@iterator"]||g&&w[g],C=S||E(g),x=g?T?E("entries"):C:void 0,I="Array"==t&&w.entries||S;if(I&&(_=c(I.call(new e)))!==Object.prototype&&_.next&&(u(_,k,!0),r||"function"==typeof _[p]||o(_,p,f)),T&&S&&"values"!==S.name&&(A=!0,C=function(){return S.call(this)}),r&&!v||!d&&!A&&w[p]||o(w,p,C),s[t]=C,s[k]=f,g)if(m={values:T?C:E("values"),keys:y?C:E("keys"),entries:x},v)for(b in m)b in w||a(w,b,m[b]);else i(i.P+i.F*(d||A),t,m);return m}},function(e,t,n){var r=n(78),i=n(26);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(5),i=n(25),a=n(6)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(6)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(42),i=n(6)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},function(e,t,n){"use strict";var r=n(10),i=n(30);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(49),i=n(6)("iterator"),a=n(42);e.exports=n(8).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},function(e,t,n){"use strict";var r=n(11),i=n(34),a=n(7);e.exports=function(e){for(var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(38),i=n(112),a=n(42),o=n(17);e.exports=n(76)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r,i,a=n(56),o=RegExp.prototype.exec,s=String.prototype.replace,l=o,u=(r=/a/,i=/b*/g,o.call(r,"a"),o.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(u||c)&&(l=function(e){var t,n,r,i,l=this;return c&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),u&&(t=l.lastIndex),r=o.call(l,e),u&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),c&&r&&r.length>1&&s.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=l},function(e,t,n){"use strict";var r=n(75)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r,i,a,o=n(19),s=n(101),l=n(68),u=n(64),c=n(2),p=c.process,d=c.setImmediate,f=c.clearImmediate,h=c.MessageChannel,g=c.Dispatch,y=0,v={},m=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){m.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++y]=function(){s("function"==typeof e?e:Function(e),t)},r(y),y},f=function(e){delete v[e]},"process"==n(25)(p)?r=function(e){p.nextTick(o(m,e,1))}:g&&g.now?r=function(e){g.now(o(m,e,1))}:h?(a=(i=new h).port2,i.port1.onmessage=b,r=o(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),m.call(e)}}:function(e){setTimeout(o(m,e,1),0)}),e.exports={set:d,clear:f}},function(e,t,n){"use strict";var r=n(2),i=n(9),a=n(32),o=n(62),s=n(16),l=n(45),u=n(3),c=n(44),p=n(21),d=n(7),f=n(120),h=n(36).f,g=n(10).f,y=n(83),v=n(40),m=r.ArrayBuffer,b=r.DataView,_=r.Math,E=r.RangeError,k=r.Infinity,T=m,A=_.abs,w=_.pow,S=_.floor,C=_.log,x=_.LN2,I=i?"_b":"buffer",P=i?"_l":"byteLength",D=i?"_o":"byteOffset";function R(e,t,n){var r,i,a,o=new Array(n),s=8*n-t-1,l=(1<<s)-1,u=l>>1,c=23===t?w(2,-24)-w(2,-77):0,p=0,d=e<0||0===e&&1/e<0?1:0;for((e=A(e))!=e||e===k?(i=e!=e?1:0,r=l):(r=S(C(e)/x),e*(a=w(2,-r))<1&&(r--,a*=2),(e+=r+u>=1?c/a:c*w(2,1-u))*a>=2&&(r++,a/=2),r+u>=l?(i=0,r=l):r+u>=1?(i=(e*a-1)*w(2,t),r+=u):(i=e*w(2,u-1)*w(2,t),r=0));t>=8;o[p++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;o[p++]=255&r,r/=256,s-=8);return o[--p]|=128*d,o}function O(e,t,n){var r,i=8*n-t-1,a=(1<<i)-1,o=a>>1,s=i-7,l=n-1,u=e[l--],c=127&u;for(u>>=7;s>0;c=256*c+e[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===c)c=1-o;else{if(c===a)return r?NaN:u?-k:k;r+=w(2,t),c-=o}return(u?-1:1)*r*w(2,c-t)}function L(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function M(e){return[255&e]}function N(e){return[255&e,e>>8&255]}function U(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function F(e){return R(e,52,8)}function j(e){return R(e,23,4)}function B(e,t,n){g(e.prototype,t,{get:function(){return this[n]}})}function V(e,t,n,r){var i=f(+n);if(i+t>e[P])throw E("Wrong index!");var a=e[I]._b,o=i+e[D],s=a.slice(o,o+t);return r?s:s.reverse()}function H(e,t,n,r,i,a){var o=f(+n);if(o+t>e[P])throw E("Wrong index!");for(var s=e[I]._b,l=o+e[D],u=r(+i),c=0;c<t;c++)s[l+c]=u[a?c:t-c-1]}if(o.ABV){if(!u((function(){m(1)}))||!u((function(){new m(-1)}))||u((function(){return new m,new m(1.5),new m(NaN),"ArrayBuffer"!=m.name}))){for(var K,G=(m=function(e){return c(this,m),new T(f(e))}).prototype=T.prototype,z=h(T),W=0;z.length>W;)(K=z[W++])in m||s(m,K,T[K]);a||(G.constructor=m)}var Y=new b(new m(2)),q=b.prototype.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||l(b.prototype,{setInt8:function(e,t){q.call(this,e,t<<24>>24)},setUint8:function(e,t){q.call(this,e,t<<24>>24)}},!0)}else m=function(e){c(this,m,"ArrayBuffer");var t=f(e);this._b=y.call(new Array(t),0),this[P]=t},b=function(e,t,n){c(this,b,"DataView"),c(e,m,"DataView");var r=e[P],i=p(t);if(i<0||i>r)throw E("Wrong offset!");if(i+(n=void 0===n?r-i:d(n))>r)throw E("Wrong length!");this[I]=e,this[D]=i,this[P]=n},i&&(B(m,"byteLength","_l"),B(b,"buffer","_b"),B(b,"byteLength","_l"),B(b,"byteOffset","_o")),l(b.prototype,{getInt8:function(e){return V(this,1,e)[0]<<24>>24},getUint8:function(e){return V(this,1,e)[0]},getInt16:function(e){var t=V(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=V(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return L(V(this,4,e,arguments[1]))},getUint32:function(e){return L(V(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return O(V(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return O(V(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){H(this,1,e,M,t)},setUint8:function(e,t){H(this,1,e,M,t)},setInt16:function(e,t){H(this,2,e,N,t,arguments[2])},setUint16:function(e,t){H(this,2,e,N,t,arguments[2])},setInt32:function(e,t){H(this,4,e,U,t,arguments[2])},setUint32:function(e,t){H(this,4,e,U,t,arguments[2])},setFloat32:function(e,t){H(this,4,e,j,t,arguments[2])},setFloat64:function(e,t){H(this,8,e,F,t,arguments[2])}});v(m,"ArrayBuffer"),v(b,"DataView"),s(b.prototype,o.VIEW,!0),t.ArrayBuffer=m,t.DataView=b},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(125)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=!n(9)&&!n(3)((function(){return 7!=Object.defineProperty(n(64)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(2),i=n(8),a=n(32),o=n(65),s=n(10).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(15),i=n(17),a=n(52)(!1),o=n(66)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=o&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~a(u,n)||u.push(n));return u}},function(e,t,n){var r=n(10),i=n(4),a=n(33);e.exports=n(9)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,l=0;s>l;)r.f(e,n=o[l++],t[n]);return e}},function(e,t,n){var r=n(17),i=n(36).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},function(e,t,n){"use strict";var r=n(9),i=n(33),a=n(53),o=n(48),s=n(11),l=n(47),u=Object.assign;e.exports=!u||n(3)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){for(var n=s(e),u=arguments.length,c=1,p=a.f,d=o.f;u>c;)for(var f,h=l(arguments[c++]),g=p?i(h).concat(p(h)):i(h),y=g.length,v=0;y>v;)f=g[v++],r&&!d.call(h,f)||(n[f]=h[f]);return n}:u},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(20),i=n(5),a=n(101),o=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),s=function(){var r=n.concat(o.call(arguments));return this instanceof s?l(t,r.length,r):a(t,r,e)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(2).parseInt,i=n(41).trim,a=n(70),o=/^[-+]?0[xX]/;e.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(o.test(n)?16:10))}:r},function(e,t,n){var r=n(2).parseFloat,i=n(41).trim;e.exports=1/r(n(70)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(25);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(5),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var r=n(35),i=n(30),a=n(40),o={};n(16)(o,n(6)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(4);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},function(e,t,n){var r=n(220);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(20),i=n(11),a=n(47),o=n(7);e.exports=function(e,t,n,s,l){r(t);var u=i(e),c=a(u),p=o(u.length),d=l?p-1:0,f=l?-1:1;if(n<2)for(;;){if(d in c){s=c[d],d+=f;break}if(d+=f,l?d<0:p<=d)throw TypeError("Reduce of empty array with no initial value")}for(;l?d>=0:p>d;d+=f)d in c&&(s=t(s,c[d],d,u));return s}},function(e,t,n){"use strict";var r=n(11),i=n(34),a=n(7);e.exports=[].copyWithin||function(e,t){var n=r(this),o=a(n.length),s=i(e,o),l=i(t,o),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?o:i(u,o))-l,o-s),p=1;for(l<s&&s<l+c&&(p=-1,l+=c-1,s+=c-1);c-- >0;)l in n?n[s]=n[l]:delete n[s],s+=p,l+=p;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(85);n(1)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){n(9)&&"g"!=/./g.flags&&n(10).f(RegExp.prototype,"flags",{configurable:!0,get:n(56)})},function(e,t,n){"use strict";var r,i,a,o,s=n(32),l=n(2),u=n(19),c=n(49),p=n(1),d=n(5),f=n(20),h=n(44),g=n(59),y=n(50),v=n(87).set,m=n(240)(),b=n(116),_=n(241),E=n(60),k=n(117),T=l.TypeError,A=l.process,w=A&&A.versions,S=w&&w.v8||"",C=l.Promise,x="process"==c(A),I=function(){},P=i=b.f,D=!!function(){try{var e=C.resolve(1),t=(e.constructor={})[n(6)("species")]=function(e){e(I,I)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then(I)instanceof t&&0!==S.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(e){}}(),R=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},O=function(e,t){if(!e._n){e._n=!0;var n=e._c;m((function(){for(var r=e._v,i=1==e._s,a=0,o=function(t){var n,a,o,s=i?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(i||(2==e._h&&N(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),o=!0)),n===t.promise?u(T("Promise-chain cycle")):(a=R(n))?a.call(n,l,u):l(n)):u(r)}catch(e){c&&!o&&c.exit(),u(e)}};n.length>a;)o(n[a++]);e._c=[],e._n=!1,t&&!e._h&&L(e)}))}},L=function(e){v.call(l,(function(){var t,n,r,i=e._v,a=M(e);if(a&&(t=_((function(){x?A.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=x||M(e)?2:1),e._a=void 0,a&&t.e)throw t.v}))},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){v.call(l,(function(){var t;x?A.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},U=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw T("Promise can't be resolved itself");(t=R(e))?m((function(){var r={_w:n,_d:!1};try{t.call(e,u(F,r,1),u(U,r,1))}catch(e){U.call(r,e)}})):(n._v=e,n._s=1,O(n,!1))}catch(e){U.call({_w:n,_d:!1},e)}}};D||(C=function(e){h(this,C,"Promise","_h"),f(e),r.call(this);try{e(u(F,this,1),u(U,this,1))}catch(e){U.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(45)(C.prototype,{then:function(e,t){var n=P(y(this,C));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=x?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r;this.promise=e,this.resolve=u(F,e,1),this.reject=u(U,e,1)},b.f=P=function(e){return e===C||e===o?new a(e):i(e)}),p(p.G+p.W+p.F*!D,{Promise:C}),n(40)(C,"Promise"),n(43)("Promise"),o=n(8).Promise,p(p.S+p.F*!D,"Promise",{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),p(p.S+p.F*(s||!D),"Promise",{resolve:function(e){return k(s&&this===o?C:this,e)}}),p(p.S+p.F*!(D&&n(55)((function(e){C.all(e).catch(I)}))),"Promise",{all:function(e){var t=this,n=P(t),r=n.resolve,i=n.reject,a=_((function(){var n=[],a=0,o=1;g(e,!1,(function(e){var s=a++,l=!1;n.push(void 0),o++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--o||r(n))}),i)})),--o||r(n)}));return a.e&&i(a.v),n.promise},race:function(e){var t=this,n=P(t),r=n.reject,i=_((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},function(e,t,n){"use strict";var r=n(20);function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},function(e,t,n){var r=n(4),i=n(5),a=n(116);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(10).f,i=n(35),a=n(45),o=n(19),s=n(44),l=n(59),u=n(76),c=n(112),p=n(43),d=n(9),f=n(29).fastKey,h=n(39),g=d?"_s":"size",y=function(e,t){var n,r=f(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[g]=0,null!=r&&l(r,n,e[u],e)}));return a(c.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=h(this,t),r=y(n,e);if(r){var i=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=i),i&&(i.p=a),n._f==r&&(n._f=i),n._l==r&&(n._l=a),n[g]--}return!!r},forEach:function(e){h(this,t);for(var n,r=o(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!y(h(this,t),e)}}),d&&r(c.prototype,"size",{get:function(){return h(this,t)[g]}}),c},def:function(e,t,n){var r,i,a=y(e,t);return a?a.v=n:(e._l=a={i:i=f(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=a),r&&(r.n=a),e[g]++,"F"!==i&&(e._i[i]=a)),e},getEntry:y,setStrong:function(e,t,n){u(e,t,(function(e,n){this._t=h(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))}),n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){"use strict";var r=n(45),i=n(29).getWeak,a=n(4),o=n(5),s=n(44),l=n(59),u=n(24),c=n(15),p=n(39),d=u(5),f=u(6),h=0,g=function(e){return e._l||(e._l=new y)},y=function(){this.a=[]},v=function(e,t){return d(e.a,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,a){var u=e((function(e,r){s(e,u,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=r&&l(r,n,e[a],e)}));return r(u.prototype,{delete:function(e){if(!o(e))return!1;var n=i(e);return!0===n?g(p(this,t)).delete(e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!o(e))return!1;var n=i(e);return!0===n?g(p(this,t)).has(e):n&&c(n,this._i)}}),u},def:function(e,t,n){var r=i(a(t),!0);return!0===r?g(e).set(t,n):r[e._i]=n,e},ufstore:g}},function(e,t,n){var r=n(21),i=n(7);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(36),i=n(53),a=n(4),o=n(2).Reflect;e.exports=o&&o.ownKeys||function(e){var t=r.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(7),i=n(72),a=n(26);e.exports=function(e,t,n,o){var s=String(a(e)),l=s.length,u=void 0===n?" ":String(n),c=r(t);if(c<=l||""==u)return s;var p=c-l,d=i.call(u,Math.ceil(p/u.length));return d.length>p&&(d=d.slice(0,p)),o?d+s:s+d}},function(e,t,n){var r=n(9),i=n(33),a=n(17),o=n(48).f;e.exports=function(e){return function(t){for(var n,s=a(t),l=i(s),u=l.length,c=0,p=[];u>c;)n=l[c++],r&&!o.call(s,n)||p.push(e?[n,s[n]]:s[n]);return p}}},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n(127);var r,i=(r=n(299))&&r.__esModule?r:{default:r};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i.default._babelPolyfill=!0},function(e,t,n){"use strict";n(128),n(271),n(273),n(276),n(278),n(280),n(282),n(284),n(286),n(288),n(290),n(292),n(294),n(298)},function(e,t,n){n(129),n(132),n(133),n(134),n(135),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(210),n(211),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(84),n(234),n(113),n(235),n(114),n(236),n(237),n(238),n(239),n(115),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),e.exports=n(8)},function(e,t,n){"use strict";var r=n(2),i=n(15),a=n(9),o=n(1),s=n(12),l=n(29).KEY,u=n(3),c=n(51),p=n(40),d=n(31),f=n(6),h=n(65),g=n(94),y=n(131),v=n(54),m=n(4),b=n(5),_=n(11),E=n(17),k=n(28),T=n(30),A=n(35),w=n(97),S=n(22),C=n(53),x=n(10),I=n(33),P=S.f,D=x.f,R=w.f,O=r.Symbol,L=r.JSON,M=L&&L.stringify,N=f("_hidden"),U=f("toPrimitive"),F={}.propertyIsEnumerable,j=c("symbol-registry"),B=c("symbols"),V=c("op-symbols"),H=Object.prototype,K="function"==typeof O&&!!C.f,G=r.QObject,z=!G||!G.prototype||!G.prototype.findChild,W=a&&u((function(){return 7!=A(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=P(H,t);r&&delete H[t],D(e,t,n),r&&e!==H&&D(H,t,r)}:D,Y=function(e){var t=B[e]=A(O.prototype);return t._k=e,t},q=K&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},X=function(e,t,n){return e===H&&X(V,t,n),m(e),t=k(t,!0),m(n),i(B,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=A(n,{enumerable:T(0,!1)})):(i(e,N)||D(e,N,T(1,{})),e[N][t]=!0),W(e,t,n)):D(e,t,n)},$=function(e,t){m(e);for(var n,r=y(t=E(t)),i=0,a=r.length;a>i;)X(e,n=r[i++],t[n]);return e},Q=function(e){var t=F.call(this,e=k(e,!0));return!(this===H&&i(B,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,N)&&this[N][e])||t)},Z=function(e,t){if(e=E(e),t=k(t,!0),e!==H||!i(B,t)||i(V,t)){var n=P(e,t);return!n||!i(B,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=R(E(e)),r=[],a=0;n.length>a;)i(B,t=n[a++])||t==N||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===H,r=R(n?V:E(e)),a=[],o=0;r.length>o;)!i(B,t=r[o++])||n&&!i(H,t)||a.push(B[t]);return a};K||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(V,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),W(this,e,T(1,n))};return a&&z&&W(H,e,{configurable:!0,set:t}),Y(e)}).prototype,"toString",(function(){return this._k})),S.f=Z,x.f=X,n(36).f=w.f=J,n(48).f=Q,C.f=ee,a&&!n(32)&&s(H,"propertyIsEnumerable",Q,!0),h.f=function(e){return Y(f(e))}),o(o.G+o.W+o.F*!K,{Symbol:O});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var re=I(f.store),ie=0;re.length>ie;)g(re[ie++]);o(o.S+o.F*!K,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=O(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),o(o.S+o.F*!K,"Object",{create:function(e,t){return void 0===t?A(e):$(A(e),t)},defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee});var ae=u((function(){C.f(1)}));o(o.S+o.F*ae,"Object",{getOwnPropertySymbols:function(e){return C.f(_(e))}}),L&&o(o.S+o.F*(!K||u((function(){var e=O();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!q(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,M.apply(L,r)}}),O.prototype[U]||n(16)(O.prototype,U,O.prototype.valueOf),p(O,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(e,t,n){e.exports=n(51)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(33),i=n(53),a=n(48);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),l=a.f,u=0;s.length>u;)l.call(e,o=s[u++])&&t.push(o);return t}},function(e,t,n){var r=n(1);r(r.S,"Object",{create:n(35)})},function(e,t,n){var r=n(1);r(r.S+r.F*!n(9),"Object",{defineProperty:n(10).f})},function(e,t,n){var r=n(1);r(r.S+r.F*!n(9),"Object",{defineProperties:n(96)})},function(e,t,n){var r=n(17),i=n(22).f;n(23)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},function(e,t,n){var r=n(11),i=n(37);n(23)("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},function(e,t,n){var r=n(11),i=n(33);n(23)("keys",(function(){return function(e){return i(r(e))}}))},function(e,t,n){n(23)("getOwnPropertyNames",(function(){return n(97).f}))},function(e,t,n){var r=n(5),i=n(29).onFreeze;n(23)("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(5),i=n(29).onFreeze;n(23)("seal",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(5),i=n(29).onFreeze;n(23)("preventExtensions",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(5);n(23)("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(5);n(23)("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(5);n(23)("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},function(e,t,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(98)})},function(e,t,n){var r=n(1);r(r.S,"Object",{is:n(99)})},function(e,t,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(69).set})},function(e,t,n){"use strict";var r=n(49),i={};i[n(6)("toStringTag")]="z",i+""!="[object z]"&&n(12)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){var r=n(1);r(r.P,"Function",{bind:n(100)})},function(e,t,n){var r=n(10).f,i=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in i||n(9)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(5),i=n(37),a=n(6)("hasInstance"),o=Function.prototype;a in o||n(10).f(o,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(1),i=n(102);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(e,t,n){var r=n(1),i=n(103);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){"use strict";var r=n(2),i=n(15),a=n(25),o=n(71),s=n(28),l=n(3),u=n(36).f,c=n(22).f,p=n(10).f,d=n(41).trim,f=r.Number,h=f,g=f.prototype,y="Number"==a(n(35)(g)),v="trim"in String.prototype,m=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,a=(t=v?t.trim():d(t,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var o,l=t.slice(2),u=0,c=l.length;u<c;u++)if((o=l.charCodeAt(u))<48||o>i)return NaN;return parseInt(l,r)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(y?l((function(){g.valueOf.call(n)})):"Number"!=a(n))?o(new h(m(t)),n,f):m(t)};for(var b,_=n(9)?u(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;_.length>E;E++)i(h,b=_[E])&&!i(f,b)&&p(f,b,c(h,b));f.prototype=g,g.constructor=f,n(12)(r,"Number",f)}},function(e,t,n){"use strict";var r=n(1),i=n(21),a=n(104),o=n(72),s=1..toFixed,l=Math.floor,u=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",p=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*u[n],u[n]=r%1e7,r=l(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=u[t],u[t]=l(n/e),n=n%e*1e7},f=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+o.call("0",7-n.length)+n}return t},h=function(e,t,n){return 0===t?n:t%2==1?h(e,t-1,n*e):h(e*e,t/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(3)((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,l=a(this,c),u=i(e),g="",y="0";if(u<0||u>20)throw RangeError(c);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(g="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*h(2,69,1))-69)<0?l*h(2,-t,1):l/h(2,t,1),n*=4503599627370496,(t=52-t)>0){for(p(0,n),r=u;r>=7;)p(1e7,0),r-=7;for(p(h(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),p(1,1),d(2),y=f()}else p(0,n),p(1<<-t,0),y=f()+o.call("0",u);return y=u>0?g+((s=y.length)<=u?"0."+o.call("0",u-s)+y:y.slice(0,s-u)+"."+y.slice(s-u)):g+y}})},function(e,t,n){"use strict";var r=n(1),i=n(3),a=n(104),o=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==o.call(1,void 0)}))||!i((function(){o.call({})}))),"Number",{toPrecision:function(e){var t=a(this,"Number#toPrecision: incorrect invocation!");return void 0===e?o.call(t):o.call(t,e)}})},function(e,t,n){var r=n(1);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(1),i=n(2).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(1);r(r.S,"Number",{isInteger:n(105)})},function(e,t,n){var r=n(1);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(1),i=n(105),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&a(e)<=9007199254740991}})},function(e,t,n){var r=n(1);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(1);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(1),i=n(103);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,n){var r=n(1),i=n(102);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,n){var r=n(1),i=n(106),a=Math.sqrt,o=Math.acosh;r(r.S+r.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+a(e-1)*a(e+1))}})},function(e,t,n){var r=n(1),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(1),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(1),i=n(73);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(1);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(1),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(1),i=n(74);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,n){var r=n(1);r(r.S,"Math",{fround:n(174)})},function(e,t,n){var r=n(73),i=Math.pow,a=i(2,-52),o=i(2,-23),s=i(2,127)*(2-o),l=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),u=r(e);return i<l?u*(i/l/o+1/a-1/a)*l*o:(n=(t=(1+o/a)*i)-(t-i))>s||n!=n?u*(1/0):u*n}},function(e,t,n){var r=n(1),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,a=0,o=0,s=arguments.length,l=0;o<s;)l<(n=i(arguments[o++]))?(a=a*(r=l/n)*r+1,l=n):a+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(e,t,n){var r=n(1),i=Math.imul;r(r.S+r.F*n(3)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var n=+e,r=+t,i=65535&n,a=65535&r;return 0|i*a+((65535&n>>>16)*a+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(1);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(1);r(r.S,"Math",{log1p:n(106)})},function(e,t,n){var r=n(1);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(1);r(r.S,"Math",{sign:n(73)})},function(e,t,n){var r=n(1),i=n(74),a=Math.exp;r(r.S+r.F*n(3)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(a(e-1)-a(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(1),i=n(74),a=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(a(e)+a(-e))}})},function(e,t,n){var r=n(1);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(1),i=n(34),a=String.fromCharCode,o=String.fromCodePoint;r(r.S+r.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(1),i=n(17),a=n(7);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=a(t.length),r=arguments.length,o=[],s=0;n>s;)o.push(String(t[s++])),s<r&&o.push(String(arguments[s]));return o.join("")}})},function(e,t,n){"use strict";n(41)("trim",(function(e){return function(){return e(this,3)}}))},function(e,t,n){"use strict";var r=n(75)(!0);n(76)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(1),i=n(75)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(1),i=n(7),a=n(77),o="".endsWith;r(r.P+r.F*n(79)("endsWith"),"String",{endsWith:function(e){var t=a(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),s=void 0===n?r:Math.min(i(n),r),l=String(e);return o?o.call(t,l,s):t.slice(s-l.length,s)===l}})},function(e,t,n){"use strict";var r=n(1),i=n(77);r(r.P+r.F*n(79)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(1);r(r.P,"String",{repeat:n(72)})},function(e,t,n){"use strict";var r=n(1),i=n(7),a=n(77),o="".startsWith;r(r.P+r.F*n(79)("startsWith"),"String",{startsWith:function(e){var t=a(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return o?o.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(13)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},function(e,t,n){"use strict";n(13)("big",(function(e){return function(){return e(this,"big","","")}}))},function(e,t,n){"use strict";n(13)("blink",(function(e){return function(){return e(this,"blink","","")}}))},function(e,t,n){"use strict";n(13)("bold",(function(e){return function(){return e(this,"b","","")}}))},function(e,t,n){"use strict";n(13)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},function(e,t,n){"use strict";n(13)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},function(e,t,n){"use strict";n(13)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},function(e,t,n){"use strict";n(13)("italics",(function(e){return function(){return e(this,"i","","")}}))},function(e,t,n){"use strict";n(13)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,n){"use strict";n(13)("small",(function(e){return function(){return e(this,"small","","")}}))},function(e,t,n){"use strict";n(13)("strike",(function(e){return function(){return e(this,"strike","","")}}))},function(e,t,n){"use strict";n(13)("sub",(function(e){return function(){return e(this,"sub","","")}}))},function(e,t,n){"use strict";n(13)("sup",(function(e){return function(){return e(this,"sup","","")}}))},function(e,t,n){var r=n(1);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(1),i=n(11),a=n(28);r(r.P+r.F*n(3)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(1),i=n(209);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,n){"use strict";var r=n(3),i=Date.prototype.getTime,a=Date.prototype.toISOString,o=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!r((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+o(e.getUTCMonth()+1)+"-"+o(e.getUTCDate())+"T"+o(e.getUTCHours())+":"+o(e.getUTCMinutes())+":"+o(e.getUTCSeconds())+"."+(n>99?n:"0"+o(n))+"Z"}:a},function(e,t,n){var r=Date.prototype,i=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(12)(r,"toString",(function(){var e=a.call(this);return e==e?i.call(this):"Invalid Date"}))},function(e,t,n){var r=n(6)("toPrimitive"),i=Date.prototype;r in i||n(16)(i,r,n(212))},function(e,t,n){"use strict";var r=n(4),i=n(28);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!=e)}},function(e,t,n){var r=n(1);r(r.S,"Array",{isArray:n(54)})},function(e,t,n){"use strict";var r=n(19),i=n(1),a=n(11),o=n(108),s=n(80),l=n(7),u=n(81),c=n(82);i(i.S+i.F*!n(55)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,p,d=a(e),f="function"==typeof this?this:Array,h=arguments.length,g=h>1?arguments[1]:void 0,y=void 0!==g,v=0,m=c(d);if(y&&(g=r(g,h>2?arguments[2]:void 0,2)),null==m||f==Array&&s(m))for(n=new f(t=l(d.length));t>v;v++)u(n,v,y?g(d[v],v):d[v]);else for(p=m.call(d),n=new f;!(i=p.next()).done;v++)u(n,v,y?o(p,g,[i.value,v],!0):i.value);return n.length=v,n}})},function(e,t,n){"use strict";var r=n(1),i=n(81);r(r.S+r.F*n(3)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(1),i=n(17),a=[].join;r(r.P+r.F*(n(47)!=Object||!n(18)(a)),"Array",{join:function(e){return a.call(i(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(1),i=n(68),a=n(25),o=n(34),s=n(7),l=[].slice;r(r.P+r.F*n(3)((function(){i&&l.call(i)})),"Array",{slice:function(e,t){var n=s(this.length),r=a(this);if(t=void 0===t?n:t,"Array"==r)return l.call(this,e,t);for(var i=o(e,n),u=o(t,n),c=s(u-i),p=new Array(c),d=0;d<c;d++)p[d]="String"==r?this.charAt(i+d):this[i+d];return p}})},function(e,t,n){"use strict";var r=n(1),i=n(20),a=n(11),o=n(3),s=[].sort,l=[1,2,3];r(r.P+r.F*(o((function(){l.sort(void 0)}))||!o((function(){l.sort(null)}))||!n(18)(s)),"Array",{sort:function(e){return void 0===e?s.call(a(this)):s.call(a(this),i(e))}})},function(e,t,n){"use strict";var r=n(1),i=n(24)(0),a=n(18)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},function(e,t,n){var r=n(5),i=n(54),a=n(6)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(1),i=n(24)(1);r(r.P+r.F*!n(18)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),i=n(24)(2);r(r.P+r.F*!n(18)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),i=n(24)(3);r(r.P+r.F*!n(18)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),i=n(24)(4);r(r.P+r.F*!n(18)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),i=n(110);r(r.P+r.F*!n(18)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var r=n(1),i=n(110);r(r.P+r.F*!n(18)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(1),i=n(52)(!1),a=[].indexOf,o=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(o||!n(18)(a)),"Array",{indexOf:function(e){return o?a.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),i=n(17),a=n(21),o=n(7),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(18)(s)),"Array",{lastIndexOf:function(e){if(l)return s.apply(this,arguments)||0;var t=i(this),n=o(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(1);r(r.P,"Array",{copyWithin:n(111)}),n(38)("copyWithin")},function(e,t,n){var r=n(1);r(r.P,"Array",{fill:n(83)}),n(38)("fill")},function(e,t,n){"use strict";var r=n(1),i=n(24)(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(38)("find")},function(e,t,n){"use strict";var r=n(1),i=n(24)(6),a="findIndex",o=!0;a in[]&&Array(1)[a]((function(){o=!1})),r(r.P+r.F*o,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(38)(a)},function(e,t,n){n(43)("Array")},function(e,t,n){var r=n(2),i=n(71),a=n(10).f,o=n(36).f,s=n(78),l=n(56),u=r.RegExp,c=u,p=u.prototype,d=/a/g,f=/a/g,h=new u(d)!==d;if(n(9)&&(!h||n(3)((function(){return f[n(6)("match")]=!1,u(d)!=d||u(f)==f||"/a/i"!=u(d,"i")})))){u=function(e,t){var n=this instanceof u,r=s(e),a=void 0===t;return!n&&r&&e.constructor===u&&a?e:i(h?new c(r&&!a?e.source:e,t):c((r=e instanceof u)?e.source:e,r&&a?l.call(e):t),n?this:p,u)};for(var g=function(e){e in u||a(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},y=o(c),v=0;y.length>v;)g(y[v++]);p.constructor=u,u.prototype=p,n(12)(r,"RegExp",u)}n(43)("RegExp")},function(e,t,n){"use strict";n(114);var r=n(4),i=n(56),a=n(9),o=/./.toString,s=function(e){n(12)(RegExp.prototype,"toString",e,!0)};n(3)((function(){return"/a/b"!=o.call({source:"a",flags:"b"})}))?s((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?i.call(e):void 0)})):"toString"!=o.name&&s((function(){return o.call(this)}))},function(e,t,n){"use strict";var r=n(4),i=n(7),a=n(86),o=n(57);n(58)("match",1,(function(e,t,n,s){return[function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),u=String(this);if(!l.global)return o(l,u);var c=l.unicode;l.lastIndex=0;for(var p,d=[],f=0;null!==(p=o(l,u));){var h=String(p[0]);d[f]=h,""===h&&(l.lastIndex=a(u,i(l.lastIndex),c)),f++}return 0===f?null:d}]}))},function(e,t,n){"use strict";var r=n(4),i=n(11),a=n(7),o=n(21),s=n(86),l=n(57),u=Math.max,c=Math.min,p=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(e,t,n,h){return[function(r,i){var a=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,a,i):n.call(String(a),r,i)},function(e,t){var i=h(n,e,this,t);if(i.done)return i.value;var p=r(e),d=String(this),f="function"==typeof t;f||(t=String(t));var y=p.global;if(y){var v=p.unicode;p.lastIndex=0}for(var m=[];;){var b=l(p,d);if(null===b)break;if(m.push(b),!y)break;""===String(b[0])&&(p.lastIndex=s(d,a(p.lastIndex),v))}for(var _,E="",k=0,T=0;T<m.length;T++){b=m[T];for(var A=String(b[0]),w=u(c(o(b.index),d.length),0),S=[],C=1;C<b.length;C++)S.push(void 0===(_=b[C])?_:String(_));var x=b.groups;if(f){var I=[A].concat(S,w,d);void 0!==x&&I.push(x);var P=String(t.apply(void 0,I))}else P=g(A,d,w,S,x,t);w>=k&&(E+=d.slice(k,w)+P,k=w+A.length)}return E+d.slice(k)}];function g(e,t,r,a,o,s){var l=r+e.length,u=a.length,c=f;return void 0!==o&&(o=i(o),c=d),n.call(s,c,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=o[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>u){var d=p(c/10);return 0===d?n:d<=u?void 0===a[d-1]?i.charAt(1):a[d-1]+i.charAt(1):n}s=a[c-1]}return void 0===s?"":s}))}}))},function(e,t,n){"use strict";var r=n(4),i=n(99),a=n(57);n(58)("search",1,(function(e,t,n,o){return[function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=o(n,e,this);if(t.done)return t.value;var s=r(e),l=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var c=a(s,l);return i(s.lastIndex,u)||(s.lastIndex=u),null===c?-1:c.index}]}))},function(e,t,n){"use strict";var r=n(78),i=n(4),a=n(50),o=n(86),s=n(7),l=n(57),u=n(85),c=n(3),p=Math.min,d=[].push,f="length",h=!c((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(e,t,n,c){var g;return g="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[f]||2!="ab".split(/(?:ab)*/)[f]||4!=".".split(/(.?)(.?)/)[f]||".".split(/()()/)[f]>1||"".split(/.?/)[f]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var a,o,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,h=void 0===t?4294967295:t>>>0,g=new RegExp(e.source,c+"g");(a=u.call(g,i))&&!((o=g.lastIndex)>p&&(l.push(i.slice(p,a.index)),a[f]>1&&a.index<i[f]&&d.apply(l,a.slice(1)),s=a[0][f],p=o,l[f]>=h));)g.lastIndex===a.index&&g.lastIndex++;return p===i[f]?!s&&g.test("")||l.push(""):l.push(i.slice(p)),l[f]>h?l.slice(0,h):l}:"0".split(void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,i,r):g.call(String(i),n,r)},function(e,t){var r=c(g,e,this,t,g!==n);if(r.done)return r.value;var u=i(e),d=String(this),f=a(u,RegExp),y=u.unicode,v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(h?"y":"g"),m=new f(h?u:"^(?:"+u.source+")",v),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===d.length)return null===l(m,d)?[d]:[];for(var _=0,E=0,k=[];E<d.length;){m.lastIndex=h?E:0;var T,A=l(m,h?d:d.slice(E));if(null===A||(T=p(s(m.lastIndex+(h?0:E)),d.length))===_)E=o(d,E,y);else{if(k.push(d.slice(_,E)),k.length===b)return k;for(var w=1;w<=A.length-1;w++)if(k.push(A[w]),k.length===b)return k;E=_=T}}return k.push(d.slice(_)),k}]}))},function(e,t,n){var r=n(2),i=n(87).set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,l="process"==n(25)(o);e.exports=function(){var e,t,n,u=function(){var r,i;for(l&&(r=o.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){o.nextTick(u)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){i.call(r,u)};else{var p=!0,d=document.createTextNode("");new a(u).observe(d,{characterData:!0}),n=function(){d.data=p=!p}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){"use strict";var r=n(118),i=n(39);e.exports=n(61)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(118),i=n(39);e.exports=n(61)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,i=n(2),a=n(24)(0),o=n(12),s=n(29),l=n(98),u=n(119),c=n(5),p=n(39),d=n(39),f=!i.ActiveXObject&&"ActiveXObject"in i,h=s.getWeak,g=Object.isExtensible,y=u.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(e){if(c(e)){var t=h(e);return!0===t?y(p(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(p(this,"WeakMap"),e,t)}},b=e.exports=n(61)("WeakMap",v,m,u,!0,!0);d&&f&&(l((r=u.getConstructor(v,"WeakMap")).prototype,m),s.NEED=!0,a(["delete","has","get","set"],(function(e){var t=b.prototype,n=t[e];o(t,e,(function(t,i){if(c(t)&&!g(t)){this._f||(this._f=new r);var a=this._f[e](t,i);return"set"==e?this:a}return n.call(this,t,i)}))})))},function(e,t,n){"use strict";var r=n(119),i=n(39);n(61)("WeakSet",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(1),i=n(62),a=n(88),o=n(4),s=n(34),l=n(7),u=n(5),c=n(2).ArrayBuffer,p=n(50),d=a.ArrayBuffer,f=a.DataView,h=i.ABV&&c.isView,g=d.prototype.slice,y=i.VIEW;r(r.G+r.W+r.F*(c!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return h&&h(e)||u(e)&&y in e}}),r(r.P+r.U+r.F*n(3)((function(){return!new d(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(e,t){if(void 0!==g&&void 0===t)return g.call(o(this),e);for(var n=o(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),a=new(p(this,d))(l(i-r)),u=new f(this),c=new f(a),h=0;r<i;)c.setUint8(h++,u.getUint8(r++));return a}}),n(43)("ArrayBuffer")},function(e,t,n){var r=n(1);r(r.G+r.W+r.F*!n(62).ABV,{DataView:n(88).DataView})},function(e,t,n){n(27)("Int8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(27)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(27)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){n(27)("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(27)("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(27)("Int32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(27)("Uint32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(27)("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(27)("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){var r=n(1),i=n(20),a=n(4),o=(n(2).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(3)((function(){o((function(){}))})),"Reflect",{apply:function(e,t,n){var r=i(e),l=a(n);return o?o(r,t,l):s.call(r,t,l)}})},function(e,t,n){var r=n(1),i=n(35),a=n(20),o=n(4),s=n(5),l=n(3),u=n(100),c=(n(2).Reflect||{}).construct,p=l((function(){function e(){}return!(c((function(){}),[],e)instanceof e)})),d=!l((function(){c((function(){}))}));r(r.S+r.F*(p||d),"Reflect",{construct:function(e,t){a(e),o(t);var n=arguments.length<3?e:a(arguments[2]);if(d&&!p)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var l=n.prototype,f=i(s(l)?l:Object.prototype),h=Function.apply.call(e,f,t);return s(h)?h:f}})},function(e,t,n){var r=n(10),i=n(1),a=n(4),o=n(28);i(i.S+i.F*n(3)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){a(e),t=o(t,!0),a(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(1),i=n(22).f,a=n(4);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(a(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(1),i=n(4),a=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(107)(a,"Object",(function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new a(e)}})},function(e,t,n){var r=n(22),i=n(37),a=n(15),o=n(1),s=n(5),l=n(4);o(o.S,"Reflect",{get:function e(t,n){var o,u,c=arguments.length<3?t:arguments[2];return l(t)===c?t[n]:(o=r.f(t,n))?a(o,"value")?o.value:void 0!==o.get?o.get.call(c):void 0:s(u=i(t))?e(u,n,c):void 0}})},function(e,t,n){var r=n(22),i=n(1),a=n(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(a(e),t)}})},function(e,t,n){var r=n(1),i=n(37),a=n(4);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(a(e))}})},function(e,t,n){var r=n(1);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(1),i=n(4),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!a||a(e)}})},function(e,t,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(121)})},function(e,t,n){var r=n(1),i=n(4),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return a&&a(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(10),i=n(22),a=n(37),o=n(15),s=n(1),l=n(30),u=n(4),c=n(5);s(s.S,"Reflect",{set:function e(t,n,s){var p,d,f=arguments.length<4?t:arguments[3],h=i.f(u(t),n);if(!h){if(c(d=a(t)))return e(d,n,s,f);h=l(0)}if(o(h,"value")){if(!1===h.writable||!c(f))return!1;if(p=i.f(f,n)){if(p.get||p.set||!1===p.writable)return!1;p.value=s,r.f(f,n,p)}else r.f(f,n,l(0,s));return!0}return void 0!==h.set&&(h.set.call(f,s),!0)}})},function(e,t,n){var r=n(1),i=n(69);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){n(272),e.exports=n(8).Array.includes},function(e,t,n){"use strict";var r=n(1),i=n(52)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(38)("includes")},function(e,t,n){n(274),e.exports=n(8).Array.flatMap},function(e,t,n){"use strict";var r=n(1),i=n(275),a=n(11),o=n(7),s=n(20),l=n(109);r(r.P,"Array",{flatMap:function(e){var t,n,r=a(this);return s(e),t=o(r.length),n=l(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n(38)("flatMap")},function(e,t,n){"use strict";var r=n(54),i=n(5),a=n(7),o=n(19),s=n(6)("isConcatSpreadable");e.exports=function e(t,n,l,u,c,p,d,f){for(var h,g,y=c,v=0,m=!!d&&o(d,f,3);v<u;){if(v in l){if(h=m?m(l[v],v,n):l[v],g=!1,i(h)&&(g=void 0!==(g=h[s])?!!g:r(h)),g&&p>0)y=e(t,n,h,a(h.length),y,p-1)-1;else{if(y>=9007199254740991)throw TypeError();t[y]=h}y++}v++}return y}},function(e,t,n){n(277),e.exports=n(8).String.padStart},function(e,t,n){"use strict";var r=n(1),i=n(122),a=n(60),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*o,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){n(279),e.exports=n(8).String.padEnd},function(e,t,n){"use strict";var r=n(1),i=n(122),a=n(60),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*o,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){n(281),e.exports=n(8).String.trimLeft},function(e,t,n){"use strict";n(41)("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},function(e,t,n){n(283),e.exports=n(8).String.trimRight},function(e,t,n){"use strict";n(41)("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},function(e,t,n){n(285),e.exports=n(65).f("asyncIterator")},function(e,t,n){n(94)("asyncIterator")},function(e,t,n){n(287),e.exports=n(8).Object.getOwnPropertyDescriptors},function(e,t,n){var r=n(1),i=n(121),a=n(17),o=n(22),s=n(81);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),l=o.f,u=i(r),c={},p=0;u.length>p;)void 0!==(n=l(r,t=u[p++]))&&s(c,t,n);return c}})},function(e,t,n){n(289),e.exports=n(8).Object.values},function(e,t,n){var r=n(1),i=n(123)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){n(291),e.exports=n(8).Object.entries},function(e,t,n){var r=n(1),i=n(123)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){"use strict";n(115),n(293),e.exports=n(8).Promise.finally},function(e,t,n){"use strict";var r=n(1),i=n(8),a=n(2),o=n(50),s=n(117);r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,i.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){n(295),n(296),n(297),e.exports=n(8)},function(e,t,n){var r=n(2),i=n(1),a=n(60),o=[].slice,s=/MSIE .\./.test(a),l=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&o.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(e,t,n){var r=n(1),i=n(87);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){for(var r=n(84),i=n(33),a=n(12),o=n(2),s=n(16),l=n(42),u=n(6),c=u("iterator"),p=u("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(f),g=0;g<h.length;g++){var y,v=h[g],m=f[v],b=o[v],_=b&&b.prototype;if(_&&(_[c]||s(_,c,d),_[p]||s(_,p,v),l[v]=d,m))for(y in r)_[y]||a(_,y,r[y],!0)}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),s=new w(i||[]);return r(o,"_invoke",{value:E(e,n,s)}),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p={};function d(){}function f(){}function h(){}var g={};l(g,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(S([])));v&&v!==t&&n.call(v,a)&&(g=v);var m=h.prototype=d.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var i;r(this,"_invoke",{value:function(r,a){function o(){return new t((function(i,o){!function r(i,a,o,s){var l=c(e[i],e,a);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(p).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(r,a,i,o)}))}return i=i?i.then(o,o):o()}})}function E(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return C()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=h,r(m,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:f,configurable:!0}),f.displayName=l(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},b(_.prototype),l(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new _(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(m),l(m,s,"Generator"),l(m,a,(function(){return this})),l(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){n(300),e.exports=n(124).global},function(e,t,n){var r=n(301);r(r.G,{global:n(89)})},function(e,t,n){var r=n(89),i=n(124),a=n(302),o=n(304),s=n(311),l=function(e,t,n){var u,c,p,d=e&l.F,f=e&l.G,h=e&l.S,g=e&l.P,y=e&l.B,v=e&l.W,m=f?i:i[t]||(i[t]={}),b=m.prototype,_=f?r:h?r[t]:(r[t]||{}).prototype;for(u in f&&(n=t),n)(c=!d&&_&&void 0!==_[u])&&s(m,u)||(p=c?_[u]:n[u],m[u]=f&&"function"!=typeof _[u]?n[u]:y&&c?a(p,r):v&&_[u]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):g&&"function"==typeof p?a(Function.call,p):p,g&&((m.virtual||(m.virtual={}))[u]=p,e&l.R&&b&&!b[u]&&o(b,u,p)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var r=n(303);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(305),i=n(310);e.exports=n(91)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(306),i=n(307),a=n(309),o=Object.defineProperty;t.f=n(91)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(90);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(91)&&!n(125)((function(){return 7!=Object.defineProperty(n(308)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(90),i=n(89).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(90);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";(function(e){var t=n(46);var r,i,a,o=function(){function t(){}return t.install=function(){if(!e.performance||!e.performance.now){var t=Date.now();e.performance||(e.performance={}),e.performance.now=function(){return Date.now()-t}}},t}();r=o,a="performance.now",(i=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(i="id"))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,t.a.register(o)}).call(this,n(92))},function(e,t,n){(function(e,t){var n;(n=void 0!==e&&"[object process]"==={}.toString.call(e)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?t:self).Proxy||(n.Proxy=function(){function e(){return null}function t(e){return!!e&&("object"==typeof e||"function"==typeof e)}function n(e){if(null!==e&&!t(e))throw new TypeError("Object prototype may only be an Object or null: "+e)}var r=null,i=Object,a=!(!i.create&&{__proto__:null}instanceof i),o=i.create||(a?function(e){return n(e),{__proto__:e}}:function(e){function t(){}if(n(e),null===e)throw new SyntaxError("Native Object.create is required to create objects with null prototype");return t.prototype=e,new t}),s=i.getPrototypeOf||([].__proto__===Array.prototype?function(e){return t(e=e.__proto__)?e:null}:e),l=function(u,c){function p(){}if(void 0===(this&&this instanceof l?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!t(u)||!t(c))throw new TypeError("Cannot create proxy with a non-object as target or handler");r=function(){u=null,p=function(e){throw new TypeError("Cannot perform '"+e+"' on a proxy that has been revoked")}},setTimeout((function(){r=null}),0);var d=c;for(var f in c={get:null,set:null,apply:null,construct:null},d){if(!(f in c))throw new TypeError("Proxy polyfill does not support trap '"+f+"'");c[f]=d[f]}"function"==typeof d&&(c.apply=d.apply.bind(d)),d=s(u);var h=!1,g=!1;if("function"==typeof u){var y=function(){var e=this&&this.constructor===y,t=Array.prototype.slice.call(arguments);return p(e?"construct":"apply"),e&&c.construct?c.construct.call(this,u,t):!e&&c.apply?c.apply(u,this,t):e?(t.unshift(u),new(u.bind.apply(u,t))):u.apply(this,t)};h=!0}else u instanceof Array?(y=[],g=!0):y=a||null!==d?o(d):{};var v=c.get?function(e){return p("get"),c.get(this,e,y)}:function(e){return p("get"),this[e]},m=c.set?function(e,t){p("set"),c.set(this,e,t,y)}:function(e,t){p("set"),this[e]=t},b={};if(i.getOwnPropertyNames(u).forEach((function(e){if(!h&&!g||!(e in y)){var t=i.getOwnPropertyDescriptor(u,e);i.defineProperty(y,e,{enumerable:!!t.enumerable,get:v.bind(u,e),set:m.bind(u,e)}),b[e]=!0}})),f=!0,h||g){var _=i.setPrototypeOf||([].__proto__===Array.prototype?function(e,t){return n(t),e.__proto__=t,e}:e);d&&_(y,d)||(f=!1)}if(c.get||!f)for(var E in u)b[E]||i.defineProperty(y,E,{get:v.bind(u,E)});return i.seal(u),i.seal(y),y};return l.revocable=function(e,t){return{proxy:new l(e,t),revoke:r}},l}(),n.Proxy.revocable=n.Proxy.revocable)}).call(this,n(314),n(92))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,u=[],c=!1,p=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):p=-1,u.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++p<t;)l&&l[p].run();p=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r,i;window,e.exports=(r=n(0),i=n(316),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){e.exports=r},function(e,t){e.exports=i},function(e){e.exports=JSON.parse('{"recoverDecodingErrorDelay":3000,"recoverSwapAudioCodecDelay":3000,"abr":{"enabled":true,"restrictions":{}},"hlsConfig":{"fragLoadingMaxRetry":4,"maxMaxBufferLength":60},"network":{}}')},function(e,t,n){"use strict";n.r(t),n.d(t,"VERSION",(function(){return b})),n.d(t,"NAME",(function(){return _}));var r,i,a,o,s=n(0),l=n(1),u=n.n(l),c=n(2),p=((r={})[u.a.ErrorDetails.MANIFEST_LOAD_ERROR]={category:s.Error.Category.MANIFEST,code:s.Error.Code.HTTP_ERROR},r[u.a.ErrorDetails.MANIFEST_LOAD_TIMEOUT]={category:s.Error.Category.MANIFEST,code:s.Error.Code.TIMEOUT},r[u.a.ErrorDetails.MANIFEST_PARSING_ERROR]={category:s.Error.Category.MANIFEST,code:s.Error.Code.HLSJS_CANNOT_PARSE},r[u.a.ErrorDetails.LEVEL_LOAD_ERROR]={category:s.Error.Category.NETWORK,code:s.Error.Code.HTTP_ERROR},r[u.a.ErrorDetails.LEVEL_LOAD_TIMEOUT]={category:s.Error.Category.NETWORK,code:s.Error.Code.TIMEOUT},r[u.a.ErrorDetails.LEVEL_SWITCH_ERROR]={category:s.Error.Category.PLAYER,code:s.Error.Code.BITRATE_SWITCH_ISSUE},r[u.a.ErrorDetails.FRAG_LOAD_ERROR]={category:s.Error.Category.NETWORK,code:s.Error.Code.HTTP_ERROR},r[u.a.ErrorDetails.FRAG_LOOP_LOADING_ERROR]={category:s.Error.Category.NETWORK,code:s.Error.Code.HTTP_ERROR},r[u.a.ErrorDetails.FRAG_LOAD_TIMEOUT]={category:s.Error.Category.NETWORK,code:s.Error.Code.TIMEOUT},r[u.a.ErrorDetails.FRAG_PARSING_ERROR]={category:s.Error.Category.MEDIA,code:s.Error.Code.HLS_FRAG_PARSING_ERROR},r[u.a.ErrorDetails.BUFFER_APPEND_ERROR]={category:s.Error.Category.MEDIA,code:s.Error.Code.HLS_BUFFER_APPEND_ISSUE},r[u.a.ErrorDetails.BUFFER_APPENDING_ERROR]={category:s.Error.Category.MEDIA,code:s.Error.Code.HLS_BUFFER_APPENDING_ISSUE},r[u.a.ErrorDetails.BUFFER_STALLED_ERROR]={category:s.Error.Category.MEDIA,code:s.Error.Code.HLS_BUFFER_STALLED_ERROR},r),d=function(e){var t,n;function r(t){var n;return n=e.call(this,t)||this,t&&t.readystatechange&&(n.readystatechange=t.readystatechange),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.loadInternal=function(){var e,t=this,n=this.context;e=this.loader=new XMLHttpRequest;var r=this.stats;r.tfirst=0,r.loaded=0;var i,a=this.xhrSetup;try{if(a)try{i=a(e,n.url,n)}catch(t){e.open("GET",n.url,!0),i=a(e,n.url,n)}e.readyState||e.open("GET",n.url,!0)}catch(e){i=Promise.reject(e)}(i=i||Promise.resolve()).then((function(){n.rangeEnd&&e.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),e.onreadystatechange=t.readystatechange.bind(t),e.onprogress=t.loadprogress.bind(t),e.responseType=n.responseType,t.requestTimeout=window.setTimeout(t.loadtimeout.bind(t),t.config.timeout),e.send()})).catch((function(r){t.callbacks.onError({code:e.status,text:r.message},n,e)}))},r}(u.a.DefaultConfig.loader),f=function(e){var t,n;function r(t){var n,i=(n=e.call(this,t)||this).load.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),a=r.redirectExternalStreamsHandler;return n.load=function(e,t,n){var o=e.url;"manifest"===e.type?s.Utils.Http.jsonp(o,a,{timeout:r.redirectExternalStreamsTimeout}).then((function(r){e.url=r,i(e,t,n)})).catch((function(){return i(e,t,n)})):i(e,t,n)},n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(d);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}o=function(e,t){return t},(a="redirectExternalStreamsHandler")in(i=f)?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o;var m=function(e){var t,n;function r(t,n,i){var a,o;return r._logger.debug("Creating adapter. Hls version: "+u.a.version),v(y(o=e.call(this,t,n,i)||this),"_hlsjsLib",u.a),v(y(o),"_triedReloadWithRedirect",!1),v(y(o),"_playerTracks",[]),v(y(o),"_startTime",0),v(y(o),"_requestFilterError",!1),v(y(o),"_responseFilterError",!1),v(y(o),"_nativeTextTracksMap",{}),v(y(o),"_lastLoadedFragSN",-1),v(y(o),"_sameFragSNLoadedCount",0),v(y(o),"_adapterEventsBindings",((a={})[u.a.Events.ERROR]=function(e,t){return o._onError(t)},a[u.a.Events.MANIFEST_LOADED]=function(e,t){return o._onManifestLoaded(t)},a[u.a.Events.LEVEL_SWITCHED]=function(e,t){return o._onLevelSwitched(e,t)},a[u.a.Events.AUDIO_TRACK_SWITCHED]=function(e,t){return o._onAudioTrackSwitched(e,t)},a[u.a.Events.FPS_DROP]=function(e,t){return o._onFpsDrop(t)},a[u.a.Events.FRAG_PARSING_METADATA]=function(e,t){return o._onFragParsingMetadata(t)},a[u.a.Events.FRAG_LOADED]=function(e,t){return o._onFragLoaded(t)},a[u.a.Events.MEDIA_ATTACHED]=function(){return o._onMediaAttached()},a[u.a.Events.LEVEL_LOADED]=function(e,t){return o._onLevelLoaded(e,t)},a)),v(y(o),"_onLevelLoaded",(function(e,t){if(o.isLive()){var n=t.details.endSN;if(o._lastLoadedFragSN===n){if(o._sameFragSNLoadedCount++,r._logger.debug("Same frag SN. Count is: "+o._sameFragSNLoadedCount+", Max is: "+o._config.network.maxStaleLevelReloads),o._sameFragSNLoadedCount>=o._config.network.maxStaleLevelReloads){r._logger.error("Same frag loading reached max count");var i=new s.Error(s.Error.Severity.CRITICAL,s.Error.Category.NETWORK,s.Error.Code.LIVE_MANIFEST_REFRESH_ERROR,{fragSN:n});return o._trigger(s.EventType.ERROR,i),o.destroy()}r._logger.debug("Last frag SN is: "+n)}else o._sameFragSNLoadedCount=0;o._lastLoadedFragSN=n}})),o._config=s.Utils.Object.mergeDeep({},c,o._config),o._init(),o}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.createAdapter=function(e,t,n){var i=s.Utils.Object.copyDeep(c);if(s.Utils.Object.hasPropertyPath(n,"sources.options")){var a=n.sources.options;i.forceRedirectExternalStreams=a.forceRedirectExternalStreams,i.redirectExternalStreamsHandler=a.redirectExternalStreamsHandler,i.redirectExternalStreamsTimeout=a.redirectExternalStreamsTimeout,f.redirectExternalStreamsHandler=i.redirectExternalStreamsHandler,f.redirectExternalStreamsTimeout=i.redirectExternalStreamsTimeout}if(s.Utils.Object.hasPropertyPath(n,"sources.startTime")&&s.Utils.Object.getPropertyPath(n,"sources.startTime")>-1&&(i.hlsConfig.startPosition=n.sources.startTime),s.Utils.Object.hasPropertyPath(n,"text.useNativeTextTrack")&&(i.subtitleDisplay=s.Utils.Object.getPropertyPath(n,"text.useNativeTextTrack")),s.Utils.Object.hasPropertyPath(n,"abr.fpsDroppedFramesInterval")&&(i.hlsConfig.fpsDroppedFramesInterval=n.abr.fpsDroppedFramesInterval),s.Utils.Object.hasPropertyPath(n,"abr.fpsDroppedMonitoringThreshold")&&(i.hlsConfig.fpsDroppedMonitoringThreshold=n.abr.fpsDroppedMonitoringThreshold),s.Utils.Object.hasPropertyPath(n,"abr.capLevelOnFPSDrop")&&(r._logger.debug("capLevelOnFPSDrop = ",n.abr.capLevelOnFPSDrop),i.hlsConfig.capLevelOnFPSDrop=n.abr.capLevelOnFPSDrop),s.Utils.Object.hasPropertyPath(n,"text")&&(i.hlsConfig.enableCEA708Captions=n.text.enableCEA708Captions,i.hlsConfig.captionsTextTrack1Label=n.text.captionsTextTrack1Label,i.hlsConfig.captionsTextTrack1LanguageCode=n.text.captionsTextTrack1LanguageCode,i.hlsConfig.captionsTextTrack2Label=n.text.captionsTextTrack2Label,i.hlsConfig.captionsTextTrack2LanguageCode=n.text.captionsTextTrack2LanguageCode),s.Utils.Object.hasPropertyPath(n,"abr")){var o=n.abr;"boolean"==typeof o.enabled&&(i.abr.enabled=o.enabled),"boolean"==typeof o.capLevelToPlayerSize&&(i.hlsConfig.capLevelToPlayerSize=o.capLevelToPlayerSize),o.defaultBandwidthEstimate&&(i.hlsConfig.abrEwmaDefaultEstimate=o.defaultBandwidthEstimate),o.restrictions&&s.Utils.Object.createPropertyPath(i,"abr.restrictions",o.restrictions)}return s.Utils.Object.hasPropertyPath(n,"streaming.lowLatencyMode")&&(i.hlsConfig.lowLatencyMode=s.Utils.Object.getPropertyPath(n,"streaming.lowLatencyMode")),s.Utils.Object.hasPropertyPath(n,"playback.options.html5.hls")&&s.Utils.Object.mergeDeep(i.hlsConfig,n.playback.options.html5.hls),i.network=n.network,new this(e,t,i)},r.canPlayType=function(e){var t="string"==typeof e&&r._hlsMimeTypes.includes(e.toLowerCase())&&r.isMSESupported();return r._logger.debug("canPlayType result for mimeType:"+e+" is "+t.toString()),t},r.canPlayDrm=function(){return r._logger.warn("canPlayDrm result is false"),!1},r.isSupported=function(){var e=u.a.isSupported();return r._logger.debug("isSupported:"+e),e};var i,a,o=r.prototype;return o._init=function(){this._config.forceRedirectExternalStreams&&(this._config.hlsConfig.pLoader=f),this._maybeSetFilters(),this._hls=new u.a(this._config.hlsConfig),this._capabilities.fpsControl=!0,this._hls.subtitleDisplay=this._config.subtitleDisplay,this._addBindings()},o._maybeSetFilters=function(){var e=this;if("function"==typeof s.Utils.Object.getPropertyPath(this._config,"network.requestFilter")&&(r._logger.debug("Register request filter"),s.Utils.Object.mergeDeep(this._config.hlsConfig,{loader:d,xhrSetup:function(t,n,r){var i,a={url:n,body:null,headers:{}};try{"manifest"===r.type&&(i=e._config.network.requestFilter(s.RequestType.MANIFEST,a)),r.frag&&"subtitle"!==r.frag.type&&(i=e._config.network.requestFilter(s.RequestType.SEGMENT,a))}catch(e){i=Promise.reject(e)}return(i=i||Promise.resolve(a)).then((function(e){r.url=e.url,t.open("GET",e.url,!0),Object.entries(e.headers).forEach((function(e){t.setRequestHeader.apply(t,e)})),"boolean"==typeof e.withCredentials&&(t.withCredentials=e.withCredentials)})).catch((function(t){throw e._requestFilterError=!0,t}))}})),"function"==typeof s.Utils.Object.getPropertyPath(this._config,"network.responseFilter")){var t=this;r._logger.debug("Register response filter"),s.Utils.Object.mergeDeep(this._config.hlsConfig,{loader:d,readystatechange:function(e){var n=this,i=e.currentTarget,a=i.readyState,o=this.stats,l=this.context,u=this.config;if(!o.aborted&&a>=2){window.clearTimeout(this.requestTimeout);var c=o.loading;if(0===c.first&&(c.first=Math.max(performance.now(),c.start)),4===a){var p=i.status;if(p>=200&&p<300){var d,f;c.end=Math.max(o.tfirst,performance.now()),f="arraybuffer"===l.responseType?(d=i.response).byteLength:(d=i.responseText).length,o.loaded=o.total=f;var h,g={url:i.responseURL,originalUrl:l.url,data:d,headers:s.Utils.Http.convertHeadersToDictionary(i.getAllResponseHeaders())};try{"manifest"===l.type&&(h=t._config.network.responseFilter(s.RequestType.MANIFEST,g)),l.frag&&"subtitle"!==l.frag.type&&(h=t._config.network.responseFilter(s.RequestType.SEGMENT,g))}catch(e){h=Promise.reject(e)}return(h=h||Promise.resolve(g)).then((function(e){n.callbacks.onSuccess(e,o,l,i)})).catch((function(e){t._responseFilterError=!0,n.callbacks.onError({code:p,text:e.message},l,i)}))}o.retry>=u.maxRetry||p>=400&&p<499?(r._logger.error(p+" while loading "+l.url),this.callbacks.onError({code:p,text:i.statusText},l,i)):(r._logger.warn(p+" while loading "+l.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,u.maxRetryDelay),o.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),u.timeout)}}})}},o._addBindings=function(){var e=this;this._mediaAttachedPromise=new Promise((function(t){return e._onMediaAttached=t}));for(var t=0,n=Object.entries(this._adapterEventsBindings);t<n.length;t++){var r=n[t],i=r[0],a=r[1];this._hls.on(i,a)}this._onRecoveredCallback=function(){return e._onRecovered()},this._onAddTrack=this._onAddTrack.bind(this),this._eventManager.listen(this._videoElement,"addtrack",this._onAddTrack),this._videoElement.textTracks.onaddtrack=this._onAddTrack},o._onFpsDrop=function(e){this._trigger(s.EventType.FPS_DROP,e)},o._onFragParsingMetadata=function(e){var t;this._trigger("hlsFragParsingMetadata",e);var n=Array.from(null==(t=this._videoElement)?void 0:t.textTracks).find((function(e){return"id3"===e.label})),r=Array.from((null==n?void 0:n.cues)||[]),i=[];null==e||e.samples.forEach((function(e){var t=s.Utils.binarySearch(r,(function(t){return t.startTime-e.pts}));if(t){var n=Object(s.createTimedMetadata)(t);i.push(n)}})),i.length&&this._trigger(s.EventType.TIMED_METADATA_ADDED,{cues:i})},o._onAddTrack=function(e){if(!this._hls.subtitleTracks.length){var t=this._parseCEATextTrack(e.track);t&&(r._logger.debug("A CEA 608/708 caption has been found",t),this._playerTracks.push(t),this._trigger(s.EventType.TRACKS_CHANGED,{tracks:this._playerTracks}))}},o.attachMediaSource=function(){this._hls||(this._videoElement&&this._videoElement.src&&(s.Utils.Dom.setAttribute(this._videoElement,"src",""),s.Utils.Dom.removeAttribute(this._videoElement,"src")),this._init())},o.detachMediaSource=function(){var e;this._hls&&(0===Math.floor(this.duration-this.currentTime)?this._config.hlsConfig.startPosition=0:this.currentTime>0&&(this._config.hlsConfig.startPosition=this.currentTime),this._reset(),null==(e=this._loadPromiseHandlers)||e.reject(new s.Error(s.Error.Severity.CRITICAL,s.Error.Category.PLAYER,s.Error.Code.HLS_FATAL_MEDIA_ERROR,"media detached while loading")),this._loadPromiseHandlers=null,this._loadPromise=null,this._hls=null)},o.handleMediaError=function(e){return e.code===e.MEDIA_ERR_DECODE&&(r._logger.debug("The video playback was aborted due to a corruption problem or because the video used features your browser did not support.",e.message),this._handleMediaError(u.a.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR))},o.load=function(e){var t=this;return this._loadPromise||(this._startTime=e,this._loadPromise=new Promise((function(e,n){t._loadPromiseHandlers={resolve:e,reject:n},t._loadInternal()}))),this._loadPromise},o._loadInternal=function(){var e;this._hls&&this._sourceObj&&this._sourceObj.url?(this._hls.loadSource(this._sourceObj.url),this._hls.attachMedia(this._videoElement),this._trigger(s.EventType.ABR_MODE_CHANGED,{mode:this.isAdaptiveBitrateEnabled()?"auto":"manual"})):null==(e=this._loadPromiseHandlers)||e.reject(new s.Error(s.Error.Severity.CRITICAL,s.Error.Category.PLAYER,s.Error.Code.HLS_FATAL_MEDIA_ERROR,"no url provided"))},o._reloadWithDirectManifest=function(){this._triedReloadWithRedirect=!0,this._reset(),this._config.hlsConfig.pLoader=f,this._hls=new u.a(this._config.hlsConfig),this._addBindings(),this._loadInternal()},o.destroy=function(){var t=this;return new Promise((function(n,i){e.prototype.destroy.call(t).then((function(){var e;r._logger.debug("destroy"),t._playerTracks=[],t._nativeTextTracksMap={},t._sameFragSNLoadedCount=0,t._lastLoadedFragSN=-1,null==(e=t._loadPromiseHandlers)||e.reject(new s.Error(s.Error.Severity.CRITICAL,s.Error.Category.PLAYER,s.Error.Code.HLS_FATAL_MEDIA_ERROR,"The adapter has been destroyed while loading")),t._loadPromiseHandlers=null,t._loadPromise=null,t._reset(),n()}),(function(){return i()}))}))},o._reset=function(){this._removeBindings(),this._requestFilterError=!1,this._responseFilterError=!1,this._hls.detachMedia(),this._hls.destroy()},o._parseTracks=function(){var e=this._parseAudioTracks(this._hls.audioTracks||[]),t=this._parseVideoTracks(this._hls.levels||[]),n=this._parseTextTracks(this._hls.subtitleTracks||[]);return e.concat(t).concat(n)},o._parseAudioTracks=function(e){for(var t=[],n=0;n<e.length;n++){var r={id:e[n].id,active:this._hls.audioTrack===e[n].id,label:e[n].name,language:e[n].lang,index:n};t.push(new s.AudioTrack(r))}return t},o._parseVideoTracks=function(e){for(var t=[],n=0;n<e.length;n++){var r={active:this._hls.startLevel===n,bandwidth:e[n].bitrate,width:e[n].width,height:e[n].height,language:"",index:n};t.push(new s.VideoTrack(r))}return t},o._parseTextTracks=function(e){for(var t,n=[],r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(e);!(t=r()).done;){var i=t.value,a={id:i.id,active:!1,default:i.default,label:i.name,kind:i.type.toLowerCase(),language:i.lang};n.push(new s.TextTrack(a))}return n},o._parseCEATextTrack=function(e){var t=null;if("captions"===e.kind){var n={id:e.id,active:"showing"===e.mode,label:e.label,kind:e.kind,language:e.language};t=new s.TextTrack(n),this._nativeTextTracksMap[t.index]=e}return t},o.selectAudioTrack=function(e){e instanceof s.AudioTrack&&!e.active&&this._hls.audioTracks&&(this._hls.audioTrack=e.id)},o.selectVideoTrack=function(e){e instanceof s.VideoTrack&&(!e.active||this.isAdaptiveBitrateEnabled())&&this._hls.levels&&(this.isAdaptiveBitrateEnabled()&&this._trigger(s.EventType.ABR_MODE_CHANGED,{mode:"manual"}),this._hls.currentLevel=e.index)},o.selectTextTrack=function(e){e instanceof s.TextTrack&&!e.active&&this._hls&&(this._hls.subtitleTracks.length?(this._hls.subtitleTrack=e.id,this._notifyTrackChanged(e)):this._selectNativeTextTrack(e))},o._selectNativeTextTrack=function(e){var t=this._nativeTextTracksMap[e.index];t&&(this.disableNativeTextTracks(),t.mode=this._config.subtitleDisplay?"showing":"hidden",this._notifyTrackChanged(e))},o._notifyTrackChanged=function(e){this._onTrackChanged(e)},o.hideTextTrack=function(){this._hls&&(this._hls.subtitleTracks.length?this._hls.subtitleTrack=-1:this.disableNativeTextTracks())},o.enableAdaptiveBitrate=function(){this.isAdaptiveBitrateEnabled()||(this._trigger(s.EventType.ABR_MODE_CHANGED,{mode:"auto"}),this._hls.nextLevel=-1)},o.isAdaptiveBitrateEnabled=function(){return!!this._hls&&this._hls.autoLevelEnabled},o.applyABRRestriction=function(e){s.Utils.Object.createPropertyPath(this._config,"abr.restrictions",e),this._hls.capLevelToPlayerSize||this._maybeApplyAbrRestrictions(e)},o._getLevelDetails=function(){var e=this._hls.levels[this._hls.currentLevel]||this._hls.levels[this._hls.nextLevel]||this._hls.levels[this._hls.nextAutoLevel]||this._hls.levels[this._hls.nextLoadLevel];return e&&e.details?e.details:{}},o._getLiveEdge=function(){try{var e;return(e=this._hls.liveSyncPosition?this._hls.liveSyncPosition:this._hls.config.liveSyncDuration?this._videoElement.duration-this._hls.config.liveSyncDuration:this._videoElement.duration-this._hls.config.liveSyncDurationCount*this._getLevelDetails().targetduration)>0?e:this._videoElement.duration}catch(e){return r._logger.debug("Live edge calculation failed, fall back to duration"),this._videoElement.duration}},o.seekToLiveEdge=function(){try{this._videoElement.currentTime=this._getLiveEdge()}catch(e){return}},o.getSegmentDuration=function(){var e=s.Utils.Object.getPropertyPath(this._hls,"streamController.fragCurrent");return e?e.duration:0},o.isLive=function(){try{return!!this._getLevelDetails().live}catch(e){return!1}},o._onManifestLoaded=function(e){var t=this;r._logger.debug("The source has been loaded successfully"),this._hls.config.autoStartLoad||this._hls.startLoad(this._startTime),this._playerTracks=this._parseTracks(),this._config.abr.enabled||(this._hls.currentLevel=0),this._mediaAttachedPromise.then((function(){var e;null==(e=t._loadPromiseHandlers)||e.resolve({tracks:t._playerTracks}),t._loadPromiseHandlers=null}));var n=e.stats.loading,i=n.end-n.start;this._trigger(s.EventType.MANIFEST_LOADED,{miliSeconds:i})},o._maybeApplyAbrRestrictions=function(e){var t=this._playerTracks.filter((function(e){return e instanceof s.VideoTrack})),n=Object(s.filterTracksByRestriction)(t,e);if(n.length){var i=n[0],a=n.pop();this._hls.config.minAutoBitrate=i.bandwidth,this._hls.autoLevelCapping=a.index;var o=n.some((function(e){return e.active}));this.isAdaptiveBitrateEnabled()||o||this.selectVideoTrack(i)}else r._logger.warn("Invalid restrictions, there are not tracks within the restriction range")},o._onLevelSwitched=function(e,t){var n=this._playerTracks.find((function(e){return e instanceof s.VideoTrack&&e.index===t.level}));this._onTrackChanged(n)},o._onAudioTrackSwitched=function(e,t){var n=this._playerTracks.find((function(e){return e instanceof s.AudioTrack&&e.id===t.id}));this._onTrackChanged(n),this._handleWaitingUponAudioTrackSwitch()},o._handleWaitingUponAudioTrackSwitch=function(){var e=this;["IE","Edge"].includes(s.Env.browser.name)&&this._eventManager.listenOnce(this._videoElement,s.EventType.TIME_UPDATE,(function(){e._trigger(s.EventType.PLAYING)}))},o._getErrorDataObject=function(e){var t={};switch(t.name=e.details,t.name){case u.a.ErrorDetails.MANIFEST_LOAD_ERROR:case u.a.ErrorDetails.LEVEL_LOAD_ERROR:case u.a.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:t.url=e.url,t.responseCode=e.response?e.response.code:null;break;case u.a.ErrorDetails.MANIFEST_LOAD_TIMEOUT:case u.a.ErrorDetails.LEVEL_LOAD_TIMEOUT:case u.a.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:t.url=e.url;break;case u.a.ErrorDetails.MANIFEST_PARSING_ERROR:t.url=e.url,t.reason=e.reason;break;case u.a.ErrorDetails.LEVEL_SWITCH_ERROR:t.level=e.level,t.reason=e.reason;break;case u.a.ErrorDetails.FRAG_LOAD_ERROR:t.fragUrl=e.frag?e.frag.url:null,t.responseCode=e.response?e.response.code:null;break;case u.a.ErrorDetails.FRAG_LOAD_TIMEOUT:t.fragUrl=e.frag?e.frag.url:null;break;case u.a.ErrorDetails.FRAG_DECRYPT_ERROR:case u.a.ErrorDetails.FRAG_PARSING_ERROR:t.reason=e.reason;break;case u.a.ErrorDetails.KEY_LOAD_ERROR:t.fragDecryptedDataUri=e.frag&&e.frag.decryptdata?e.frag.decryptdata.uri:null,t.responseCode=e.response?e.response.code:null;break;case u.a.ErrorDetails.KEY_LOAD_TIMEOUT:t.fragDecryptedDataUri=e.frag&&e.frag.decryptdata?e.frag.decryptdata.uri:null;break;case u.a.ErrorDetails.BUFFER_ADD_CODEC_ERROR:t.mimeType=e.mimeType,t.errorMsg=e.err?e.err.message:null;break;case u.a.ErrorDetails.BUFFER_STALLED_ERROR:t.buffer=e.buffer}return(this._requestFilterError||this._responseFilterError)&&(t.reason=e.response.text),t},o._onError=function(e){var t=e.type,n=e.details,i=e.fatal,a=this._getErrorDataObject(e);if(i){var o,l;switch(t){case u.a.ErrorTypes.NETWORK_ERROR:var c;c=this._requestFilterError?s.Error.Code.REQUEST_FILTER_ERROR:this._responseFilterError?s.Error.Code.RESPONSE_FILTER_ERROR:s.Error.Code.HTTP_ERROR,![u.a.ErrorDetails.MANIFEST_LOAD_ERROR,u.a.ErrorDetails.MANIFEST_LOAD_TIMEOUT].includes(n)||this._triedReloadWithRedirect||this._config.forceRedirectExternalStreams||this._requestFilterError||this._responseFilterError?o=new s.Error(s.Error.Severity.CRITICAL,s.Error.Category.NETWORK,c,a):(o=new s.Error(s.Error.Severity.RECOVERABLE,s.Error.Category.NETWORK,c,a),this._reloadWithDirectManifest());break;case u.a.ErrorTypes.MEDIA_ERROR:o=this._handleMediaError(n)?new s.Error(s.Error.Severity.RECOVERABLE,s.Error.Category.MEDIA,s.Error.Code.HLS_FATAL_MEDIA_ERROR,a):new s.Error(s.Error.Severity.CRITICAL,s.Error.Category.MEDIA,s.Error.Code.HLS_FATAL_MEDIA_ERROR,a);break;default:o=new s.Error(s.Error.Severity.CRITICAL,s.Error.Category.PLAYER,s.Error.Code.HLS_FATAL_MEDIA_ERROR,a)}this._trigger(s.EventType.ERROR,o),o&&o.severity===s.Error.Severity.CRITICAL&&(this._loadPromiseHandlers&&(null==(l=this._loadPromiseHandlers)||l.reject(o),this._loadPromiseHandlers=null,this._loadPromise=null),this.destroy())}else{var d=this._requestFilterError||this._responseFilterError?{category:s.Error.Category.NETWORK,code:this._requestFilterError?s.Error.Code.REQUEST_FILTER_ERROR:s.Error.Code.RESPONSE_FILTER_ERROR}:p[n]||{category:0,code:0},f=d.category,h=d.code;r._logger.warn(new s.Error(s.Error.Severity.RECOVERABLE,f,h,a))}this._requestFilterError=!1,this._responseFilterError=!1},o._handleMediaError=function(e){r._logger.error("_handleMediaError mediaErrorName:",e);var t=performance.now(),n=!0;return e===u.a.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR?(r._logger.error("recover aborted due to: MANIFEST_INCOMPATIBLE_CODECS_ERROR"),n=!1):this._checkTimeDeltaHasPassed(t,this._recoverDecodingErrorDate,this._config.recoverDecodingErrorDelay)?(this._eventManager.listen(this._videoElement,s.EventType.LOADED_METADATA,this._onRecoveredCallback),r._logger.debug("try to recover using: _recoverDecodingError()"),this._recoverDecodingError()):this._checkTimeDeltaHasPassed(t,this._recoverSwapAudioCodecDate,this._config.recoverSwapAudioCodecDelay)?(this._eventManager.listen(this._videoElement,s.EventType.LOADED_METADATA,this._onRecoveredCallback),r._logger.debug("try to recover using: _recoverSwapAudioCodec()"),this._recoverSwapAudioCodec()):(r._logger.error("cannot recover, last media error recovery failed error: ",e),n=!1),n},o._onRecovered=function(){this._trigger(s.EventType.MEDIA_RECOVERED),this._videoElement.removeEventListener(s.EventType.LOADED_METADATA,this._onRecoveredCallback)},o._checkTimeDeltaHasPassed=function(e,t,n){return!t||e-t>n},o._recoverDecodingError=function(){this._recoverDecodingErrorDate=performance.now(),r._logger.warn("try to recover media Error"),this._hls.recoverMediaError()},o._recoverSwapAudioCodec=function(){this._recoverSwapAudioCodecDate=performance.now(),r._logger.warn("try to swap Audio Codec and recover media Error"),this._hls.swapAudioCodec(),this._hls.recoverMediaError()},o._removeBindings=function(){for(var e=0,t=Object.entries(this._adapterEventsBindings);e<t.length;e++){var n=t[e],r=n[0],i=n[1];this._hls.off(r,i)}this._videoElement.textTracks.onaddtrack=null,this._onRecoveredCallback=null,this._eventManager&&this._eventManager.removeAll()},o.getStartTimeOfDvrWindow=function(){if(!this.isLive())return 0;try{var e=this._hls.levels[this._hls.nextLoadLevel].details,t=e.fragments,n=t.length,i=t[0].start+t[0].duration,a=t[n-1].start+t[n-1].duration,o=void 0!==this._hls.config.liveMaxLatencyDuration?this._hls.config.liveMaxLatencyDuration:this._hls.config.liveMaxLatencyDurationCount*e.targetduration;return Math.max(i-this._hls.config.maxFragLookUpTolerance,a-o)}catch(e){return r._logger.debug("Unable obtain the start of DVR window"),0}},o._onFragLoaded=function(e){if(s.Utils.Object.hasPropertyPath(e,"frag.stats.loading")){var t=e.frag.stats,n=t.loading.end-t.loading.start;this._trigger(s.EventType.FRAG_LOADED,{miliSeconds:n,bytes:t.loaded,url:e.frag.url})}},o._getLiveTargetBuffer=function(){return this._hls.config.liveSyncDuration?this._hls.config.liveSyncDuration:this._hls.config.liveSyncDurationCount*this._getLevelDetails().targetduration},i=r,(a=[{key:"liveDuration",get:function(){return this._getLiveEdge()+this.getSegmentDuration()}},{key:"targetBuffer",get:function(){var e=NaN;return this._hls?(e=this.isLive()?this._getLiveTargetBuffer()-(this._videoElement.currentTime-this._getLiveEdge()):this._videoElement.duration-this._videoElement.currentTime,e=Math.min(e,this._hls.config.maxMaxBufferLength+this._getLevelDetails().targetduration)):NaN}}])&&g(i.prototype,a),r}(s.BaseMediaSourceAdapter);v(m,"id","HlsAdapter"),v(m,"_logger",s.BaseMediaSourceAdapter.getLogger(m.id)),v(m,"_hlsMimeTypes",["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"]);var b="1.32.4",_="@playkit-js/playkit-js-hls";t.default=m,m.isSupported()&&Object(s.registerMediaSourceAdapter)(m)}]))},function(e,t,n){var r;"undefined"!=typeof window&&(r=()=>(()=>{var e={21:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=function(){function e(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}return e.prototype.decrypt=function(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)},e}(),i=function(){function e(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}return e.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},e}(),a=n(145),o=function(){function e(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var t=e.prototype;return t.uint8ArrayToUint32Array_=function(e){for(var t=new DataView(e),n=new Uint32Array(4),r=0;r<4;r++)n[r]=t.getUint32(4*r);return n},t.initTable=function(){var e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],a=n[2],o=n[3],s=this.invSubMix,l=s[0],u=s[1],c=s[2],p=s[3],d=new Uint32Array(256),f=0,h=0,g=0;for(g=0;g<256;g++)d[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){var y=h^h<<1^h<<2^h<<3^h<<4;y=y>>>8^255&y^99,e[f]=y,t[y]=f;var v=d[f],m=d[v],b=d[m],_=257*d[y]^16843008*y;r[f]=_<<24|_>>>8,i[f]=_<<16|_>>>16,a[f]=_<<8|_>>>24,o[f]=_,_=16843009*b^65537*m^257*v^16843008*f,l[y]=_<<24|_>>>8,u[y]=_<<16|_>>>16,c[y]=_<<8|_>>>24,p[y]=_,f?(f=v^d[d[d[b^v]]],h^=d[d[h]]):f=h=1}},t.expandKey=function(e){for(var t=this.uint8ArrayToUint32Array_(e),n=!0,r=0;r<t.length&&n;)n=t[r]===this.key[r],r++;if(!n){this.key=t;var i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var a,o,s,l,u=this.ksRows=4*(i+6+1),c=this.keySchedule=new Uint32Array(u),p=this.invKeySchedule=new Uint32Array(u),d=this.sBox,f=this.rcon,h=this.invSubMix,g=h[0],y=h[1],v=h[2],m=h[3];for(a=0;a<u;a++)a<i?s=c[a]=t[a]:(l=s,a%i==0?(l=d[(l=l<<8|l>>>24)>>>24]<<24|d[l>>>16&255]<<16|d[l>>>8&255]<<8|d[255&l],l^=f[a/i|0]<<24):i>6&&a%i==4&&(l=d[l>>>24]<<24|d[l>>>16&255]<<16|d[l>>>8&255]<<8|d[255&l]),c[a]=s=(c[a-i]^l)>>>0);for(o=0;o<u;o++)a=u-o,l=3&o?c[a]:c[a-4],p[o]=o<4||a<=4?l:g[d[l>>>24]]^y[d[l>>>16&255]]^v[d[l>>>8&255]]^m[d[255&l]],p[o]=p[o]>>>0}},t.networkToHostOrderSwap=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},t.decrypt=function(e,t,n){for(var r,i,a,o,s,l,u,c,p,d,f,h,g,y,v=this.keySize+6,m=this.invKeySchedule,b=this.invSBox,_=this.invSubMix,E=_[0],k=_[1],T=_[2],A=_[3],w=this.uint8ArrayToUint32Array_(n),S=w[0],C=w[1],x=w[2],I=w[3],P=new Int32Array(e),D=new Int32Array(P.length),R=this.networkToHostOrderSwap;t<P.length;){for(p=R(P[t]),d=R(P[t+1]),f=R(P[t+2]),h=R(P[t+3]),s=p^m[0],l=h^m[1],u=f^m[2],c=d^m[3],g=4,y=1;y<v;y++)r=E[s>>>24]^k[l>>16&255]^T[u>>8&255]^A[255&c]^m[g],i=E[l>>>24]^k[u>>16&255]^T[c>>8&255]^A[255&s]^m[g+1],a=E[u>>>24]^k[c>>16&255]^T[s>>8&255]^A[255&l]^m[g+2],o=E[c>>>24]^k[s>>16&255]^T[l>>8&255]^A[255&u]^m[g+3],s=r,l=i,u=a,c=o,g+=4;r=b[s>>>24]<<24^b[l>>16&255]<<16^b[u>>8&255]<<8^b[255&c]^m[g],i=b[l>>>24]<<24^b[u>>16&255]<<16^b[c>>8&255]<<8^b[255&s]^m[g+1],a=b[u>>>24]<<24^b[c>>16&255]<<16^b[s>>8&255]<<8^b[255&l]^m[g+2],o=b[c>>>24]<<24^b[s>>16&255]<<16^b[l>>8&255]<<8^b[255&u]^m[g+3],D[t]=R(r^S),D[t+1]=R(o^C),D[t+2]=R(a^x),D[t+3]=R(i^I),S=p,C=d,x=f,I=h,t+=4}return D.buffer},e}(),s=n(93),l=n(63),u=function(){function e(e,t){var n=(void 0===t?{}:t).removePKCS7Padding,r=void 0===n||n;if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=r,r)try{var i=self.crypto;i&&(this.subtle=i.subtle||i.webkitSubtle)}catch(e){}null===this.subtle&&(this.useSoftware=!0)}var t=e.prototype;return t.destroy=function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null},t.isSync=function(){return this.useSoftware},t.flush=function(){var e=this.currentResult,t=this.remainderData;if(!e||t)return this.reset(),null;var n,r,i,o=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?(i=(r=(n=o).byteLength)&&new DataView(n.buffer).getUint8(r-1))?(0,a.sliceUint8)(n,0,r-i):n:o},t.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},t.decrypt=function(e,t,n){var r=this;return this.useSoftware?new Promise((function(i,a){r.softwareDecrypt(new Uint8Array(e),t,n);var o=r.flush();o?i(o.buffer):a(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,n)},t.softwareDecrypt=function(e,t,n){var r=this.currentIV,i=this.currentResult,s=this.remainderData;this.logOnce("JS AES decrypt"),s&&(e=(0,l.appendUint8Array)(s,e),this.remainderData=null);var u=this.getValidChunk(e);if(!u.length)return null;r&&(n=r);var c=this.softwareDecrypter;c||(c=this.softwareDecrypter=new o),c.expandKey(t);var p=i;return this.currentResult=c.decrypt(u.buffer,0,n),this.currentIV=(0,a.sliceUint8)(u,-16).buffer,p||null},t.webCryptoDecrypt=function(e,t,n){var a=this,o=this.subtle;return this.key===t&&this.fastAesKey||(this.key=t,this.fastAesKey=new i(o,t)),this.fastAesKey.expandKey().then((function(t){return o?(a.logOnce("WebCrypto AES decrypt"),new r(o,new Uint8Array(n)).decrypt(e.buffer,t)):Promise.reject(new Error("web crypto not initialized"))})).catch((function(r){return s.logger.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, "+r.name+": "+r.message),a.onWebCryptoError(e,t,n)}))},t.onWebCryptoError=function(e,t,n){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n);var r=this.flush();if(r)return r.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")},t.getValidChunk=function(e){var t=e,n=e.length-e.length%16;return n!==e.length&&(t=(0,a.sliceUint8)(e,0,n),this.remainderData=(0,a.sliceUint8)(e,n)),t},t.logOnce=function(e){this.logEnabled&&(s.logger.log("[decrypter]: "+e),this.logEnabled=!1)},e}()},181:(e,t,n)=>{"use strict";n.r(t),n.d(t,{canParse:()=>l,decodeFrame:()=>f,getID3Data:()=>o,getID3Frames:()=>d,getTimeStamp:()=>u,isFooter:()=>a,isHeader:()=>i,isTimeStampFrame:()=>c,testables:()=>b,utf8ArrayToStr:()=>m});var r,i=function(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},a=function(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},o=function(e,t){for(var n=t,r=0;i(e,t);)r+=10,r+=s(e,t+6),a(e,t+10)&&(r+=10),t+=r;if(r>0)return e.subarray(n,n+r)},s=function(e,t){var n=0;return n=(127&e[t])<<21,n|=(127&e[t+1])<<14,(n|=(127&e[t+2])<<7)|127&e[t+3]},l=function(e,t){return i(e,t)&&s(e,t+6)+10<=e.length-t},u=function(e){for(var t=d(e),n=0;n<t.length;n++){var r=t[n];if(c(r))return v(r)}},c=function(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info},p=function(e){var t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=s(e,4);return{type:t,size:n,data:e.subarray(10,10+n)}},d=function(e){for(var t=0,n=[];i(e,t);){for(var r=s(e,t+6),o=(t+=10)+r;t+8<o;){var l=p(e.subarray(t)),u=f(l);u&&n.push(u),t+=l.size+10}a(e,t)&&(t+=10)}return n},f=function(e){return"PRIV"===e.type?h(e):"W"===e.type[0]?y(e):g(e)},h=function(e){if(!(e.size<2)){var t=m(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}},g=function(e){if(!(e.size<2)){if("TXXX"===e.type){var t=1,n=m(e.data.subarray(t),!0);t+=n.length+1;var r=m(e.data.subarray(t));return{key:e.type,info:n,data:r}}var i=m(e.data.subarray(1));return{key:e.type,data:i}}},y=function(e){if("WXXX"===e.type){if(e.size<2)return;var t=1,n=m(e.data.subarray(t),!0);t+=n.length+1;var r=m(e.data.subarray(t));return{key:e.type,info:n,data:r}}var i=m(e.data);return{key:e.type,data:i}},v=function(e){if(8===e.data.byteLength){var t=new Uint8Array(e.data),n=1&t[3],r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,n&&(r+=47721858.84),Math.round(r)}},m=function(e,t){void 0===t&&(t=!1);var n=_();if(n){var r=n.decode(e);if(t){var i=r.indexOf("\0");return-1!==i?r.substring(0,i):r}return r.replace(/\0/g,"")}for(var a,o,s,l=e.length,u="",c=0;c<l;){if(0===(a=e[c++])&&t)return u;if(0!==a&&3!==a)switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(a);break;case 12:case 13:o=e[c++],u+=String.fromCharCode((31&a)<<6|63&o);break;case 14:o=e[c++],s=e[c++],u+=String.fromCharCode((15&a)<<12|(63&o)<<6|(63&s)<<0)}}return u},b={decodeTextFrame:g};function _(){return r||void 0===self.TextDecoder||(r=new self.TextDecoder("utf-8")),r}},182:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(544),i=n(851),a=n(93),o=n(729),s=n(973);function l(e){var t=new o.EventEmitter,n=function(t,n){e.postMessage({event:t,data:n})};t.on(i.Events.FRAG_DECRYPTED,n),t.on(i.Events.ERROR,n),e.addEventListener("message",(function(o){var l=o.data;switch(l.cmd){case"init":var c=JSON.parse(l.config);e.transmuxer=new r.default(t,l.typeSupported,c,l.vendor,l.id),(0,a.enableLogs)(c.debug,l.id),function(){var e=function(e){a.logger[e]=function(t){n("workerLog",{logType:e,message:t})}};for(var t in a.logger)e(t)}(),n("init",null);break;case"configure":e.transmuxer.configure(l.config);break;case"demux":var d=e.transmuxer.push(l.data,l.decryptdata,l.chunkMeta,l.state);(0,r.isPromise)(d)?(e.transmuxer.async=!0,d.then((function(t){u(e,t)})).catch((function(e){n(i.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.FRAG_PARSING_ERROR,chunkMeta:l.chunkMeta,fatal:!1,error:e,err:e,reason:"transmuxer-worker push error"})}))):(e.transmuxer.async=!1,u(e,d));break;case"flush":var f=l.chunkMeta,h=e.transmuxer.flush(f);(0,r.isPromise)(h)||e.transmuxer.async?((0,r.isPromise)(h)||(h=Promise.resolve(h)),h.then((function(t){p(e,t,f)})).catch((function(e){n(i.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.FRAG_PARSING_ERROR,chunkMeta:l.chunkMeta,fatal:!1,error:e,err:e,reason:"transmuxer-worker flush error"})}))):p(e,h,f)}}))}function u(e,t){if(!((n=t.remuxResult).audio||n.video||n.text||n.id3||n.initSegment))return!1;var n,r=[],i=t.remuxResult,a=i.audio,o=i.video;return a&&c(r,a),o&&c(r,o),e.postMessage({event:"transmuxComplete",data:t},r),!0}function c(e,t){t.data1&&e.push(t.data1.buffer),t.data2&&e.push(t.data2.buffer)}function p(e,t,n){t.reduce((function(t,n){return u(e,n)||t}),!1)||e.postMessage({event:"transmuxComplete",data:t[0]}),e.postMessage({event:"flush",data:n})}},544:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TransmuxConfig:()=>oe,TransmuxState:()=>se,default:()=>re,isPromise:()=>ae});var r=n(851),i=n(973),a=n(21),o=n(965),s=n(181),l=n(856);function u(e,t){return void 0===e&&(e=""),void 0===t&&(t=9e4),{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}var c=n(63),p=n(145),d=function(){function e(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}var t=e.prototype;return t.resetInitSegment=function(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},t.resetTimeStamp=function(e){this.initPTS=e,this.resetContiguity()},t.resetContiguity=function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0},t.canParse=function(e,t){return!1},t.appendFrame=function(e,t,n){},t.demux=function(e,t){this.cachedData&&(e=(0,c.appendUint8Array)(this.cachedData,e),this.cachedData=null);var n,r=s.getID3Data(e,0),i=r?r.length:0,a=this._audioTrack,d=this._id3Track,h=r?s.getTimeStamp(r):void 0,g=e.length;for((null===this.basePTS||0===this.frameIndex&&(0,o.isFiniteNumber)(h))&&(this.basePTS=f(h,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),r&&r.length>0&&d.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:l.MetadataSchema.audioId3,duration:Number.POSITIVE_INFINITY});i<g;){if(this.canParse(e,i)){var y=this.appendFrame(a,e,i);y?(this.frameIndex++,this.lastPTS=y.sample.pts,n=i+=y.length):i=g}else s.canParse(e,i)?(r=s.getID3Data(e,i),d.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:l.MetadataSchema.audioId3,duration:Number.POSITIVE_INFINITY}),n=i+=r.length):i++;if(i===g&&n!==g){var v=(0,p.sliceUint8)(e,n);this.cachedData?this.cachedData=(0,c.appendUint8Array)(this.cachedData,v):this.cachedData=v}}return{audioTrack:a,videoTrack:u(),id3Track:d,textTrack:u()}},t.demuxSampleAes=function(e,t,n){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},t.flush=function(e){var t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:u(),id3Track:this._id3Track,textTrack:u()}},t.destroy=function(){},e}(),f=function(e,t,n){return(0,o.isFiniteNumber)(e)?90*e:9e4*t+(n||0)};const h=d;var g=n(93);function y(e,t){return 255===e[t]&&240==(246&e[t+1])}function v(e,t){return 1&e[t+1]?7:9}function m(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function b(e,t){return t+1<e.length&&y(e,t)}function _(e,t){if(b(e,t)){var n=v(e,t);if(t+n>=e.length)return!1;var r=m(e,t);if(r<=n)return!1;var i=t+r;return i===e.length||b(e,i)}return!1}function E(e,t,n,a,o){if(!e.samplerate){var s=function(e,t,n,a){var o,s,l,u,c=navigator.userAgent.toLowerCase(),p=a,d=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];o=1+((192&t[n+2])>>>6);var f=(60&t[n+2])>>>2;if(!(f>d.length-1))return l=(1&t[n+2])<<2,l|=(192&t[n+3])>>>6,g.logger.log("manifest codec:"+a+", ADTS type:"+o+", samplingIndex:"+f),/firefox/i.test(c)?f>=6?(o=5,u=new Array(4),s=f-3):(o=2,u=new Array(2),s=f):-1!==c.indexOf("android")?(o=2,u=new Array(2),s=f):(o=5,u=new Array(4),a&&(-1!==a.indexOf("mp4a.40.29")||-1!==a.indexOf("mp4a.40.5"))||!a&&f>=6?s=f-3:((a&&-1!==a.indexOf("mp4a.40.2")&&(f>=6&&1===l||/vivaldi/i.test(c))||!a&&1===l)&&(o=2,u=new Array(2)),s=f)),u[0]=o<<3,u[0]|=(14&f)>>1,u[1]|=(1&f)<<7,u[1]|=l<<3,5===o&&(u[1]|=(14&s)>>1,u[2]=(1&s)<<7,u[2]|=8,u[3]=0),{config:u,samplerate:d[f],channelCount:l,codec:"mp4a.40."+o,manifestCodec:p};e.trigger(r.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+f})}(t,n,a,o);if(!s)return;e.config=s.config,e.samplerate=s.samplerate,e.channelCount=s.channelCount,e.codec=s.codec,e.manifestCodec=s.manifestCodec,g.logger.log("parsed codec:"+e.codec+", rate:"+s.samplerate+", channels:"+s.channelCount)}}function k(e){return 9216e4/e}function T(e,t,n,r,i){var a,o=r+i*k(e.samplerate),s=function(e,t){var n=v(e,t);if(t+n<=e.length){var r=m(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}(t,n);if(s){var l=s.frameLength,u=s.headerLength,c=u+l,p=Math.max(0,n+c-t.length);p?(a=new Uint8Array(c-u)).set(t.subarray(n+u,t.length),0):a=t.subarray(n+u,n+c);var d={unit:a,pts:o};return p||e.samples.push(d),{sample:d,length:c,missing:p}}var f=t.length-n;return(a=new Uint8Array(f)).set(t.subarray(n,t.length),0),{sample:{unit:a,pts:o},length:f,missing:-1}}function A(e,t){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}const w=function(e){var t,n;function r(t,n){var r;return(r=e.call(this)||this).observer=void 0,r.config=void 0,r.observer=t,r.config=n,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,A(t,n);var i=r.prototype;return i.resetInitSegment=function(t,n,r,i){e.prototype.resetInitSegment.call(this,t,n,r,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}},r.probe=function(e){if(!e)return!1;for(var t=(s.getID3Data(e,0)||[]).length,n=e.length;t<n;t++)if(_(e,t))return g.logger.log("ADTS sync word found !"),!0;return!1},i.canParse=function(e,t){return function(e,t){return function(e,t){return t+5<e.length}(e,t)&&y(e,t)&&m(e,t)<=e.length-t}(e,t)},i.appendFrame=function(e,t,n){E(e,this.observer,t,n,e.manifestCodec);var r=T(e,t,n,this.basePTS,this.frameIndex);if(r&&0===r.missing)return r},r}(h);var S=/\/emsg[-/]ID3/i;const C=function(){function e(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}var t=e.prototype;return t.resetTimeStamp=function(){},t.resetInitSegment=function(e,t,n,r){var i=this.videoTrack=u("video",1),a=this.audioTrack=u("audio",1),o=this.txtTrack=u("text",1);if(this.id3Track=u("id3",1),this.timeOffset=0,e&&e.byteLength){var s=(0,c.parseInitSegment)(e);if(s.video){var l=s.video,p=l.id,d=l.timescale,f=l.codec;i.id=p,i.timescale=o.timescale=d,i.codec=f}if(s.audio){var h=s.audio,g=h.id,y=h.timescale,v=h.codec;a.id=g,a.timescale=y,a.codec=v}o.id=c.RemuxerTrackIdConfig.text,i.sampleDuration=0,i.duration=a.duration=r}},t.resetContiguity=function(){},e.probe=function(e){return e=e.length>16384?e.subarray(0,16384):e,(0,c.findBox)(e,["moof"]).length>0},t.demux=function(e,t){this.timeOffset=t;var n=e,r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=(0,c.appendUint8Array)(this.remainderData,e));var a=(0,c.segmentValidRange)(n);this.remainderData=a.remainder,r.samples=a.valid||new Uint8Array}else r.samples=n;var o=this.extractID3Track(r,t);return i.samples=(0,c.parseSamples)(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:o,textTrack:this.txtTrack}},t.flush=function(){var e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;var r=this.extractID3Track(t,this.timeOffset);return n.samples=(0,c.parseSamples)(e,t),{videoTrack:t,audioTrack:u(),id3Track:r,textTrack:u()}},t.extractID3Track=function(e,t){var n=this.id3Track;if(e.samples.length){var r=(0,c.findBox)(e.samples,["emsg"]);r&&r.forEach((function(e){var r=(0,c.parseEmsg)(e);if(S.test(r.schemeIdUri)){var i=(0,o.isFiniteNumber)(r.presentationTime)?r.presentationTime/r.timeScale:t+r.presentationTimeDelta/r.timeScale,a=4294967295===r.eventDuration?Number.POSITIVE_INFINITY:r.eventDuration/r.timeScale;a<=.001&&(a=Number.POSITIVE_INFINITY);var s=r.payload;n.samples.push({data:s,len:s.byteLength,dts:i,pts:i,type:l.MetadataSchema.emsg,duration:a})}}))}return n},t.demuxSampleAes=function(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},t.destroy=function(){},e}();var x=null,I=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],P=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],D=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],R=[0,1,1,4];function O(e,t,n,r,i){if(!(n+24>t.length)){var a=L(t,n);if(a&&n+a.frameLength<=t.length){var o=r+i*(9e4*a.samplesPerFrame/a.sampleRate),s={unit:t.subarray(n,n+a.frameLength),pts:o,dts:o};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(s),{sample:s,length:a.frameLength,missing:0}}}}function L(e,t){var n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,a=e[t+2]>>2&3;if(1!==n&&0!==i&&15!==i&&3!==a){var o=e[t+2]>>1&1,s=e[t+3]>>6,l=1e3*I[14*(3===n?3-r:3===r?3:4)+i-1],u=P[3*(3===n?0:2===n?1:2)+a],c=3===s?1:2,p=D[n][r],d=R[r],f=8*p*d,h=Math.floor(p*l/u+o)*d;if(null===x){var g=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);x=g?parseInt(g[1]):0}return!!x&&x<=87&&2===r&&l>=224e3&&0===s&&(e[t+3]=128|e[t+3]),{sampleRate:u,channelCount:c,frameLength:h,samplesPerFrame:f}}}function M(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function N(e,t){return t+1<e.length&&M(e,t)}function U(e,t){if(t+1<e.length&&M(e,t)){var n=L(e,t),r=4;null!=n&&n.frameLength&&(r=n.frameLength);var i=t+r;return i===e.length||N(e,i)}return!1}const F=function(){function e(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}var t=e.prototype;return t.loadWord=function(){var e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i},t.skipBits=function(e){var t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,e-=(t=e>>3)<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},t.readBits=function(e){var t=Math.min(this.bitsAvailable,e),n=this.word>>>32-t;if(e>32&&g.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(t=e-t)>0&&this.bitsAvailable?n<<t|this.readBits(t):n},t.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if(0!=(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},t.skipUEG=function(){this.skipBits(1+this.skipLZ())},t.skipEG=function(){this.skipBits(1+this.skipLZ())},t.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},t.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},t.readBoolean=function(){return 1===this.readBits(1)},t.readUByte=function(){return this.readBits(8)},t.readUShort=function(){return this.readBits(16)},t.readUInt=function(){return this.readBits(32)},t.skipScalingList=function(e){for(var t=8,n=8,r=0;r<e;r++)0!==n&&(n=(t+this.readEG()+256)%256),t=0===n?t:n},t.readSPS=function(){var e,t,n,r=0,i=0,a=0,o=0,s=this.readUByte.bind(this),l=this.readBits.bind(this),u=this.readUEG.bind(this),c=this.readBoolean.bind(this),p=this.skipBits.bind(this),d=this.skipEG.bind(this),f=this.skipUEG.bind(this),h=this.skipScalingList.bind(this);s();var g=s();if(l(5),p(3),s(),f(),100===g||110===g||122===g||244===g||44===g||83===g||86===g||118===g||128===g){var y=u();if(3===y&&p(1),f(),f(),p(1),c())for(t=3!==y?8:12,n=0;n<t;n++)c()&&h(n<6?16:64)}f();var v=u();if(0===v)u();else if(1===v)for(p(1),d(),d(),e=u(),n=0;n<e;n++)d();f(),p(1);var m=u(),b=u(),_=l(1);0===_&&p(1),p(1),c()&&(r=u(),i=u(),a=u(),o=u());var E=[1,1];if(c()&&c())switch(s()){case 1:E=[1,1];break;case 2:E=[12,11];break;case 3:E=[10,11];break;case 4:E=[16,11];break;case 5:E=[40,33];break;case 6:E=[24,11];break;case 7:E=[20,11];break;case 8:E=[32,11];break;case 9:E=[80,33];break;case 10:E=[18,11];break;case 11:E=[15,11];break;case 12:E=[64,33];break;case 13:E=[160,99];break;case 14:E=[4,3];break;case 15:E=[3,2];break;case 16:E=[2,1];break;case 255:E=[s()<<8|s(),s()<<8|s()]}return{width:Math.ceil(16*(m+1)-2*r-2*i),height:(2-_)*(b+1)*16-(_?2:4)*(a+o),pixelRatio:E}},t.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},e}(),j=function(){function e(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new a.default(t,{removePKCS7Padding:!1})}var t=e.prototype;return t.decryptBuffer=function(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)},t.decryptAacSample=function(e,t,n){var r=this,i=e[t].unit;if(!(i.length<=16)){var a=i.subarray(16,i.length-i.length%16),o=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(o).then((function(a){var o=new Uint8Array(a);i.set(o,16),r.decrypter.isSync()||r.decryptAacSamples(e,t+1,n)}))}},t.decryptAacSamples=function(e,t,n){for(;;t++){if(t>=e.length)return void n();if(!(e[t].unit.length<32||(this.decryptAacSample(e,t,n),this.decrypter.isSync())))return}},t.getAvcEncryptedData=function(e){for(var t=16*Math.floor((e.length-48)/160)+16,n=new Int8Array(t),r=0,i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n},t.getAvcDecryptedUnit=function(e,t){for(var n=new Uint8Array(t),r=0,i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e},t.decryptAvcSample=function(e,t,n,r,i){var a=this,o=(0,c.discardEPB)(i.data),s=this.getAvcEncryptedData(o);this.decryptBuffer(s.buffer).then((function(s){i.data=a.getAvcDecryptedUnit(o,s),a.decrypter.isSync()||a.decryptAvcSamples(e,t,n+1,r)}))},t.decryptAvcSamples=function(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length)return void r();for(var i=e[t].units;!(n>=i.length);n++){var a=i[n];if(!(a.data.length<=48||1!==a.type&&5!==a.type||(this.decryptAvcSample(e,t,n,r,a),this.decrypter.isSync())))return}}},e}();function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var V=188;function H(e,t,n,r){return{key:e,frame:!1,pts:t,dts:n,units:[],debug:r,length:0}}function K(e,t){return((31&e[t+1])<<8)+e[t+2]}function G(e,t){return(31&e[t+10])<<8|e[t+11]}function z(e,t,n,r){var i={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},a=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t<a;){var o=K(e,t);switch(e[t]){case 207:if(!r){g.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===i.audio&&(i.audio=o);break;case 21:-1===i.id3&&(i.id3=o);break;case 219:if(!r){g.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===i.avc&&(i.avc=o);break;case 3:case 4:!0!==n.mpeg&&!0!==n.mp3?g.logger.log("MPEG audio found, not supported in this browser"):-1===i.audio&&(i.audio=o,i.segmentCodec="mp3");break;case 36:g.logger.warn("Unsupported HEVC stream type found")}t+=5+((15&e[t+3])<<8|e[t+4])}return i}function W(e){var t,n,r,i,a,o=0,s=e.data;if(!e||0===e.size)return null;for(;s[0].length<19&&s.length>1;){var l=new Uint8Array(s[0].length+s[1].length);l.set(s[0]),l.set(s[1],s[0].length),s[0]=l,s.splice(1,1)}if(1===((t=s[0])[0]<<16)+(t[1]<<8)+t[2]){if((n=(t[4]<<8)+t[5])&&n>e.size-6)return null;var u=t[7];192&u&&(i=536870912*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2,64&u?i-(a=536870912*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2)>54e5&&(g.logger.warn(Math.round((i-a)/9e4)+"s delta between PTS and DTS, align them"),i=a):a=i);var c=(r=t[8])+9;if(e.size<=c)return null;e.size-=c;for(var p=new Uint8Array(e.size),d=0,f=s.length;d<f;d++){var h=(t=s[d]).byteLength;if(c){if(c>h){c-=h;continue}t=t.subarray(c),h-=c,c=0}p.set(t,o),o+=h}return n&&(n-=r+3),{data:p,pts:i,dts:a,len:n}}return null}function Y(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){var n=t.samples,r=n.length;if(!r)return void t.dropped++;var i=n[r-1];e.pts=i.pts,e.dts=i.dts}t.samples.push(e)}e.debug.length&&g.logger.log(e.pts+"/"+e.dts+":"+e.debug)}const q=function(){function e(e,t,n){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=e,this.config=t,this.typeSupported=n}e.probe=function(t){var n=e.syncOffset(t);return n>0&&g.logger.warn("MPEG2-TS detected but first sync word found @ offset "+n),-1!==n},e.syncOffset=function(e){for(var t=e.length,n=Math.min(940,e.length-V)+1,r=0;r<n;){for(var i=!1,a=r;a<t&&71===e[a];a+=V)if(i||0!==K(e,a)||(i=!0),i&&a+V>n)return r;r++}return-1},e.createTrack=function(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:c.RemuxerTrackIdConfig[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}};var t=e.prototype;return t.resetInitSegment=function(t,n,r,i){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=e.createTrack("video"),this._audioTrack=e.createTrack("audio",i),this._id3Track=e.createTrack("id3"),this._txtTrack=e.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r,this._duration=i},t.resetTimeStamp=function(){},t.resetContiguity=function(){var e=this._audioTrack,t=this._avcTrack,n=this._id3Track;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null},t.demux=function(t,n,a,o){var s;void 0===a&&(a=!1),void 0===o&&(o=!1),a||(this.sampleAes=null);var l=this._avcTrack,u=this._audioTrack,p=this._id3Track,d=this._txtTrack,f=l.pid,h=l.pesData,y=u.pid,v=p.pid,m=u.pesData,b=p.pesData,_=null,E=this.pmtParsed,k=this._pmtId,T=t.length;if(this.remainderData&&(T=(t=(0,c.appendUint8Array)(this.remainderData,t)).length,this.remainderData=null),T<V&&!o)return this.remainderData=t,{audioTrack:u,videoTrack:l,id3Track:p,textTrack:d};var A=Math.max(0,e.syncOffset(t));(T-=(T-A)%V)<t.byteLength&&!o&&(this.remainderData=new Uint8Array(t.buffer,T,t.buffer.byteLength-T));for(var w=0,S=A;S<T;S+=V)if(71===t[S]){var C=!!(64&t[S+1]),x=K(t,S),I=void 0;if((48&t[S+3])>>4>1){if((I=S+5+t[S+4])===S+V)continue}else I=S+4;switch(x){case f:C&&(h&&(s=W(h))&&this.parseAVCPES(l,d,s,!1),h={data:[],size:0}),h&&(h.data.push(t.subarray(I,S+V)),h.size+=S+V-I);break;case y:if(C){if(m&&(s=W(m)))switch(u.segmentCodec){case"aac":this.parseAACPES(u,s);break;case"mp3":this.parseMPEGPES(u,s)}m={data:[],size:0}}m&&(m.data.push(t.subarray(I,S+V)),m.size+=S+V-I);break;case v:C&&(b&&(s=W(b))&&this.parseID3PES(p,s),b={data:[],size:0}),b&&(b.data.push(t.subarray(I,S+V)),b.size+=S+V-I);break;case 0:C&&(I+=t[I]+1),k=this._pmtId=G(t,I);break;case k:C&&(I+=t[I]+1);var P=z(t,I,this.typeSupported,a);(f=P.avc)>0&&(l.pid=f),(y=P.audio)>0&&(u.pid=y,u.segmentCodec=P.segmentCodec),(v=P.id3)>0&&(p.pid=v),null===_||E||(g.logger.warn("MPEG-TS PMT found at "+S+" after unknown PID '"+_+"'. Backtracking to sync byte @"+A+" to parse all TS packets."),_=null,S=A-188),E=this.pmtParsed=!0;break;case 17:case 8191:break;default:_=x}}else w++;w>0&&this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"Found "+w+" TS packet/s that do not start with 0x47"}),l.pesData=h,u.pesData=m,p.pesData=b;var D={audioTrack:u,videoTrack:l,id3Track:p,textTrack:d};return o&&this.extractRemainingSamples(D),D},t.flush=function(){var e,t=this.remainderData;return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e},t.extractRemainingSamples=function(e){var t,n=e.audioTrack,r=e.videoTrack,i=e.id3Track,a=e.textTrack,o=r.pesData,s=n.pesData,l=i.pesData;if(o&&(t=W(o))?(this.parseAVCPES(r,a,t,!0),r.pesData=null):r.pesData=o,s&&(t=W(s))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,t);break;case"mp3":this.parseMPEGPES(n,t)}n.pesData=null}else null!=s&&s.size&&g.logger.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=s;l&&(t=W(l))?(this.parseID3PES(i,t),i.pesData=null):i.pesData=l},t.demuxSampleAes=function(e,t,n){var r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new j(this.observer,this.config,t);return this.decrypt(r,i)},t.decrypt=function(e,t){return new Promise((function(n){var r=e.audioTrack,i=e.videoTrack;r.samples&&"aac"===r.segmentCodec?t.decryptAacSamples(r.samples,0,(function(){i.samples?t.decryptAvcSamples(i.samples,0,0,(function(){n(e)})):n(e)})):i.samples&&t.decryptAvcSamples(i.samples,0,0,(function(){n(e)}))}))},t.destroy=function(){this._duration=0},t.parseAVCPES=function(e,t,n,r){var i,a=this,o=this.parseAVCNALu(e,n.data),s=this.avcSample,l=!1;n.data=null,s&&o.length&&!e.audFound&&(Y(s,e),s=this.avcSample=H(!1,n.pts,n.dts,"")),o.forEach((function(r){switch(r.type){case 1:i=!0,s||(s=a.avcSample=H(!0,n.pts,n.dts,"")),s.frame=!0;var o=r.data;if(l&&o.length>4){var u=new F(o).readSliceType();2!==u&&4!==u&&7!==u&&9!==u||(s.key=!0)}break;case 5:i=!0,s||(s=a.avcSample=H(!0,n.pts,n.dts,"")),s.key=!0,s.frame=!0;break;case 6:i=!0,(0,c.parseSEIMessageFromNALu)(r.data,1,n.pts,t.samples);break;case 7:if(i=!0,l=!0,!e.sps){var p=new F(r.data).readSPS();e.width=p.width,e.height=p.height,e.pixelRatio=p.pixelRatio,e.sps=[r.data],e.duration=a._duration;for(var d=r.data.subarray(1,4),f="avc1.",h=0;h<3;h++){var g=d[h].toString(16);g.length<2&&(g="0"+g),f+=g}e.codec=f}break;case 8:i=!0,e.pps||(e.pps=[r.data]);break;case 9:i=!1,e.audFound=!0,s&&Y(s,e),s=a.avcSample=H(!1,n.pts,n.dts,"");break;case 12:i=!0;break;default:i=!1,s&&(s.debug+="unknown NAL "+r.type+" ")}s&&i&&s.units.push(r)})),r&&s&&(Y(s,e),this.avcSample=null)},t.getLastNalUnit=function(e){var t,n,r=this.avcSample;if(r&&0!==r.units.length||(r=e[e.length-1]),null!==(t=r)&&void 0!==t&&t.units){var i=r.units;n=i[i.length-1]}return n},t.parseAVCNALu=function(e,t){var n,r,i=t.byteLength,a=e.naluState||0,o=a,s=[],l=0,u=-1,c=0;for(-1===a&&(u=0,c=31&t[0],a=0,l=1);l<i;)if(n=t[l++],a)if(1!==a)if(n)if(1===n){if(u>=0){var p={data:t.subarray(u,l-a-1),type:c};s.push(p)}else{var d=this.getLastNalUnit(e.samples);if(d&&(o&&l<=4-o&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-o)),(r=l-a-1)>0)){var f=new Uint8Array(d.data.byteLength+r);f.set(d.data,0),f.set(t.subarray(0,r),d.data.byteLength),d.data=f,d.state=0}}l<i?(u=l,c=31&t[l],a=0):a=-1}else a=0;else a=3;else a=n?0:2;else a=n?0:1;if(u>=0&&a>=0){var h={data:t.subarray(u,i),type:c,state:a};s.push(h)}if(0===s.length){var g=this.getLastNalUnit(e.samples);if(g){var y=new Uint8Array(g.data.byteLength+t.byteLength);y.set(g.data,0),y.set(t,g.data.byteLength),g.data=y}}return e.naluState=a,s},t.parseAACPES=function(e,t){var n,a,o,s,l,u=0,c=this.aacOverFlow,p=t.data;if(c){this.aacOverFlow=null;var d=c.missing,f=c.sample.unit.byteLength;if(-1===d){var h=new Uint8Array(f+p.byteLength);h.set(c.sample.unit,0),h.set(p,f),p=h}else{var y=f-d;c.sample.unit.set(p.subarray(0,d),y),e.samples.push(c.sample),u=c.missing}}for(n=u,a=p.length;n<a-1&&!b(p,n);n++);if(n===u||(n<a-1?(o="AAC PES did not start with ADTS header,offset:"+n,s=!1):(o="no ADTS header found in AAC PES",s=!0),g.logger.warn("parsing error:"+o),this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:s,reason:o}),!s)){if(E(e,this.observer,p,n,this.audioCodec),void 0!==t.pts)l=t.pts;else{if(!c)return void g.logger.warn("[tsdemuxer]: AAC PES unknown PTS");var v=k(e.samplerate);l=c.sample.pts+v}for(var m,_=0;n<a;){if(n+=(m=T(e,p,n,l,_)).length,m.missing){this.aacOverFlow=m;break}for(_++;n<a-1&&!b(p,n);n++);}}},t.parseMPEGPES=function(e,t){var n=t.data,r=n.length,i=0,a=0,o=t.pts;if(void 0!==o)for(;a<r;)if(N(n,a)){var s=O(e,n,a,o,i);if(!s)break;a+=s.length,i++}else a++;else g.logger.warn("[tsdemuxer]: MPEG PES unknown PTS")},t.parseID3PES=function(e,t){if(void 0!==t.pts){var n=B({},t,{type:this._avcTrack?l.MetadataSchema.emsg:l.MetadataSchema.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}else g.logger.warn("[tsdemuxer]: ID3 PES unknown PTS")},e}();function X(e,t){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}const $=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,X(t,n);var i=r.prototype;return i.resetInitSegment=function(t,n,r,i){e.prototype.resetInitSegment.call(this,t,n,r,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}},r.probe=function(e){if(!e)return!1;for(var t=(s.getID3Data(e,0)||[]).length,n=e.length;t<n;t++)if(U(e,t))return g.logger.log("MPEG Audio sync word found !"),!0;return!1},i.canParse=function(e,t){return function(e,t){return M(e,t)&&4<=e.length-t}(e,t)},i.appendFrame=function(e,t,n){if(null!==this.basePTS)return O(e,t,n,this.basePTS,this.frameIndex)},r}(h);var Q=n(524),Z=n(923);function J(e,t){var n=null==e?void 0:e.codec;return n&&n.length>4?n:"hvc1"===n||"hev1"===n?"hvc1.1.c.L120.90":"av01"===n?"av01.0.04M.08":"avc1"===n||t===Z.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}const ee=function(){function e(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndTime=null}var t=e.prototype;return t.destroy=function(){},t.resetTimeStamp=function(e){this.initPTS=e,this.lastEndTime=null},t.resetNextTimestamp=function(){this.lastEndTime=null},t.resetInitSegment=function(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment((0,c.patchEncyptionData)(e,r)),this.emitInitSegment=!0},t.generateInitSegment=function(e){var t=this.audioCodec,n=this.videoCodec;if(!e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var r=this.initData=(0,c.parseInitSegment)(e);t||(t=J(r.audio,Z.ElementaryStreamTypes.AUDIO)),n||(n=J(r.video,Z.ElementaryStreamTypes.VIDEO));var i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,initSegment:e,id:"main"}:g.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i},t.remux=function(e,t,n,r,i){var a,s=this.initPTS,l=this.lastEndTime,u={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};(0,o.isFiniteNumber)(l)||(l=this.lastEndTime=i||0);var p=t.samples;if(!p||!p.length)return u;var d={initPTS:void 0,timescale:1},f=this.initData;if(f&&f.length||(this.generateInitSegment(p),f=this.initData),!f||!f.length)return g.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),u;this.emitInitSegment&&(d.tracks=this.initTracks,this.emitInitSegment=!1);var h=(0,c.getStartDTS)(f,p);(0,o.isFiniteNumber)(s)||(this.initPTS=d.initPTS=s=h-i);var y=(0,c.getDuration)(p,f),v=e?h-s:l,m=v+y;(0,c.offsetStartDTS)(f,p,s),y>0?this.lastEndTime=m:(g.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var b=!!f.audio,_=!!f.video,E="";b&&(E+="audio"),_&&(E+="video");var k={data1:p,startPTS:v,startDTS:v,endPTS:m,endDTS:m,type:E,hasAudio:b,hasVideo:_,nb:1,dropped:0};u.audio="audio"===k.type?k:void 0,u.video="audio"!==k.type?k:void 0,u.initSegment=d;var T=null!=(a=this.initPTS)?a:0;return u.id3=(0,Q.flushTextTrackMetadataCueSamples)(n,i,T,T),r.samples.length&&(u.text=(0,Q.flushTextTrackUserdataCueSamples)(r,i,T)),u},e}();var te;try{te=self.performance.now.bind(self.performance)}catch(e){g.logger.debug("Unable to use Performance API on this environment"),te=self.Date.now}var ne=[{demux:C,remux:ee},{demux:q,remux:Q.default},{demux:w,remux:Q.default},{demux:$,remux:Q.default}],re=function(){function e(e,t,n,r,i){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.vendor=r,this.id=i}var t=e.prototype;return t.configure=function(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()},t.push=function(e,t,n,r){var i=this,a=n.transmuxing;a.executeStart=te();var o=new Uint8Array(e),s=this.currentTransmuxState,l=this.transmuxConfig;r&&(this.currentTransmuxState=r);var u=r||s,c=u.contiguous,p=u.discontinuity,d=u.trackSwitch,f=u.accurateTimeOffset,h=u.timeOffset,g=u.initSegmentChange,y=l.audioCodec,v=l.videoCodec,m=l.defaultInitPts,b=l.duration,_=l.initSegmentData,E=function(e,t){var n=null;return e.byteLength>0&&null!=t&&null!=t.key&&null!==t.iv&&null!=t.method&&(n=t),n}(o,t);if(E&&"AES-128"===E.method){var k=this.getDecrypter();if(!k.isSync())return this.decryptionPromise=k.webCryptoDecrypt(o,E.key.buffer,E.iv.buffer).then((function(e){var t=i.push(e,null,n);return i.decryptionPromise=null,t})),this.decryptionPromise;var T=k.softwareDecrypt(o,E.key.buffer,E.iv.buffer);if(n.part>-1&&(T=k.flush()),!T)return a.executeEnd=te(),ie(n);o=new Uint8Array(T)}var A=this.needsProbing(p,d);A&&this.configureTransmuxer(o),(p||d||g||A)&&this.resetInitSegment(_,y,v,b,t),(p||g||A)&&this.resetInitialTimestamp(m),c||this.resetContiguity();var w=this.transmux(o,E,h,f,n),S=this.currentTransmuxState;return S.contiguous=!0,S.discontinuity=!1,S.trackSwitch=!1,a.executeEnd=te(),w},t.flush=function(e){var t=this,n=e.transmuxing;n.executeStart=te();var a=this.decrypter,o=this.currentTransmuxState,s=this.decryptionPromise;if(s)return s.then((function(){return t.flush(e)}));var l=[],u=o.timeOffset;if(a){var c=a.flush();c&&l.push(this.push(c,null,e))}var p=this.demuxer,d=this.remuxer;if(!p||!d)return this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),n.executeEnd=te(),[ie(e)];var f=p.flush(u);return ae(f)?f.then((function(n){return t.flushRemux(l,n,e),l})):(this.flushRemux(l,f,e),l)},t.flushRemux=function(e,t,n){var r=t.audioTrack,i=t.videoTrack,a=t.id3Track,o=t.textTrack,s=this.currentTransmuxState,l=s.accurateTimeOffset,u=s.timeOffset;g.logger.log("[transmuxer.ts]: Flushed fragment "+n.sn+(n.part>-1?" p: "+n.part:"")+" of level "+n.level);var c=this.remuxer.remux(r,i,a,o,u,l,!0,this.id);e.push({remuxResult:c,chunkMeta:n}),n.transmuxing.executeEnd=te()},t.resetInitialTimestamp=function(e){var t=this.demuxer,n=this.remuxer;t&&n&&(t.resetTimeStamp(e),n.resetTimeStamp(e))},t.resetContiguity=function(){var e=this.demuxer,t=this.remuxer;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())},t.resetInitSegment=function(e,t,n,r,i){var a=this.demuxer,o=this.remuxer;a&&o&&(a.resetInitSegment(e,t,n,r),o.resetInitSegment(e,t,n,i))},t.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},t.transmux=function(e,t,n,r,i){return t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,n,r,i):this.transmuxUnencrypted(e,n,r,i)},t.transmuxUnencrypted=function(e,t,n,r){var i=this.demuxer.demux(e,t,!1,!this.config.progressive),a=i.audioTrack,o=i.videoTrack,s=i.id3Track,l=i.textTrack;return{remuxResult:this.remuxer.remux(a,o,s,l,t,n,!1,this.id),chunkMeta:r}},t.transmuxSampleAes=function(e,t,n,r,i){var a=this;return this.demuxer.demuxSampleAes(e,t,n).then((function(e){return{remuxResult:a.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,r,!1,a.id),chunkMeta:i}}))},t.configureTransmuxer=function(e){for(var t,n=this.config,r=this.observer,i=this.typeSupported,a=this.vendor,o=0,s=ne.length;o<s;o++)if(ne[o].demux.probe(e)){t=ne[o];break}t||(g.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),t={demux:C,remux:ee});var l=this.demuxer,u=this.remuxer,c=t.remux,p=t.demux;u&&u instanceof c||(this.remuxer=new c(r,n,i,a)),l&&l instanceof p||(this.demuxer=new p(r,n,i),this.probe=p.probe)},t.needsProbing=function(e,t){return!this.demuxer||!this.remuxer||e||t},t.getDecrypter=function(){var e=this.decrypter;return e||(e=this.decrypter=new a.default(this.config)),e},e}(),ie=function(e){return{remuxResult:{},chunkMeta:e}};function ae(e){return"then"in e&&e.then instanceof Function}var oe=function(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i},se=function(e,t,n,r,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=a}},973:(e,t,n)=>{"use strict";var r,i;n.r(t),n.d(t,{ErrorDetails:()=>i,ErrorTypes:()=>r}),function(e){e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError"}(r||(r={})),function(e){e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.UNKNOWN="unknown"}(i||(i={}))},851:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{Events:()=>r}),function(e){e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached"}(r||(r={}))},76:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Tr});var r,i=n(945),a=n(965),o=n(851),s=n(973),l=n(93),u=/^(\d+)x(\d+)$/,c=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,p=function(){function e(t){for(var n in"string"==typeof t&&(t=e.parseAttrList(t)),t)t.hasOwnProperty(n)&&(this[n]=t[n])}var t=e.prototype;return t.decimalInteger=function(e){var t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.hexadecimalInteger=function(e){if(this[e]){var t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;for(var n=new Uint8Array(t.length/2),r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(2*r,2*r+2),16);return n}return null},t.hexadecimalIntegerAsNumber=function(e){var t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.decimalFloatingPoint=function(e){return parseFloat(this[e])},t.optionalFloat=function(e,t){var n=this[e];return n?parseFloat(n):t},t.enumeratedString=function(e){return this[e]},t.bool=function(e){return"YES"===this[e]},t.decimalResolution=function(e){var t=u.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}},e.parseAttrList=function(e){var t,n={};for(c.lastIndex=0;null!==(t=c.exec(e));){var r=t[2];0===r.indexOf('"')&&r.lastIndexOf('"')===r.length-1&&(r=r.slice(1,-1)),n[t[1]]=r}return n},e}();function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}!function(e){e.ID="ID",e.CLASS="CLASS",e.START_DATE="START-DATE",e.DURATION="DURATION",e.END_DATE="END-DATE",e.END_ON_NEXT="END-ON-NEXT",e.PLANNED_DURATION="PLANNED-DURATION",e.SCTE35_OUT="SCTE35-OUT",e.SCTE35_IN="SCTE35-IN"}(r||(r={}));var f,h,g,y=function(){function e(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){var n=t.attr;for(var i in n)if(Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==n[i]){l.logger.warn('DATERANGE tag attribute: "'+i+'" does not match for tags with ID: "'+e.ID+'"'),this._badValueForSameId=i;break}e=d(new p({}),n,e)}if(this.attr=e,this._startDate=new Date(e[r.START_DATE]),r.END_DATE in this.attr){var o=new Date(this.attr[r.END_DATE]);(0,a.isFiniteNumber)(o.getTime())&&(this._endDate=o)}}var t,n;return t=e,(n=[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var e=this.duration;return null!==e?new Date(this._startDate.getTime()+1e3*e):null}},{key:"duration",get:function(){if(r.DURATION in this.attr){var e=this.attr.decimalFloatingPoint(r.DURATION);if((0,a.isFiniteNumber)(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return r.PLANNED_DURATION in this.attr?this.attr.decimalFloatingPoint(r.PLANNED_DURATION):null}},{key:"endOnNext",get:function(){return this.attr.bool(r.END_ON_NEXT)}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&(0,a.isFiniteNumber)(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),v=n(923),m=function(){function e(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}var t,n;return e.prototype.reloaded=function(e){if(!e)return this.advanced=!0,void(this.updated=!0);var t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t,this.advanced=this.endSN>e.endSN||t>0||0===t&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},t=e,(n=[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&(0,a.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;return e>0?1e3*(this.driftEnd-this.driftStart)/e:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return null!==(e=this.partList)&&void 0!==e&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return null!==(e=this.fragments)&&void 0!==e&&e.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var e;return null!==(e=this.partList)&&void 0!==e&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return null!==(e=this.partList)&&void 0!==e&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function b(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))}function _(e){return Uint8Array.from(unescape(encodeURIComponent(e)),(function(e){return e.charCodeAt(0)}))}function E(e){switch(e){case h.FAIRPLAY:return f.FAIRPLAY;case h.PLAYREADY:return f.PLAYREADY;case h.WIDEVINE:return f.WIDEVINE;case h.CLEARKEY:return f.CLEARKEY}}function k(e){switch(e){case f.FAIRPLAY:return h.FAIRPLAY;case f.PLAYREADY:return h.PLAYREADY;case f.WIDEVINE:return h.WIDEVINE;case f.CLEARKEY:return h.CLEARKEY}}function T(e){var t=e.drmSystems,n=e.widevineLicenseUrl,r=t?[f.FAIRPLAY,f.WIDEVINE,f.PLAYREADY,f.CLEARKEY].filter((function(e){return!!t[e]})):[];return!r[f.WIDEVINE]&&n&&r.push(f.WIDEVINE),r}!function(e){e.CLEARKEY="org.w3.clearkey",e.FAIRPLAY="com.apple.fps",e.PLAYREADY="com.microsoft.playready",e.WIDEVINE="com.widevine.alpha"}(f||(f={})),function(e){e.CLEARKEY="org.w3.clearkey",e.FAIRPLAY="com.apple.streamingkeydelivery",e.PLAYREADY="com.microsoft.playready",e.WIDEVINE="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"}(h||(h={})),function(e){e.WIDEVINE="edef8ba979d64acea3c827dcd51d21ed"}(g||(g={}));var A="undefined"!=typeof self&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null,w=n(63),S={},C=function(){function e(e,t,n,r,i){void 0===r&&(r=[1]),void 0===i&&(i=null),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&"AES-128"!==e}e.clearKeyUriToKeyIdMap=function(){S={}};var t=e.prototype;return t.isSupported=function(){if(this.method){if("AES-128"===this.method||"NONE"===this.method)return!0;switch(this.keyFormat){case"identity":return"SAMPLE-AES"===this.method;case h.FAIRPLAY:case h.WIDEVINE:case h.PLAYREADY:case h.CLEARKEY:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1},t.getDecryptData=function(t){if(!this.encrypted||!this.uri)return null;if("AES-128"===this.method&&this.uri&&!this.iv){"number"!=typeof t&&("AES-128"!==this.method||this.iv||l.logger.warn('missing IV for initialization segment with method="'+this.method+'" - compliance issue'),t=0);var n=function(e){for(var t=new Uint8Array(16),n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}(t);return new e(this.method,this.uri,"identity",this.keyFormatVersions,n)}var r=function(e){var t,n,r=e.split(":"),i=null;if("data"===r[0]&&2===r.length){var a=r[1].split(";"),o=a[a.length-1].split(",");if(2===o.length){var s="base64"===o[0],l=o[1];s?(a.splice(-1,1),i=b(l)):(t=_(l).subarray(0,16),(n=new Uint8Array(16)).set(t,16-t.length),i=n)}}return i}(this.uri);if(r)switch(this.keyFormat){case h.WIDEVINE:this.pssh=r,r.length>=22&&(this.keyId=r.subarray(r.length-22,r.length-6));break;case h.PLAYREADY:var i=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=(0,w.mp4pssh)(i,null,r);var a=new Uint16Array(r.buffer,r.byteOffset,r.byteLength/2),o=String.fromCharCode.apply(null,Array.from(a)),s=o.substring(o.indexOf("<"),o.length),u=(new DOMParser).parseFromString(s,"text/xml").getElementsByTagName("KID")[0];if(u){var c=u.childNodes[0]?u.childNodes[0].nodeValue:u.getAttribute("VALUE");if(c){var p=b(c).subarray(0,16);!function(e){var t=function(e,t,n){var r=e[t];e[t]=e[n],e[n]=r};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}(p),this.keyId=p}}break;default:var d=r.subarray(0,16);if(16!==d.length){var f=new Uint8Array(16);f.set(d,16-d.length),d=f}this.keyId=d}if(!this.keyId||16!==this.keyId.byteLength){var g=S[this.uri];if(!g){var y=Object.keys(S).length%Number.MAX_SAFE_INTEGER;g=new Uint8Array(16),new DataView(g.buffer,12,4).setUint32(0,y),S[this.uri]=g}this.keyId=g}return this},e}(),x={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dva1:!0,dvav:!0,dvh1:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function I(e,t){return MediaSource.isTypeSupported((t||"video")+'/mp4;codecs="'+e+'"')}function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var D=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+|#EXT-X-SESSION-KEY:([^\n\r]*)[\r\n]+/g,R=/#EXT-X-MEDIA:(.*)/g,O=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),L=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),M=function(){function e(){}return e.findGroup=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.id===t)return r}},e.convertAVC1ToAVCOTI=function(e){var t=e.split(".");if(t.length>2){var n=t.shift()+".";return(n+=parseInt(t.shift()).toString(16))+("000"+parseInt(t.shift()).toString(16)).slice(-4)}return e},e.resolve=function(e,t){return(0,i.buildAbsoluteURL)(t,e,{alwaysNormalize:!0})},e.parseMasterPlaylist=function(t,n){var r,i=[],a=[],o={},s=[],u=!1;for(D.lastIndex=0;null!=(r=D.exec(t));)if(r[1]){var c,d=new p(r[1]),f={attrs:d,bitrate:d.decimalInteger("AVERAGE-BANDWIDTH")||d.decimalInteger("BANDWIDTH"),name:d.NAME,url:e.resolve(r[2],n)},h=d.decimalResolution("RESOLUTION");h&&(f.width=h.width,f.height=h.height),U((d.CODECS||"").split(/[ ,]+/).filter((function(e){return e})),f),f.videoCodec&&-1!==f.videoCodec.indexOf("avc1")&&(f.videoCodec=e.convertAVC1ToAVCOTI(f.videoCodec)),null!==(c=f.unknownCodecs)&&void 0!==c&&c.length||a.push(f),i.push(f)}else if(r[3]){var g=new p(r[3]);g["DATA-ID"]&&(u=!0,o[g["DATA-ID"]]=g)}else if(r[4]){var y=r[4],v=N(y,n);v.encrypted&&v.isSupported()?s.push(v):l.logger.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'+y+'"')}return{levels:a.length>0&&a.length<i.length?a:i,sessionData:u?o:null,sessionKeys:s.length?s:null}},e.parseMasterPlaylistMedia=function(t,n,r,i){var a;void 0===i&&(i=[]);var o=[],s=0;for(R.lastIndex=0;null!==(a=R.exec(t));){var l=new p(a[1]);if(l.TYPE===r){var u={attrs:l,bitrate:0,id:s++,groupId:l["GROUP-ID"],instreamId:l["INSTREAM-ID"],name:l.NAME||l.LANGUAGE||"",type:r,default:l.bool("DEFAULT"),autoselect:l.bool("AUTOSELECT"),forced:l.bool("FORCED"),lang:l.LANGUAGE,url:l.URI?e.resolve(l.URI,n):""};if(i.length){var c=e.findGroup(i,u.groupId)||i[0];F(u,c,"audioCodec"),F(u,c,"textCodec")}o.push(u)}}return o},e.parseLevelPlaylist=function(e,t,n,r,i){var o,s,u,c=new m(t),d=c.fragments,f=null,h=0,g=0,b=0,_=0,E=null,k=new v.Fragment(r,t),T=-1,A=!1;for(O.lastIndex=0,c.m3u8=e;null!==(o=O.exec(e));){A&&(A=!1,(k=new v.Fragment(r,t)).start=b,k.sn=h,k.cc=_,k.level=n,f&&(k.initSegment=f,k.rawProgramDateTime=f.rawProgramDateTime,f.rawProgramDateTime=null));var w=o[1];if(w){k.duration=parseFloat(w);var S=(" "+o[2]).slice(1);k.title=S||null,k.tagList.push(S?["INF",w,S]:["INF",w])}else if(o[3])(0,a.isFiniteNumber)(k.duration)&&(k.start=b,u&&V(k,u,c),k.sn=h,k.level=n,k.cc=_,k.urlId=i,d.push(k),k.relurl=(" "+o[3]).slice(1),j(k,E),E=k,b+=k.duration,h++,g=0,A=!0);else if(o[4]){var C=(" "+o[4]).slice(1);E?k.setByteRange(C,E):k.setByteRange(C)}else if(o[5])k.rawProgramDateTime=(" "+o[5]).slice(1),k.tagList.push(["PROGRAM-DATE-TIME",k.rawProgramDateTime]),-1===T&&(T=d.length);else{if(!(o=o[0].match(L))){l.logger.warn("No matches on slow regex match for level playlist!");continue}for(s=1;s<o.length&&void 0===o[s];s++);var x=(" "+o[s]).slice(1),I=(" "+o[s+1]).slice(1),D=o[s+2]?(" "+o[s+2]).slice(1):"";switch(x){case"PLAYLIST-TYPE":c.type=I.toUpperCase();break;case"MEDIA-SEQUENCE":h=c.startSN=parseInt(I);break;case"SKIP":var R=new p(I),M=R.decimalInteger("SKIPPED-SEGMENTS");if((0,a.isFiniteNumber)(M)){c.skippedSegments=M;for(var U=M;U--;)d.unshift(null);h+=M}var F=R.enumeratedString("RECENTLY-REMOVED-DATERANGES");F&&(c.recentlyRemovedDateranges=F.split("\t"));break;case"TARGETDURATION":c.targetduration=parseFloat(I);break;case"VERSION":c.version=parseInt(I);break;case"EXTM3U":break;case"ENDLIST":c.live=!1;break;case"#":(I||D)&&k.tagList.push(D?[I,D]:[I]);break;case"DISCONTINUITY":_++,k.tagList.push(["DIS"]);break;case"GAP":k.tagList.push([x]);break;case"BITRATE":k.tagList.push([x,I]);break;case"DATERANGE":var H=new p(I),K=new y(H,c.dateRanges[H.ID]);K.isValid||c.skippedSegments?c.dateRanges[K.id]=K:l.logger.warn('Ignoring invalid DATERANGE tag: "'+I+'"'),k.tagList.push(["EXT-X-DATERANGE",I]);break;case"DISCONTINUITY-SEQUENCE":_=parseInt(I);break;case"KEY":var G=N(I,t);if(G.isSupported()){if("NONE"===G.method){u=void 0;break}u||(u={}),u[G.keyFormat]&&(u=P({},u)),u[G.keyFormat]=G}else l.logger.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'+I+'"');break;case"START":var z=new p(I).decimalFloatingPoint("TIME-OFFSET");(0,a.isFiniteNumber)(z)&&(c.startTimeOffset=z);break;case"MAP":var W=new p(I);if(k.duration){var Y=new v.Fragment(r,t);B(Y,W,n,u),f=Y,k.initSegment=f,f.rawProgramDateTime&&!k.rawProgramDateTime&&(k.rawProgramDateTime=f.rawProgramDateTime)}else B(k,W,n,u),f=k,A=!0;break;case"SERVER-CONTROL":var q=new p(I);c.canBlockReload=q.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=q.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&q.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=q.optionalFloat("PART-HOLD-BACK",0),c.holdBack=q.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var X=new p(I);c.partTarget=X.decimalFloatingPoint("PART-TARGET");break;case"PART":var $=c.partList;$||($=c.partList=[]);var Q=g>0?$[$.length-1]:void 0,Z=g++,J=new v.Part(new p(I),k,t,Z,Q);$.push(J),k.duration+=J.duration;break;case"PRELOAD-HINT":var ee=new p(I);c.preloadHint=ee;break;case"RENDITION-REPORT":var te=new p(I);c.renditionReports=c.renditionReports||[],c.renditionReports.push(te);break;default:l.logger.warn("line parsed but not handled: "+o)}}}E&&!E.relurl?(d.pop(),b-=E.duration,c.partList&&(c.fragmentHint=E)):c.partList&&(j(k,E),k.cc=_,c.fragmentHint=k,u&&V(k,u,c));var ne=d.length,re=d[0],ie=d[ne-1];if((b+=c.skippedSegments*c.targetduration)>0&&ne&&ie){c.averagetargetduration=b/ne;var ae=ie.sn;c.endSN="initSegment"!==ae?ae:0,c.live||(ie.endList=!0),re&&(c.startCC=re.cc)}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(b+=c.fragmentHint.duration),c.totalduration=b,c.endCC=_,T>0&&function(e,t){for(var n=e[t],r=t;r--;){var i=e[r];if(!i)return;i.programDateTime=n.programDateTime-1e3*i.duration,n=i}}(d,T),c},e}();function N(e,t){var n,r,i=new p(e),a=null!=(n=i.enumeratedString("METHOD"))?n:"",o=i.URI,s=i.hexadecimalInteger("IV"),u=i.enumeratedString("KEYFORMATVERSIONS"),c=null!=(r=i.enumeratedString("KEYFORMAT"))?r:"identity";o&&i.IV&&!s&&l.logger.error("Invalid IV: "+i.IV);var d=o?M.resolve(o,t):"",f=(u||"1").split("/").map(Number).filter(Number.isFinite);return new C(a,d,c,f,s)}function U(e,t){["video","audio","text"].forEach((function(n){var r=e.filter((function(e){return function(e,t){var n=x[t];return!!n&&!0===n[e.slice(0,4)]}(e,n)}));if(r.length){var i=r.filter((function(e){return 0===e.lastIndexOf("avc1",0)||0===e.lastIndexOf("mp4a",0)}));t[n+"Codec"]=i.length>0?i[0]:r[0],e=e.filter((function(e){return-1===r.indexOf(e)}))}})),t.unknownCodecs=e}function F(e,t,n){var r=t[n];r&&(e[n]=r)}function j(e,t){e.rawProgramDateTime?e.programDateTime=Date.parse(e.rawProgramDateTime):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime),(0,a.isFiniteNumber)(e.programDateTime)||(e.programDateTime=null,e.rawProgramDateTime=null)}function B(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function V(e,t,n){e.levelkeys=t;var r=n.encryptedFragments;r.length&&r[r.length-1].levelkeys===t||!Object.keys(t).some((function(e){return t[e].isCommonEncryption}))||r.push(e)}var H=n(308);function K(e,t){var n=e.url;return void 0!==n&&0!==n.indexOf("data:")||(n=t.url),n}const G=function(){function e(e){this.hls=void 0,this.loaders=Object.create(null),this.hls=e,this.registerListeners()}var t=e.prototype;return t.startLoad=function(e){},t.stopLoad=function(){this.destroyInternalLoaders()},t.registerListeners=function(){var e=this.hls;e.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(o.Events.LEVEL_LOADING,this.onLevelLoading,this),e.on(o.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(o.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},t.unregisterListeners=function(){var e=this.hls;e.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(o.Events.LEVEL_LOADING,this.onLevelLoading,this),e.off(o.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(o.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},t.createInternalLoader=function(e){var t=this.hls.config,n=t.pLoader,r=t.loader,i=new(n||r)(t);return e.loader=i,this.loaders[e.type]=i,i},t.getInternalLoader=function(e){return this.loaders[e.type]},t.resetInternalLoader=function(e){this.loaders[e]&&delete this.loaders[e]},t.destroyInternalLoaders=function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}},t.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},t.onManifestLoading=function(e,t){var n=t.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:H.PlaylistContextType.MANIFEST,url:n,deliveryDirectives:null})},t.onLevelLoading=function(e,t){var n=t.id,r=t.level,i=t.url,a=t.deliveryDirectives;this.load({id:n,groupId:null,level:r,responseType:"text",type:H.PlaylistContextType.LEVEL,url:i,deliveryDirectives:a})},t.onAudioTrackLoading=function(e,t){var n=t.id,r=t.groupId,i=t.url,a=t.deliveryDirectives;this.load({id:n,groupId:r,level:null,responseType:"text",type:H.PlaylistContextType.AUDIO_TRACK,url:i,deliveryDirectives:a})},t.onSubtitleTrackLoading=function(e,t){var n=t.id,r=t.groupId,i=t.url,a=t.deliveryDirectives;this.load({id:n,groupId:r,level:null,responseType:"text",type:H.PlaylistContextType.SUBTITLE_TRACK,url:i,deliveryDirectives:a})},t.load=function(e){var t,n,r,i,a,o,s=this.hls.config,u=this.getInternalLoader(e);if(u){var c=u.context;if(c&&c.url===e.url)return void l.logger.trace("[playlist-loader]: playlist request ongoing");l.logger.log("[playlist-loader]: aborting previous loader for type: "+e.type),u.abort()}switch(e.type){case H.PlaylistContextType.MANIFEST:n=s.manifestLoadingMaxRetry,r=s.manifestLoadingTimeOut,i=s.manifestLoadingRetryDelay,a=s.manifestLoadingMaxRetryTimeout;break;case H.PlaylistContextType.LEVEL:case H.PlaylistContextType.AUDIO_TRACK:case H.PlaylistContextType.SUBTITLE_TRACK:n=0,r=s.levelLoadingTimeOut;break;default:n=s.levelLoadingMaxRetry,r=s.levelLoadingTimeOut,i=s.levelLoadingRetryDelay,a=s.levelLoadingMaxRetryTimeout}if(u=this.createInternalLoader(e),null!==(t=e.deliveryDirectives)&&void 0!==t&&t.part&&(e.type===H.PlaylistContextType.LEVEL&&null!==e.level?o=this.hls.levels[e.level].details:e.type===H.PlaylistContextType.AUDIO_TRACK&&null!==e.id?o=this.hls.audioTracks[e.id].details:e.type===H.PlaylistContextType.SUBTITLE_TRACK&&null!==e.id&&(o=this.hls.subtitleTracks[e.id].details),o)){var p=o.partTarget,d=o.targetduration;p&&d&&(r=Math.min(1e3*Math.max(3*p,.8*d),r))}var f={timeout:r,maxRetry:n,retryDelay:i,maxRetryDelay:a,highWaterMark:0},h={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};u.load(e,f,h)},t.loadsuccess=function(e,t,n,r){void 0===r&&(r=null),this.resetInternalLoader(n.type);var i=e.data;0===i.indexOf("#EXTM3U")?(t.parsing.start=performance.now(),i.indexOf("#EXTINF:")>0||i.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(e,t,n,r):this.handleMasterPlaylist(e,t,n,r)):this.handleManifestParsingError(e,n,"no EXTM3U delimiter",r)},t.loaderror=function(e,t,n){void 0===n&&(n=null),this.handleNetworkError(t,n,!1,e)},t.loadtimeout=function(e,t,n){void 0===n&&(n=null),this.handleNetworkError(t,n,!0)},t.handleMasterPlaylist=function(e,t,n,r){var i=this.hls,a=e.data,s=K(e,n),u=M.parseMasterPlaylist(a,s),c=u.levels,d=u.sessionData,f=u.sessionKeys;if(c.length){var h=c.map((function(e){return{id:e.attrs.AUDIO,audioCodec:e.audioCodec}})),g=c.map((function(e){return{id:e.attrs.SUBTITLES,textCodec:e.textCodec}})),y=M.parseMasterPlaylistMedia(a,s,"AUDIO",h),v=M.parseMasterPlaylistMedia(a,s,"SUBTITLES",g),m=M.parseMasterPlaylistMedia(a,s,"CLOSED-CAPTIONS");y.length&&(y.some((function(e){return!e.url}))||!c[0].audioCodec||c[0].attrs.AUDIO||(l.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),y.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new p({}),bitrate:0,url:""}))),i.trigger(o.Events.MANIFEST_LOADED,{levels:c,audioTracks:y,subtitles:v,captions:m,url:s,stats:t,networkDetails:r,sessionData:d,sessionKeys:f})}else this.handleManifestParsingError(e,n,"no level found in manifest",r)},t.handleTrackOrLevelPlaylist=function(e,t,n,r){var i=this.hls,l=n.id,u=n.level,c=n.type,d=K(e,n),f=(0,a.isFiniteNumber)(l)?l:0,h=(0,a.isFiniteNumber)(u)?u:f,g=function(e){switch(e.type){case H.PlaylistContextType.AUDIO_TRACK:return H.PlaylistLevelType.AUDIO;case H.PlaylistContextType.SUBTITLE_TRACK:return H.PlaylistLevelType.SUBTITLE;default:return H.PlaylistLevelType.MAIN}}(n),y=M.parseLevelPlaylist(e.data,d,h,g,f);if(y.fragments.length){if(c===H.PlaylistContextType.MANIFEST){var v={attrs:new p({}),bitrate:0,details:y,name:"",url:d};i.trigger(o.Events.MANIFEST_LOADED,{levels:[v],audioTracks:[],url:d,stats:t,networkDetails:r,sessionData:null,sessionKeys:null})}t.parsing.end=performance.now(),n.levelDetails=y,this.handlePlaylistLoaded(e,t,n,r)}else i.trigger(o.Events.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:d,reason:"no fragments found in level",level:"number"==typeof n.level?n.level:void 0})},t.handleManifestParsingError=function(e,t,n,r){this.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:t.type===H.PlaylistContextType.MANIFEST,url:e.url,reason:n,response:e,context:t,networkDetails:r})},t.handleNetworkError=function(e,t,n,r){void 0===n&&(n=!1),l.logger.warn("[playlist-loader]: A network "+(n?"timeout":"error")+" occurred while loading "+e.type+" level: "+e.level+" id: "+e.id+' group-id: "'+e.groupId+'"');var i=s.ErrorDetails.UNKNOWN,a=!1,u=this.getInternalLoader(e);switch(e.type){case H.PlaylistContextType.MANIFEST:i=n?s.ErrorDetails.MANIFEST_LOAD_TIMEOUT:s.ErrorDetails.MANIFEST_LOAD_ERROR,a=!0;break;case H.PlaylistContextType.LEVEL:i=n?s.ErrorDetails.LEVEL_LOAD_TIMEOUT:s.ErrorDetails.LEVEL_LOAD_ERROR,a=!1;break;case H.PlaylistContextType.AUDIO_TRACK:i=n?s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,a=!1;break;case H.PlaylistContextType.SUBTITLE_TRACK:i=n?s.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:s.ErrorDetails.SUBTITLE_LOAD_ERROR,a=!1}u&&this.resetInternalLoader(e.type);var c={type:s.ErrorTypes.NETWORK_ERROR,details:i,fatal:a,url:e.url,loader:u,context:e,networkDetails:t};r&&(c.response=r),this.hls.trigger(o.Events.ERROR,c)},t.handlePlaylistLoaded=function(e,t,n,r){var i=n.type,a=n.level,s=n.id,l=n.groupId,u=n.loader,c=n.levelDetails,p=n.deliveryDirectives;if(null!=c&&c.targetduration){if(u)switch(c.live&&(u.getCacheAge&&(c.ageHeader=u.getCacheAge()||0),u.getCacheAge&&!isNaN(c.ageHeader)||(c.ageHeader=0)),i){case H.PlaylistContextType.MANIFEST:case H.PlaylistContextType.LEVEL:this.hls.trigger(o.Events.LEVEL_LOADED,{details:c,level:a||0,id:s||0,stats:t,networkDetails:r,deliveryDirectives:p});break;case H.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(o.Events.AUDIO_TRACK_LOADED,{details:c,id:s||0,groupId:l||"",stats:t,networkDetails:r,deliveryDirectives:p});break;case H.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(o.Events.SUBTITLE_TRACK_LOADED,{details:c,id:s||0,groupId:l||"",stats:t,networkDetails:r,deliveryDirectives:p})}}else this.handleManifestParsingError(e,n,"invalid target duration",r)},e}();function z(e,t){var n;try{n=new Event("addtrack")}catch(e){(n=document.createEvent("Event")).initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function W(e,t){var n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(n){l.logger.debug("[texttrack-utils]: "+n);var r=new self.TextTrackCue(t.startTime,t.endTime,t.text);r.id=t.id,e.addCue(r)}"disabled"===n&&(e.mode=n)}function Y(e){var t=e.mode;if("disabled"===t&&(e.mode="hidden"),e.cues)for(var n=e.cues.length;n--;)e.removeCue(e.cues[n]);"disabled"===t&&(e.mode=t)}function q(e,t,n,r){var i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues&&e.cues.length>0)for(var a=function(e,t,n){var r=[],i=function(e,t){if(t<e[0].startTime)return 0;var n=e.length-1;if(t>e[n].endTime)return-1;for(var r=0,i=n;r<=i;){var a=Math.floor((i+r)/2);if(t<e[a].startTime)i=a-1;else{if(!(t>e[a].startTime&&r<n))return a;r=a+1}}return e[r].startTime-t<t-e[i].startTime?r:i}(e,t);if(i>-1)for(var a=i,o=e.length;a<o;a++){var s=e[a];if(s.startTime>=t&&s.endTime<=n)r.push(s);else if(s.startTime>n)return r}return r}(e.cues,t,n),o=0;o<a.length;o++)r&&!r(a[o])||e.removeCue(a[o]);"disabled"===i&&(e.mode=i)}var X=n(181),$=n(856);function Q(){return self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var Z=function(){var e=Q();try{new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function J(e,t){return e.getTime()/1e3-t}const ee=function(){function e(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}var t=e.prototype;return t.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null},t._registerListeners=function(){var e=this.hls;e.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(o.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(o.Events.LEVEL_UPDATED,this.onLevelUpdated,this)},t._unregisterListeners=function(){var e=this.hls;e.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(o.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(o.Events.LEVEL_UPDATED,this.onLevelUpdated,this)},t.onMediaAttached=function(e,t){this.media=t.media},t.onMediaDetaching=function(){this.id3Track&&(Y(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})},t.onManifestLoading=function(){this.dateRangeCuesAppended={}},t.createTrack=function(e){var t=this.getID3Track(e.textTracks);return t.mode="hidden",t},t.getID3Track=function(e){if(this.media){for(var t=0;t<e.length;t++){var n=e[t];if("metadata"===n.kind&&"id3"===n.label)return z(n,this.media),n}return this.media.addTextTrack("metadata","id3")}},t.onFragParsingMetadata=function(e,t){if(this.media){var n=this.hls.config,r=n.enableEmsgMetadataCues,i=n.enableID3MetadataCues;if(r||i){var a=t.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var o=Q(),s=0;s<a.length;s++){var l=a[s].type;if((l!==$.MetadataSchema.emsg||r)&&i){var u=X.getID3Frames(a[s].data);if(u){var c=a[s].pts,p=c+a[s].duration;p>Z&&(p=Z),p-c<=0&&(p=c+.25);for(var d=0;d<u.length;d++){var f=u[d];if(!X.isTimeStampFrame(f)){this.updateId3CueEnds(c);var h=new o(c,p,"");h.value=f,l&&(h.type=l),this.id3Track.addCue(h)}}}}}}}},t.updateId3CueEnds=function(e){var t,n=null===(t=this.id3Track)||void 0===t?void 0:t.cues;if(n)for(var r=n.length;r--;){var i=n[r];i.startTime<e&&i.endTime===Z&&(i.endTime=e)}},t.onBufferFlushing=function(e,t){var n=t.startOffset,r=t.endOffset,i=t.type,a=this.id3Track,o=this.hls;if(o){var s=o.config,l=s.enableEmsgMetadataCues,u=s.enableID3MetadataCues;a&&(l||u)&&q(a,n,r,"audio"===i?function(e){return e.type===$.MetadataSchema.audioId3&&u}:"video"===i?function(e){return e.type===$.MetadataSchema.emsg&&l}:function(e){return e.type===$.MetadataSchema.audioId3&&u||e.type===$.MetadataSchema.emsg&&l})}},t.onLevelUpdated=function(e,t){var n=this,i=t.details;if(this.media&&i.hasProgramDateTime&&this.hls.config.enableDateRangeMetadataCues){var o=this.dateRangeCuesAppended,s=this.id3Track,l=i.dateRanges,u=Object.keys(l);if(s)for(var c=Object.keys(o).filter((function(e){return!u.includes(e)})),p=function(e){var t=c[e];Object.keys(o[t].cues).forEach((function(e){s.removeCue(o[t].cues[e])})),delete o[t]},d=c.length;d--;)p(d);var f=i.fragments[i.fragments.length-1];if(0!==u.length&&(0,a.isFiniteNumber)(null==f?void 0:f.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(var h=f.programDateTime/1e3-f.start,g=Q(),y=function(e){var t=u[e],i=l[t],a=o[t],s=(null==a?void 0:a.cues)||{},c=(null==a?void 0:a.durationKnown)||!1,p=J(i.startDate,h),d=Z,f=i.endDate;if(f)d=J(f,h),c=!0;else if(i.endOnNext&&!c){var y=u.reduce((function(e,t){var n=l[t];return n.class===i.class&&n.id!==t&&n.startDate>i.startDate&&e.push(n),e}),[]).sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()}))[0];y&&(d=J(y.startDate,h),c=!0)}for(var v,m=Object.keys(i.attr),b=0;b<m.length;b++){var _=m[b];if(_!==r.ID&&_!==r.CLASS&&_!==r.START_DATE&&_!==r.DURATION&&_!==r.END_DATE&&_!==r.END_ON_NEXT){var E=s[_];if(E)c&&!a.durationKnown&&(E.endTime=d);else{var k=i.attr[_];E=new g(p,d,""),_!==r.SCTE35_OUT&&_!==r.SCTE35_IN||(v=k,k=Uint8Array.from(v.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer),E.value={key:_,data:k},E.type=$.MetadataSchema.dateRange,n.id3Track.addCue(E),s[_]=E}}}o[t]={cues:s,dateRange:i,durationKnown:c}},v=0;v<u.length;v++)y(v)}}},e}();var te,ne=function(){function e(e){var t=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return t.timeupdate()},this.hls=e,this.config=e.config,this.registerListeners()}var t,n,r=e.prototype;return r.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},r.registerListeners=function(){this.hls.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(o.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(o.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){this.hls.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(o.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(o.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(o.Events.ERROR,this.onError)},r.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},r.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},r.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},r.onLevelUpdated=function(e,t){var n=t.details;this.levelDetails=n,n.advanced&&this.timeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},r.onError=function(e,t){t.details===s.ErrorDetails.BUFFER_STALLED_ERROR&&(this.stallCount++,l.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))},r.timeupdate=function(){var e=this.media,t=this.levelDetails;if(e&&t){this.currentTime=e.currentTime;var n=this.computeLatency();if(null!==n){this._latency=n;var r=this.config,i=r.lowLatencyMode,a=r.maxLiveSyncPlaybackRate;if(i&&1!==a){var o=this.targetLatency;if(null!==o){var s=n-o,l=s<Math.min(this.maxLatency,o+t.targetduration);if(t.live&&l&&s>.05&&this.forwardBufferLength>1){var u=Math.min(2,Math.max(1,a)),c=Math.round(2/(1+Math.exp(-.75*s-this.edgeStalled))*20)/20;e.playbackRate=Math.min(u,Math.max(1,c))}else 1!==e.playbackRate&&0!==e.playbackRate&&(e.playbackRate=1)}}}}},r.estimateLiveEdge=function(){var e=this.levelDetails;return null===e?null:e.edge+e.age},r.computeLatency=function(){var e=this.estimateLiveEdge();return null===e?null:e-this.currentTime},t=e,(n=[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var e=this.config,t=this.levelDetails;return void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var e=this.levelDetails;if(null===e)return null;var t=e.holdBack,n=e.partHoldBack,r=e.targetduration,i=this.config,a=i.liveSyncDuration,o=i.liveSyncDurationCount,s=i.lowLatencyMode,l=this.hls.userConfig,u=s&&n||t;(l.liveSyncDuration||l.liveSyncDurationCount||0===u)&&(u=void 0!==a?a:o*r);var c=r;return u+Math.min(1*this.stallCount,c)}},{key:"liveSyncPosition",get:function(){var e=this.estimateLiveEdge(),t=this.targetLatency,n=this.levelDetails;if(null===e||null===t||null===n)return null;var r=n.edge,i=e-t-this.edgeStalled,a=r-n.totalduration,o=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(a,i),o)}},{key:"drift",get:function(){var e=this.levelDetails;return null===e?1:e.drift}},{key:"edgeStalled",get:function(){var e=this.levelDetails;if(null===e)return 0;var t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}},{key:"forwardBufferLength",get:function(){var e=this.media,t=this.levelDetails;if(!e||!t)return 0;var n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),re=["NONE","TYPE-0","TYPE-1","TYPE-2",null];!function(e){e.No="",e.Yes="YES",e.v2="v2"}(te||(te={}));var ie=function(){function e(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}return e.prototype.addDirectives=function(e){var t=new self.URL(e);return void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href},e}(),ae=function(){function e(e){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[e.url],this.attrs=e.attrs,this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.unknownCodecs=e.unknownCodecs,this.codecSet=[e.videoCodec,e.audioCodec].filter((function(e){return e})).join(",").replace(/\.[^.,]+/g,"")}var t,n;return t=e,(n=[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(e){var t=e%this.url.length;this._urlId!==t&&(this.details=void 0,this._urlId=t)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function oe(){return(oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function se(e,t,n){switch(t){case"audio":e.audioGroupIds||(e.audioGroupIds=[]),e.audioGroupIds.push(n);break;case"text":e.textGroupIds||(e.textGroupIds=[]),e.textGroupIds.push(n)}}function le(e){var t={};e.forEach((function(e){var n=e.groupId||"";e.id=t[n]=t[n]||0,t[n]++}))}function ue(e,t){var n=t.startPTS;if((0,a.isFiniteNumber)(n)){var r,i=0;t.sn>e.sn?(i=n-e.start,r=e):(i=e.start-n,r=t),r.duration!==i&&(r.duration=i)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.start=e.start+(e.minEndPTS-e.start):t.start=e.start+e.duration:t.start=Math.max(e.start-t.duration,0)}function ce(e,t,n,r,i,o){r-n<=0&&(l.logger.warn("Fragment should have a positive duration",t),r=n+t.duration,o=i+t.duration);var s=n,u=r,c=t.startPTS,p=t.endPTS;if((0,a.isFiniteNumber)(c)){var d=Math.abs(c-n);(0,a.isFiniteNumber)(t.deltaPTS)?t.deltaPTS=Math.max(d,t.deltaPTS):t.deltaPTS=d,s=Math.max(n,c),n=Math.min(n,c),i=Math.min(i,t.startDTS),u=Math.min(r,p),r=Math.max(r,p),o=Math.max(o,t.endDTS)}t.duration=r-n;var f=n-t.start;t.start=t.startPTS=n,t.maxStartPTS=s,t.startDTS=i,t.endPTS=r,t.minEndPTS=u,t.endDTS=o;var h,g=t.sn;if(!e||g<e.startSN||g>e.endSN)return 0;var y=g-e.startSN,v=e.fragments;for(v[y]=t,h=y;h>0;h--)ue(v[h],v[h-1]);for(h=y;h<v.length-1;h++)ue(v[h],v[h+1]);return e.fragmentHint&&ue(v[v.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,f}function pe(e,t){var n=t.startSN+t.skippedSegments-e.startSN,r=e.fragments;n<0||n>=r.length||de(t,r[n].start)}function de(e,t){if(t){for(var n=e.fragments,r=e.skippedSegments;r<n.length;r++)n[r].start+=t;e.fragmentHint&&(e.fragmentHint.start+=t)}}var fe=function(){function e(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=l.logger.log.bind(l.logger,t+":"),this.warn=l.logger.warn.bind(l.logger,t+":"),this.hls=e}var t=e.prototype;return t.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},t.onError=function(e,t){!t.fatal||t.type!==s.ErrorTypes.NETWORK_ERROR&&t.type!==s.ErrorTypes.KEY_SYSTEM_ERROR||this.stopLoad()},t.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},t.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.requestScheduled=-1,this.loadPlaylist()},t.stopLoad=function(){this.canLoad=!1,this.clearTimer()},t.switchParams=function(e,t){var n=null==t?void 0:t.renditionReports;if(n)for(var r=0;r<n.length;r++){var i=n[r],a=void 0;try{a=new self.URL(i.URI,t.url).href}catch(e){l.logger.warn("Could not construct new URL for Rendition Report: "+e),a=i.URI||""}if(a===e.slice(-a.length)){var o=parseInt(i["LAST-MSN"])||(null==t?void 0:t.lastPartSn),s=parseInt(i["LAST-PART"])||(null==t?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){var u=Math.min(t.age-t.partTarget,t.targetduration);s>=0&&u>t.partTarget&&(s+=1)}return new ie(o,s>=0?s:void 0,te.No)}}},t.loadPlaylist=function(e){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())},t.shouldLoadTrack=function(e){return this.canLoad&&e&&!!e.url&&(!e.details||e.details.live)},t.playlistLoaded=function(e,t,n){var r=this,i=t.details,o=t.stats,s=self.performance.now(),u=o.loading.first?Math.max(0,s-o.loading.first):0;if(i.advancedDateTime=Date.now()-u,i.live||null!=n&&n.live){if(i.reloaded(n),n&&this.log("live playlist "+e+" "+(i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:"MISSED")),n&&i.fragments.length>0&&function(e,t){for(var n=null,r=e.fragments,i=r.length-1;i>=0;i--){var o=r[i].initSegment;if(o){n=o;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;var s,u,c,p,d,f=0;if(function(e,t,n){for(var r=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,o=t.startSN-e.startSN,s=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,u=i;u<=a;u++){var c=l[o+u],p=s[u];r&&!p&&u<r&&(p=t.fragments[u]=c),c&&p&&n(c,p)}}(e,t,(function(e,r){e.relurl&&(f=e.cc-r.cc),(0,a.isFiniteNumber)(e.startPTS)&&(0,a.isFiniteNumber)(e.endPTS)&&(r.start=r.startPTS=e.startPTS,r.startDTS=e.startDTS,r.appendedPTS=e.appendedPTS,r.maxStartPTS=e.maxStartPTS,r.endPTS=e.endPTS,r.endDTS=e.endDTS,r.minEndPTS=e.minEndPTS,r.duration=e.endPTS-e.startPTS,r.duration&&(s=r),t.PTSKnown=t.alignedSliding=!0),r.elementaryStreams=e.elementaryStreams,r.loader=e.loader,r.stats=e.stats,r.urlId=e.urlId,e.initSegment&&(r.initSegment=e.initSegment,n=e.initSegment)})),n&&(t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments).forEach((function(e){var t;e.initSegment&&e.initSegment.relurl!==(null===(t=n)||void 0===t?void 0:t.relurl)||(e.initSegment=n)})),t.skippedSegments)if(t.deltaUpdateFailed=t.fragments.some((function(e){return!e})),t.deltaUpdateFailed){l.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var h=t.skippedSegments;h--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc}else t.canSkipDateRanges&&(t.dateRanges=(u=e.dateRanges,c=t.dateRanges,p=t.recentlyRemovedDateranges,d=oe({},u),p&&p.forEach((function(e){delete d[e]})),Object.keys(c).forEach((function(e){var t=new y(c[e].attr,d[e]);t.isValid?d[e]=t:l.logger.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'+JSON.stringify(c[e].attr)+'"')})),d));var g=t.fragments;if(f){l.logger.warn("discontinuity sliding from playlist, take drift into account");for(var v=0;v<g.length;v++)g[v].cc+=f}t.skippedSegments&&(t.startCC=t.fragments[0].cc),function(e,t,n){if(e&&t)for(var r=0,i=0,a=e.length;i<=a;i++){var o=e[i],s=t[i+r];o&&s&&o.index===s.index&&o.fragment.sn===s.fragment.sn?(l=o,(u=s).elementaryStreams=l.elementaryStreams,u.stats=l.stats):r--}var l,u}(e.partList,t.partList),s?ce(t,s,s.startPTS,s.endPTS,s.startDTS,s.endDTS):pe(e,t),g.length&&(t.totalduration=t.edge-g[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;var m=t.advancedDateTime;if(t.advanced&&m){var b=t.edge;t.driftStart||(t.driftStartTime=m,t.driftStart=b),t.driftEndTime=m,t.driftEnd=b}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime}(n,i),!this.canLoad||!i.live)return;var c,p=void 0,d=void 0;if(i.canBlockReload&&i.endSN&&i.advanced){var f=this.hls.config.lowLatencyMode,h=i.lastPartSn,g=i.endSN,v=i.lastPartIndex,m=h===g;-1!==v?(p=m?g+1:h,d=m?f?0:v:v+1):p=g+1;var b=i.age,_=b+i.ageHeader,E=Math.min(_-i.partTarget,1.5*i.targetduration);if(E>0){if(n&&E>n.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+n.tuneInGoal+" to: "+E+" with playlist age: "+i.age),E=0;else{var k=Math.floor(E/i.targetduration);p+=k,void 0!==d&&(d+=Math.round(E%i.targetduration/i.partTarget)),this.log("CDN Tune-in age: "+i.ageHeader+"s last advanced "+b.toFixed(2)+"s goal: "+E+" skip sn "+k+" to part "+d)}i.tuneInGoal=E}if(c=this.getDeliveryDirectives(i,t.deliveryDirectives,p,d),f||!m)return void this.loadPlaylist(c)}else c=this.getDeliveryDirectives(i,t.deliveryDirectives,p,d);var T=this.hls.mainForwardBufferInfo,A=T?T.end-T.len:0,w=function(e,t){void 0===t&&(t=1/0);var n=1e3*e.targetduration;if(e.updated){var r=e.fragments;if(r.length&&4*n>t){var i=1e3*r[r.length-1].duration;i<n&&(n=i)}}else n/=2;return Math.round(n)}(i,1e3*(i.edge-A));i.updated?s>this.requestScheduled+w&&(this.requestScheduled=o.loading.start):this.requestScheduled=-1,void 0!==p&&i.canBlockReload?this.requestScheduled=o.loading.first+w-(1e3*i.partTarget||1e3):this.requestScheduled=(-1===this.requestScheduled?s:this.requestScheduled)+w;var S=this.requestScheduled-s;S=Math.max(0,S),this.log("reload live playlist "+e+" in "+Math.round(S)+" ms"),this.timer=self.setTimeout((function(){return r.loadPlaylist(c)}),S)}else this.clearTimer()},t.getDeliveryDirectives=function(e,t,n,r){var i=function(e,t){var n=e.canSkipUntil,r=e.canSkipDateRanges,i=e.endSN;return n&&(void 0!==t?t-i:0)<n?r?te.v2:te.Yes:te.No}(e,n);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=te.No),new ie(n,r,i)},t.retryLoadingOrFail=function(e){var t,n=this,r=this.hls.config,i=this.retryCount<r.levelLoadingMaxRetry;if(i)if(this.requestScheduled=-1,this.retryCount++,e.details.indexOf("LoadTimeOut")>-1&&null!==(t=e.context)&&void 0!==t&&t.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+e.details+'"'),this.loadPlaylist();else{var a=Math.min(Math.pow(2,this.retryCount)*r.levelLoadingRetryDelay,r.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout((function(){return n.loadPlaylist()}),a),this.warn("retry playlist loading #"+this.retryCount+" in "+a+' ms after "'+e.details+'"')}else this.warn('cannot recover from error "'+e.details+'"'),this.clearTimer(),e.fatal=!0;return i},e}();function he(){return(he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ge(e,t){return(ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ye,ve=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),me=function(e){var t,n;function r(t){var n;return(n=e.call(this,t,"[level-controller]")||this)._levels=[],n._firstLevel=-1,n._startLevel=void 0,n.currentLevelIndex=-1,n.manualLevelIndex=-1,n.onParsedComplete=void 0,n._registerListeners(),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ge(t,n);var i,a,l=r.prototype;return l._registerListeners=function(){var e=this.hls;e.on(o.Events.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.on(o.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(o.Events.FRAG_LOADED,this.onFragLoaded,this),e.on(o.Events.ERROR,this.onError,this)},l._unregisterListeners=function(){var e=this.hls;e.off(o.Events.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.off(o.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(o.Events.FRAG_LOADED,this.onFragLoaded,this),e.off(o.Events.ERROR,this.onError,this)},l.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,e.prototype.destroy.call(this)},l.startLoad=function(){this._levels.forEach((function(e){e.loadError=0})),e.prototype.startLoad.call(this)},l.onManifestLoaded=function(e,t){var n,r,i=[],a=[],l=[],u={},c=!1,p=!1,d=!1;if(t.levels.forEach((function(e){var t=e.attrs;c=c||!(!e.width||!e.height),p=p||!!e.videoCodec,d=d||!!e.audioCodec,ve&&e.audioCodec&&-1!==e.audioCodec.indexOf("mp4a.40.34")&&(e.audioCodec=void 0);var n=e.bitrate+"-"+e.attrs.RESOLUTION+"-"+e.attrs.CODECS;(r=u[n])?r.url.push(e.url):(r=new ae(e),u[n]=r,i.push(r)),t&&(t.AUDIO&&se(r,"audio",t.AUDIO),t.SUBTITLES&&se(r,"text",t.SUBTITLES))})),(c||p)&&d&&(i=i.filter((function(e){var t=e.videoCodec,n=e.width,r=e.height;return!!t||!(!n||!r)}))),i=i.filter((function(e){var t=e.audioCodec,n=e.videoCodec;return(!t||I(t,"audio"))&&(!n||I(n,"video"))})),t.audioTracks&&le(a=t.audioTracks.filter((function(e){return!e.audioCodec||I(e.audioCodec,"audio")}))),t.subtitles&&le(l=t.subtitles),i.length>0){n=i[0].bitrate,i.sort((function(e,t){return e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"]?(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1:e.bitrate!==t.bitrate?e.bitrate-t.bitrate:e.attrs.SCORE!==t.attrs.SCORE?e.attrs.decimalFloatingPoint("SCORE")-t.attrs.decimalFloatingPoint("SCORE"):c&&e.height!==t.height?e.height-t.height:0})),this._levels=i;for(var f=0;f<i.length;f++)if(i[f].bitrate===n){this._firstLevel=f,this.log("manifest loaded, "+i.length+" level(s) found, first bitrate: "+n);break}var h=d&&!p,g={levels:i,audioTracks:a,subtitleTracks:l,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:d,video:p,altAudio:!h&&a.some((function(e){return!!e.url}))};this.hls.trigger(o.Events.MANIFEST_PARSED,g),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,reason:"no level with compatible codecs found in manifest"})},l.onError=function(t,n){var r,i;if(e.prototype.onError.call(this,t,n),!n.fatal){var a=n.context,o=this._levels[this.currentLevelIndex];if(a&&(a.type===H.PlaylistContextType.AUDIO_TRACK&&o.audioGroupIds&&a.groupId===o.audioGroupIds[o.urlId]||a.type===H.PlaylistContextType.SUBTITLE_TRACK&&o.textGroupIds&&a.groupId===o.textGroupIds[o.urlId]))this.redundantFailover(this.currentLevelIndex);else{var l,u=!1,c=!0;switch(n.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:if(n.frag){var p=n.frag.type===H.PlaylistLevelType.MAIN?n.frag.level:this.currentLevelIndex,d=this._levels[p];d?(d.fragmentError++,d.fragmentError>this.hls.config.fragLoadingMaxRetry&&(l=p)):l=p}break;case s.ErrorDetails.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var f=o.attrs["HDCP-LEVEL"];f&&(this.hls.maxHdcpLevel=re[re.indexOf(f)-1],this.warn('Restricting playback to HDCP-LEVEL of "'+this.hls.maxHdcpLevel+'" or lower'));case s.ErrorDetails.FRAG_PARSING_ERROR:case s.ErrorDetails.KEY_SYSTEM_NO_SESSION:l=(null===(r=n.frag)||void 0===r?void 0:r.type)===H.PlaylistLevelType.MAIN?n.frag.level:this.currentLevelIndex,n.levelRetry=!1;break;case s.ErrorDetails.LEVEL_LOAD_ERROR:case s.ErrorDetails.LEVEL_LOAD_TIMEOUT:a&&(a.deliveryDirectives&&(c=!1),l=a.level),u=!0;break;case s.ErrorDetails.REMUX_ALLOC_ERROR:l=null!=(i=n.level)?i:this.currentLevelIndex,u=!0}void 0!==l&&this.recoverLevel(n,l,u,c)}}},l.recoverLevel=function(e,t,n,r){var i=e.details,a=this._levels[t];if(a.loadError++,n){if(!this.retryLoadingOrFail(e))return void(this.currentLevelIndex=-1);e.levelRetry=!0}if(r){var o=a.url.length;if(o>1&&a.loadError<o)e.levelRetry=!0,this.redundantFailover(t);else if(-1===this.manualLevelIndex){for(var s=-1,l=this._levels,u=l.length;u--;){var c=(u+this.currentLevelIndex)%l.length;if(c!==this.currentLevelIndex&&0===l[c].loadError){s=c;break}}s>-1&&this.currentLevelIndex!==s?(this.warn(i+": switch to "+s),e.levelRetry=!0,this.hls.nextAutoLevel=s):!1===e.levelRetry&&(e.fatal=!0)}}},l.redundantFailover=function(e){var t=this._levels[e],n=t.url.length;if(n>1){var r=(t.urlId+1)%n;this.warn("Switching to redundant URL-id "+r),this._levels.forEach((function(e){e.urlId=r})),this.level=e}},l.onFragLoaded=function(e,t){var n=t.frag;if(void 0!==n&&n.type===H.PlaylistLevelType.MAIN){var r=this._levels[n.level];void 0!==r&&(r.fragmentError=0,r.loadError=0)}},l.onLevelLoaded=function(e,t){var n,r,i=t.level,a=t.details,o=this._levels[i];if(!o)return this.warn("Invalid level index "+i),void(null!==(r=t.deliveryDirectives)&&void 0!==r&&r.skip&&(a.deltaUpdateFailed=!0));i===this.currentLevelIndex?(0===o.fragmentError&&(o.loadError=0,this.retryCount=0),this.playlistLoaded(i,t,o.details)):null!==(n=t.deliveryDirectives)&&void 0!==n&&n.skip&&(a.deltaUpdateFailed=!0)},l.onAudioTrackSwitched=function(e,t){var n=this.hls.levels[this.currentLevelIndex];if(n&&n.audioGroupIds){for(var r=-1,i=this.hls.audioTracks[t.id].groupId,a=0;a<n.audioGroupIds.length;a++)if(n.audioGroupIds[a]===i){r=a;break}r!==n.urlId&&(n.urlId=r,this.startLoad())}},l.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this);var n=this.currentLevelIndex,r=this._levels[n];if(this.canLoad&&r&&r.url.length>0){var i=r.urlId,a=r.url[i];if(t)try{a=t.addDirectives(a)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}this.log("Attempt loading level index "+n+(void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:"")+" with URL-id "+i+" "+a),this.clearTimer(),this.hls.trigger(o.Events.LEVEL_LOADING,{url:a,level:n,id:i,deliveryDirectives:t||null})}},l.removeLevel=function(e,t){var n=function(e,n){return n!==t},r=this._levels.filter((function(r,i){return i!==e||r.url.length>1&&void 0!==t&&(r.url=r.url.filter(n),r.audioGroupIds&&(r.audioGroupIds=r.audioGroupIds.filter(n)),r.textGroupIds&&(r.textGroupIds=r.textGroupIds.filter(n)),r.urlId=0,!0)})).map((function(e,t){var n=e.details;return null!=n&&n.fragments&&n.fragments.forEach((function(e){e.level=t})),e}));this._levels=r,this.hls.trigger(o.Events.LEVELS_UPDATED,{levels:r})},i=r,(a=[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(e){var t,n=this._levels;if(0!==n.length&&(this.currentLevelIndex!==e||null===(t=n[e])||void 0===t||!t.details)){if(e<0||e>=n.length){var r=e<0;if(this.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.LEVEL_SWITCH_ERROR,level:e,fatal:r,reason:"invalid level idx"}),r)return;e=Math.min(e,n.length-1)}this.clearTimer();var i=this.currentLevelIndex,a=n[i],l=n[e];this.log("switching to level "+e+" from "+i),this.currentLevelIndex=e;var u=he({},l,{level:e,maxBitrate:l.maxBitrate,uri:l.uri,urlId:l.urlId});delete u._urlId,this.hls.trigger(o.Events.LEVEL_SWITCHING,u);var c=l.details;if(!c||c.live){var p=this.switchParams(l.uri,null==a?void 0:a.details);this.loadPlaylist(p)}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(e){this._firstLevel=e}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var e=this.hls.config.startLevel;return void 0!==e?e:this._firstLevel}return this._startLevel},set:function(e){this._startLevel=e}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(i.prototype,a),Object.defineProperty(i,"prototype",{writable:!1}),r}(fe);!function(e){e.NOT_LOADED="NOT_LOADED",e.APPENDING="APPENDING",e.PARTIAL="PARTIAL",e.OK="OK"}(ye||(ye={}));var be=function(){function e(e){this.activeFragment=null,this.activeParts=null,this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=e,this._registerListeners()}var t=e.prototype;return t._registerListeners=function(){var e=this.hls;e.on(o.Events.BUFFER_APPENDED,this.onBufferAppended,this),e.on(o.Events.FRAG_BUFFERED,this.onFragBuffered,this),e.on(o.Events.FRAG_LOADED,this.onFragLoaded,this)},t._unregisterListeners=function(){var e=this.hls;e.off(o.Events.BUFFER_APPENDED,this.onBufferAppended,this),e.off(o.Events.FRAG_BUFFERED,this.onFragBuffered,this),e.off(o.Events.FRAG_LOADED,this.onFragLoaded,this)},t.destroy=function(){this._unregisterListeners(),this.fragments=this.endListFragments=this.timeRanges=this.activeFragment=this.activeParts=null},t.getAppendedFrag=function(e,t){if(t===H.PlaylistLevelType.MAIN){var n=this.activeFragment,r=this.activeParts;if(!n)return null;if(r)for(var i=r.length;i--;){var a=r[i],o=a?a.end:n.appendedPTS;if(a.start<=e&&void 0!==o&&e<=o)return i>9&&(this.activeParts=r.slice(i-9)),a}else if(n.start<=e&&void 0!==n.appendedPTS&&e<=n.appendedPTS)return n}return this.getBufferedFrag(e,t)},t.getBufferedFrag=function(e,t){for(var n=this.fragments,r=Object.keys(n),i=r.length;i--;){var a=n[r[i]];if((null==a?void 0:a.body.type)===t&&a.buffered){var o=a.body;if(o.start<=e&&e<=o.end)return o}}return null},t.detectEvictedFragments=function(e,t,n){var r=this;this.timeRanges&&(this.timeRanges[e]=t),Object.keys(this.fragments).forEach((function(i){var a=r.fragments[i];if(a)if(a.buffered||a.loaded){var o=a.range[e];o&&o.time.some((function(e){var n=!r.isTimeBuffered(e.startPTS,e.endPTS,t);return n&&r.removeFragment(a.body),n}))}else a.body.type===n&&r.removeFragment(a.body)}))},t.detectPartialFragments=function(e){var t=this,n=this.timeRanges,r=e.frag,i=e.part;if(n&&"initSegment"!==r.sn){var a=Ee(r),o=this.fragments[a];o&&(Object.keys(n).forEach((function(e){var a=r.elementaryStreams[e];if(a){var s=n[e],l=null!==i||!0===a.partial;o.range[e]=t.getBufferedTimes(r,i,l,s)}})),o.loaded=null,Object.keys(o.range).length?(o.buffered=!0,o.body.endList&&(this.endListFragments[o.body.type]=o)):this.removeFragment(o.body))}},t.fragBuffered=function(e){var t=Ee(e),n=this.fragments[t];n&&(n.loaded=null,n.buffered=!0)},t.getBufferedTimes=function(e,t,n,r){for(var i={time:[],partial:n},a=t?t.start:e.start,o=t?t.end:e.end,s=e.minEndPTS||o,l=e.maxStartPTS||a,u=0;u<r.length;u++){var c=r.start(u)-this.bufferPadding,p=r.end(u)+this.bufferPadding;if(l>=c&&s<=p){i.time.push({startPTS:Math.max(a,r.start(u)),endPTS:Math.min(o,r.end(u))});break}if(a<p&&o>c)i.partial=!0,i.time.push({startPTS:Math.max(a,r.start(u)),endPTS:Math.min(o,r.end(u))});else if(o<=c)break}return i},t.getPartialFragment=function(e){var t,n,r,i=null,a=0,o=this.bufferPadding,s=this.fragments;return Object.keys(s).forEach((function(l){var u=s[l];u&&_e(u)&&(n=u.body.start-o,r=u.body.end+o,e>=n&&e<=r&&(t=Math.min(e-n,r-e),a<=t&&(i=u.body,a=t)))})),i},t.isEndListAppended=function(e){var t=this.endListFragments[e];return void 0!==t&&(t.buffered||_e(t))},t.getState=function(e){var t=Ee(e),n=this.fragments[t];return n?n.buffered?_e(n)?ye.PARTIAL:ye.OK:ye.APPENDING:ye.NOT_LOADED},t.isTimeBuffered=function(e,t,n){for(var r,i,a=0;a<n.length;a++){if(r=n.start(a)-this.bufferPadding,i=n.end(a)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1},t.onFragLoaded=function(e,t){var n=t.frag,r=t.part;if("initSegment"!==n.sn&&!n.bitrateTest&&!r){var i=Ee(n);this.fragments[i]={body:n,loaded:t,buffered:!1,range:Object.create(null)}}},t.onBufferAppended=function(e,t){var n=this,r=t.frag,i=t.part,a=t.timeRanges;if(r.type===H.PlaylistLevelType.MAIN)if(this.activeFragment!==r&&(this.activeFragment=r,r.appendedPTS=void 0),i){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(i)}else this.activeParts=null;this.timeRanges=a,Object.keys(a).forEach((function(e){var t=a[e];if(n.detectEvictedFragments(e,t),!i&&r.type===H.PlaylistLevelType.MAIN){var o=r.elementaryStreams[e];if(!o)return;for(var s=0;s<t.length;s++){var l=t.end(s);l<=o.endPTS&&l>o.startPTS?r.appendedPTS=Math.max(l,r.appendedPTS||0):r.appendedPTS=o.endPTS}}}))},t.onFragBuffered=function(e,t){this.detectPartialFragments(t)},t.hasFragment=function(e){var t=Ee(e);return!!this.fragments[t]},t.removeFragmentsInRange=function(e,t,n){var r=this;Object.keys(this.fragments).forEach((function(i){var a=r.fragments[i];if(a&&a.buffered){var o=a.body;o.type===n&&o.start<t&&o.end>e&&r.removeFragment(o)}}))},t.removeFragment=function(e){var t=Ee(e);e.stats.loaded=0,e.clearElementaryStreamInfo(),e.appendedPTS=void 0,delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]},t.removeAllFragments=function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activeFragment=null,this.activeParts=null},e}();function _e(e){var t,n;return e.buffered&&((null===(t=e.range.video)||void 0===t?void 0:t.partial)||(null===(n=e.range.audio)||void 0===n?void 0:n.partial))}function Ee(e){return e.type+"_"+e.level+"_"+e.urlId+"_"+e.sn}function ke(e){var t="function"==typeof Map?new Map:void 0;return(ke=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Te(e,arguments,Se(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),we(r,e)})(e)}function Te(e,t,n){return(Te=Ae()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&we(i,n.prototype),i}).apply(null,arguments)}function Ae(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function we(e,t){return(we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ce=Math.pow(2,17),xe=function(){function e(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}var t=e.prototype;return t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t.abort=function(){this.loader&&this.loader.abort()},t.load=function(e,t){var n=this,r=e.url;if(!r)return Promise.reject(new Pe({type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:e,networkDetails:null},"Fragment does not have a "+(r?"part list":"url")));this.abort();var i=this.config,a=i.fLoader,o=i.loader;return new Promise((function(r,l){n.loader&&n.loader.destroy();var u=n.loader=e.loader=a?new a(i):new o(i),c=Ie(e),p={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:i.fragLoadingMaxRetryTimeout,highWaterMark:"initSegment"===e.sn?1/0:Ce};e.stats=u.stats,u.load(c,p,{onSuccess:function(t,i,a,o){n.resetLoader(e,u);var s=t.data;a.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(s.slice(0,16)),s=s.slice(16)),r({frag:e,part:null,payload:s,networkDetails:o})},onError:function(t,r,i){n.resetLoader(e,u),l(new Pe({type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:t,networkDetails:i}))},onAbort:function(t,r,i){n.resetLoader(e,u),l(new Pe({type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:e,networkDetails:i}))},onTimeout:function(t,r,i){n.resetLoader(e,u),l(new Pe({type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,networkDetails:i}))},onProgress:function(n,r,i,a){t&&t({frag:e,part:null,payload:i,networkDetails:a})}})}))},t.loadPart=function(e,t,n){var r=this;this.abort();var i=this.config,a=i.fLoader,o=i.loader;return new Promise((function(l,u){r.loader&&r.loader.destroy();var c=r.loader=e.loader=a?new a(i):new o(i),p=Ie(e,t),d={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:i.fragLoadingMaxRetryTimeout,highWaterMark:Ce};t.stats=c.stats,c.load(p,d,{onSuccess:function(i,a,o,s){r.resetLoader(e,c),r.updateStatsFromPart(e,t);var u={frag:e,part:t,payload:i.data,networkDetails:s};n(u),l(u)},onError:function(n,i,a){r.resetLoader(e,c),u(new Pe({type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:n,networkDetails:a}))},onAbort:function(n,i,a){e.stats.aborted=t.stats.aborted,r.resetLoader(e,c),u(new Pe({type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,networkDetails:a}))},onTimeout:function(n,i,a){r.resetLoader(e,c),u(new Pe({type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,networkDetails:a}))}})}))},t.updateStatsFromPart=function(e,t){var n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){var a=Math.round(e.duration/t.duration),o=Math.min(Math.round(n.loaded/i),a),s=(a-o)*Math.round(n.loaded/o);n.total=n.loaded+s}else n.total=Math.max(n.loaded,n.total);var l=n.loading,u=r.loading;l.start?l.first+=u.first-u.start:(l.start=u.start,l.first=u.first),l.end=u.end},t.resetLoader=function(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()},e}();function Ie(e,t){void 0===t&&(t=null);var n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},i=n.byteRangeStartOffset,o=n.byteRangeEndOffset;if((0,a.isFiniteNumber)(i)&&(0,a.isFiniteNumber)(o)){var s,l=i,u=o;if("initSegment"===e.sn&&"AES-128"===(null===(s=e.decryptdata)||void 0===s?void 0:s.method)){var c=o-i;c%16&&(u=o+(16-c%16)),0!==i&&(r.resetIV=!0,l=i-16)}r.rangeStart=l,r.rangeEnd=u}return r}var Pe=function(e){var t,n;function r(t){for(var n,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return(n=e.call.apply(e,[this].concat(i))||this).data=void 0,n.data=t,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,we(t,n),r}(ke(Error)),De=function(){function e(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}var t=e.prototype;return t.abort=function(){for(var e in this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e].loader;t&&t.abort()}},t.detach=function(){for(var e in this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}},t.destroy=function(){for(var e in this.detach(),this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}},t.createKeyLoadError=function(e,t,n,r){return void 0===t&&(t=s.ErrorDetails.KEY_LOAD_ERROR),new Pe({type:s.ErrorTypes.NETWORK_ERROR,details:t,fatal:!1,frag:e,networkDetails:n})},t.loadClear=function(e,t){var n=this;if(this.emeController&&this.config.emeEnabled)for(var r=e.sn,i=e.cc,a=function(e){var a=t[e];if(i<=a.cc&&("initSegment"===r||r<a.sn))return n.emeController.selectKeySystemFormat(a).then((function(e){a.setKeyFormat(e)})),"break"},o=0;o<t.length&&"break"!==a(o);o++);},t.load=function(e){var t=this;return!e.decryptdata&&e.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(e).then((function(n){return t.loadInternal(e,n)})):this.loadInternal(e)},t.loadInternal=function(e,t){var n,r;t&&e.setKeyFormat(t);var i=e.decryptdata;if(!i){var a=t?"Expected frag.decryptdata to be defined after setting format "+t:"Missing decryption data on fragment in onKeyLoading";return Promise.reject(this.createKeyLoadError(e,s.ErrorDetails.KEY_LOAD_ERROR,null,a))}var o=i.uri;if(!o)return Promise.reject(this.createKeyLoadError(e,s.ErrorDetails.KEY_LOAD_ERROR,null,'Invalid key URI: "'+o+'"'));var l,u=this.keyUriToKeyInfo[o];if(null!==(n=u)&&void 0!==n&&n.decryptdata.key)return i.key=u.decryptdata.key,Promise.resolve({frag:e,keyInfo:u});if(null!==(r=u)&&void 0!==r&&r.keyLoadPromise)switch(null===(l=u.mediaKeySessionContext)||void 0===l?void 0:l.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return u.keyLoadPromise.then((function(t){return i.key=t.keyInfo.decryptdata.key,{frag:e,keyInfo:u}}))}switch(u=this.keyUriToKeyInfo[o]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===i.keyFormat?this.loadKeyHTTP(u,e):this.loadKeyEME(u,e);case"AES-128":return this.loadKeyHTTP(u,e);default:return Promise.reject(this.createKeyLoadError(e,s.ErrorDetails.KEY_LOAD_ERROR,null,'Key supplied with unsupported METHOD: "'+i.method+'"'))}},t.loadKeyEME=function(e,t){var n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then((function(t){return e.mediaKeySessionContext=t,n}))).catch((function(t){throw e.keyLoadPromise=null,t}))}return Promise.resolve(n)},t.loadKeyHTTP=function(e,t){var n=this,r=this.config,i=new(0,r.loader)(r);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((function(a,o){var l={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},u={timeout:r.fragLoadingTimeOut,maxRetry:0,retryDelay:r.fragLoadingRetryDelay,maxRetryDelay:r.fragLoadingMaxRetryTimeout,highWaterMark:0},c={onSuccess:function(e,t,r,i){var l=r.frag,u=r.keyInfo,c=r.url;if(!l.decryptdata||u!==n.keyUriToKeyInfo[c])return o(n.createKeyLoadError(l,s.ErrorDetails.KEY_LOAD_ERROR,i,"after key load, decryptdata unset or changed"));u.decryptdata.key=l.decryptdata.key=new Uint8Array(e.data),l.keyLoader=null,u.loader=null,a({frag:l,keyInfo:u})},onError:function(e,r,i){n.resetLoader(r),o(n.createKeyLoadError(t,s.ErrorDetails.KEY_LOAD_ERROR,i))},onTimeout:function(e,r,i){n.resetLoader(r),o(n.createKeyLoadError(t,s.ErrorDetails.KEY_LOAD_TIMEOUT,i))},onAbort:function(e,r,i){n.resetLoader(r),o(n.createKeyLoadError(t,s.ErrorDetails.INTERNAL_ABORTED,i))}};i.load(l,u,c)}))},t.resetLoader=function(e){var t=e.frag,n=e.keyInfo,r=e.url,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()},e}(),Re=function(){function e(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var t=e.prototype;return t.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},t.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},t.onHandlerDestroyed=function(){},t.hasInterval=function(){return!!this._tickInterval},t.hasNextTick=function(){return!!this._tickTimer},t.setInterval=function(e){return!this._tickInterval&&(this._tickInterval=self.setInterval(this._boundTick,e),!0)},t.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},t.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},t.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},t.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},t.doTick=function(){},e}(),Oe={length:0,start:function(){return 0},end:function(){return 0}},Le=function(){function e(){}return e.isBuffered=function(t,n){try{if(t)for(var r=e.getBuffered(t),i=0;i<r.length;i++)if(n>=r.start(i)&&n<=r.end(i))return!0}catch(e){}return!1},e.bufferInfo=function(t,n,r){try{if(t){var i,a=e.getBuffered(t),o=[];for(i=0;i<a.length;i++)o.push({start:a.start(i),end:a.end(i)});return this.bufferedInfo(o,n,r)}}catch(e){}return{len:0,start:n,end:n,nextStart:void 0}},e.bufferedInfo=function(e,t,n){t=Math.max(0,t),e.sort((function(e,t){return e.start-t.start||t.end-e.end}));var r=[];if(n)for(var i=0;i<e.length;i++){var a=r.length;if(a){var o=r[a-1].end;e[i].start-o<n?e[i].end>o&&(r[a-1].end=e[i].end):r.push(e[i])}else r.push(e[i])}else r=e;for(var s,l=0,u=t,c=t,p=0;p<r.length;p++){var d=r[p].start,f=r[p].end;if(t+n>=d&&t<f)u=d,l=(c=f)-t;else if(t+n<d){s=d;break}}return{len:l,start:u||0,end:c||0,nextStart:s}},e.getBuffered=function(e){try{return e.buffered}catch(e){return l.logger.log("failed to get media.buffered",e),Oe}},e}(),Me=function(e,t,n,r,i,a){void 0===r&&(r=0),void 0===i&&(i=-1),void 0===a&&(a=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=a};function Ne(e,t){for(var n=null,r=0,i=e.length;r<i;r++){var a=e[r];if(a&&a.cc===t){n=a;break}}return n}function Ue(e,t){if(e){var n=e.start+t;e.start=e.startPTS=n,e.endPTS=n+e.duration}}function Fe(e,t){for(var n=t.fragments,r=0,i=n.length;r<i;r++)Ue(n[r],e);t.fragmentHint&&Ue(t.fragmentHint,e),t.alignedSliding=!0}function je(e,t){if(e.hasProgramDateTime&&t.hasProgramDateTime){var n=e.fragments,r=t.fragments;if(n.length&&r.length){var i=r[Math.round(r.length/2)-1],a=Ne(n,i.cc)||n[Math.round(n.length/2)-1],o=i.programDateTime,s=a.programDateTime;null!==o&&null!==s&&Fe((s-o)/1e3-(a.start-i.start),e)}}}const Be=function(e,t){for(var n=0,r=e.length-1,i=null,a=null;n<=r;){var o=t(a=e[i=(n+r)/2|0]);if(o>0)n=i+1;else{if(!(o<0))return a;r=i-1}}return null};function Ve(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var i=null;if(e?i=t[e.sn-t[0].sn+1]||null:0===n&&0===t[0].start&&(i=t[0]),i&&0===He(n,r,i))return i;var a=Be(t,He.bind(null,n,r));return!a||a===e&&i?i:a}function He(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),n.start<=e&&n.start+n.duration>e)return 0;var r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function Ke(e,t,n){var r=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-r>e}var Ge=n(21);function ze(e,t){return(ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var We="STOPPED",Ye="IDLE",qe="KEY_LOADING",Xe="FRAG_LOADING",$e="FRAG_LOADING_WAITING_RETRY",Qe="WAITING_TRACK",Ze="PARSING",Je="PARSED",et="ENDED",tt="ERROR",nt="WAITING_INIT_PTS",rt="WAITING_LEVEL",it=function(e){var t,n;function r(t,n,r,i){var a;return(a=e.call(this)||this).hls=void 0,a.fragPrevious=null,a.fragCurrent=null,a.fragmentTracker=void 0,a.transmuxer=null,a._state=We,a.media=null,a.mediaBuffer=null,a.config=void 0,a.bitrateTest=!1,a.lastCurrentTime=0,a.nextLoadPosition=0,a.startPosition=0,a.loadedmetadata=!1,a.fragLoadError=0,a.retryDate=0,a.levels=null,a.fragmentLoader=void 0,a.keyLoader=void 0,a.levelLastLoaded=null,a.startFragRequested=!1,a.decrypter=void 0,a.initPTS=[],a.onvseeking=null,a.onvended=null,a.logPrefix="",a.log=void 0,a.warn=void 0,a.logPrefix=i,a.log=l.logger.log.bind(l.logger,i+":"),a.warn=l.logger.warn.bind(l.logger,i+":"),a.hls=t,a.fragmentLoader=new xe(t.config),a.keyLoader=r,a.fragmentTracker=n,a.config=t.config,a.decrypter=new Ge.default(t.config),t.on(o.Events.LEVEL_SWITCHING,a.onLevelSwitching,function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a)),a}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ze(t,n);var i,u,c=r.prototype;return c.doTick=function(){this.onTickEnd()},c.onTickEnd=function(){},c.startLoad=function(e){},c.stopLoad=function(){this.fragmentLoader.abort(),this.keyLoader.abort();var e=this.fragCurrent;e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=We},c._streamEnded=function(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;var n=t.partList;if(null!=n&&n.length){var r=n[n.length-1];return Le.isBuffered(this.media,r.start+r.duration/2)}var i=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)},c.getLevelDetails=function(){var e;if(this.levels&&null!==this.levelLastLoaded)return null===(e=this.levels[this.levelLastLoaded])||void 0===e?void 0:e.details},c.onMediaAttached=function(e,t){var n=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),n.addEventListener("seeking",this.onvseeking),n.addEventListener("ended",this.onvended);var r=this.config;this.levels&&r.autoStartLoad&&this.state===We&&this.startLoad(r.startPosition)},c.onMediaDetaching=function(){var e=this.media;null!=e&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},c.onMediaSeeking=function(){var e=this.config,t=this.fragCurrent,n=this.media,r=this.mediaBuffer,i=this.state,o=n?n.currentTime:0,s=Le.bufferInfo(r||n,o,e.maxBufferHole);if(this.log("media seeking to "+((0,a.isFiniteNumber)(o)?o.toFixed(3):o)+", state: "+i),this.state===et)this.resetLoadingState();else if(t){var l=e.maxFragLookUpTolerance,u=t.start-l,c=t.start+t.duration+l;if(!s.len||c<s.start||u>s.end){var p=o>c;(o<u||p)&&(p&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests()),this.resetLoadingState())}}n&&(this.lastCurrentTime=o),this.loadedmetadata||s.len||(this.nextLoadPosition=this.startPosition=o),this.tickImmediate()},c.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},c.onLevelSwitching=function(e,t){this.fragLoadError=0},c.onHandlerDestroying=function(){this.stopLoad(),e.prototype.onHandlerDestroying.call(this)},c.onHandlerDestroyed=function(){this.state=We,this.hls.off(o.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,e.prototype.onHandlerDestroyed.call(this)},c.loadFragment=function(e,t,n){this._loadFragForPlayback(e,t,n)},c._loadFragForPlayback=function(e,t,n){var r=this;this._doFragLoad(e,t,n,(function(t){if(r.fragContextChanged(e))return r.warn("Fragment "+e.sn+(t.part?" p: "+t.part.index:"")+" of level "+e.level+" was dropped during download."),void r.fragmentTracker.removeFragment(e);e.stats.chunkCount++,r._handleFragmentLoadProgress(t)})).then((function(t){if(t){r.fragLoadError=0;var n=r.state;r.fragContextChanged(e)?(n===Xe||!r.fragCurrent&&n===Ze)&&(r.fragmentTracker.removeFragment(e),r.state=Ye):("payload"in t&&(r.log("Loaded fragment "+e.sn+" of level "+e.level),r.hls.trigger(o.Events.FRAG_LOADED,t)),r._handleFragmentLoadComplete(t))}})).catch((function(t){r.state!==We&&r.state!==tt&&(r.warn(t),r.resetFragmentLoading(e))}))},c.flushMainBuffer=function(e,t,n){if(void 0===n&&(n=null),e-t){var r={startOffset:e,endOffset:t,type:n};this.fragLoadError=0,this.hls.trigger(o.Events.BUFFER_FLUSHING,r)}},c._loadInitSegment=function(e,t){var n=this;this._doFragLoad(e,t).then((function(t){if(!t||n.fragContextChanged(e)||!n.levels)throw new Error("init load aborted");return t})).then((function(t){var r=n.hls,i=t.payload,a=e.decryptdata;if(i&&i.byteLength>0&&a&&a.key&&a.iv&&"AES-128"===a.method){var s=self.performance.now();return n.decrypter.decrypt(new Uint8Array(i),a.key.buffer,a.iv.buffer).then((function(n){var i=self.performance.now();return r.trigger(o.Events.FRAG_DECRYPTED,{frag:e,payload:n,stats:{tstart:s,tdecrypt:i}}),t.payload=n,t}))}return t})).then((function(t){var r=n.fragCurrent,i=n.hls,a=n.levels;if(!a)throw new Error("init load aborted, missing levels");a[e.level].details;var s=e.stats;n.state=Ye,n.fragLoadError=0,e.data=new Uint8Array(t.payload),s.parsing.start=s.buffering.start=self.performance.now(),s.parsing.end=s.buffering.end=self.performance.now(),t.frag===r&&i.trigger(o.Events.FRAG_BUFFERED,{stats:s,frag:r,part:null,id:e.type}),n.tick()})).catch((function(t){n.state!==We&&n.state!==tt&&(n.warn(t),n.resetFragmentLoading(e))}))},c.fragContextChanged=function(e){var t=this.fragCurrent;return!e||!t||e.level!==t.level||e.sn!==t.sn||e.urlId!==t.urlId},c.fragBufferedComplete=function(e,t){var n,r,i,a,o=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+e.type+" sn: "+e.sn+(t?" part: "+t.index:"")+" of "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+e.level+" (frag:["+(null!=(n=e.startPTS)?n:NaN).toFixed(3)+"-"+(null!=(r=e.endPTS)?r:NaN).toFixed(3)+"] > buffer:"+(o?function(e){for(var t="",n=e.length,r=0;r<n;r++)t+="["+e.start(r).toFixed(3)+"-"+e.end(r).toFixed(3)+"]";return t}(Le.getBuffered(o)):"(detached)")+")"),this.state=Ye,o&&(!this.loadedmetadata&&e.type==H.PlaylistLevelType.MAIN&&o.buffered.length&&(null===(i=this.fragCurrent)||void 0===i?void 0:i.sn)===(null===(a=this.fragPrevious)||void 0===a?void 0:a.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())},c.seekToStartPos=function(){},c._handleFragmentLoadComplete=function(e){var t=this.transmuxer;if(t){var n=e.frag,r=e.part,i=e.partsLoaded,a=!i||0===i.length||i.some((function(e){return!e})),o=new Me(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!a);t.flush(o)}},c._handleFragmentLoadProgress=function(e){},c._doFragLoad=function(e,t,n,r){var i,s=this;if(void 0===n&&(n=null),!this.levels)throw new Error("frag load aborted, missing levels");var l=null;if(!e.encrypted||null!==(i=e.decryptdata)&&void 0!==i&&i.key?!e.encrypted&&t.encryptedFragments.length&&this.keyLoader.loadClear(e,t.encryptedFragments):(this.log("Loading key for "+e.sn+" of ["+t.startSN+"-"+t.endSN+"], "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+e.level),this.state=qe,this.fragCurrent=e,l=this.keyLoader.load(e).then((function(e){if(!s.fragContextChanged(e.frag))return s.hls.trigger(o.Events.KEY_LOADED,e),s.state===qe&&(s.state=Ye),e})),this.hls.trigger(o.Events.KEY_LOADING,{frag:e}),this.throwIfFragContextChanged("KEY_LOADING")),n=Math.max(e.start,n||0),this.config.lowLatencyMode&&t){var u=t.partList;if(u&&r){n>e.end&&t.fragmentHint&&(e=t.fragmentHint);var c=this.getNextPart(u,e,n);if(c>-1){var p=u[c];return this.log("Loading part sn: "+e.sn+" p: "+p.index+" cc: "+e.cc+" of playlist ["+t.startSN+"-"+t.endSN+"] parts [0-"+c+"-"+(u.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+e.level+", target: "+parseFloat(n.toFixed(3))),this.nextLoadPosition=p.start+p.duration,this.state=Xe,this.hls.trigger(o.Events.FRAG_LOADING,{frag:e,part:u[c],targetBufferTime:n}),this.throwIfFragContextChanged("FRAG_LOADING parts"),l?l.then((function(t){return!t||s.fragContextChanged(t.frag)?null:s.doFragPartsLoad(e,u,c,r)})).catch((function(e){return s.handleFragLoadError(e)})):this.doFragPartsLoad(e,u,c,r).catch((function(e){return s.handleFragLoadError(e)}))}if(!e.url||this.loadedEndOfParts(u,n))return Promise.resolve(null)}}this.log("Loading fragment "+e.sn+" cc: "+e.cc+" "+(t?"of ["+t.startSN+"-"+t.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+e.level+", target: "+parseFloat(n.toFixed(3))),(0,a.isFiniteNumber)(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Xe,this.hls.trigger(o.Events.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.throwIfFragContextChanged("FRAG_LOADING");var d=this.config.progressive;return d&&l?l.then((function(t){return!t||s.fragContextChanged(null==t?void 0:t.frag)?null:s.fragmentLoader.load(e,r)})).catch((function(e){return s.handleFragLoadError(e)})):Promise.all([this.fragmentLoader.load(e,d?r:void 0),l]).then((function(e){var t=e[0];return!d&&t&&r&&r(t),t})).catch((function(e){return s.handleFragLoadError(e)}))},c.throwIfFragContextChanged=function(e){if(null===this.fragCurrent)throw new Error("frag load aborted, context changed in "+e)},c.doFragPartsLoad=function(e,t,n,r){var i=this;return new Promise((function(a,s){var l=[];!function n(u){var c=t[u];i.fragmentLoader.loadPart(e,c,r).then((function(r){l[c.index]=r;var s=r.part;i.hls.trigger(o.Events.FRAG_LOADED,r);var p=t[u+1];if(!p||p.fragment!==e)return a({frag:e,part:s,partsLoaded:l});n(u+1)})).catch(s)}(n)}))},c.handleFragLoadError=function(e){if("data"in e){var t=e.data;e.data&&t.details===s.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(o.Events.ERROR,t)}else this.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,err:e,fatal:!0});return null},c._handleTransmuxerFlush=function(e){var t=this.getCurrentContext(e);if(t&&this.state===Ze){var n=t.frag,r=t.part,i=t.level,a=self.performance.now();n.stats.parsing.end=a,r&&(r.stats.parsing.end=a),this.updateLevelTiming(n,r,i,e.partial)}else this.fragCurrent||this.state===We||this.state===tt||(this.state=Ye)},c.getCurrentContext=function(e){var t=this.levels,n=e.level,r=e.sn,i=e.part;if(!t||!t[n])return this.warn("Levels object was unset while buffering fragment "+r+" of level "+n+". The current chunk will not be buffered."),null;var a=t[n],o=i>-1?function(e,t,n){if(!e||!e.details)return null;var r=e.details.partList;if(r)for(var i=r.length;i--;){var a=r[i];if(a.index===n&&a.fragment.sn===t)return a}return null}(a,r,i):null,s=o?o.fragment:function(e,t,n){if(!e||!e.details)return null;var r=e.details,i=r.fragments[t-r.startSN];return i||((i=r.fragmentHint)&&i.sn===t?i:t<r.startSN&&n&&n.sn===t?n:null)}(a,r,this.fragCurrent);return s?{frag:s,part:o,level:a}:null},c.bufferFragmentData=function(e,t,n,r){if(e&&this.state===Ze){var i=e.data1,a=e.data2,s=i;if(i&&a&&(s=(0,w.appendUint8Array)(i,a)),s&&s.length){var l={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:s};this.hls.trigger(o.Events.BUFFER_APPENDING,l),e.dropped&&e.independent&&!n&&this.flushBufferGap(t)}}},c.flushBufferGap=function(e){var t=this.media;if(t)if(Le.isBuffered(t,t.currentTime)){var n=t.currentTime,r=Le.bufferInfo(t,n,0),i=e.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),o=Math.max(Math.min(e.start-a,r.end-a),n+a);e.start-o>a&&this.flushMainBuffer(o,e.start)}else this.flushMainBuffer(0,e.start)},c.getFwdBufferInfo=function(e,t){var n=this.config,r=this.getLoadPosition();if(!(0,a.isFiniteNumber)(r))return null;var i=Le.bufferInfo(e,r,n.maxBufferHole);if(0===i.len&&void 0!==i.nextStart){var o=this.fragmentTracker.getBufferedFrag(r,t);if(o&&i.nextStart<o.end)return Le.bufferInfo(e,r,Math.max(i.nextStart,n.maxBufferHole))}return i},c.getMaxBufferLength=function(e){var t,n=this.config;return t=e?Math.max(8*n.maxBufferSize/e,n.maxBufferLength):n.maxBufferLength,Math.min(t,n.maxMaxBufferLength)},c.reduceMaxBufferLength=function(e){var t=this.config,n=e||t.maxBufferLength;return t.maxMaxBufferLength>=n&&(t.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+t.maxMaxBufferLength+"s"),!0)},c.getNextFragment=function(e,t){var n=t.fragments,r=n.length;if(!r)return null;var i,a=this.config,o=n[0].start;if(t.live){var s=a.initialLiveManifestSize;if(r<s)return this.warn("Not enough fragments to start playback (have: "+r+", need: "+s+")"),null;t.PTSKnown||this.startFragRequested||-1!==this.startPosition||(i=this.getInitialLiveFragment(t,n),this.startPosition=i?this.hls.liveSyncPosition||i.start:e)}else e<=o&&(i=n[0]);if(!i){var l=a.lowLatencyMode?t.partEnd:t.fragmentEnd;i=this.getFragmentAtPosition(e,l,t)}return this.mapToInitFragWhenRequired(i)},c.mapToInitFragWhenRequired=function(e){return null==e||!e.initSegment||null!=e&&e.initSegment.data||this.bitrateTest?e:e.initSegment},c.getNextPart=function(e,t,n){for(var r=-1,i=!1,a=!0,o=0,s=e.length;o<s;o++){var l=e[o];if(a=a&&!l.independent,r>-1&&n<l.start)break;var u=l.loaded;u?r=-1:(i||l.independent||a)&&l.fragment===t&&(r=o),i=u}return r},c.loadedEndOfParts=function(e,t){var n=e[e.length-1];return n&&t>n.start&&n.loaded},c.getInitialLiveFragment=function(e,t){var n=this.fragPrevious,r=null;if(n){if(e.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+n.programDateTime),r=function(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!(0,a.isFiniteNumber)(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;n=n||0;for(var r=0;r<e.length;++r){var i=e[r];if(Ke(t,n,i))return i}return null}(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){var i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){var o=t[i-e.startSN];n.cc===o.cc&&(r=o,this.log("Live playlist, switching playlist, load frag with next SN: "+r.sn))}r||(r=function(e,t){return Be(e,(function(e){return e.cc<t?1:e.cc>t?-1:0}))}(t,n.cc))&&this.log("Live playlist, switching playlist, load frag with same CC: "+r.sn)}}else{var s=this.hls.liveSyncPosition;null!==s&&(r=this.getFragmentAtPosition(s,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r},c.getFragmentAtPosition=function(e,t,n){var r,i=this.config,a=this.fragPrevious,o=n.fragments,s=n.endSN,l=n.fragmentHint,u=i.maxFragLookUpTolerance,c=!!(i.lowLatencyMode&&n.partList&&l);if(c&&l&&!this.bitrateTest&&(o=o.concat(l),s=l.sn),r=e<t?Ve(a,o,e,e>t-u?0:u):o[o.length-1]){var p=r.sn-n.startSN;if(this.fragmentTracker.getState(r)===ye.OK&&(a=r),a&&r.sn===a.sn&&!c&&a&&r.level===a.level){var d=o[p+1];r.sn<s&&this.fragmentTracker.getState(d)!==ye.OK?(this.log("SN "+r.sn+" just loaded, load next one: "+d.sn),r=d):r=null}}return r},c.synchronizeToLiveEdge=function(e){var t=this.config,n=this.media;if(n){var r=this.hls.liveSyncPosition,i=n.currentTime,a=e.fragments[0].start,o=e.edge,s=i>=a-t.maxFragLookUpTolerance&&i<=o;if(null!==r&&n.duration>r&&(i<r||!s)){var l=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!s&&n.readyState<4||i<o-l)&&(this.loadedmetadata||(this.nextLoadPosition=r),n.readyState&&(this.warn("Playback: "+i.toFixed(3)+" is located too far from the end of live sliding playlist: "+o+", reset currentTime to : "+r.toFixed(3)),n.currentTime=r))}}},c.alignPlaylists=function(e,t){var n=this.levels,r=this.levelLastLoaded,i=this.fragPrevious,o=null!==r?n[r]:null,s=e.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;var u=e.fragments[0].start,c=!t,p=e.alignedSliding&&(0,a.isFiniteNumber)(u);if(c||!p&&!u){!function(e,t,n){t&&(function(e,t,n){if(function(e,t,n){return!(!t.details||!(n.endCC>n.startCC||e&&e.cc<n.startCC))}(e,n,t)){var r=function(e,t,n){void 0===n&&(n=0);var r=e.fragments,i=t.fragments;if(i.length&&r.length){var a=Ne(r,i[0].cc);if(a&&(!a||a.startPTS))return a;l.logger.log("No frag in previous level to align on")}else l.logger.log("No fragments to align")}(n.details,t);r&&(0,a.isFiniteNumber)(r.start)&&(l.logger.log("Adjusting PTS using last level due to CC increase within current level "+t.url),Fe(r.start,t))}}(e,n,t),!n.alignedSliding&&t.details&&function(e,t){if(t.fragments.length&&e.hasProgramDateTime&&t.hasProgramDateTime){var n=t.fragments[0].programDateTime,r=e.fragments[0].programDateTime,i=(r-n)/1e3+t.fragments[0].start;i&&(0,a.isFiniteNumber)(i)&&(l.logger.log("Adjusting PTS using programDateTime delta "+(r-n)+"ms, sliding:"+i.toFixed(3)+" "+e.url+" "),Fe(i,e))}}(n,t.details),n.alignedSliding||!t.details||n.skippedSegments||pe(t.details,n))}(i,o,e);var d=e.fragments[0].start;return this.log("Live playlist sliding: "+d.toFixed(2)+" start-sn: "+(t?t.startSN:"na")+"->"+e.startSN+" prev-sn: "+(i?i.sn:"na")+" fragments: "+s),d}return u},c.waitForCdnTuneIn=function(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)},c.setStartPosition=function(e,t){var n=this.startPosition;if(n<t&&(n=-1),-1===n||-1===this.lastCurrentTime){var r=e.startTimeOffset;(0,a.isFiniteNumber)(r)?(n=t+r,r<0&&(n+=e.totalduration),n=Math.min(Math.max(t,n),t+e.totalduration),this.log("Start time offset "+r+" found in playlist, adjust startPosition to "+n),this.startPosition=n):e.live?n=this.hls.liveSyncPosition||t:this.startPosition=n=0,this.lastCurrentTime=n}this.nextLoadPosition=n},c.getLoadPosition=function(){var e=this.media,t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t},c.handleFragLoadAborted=function(e,t){this.transmuxer&&"initSegment"!==e.sn&&e.stats.aborted&&(this.warn("Fragment "+e.sn+(t?" part"+t.index:"")+" of level "+e.level+" was aborted"),this.resetFragmentLoading(e))},c.resetFragmentLoading=function(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===$e)||(this.state=Ye)},c.onFragmentOrKeyLoadError=function(e,t){if(t.fatal)return this.stopLoad(),void(this.state=tt);var n=this.config;if(t.chunkMeta){var r=this.getCurrentContext(t.chunkMeta);r&&(t.frag=r.frag,t.levelRetry=!0,this.fragLoadError=n.fragLoadingMaxRetry)}var i=t.frag;if(i&&i.type===e)if(this.fragCurrent,this.fragLoadError+1<=n.fragLoadingMaxRetry){this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition);var a=Math.min(Math.pow(2,this.fragLoadError)*n.fragLoadingRetryDelay,n.fragLoadingMaxRetryTimeout);this.warn("Fragment "+i.sn+" of "+e+" "+i.level+" failed to load, retrying in "+a+"ms"),this.retryDate=self.performance.now()+a,this.fragLoadError++,this.state=$e}else t.levelRetry?(e===H.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=Ye):(l.logger.error(t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.hls.stopLoad(),this.state=tt)},c.afterBufferFlushed=function(e,t,n){if(e){var r=Le.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===et&&this.resetLoadingState()}},c.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Ye},c.resetStartWhenNotLoaded=function(e){if(!this.loadedmetadata){this.startFragRequested=!1;var t=this.levels?this.levels[e].details:null;null!=t&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},c.updateLevelTiming=function(e,t,n,r){var i=this,a=n.details;Object.keys(e.elementaryStreams).reduce((function(t,s){var l=e.elementaryStreams[s];if(l){var u=l.endPTS-l.startPTS;if(u<=0)return i.warn("Could not parse fragment "+e.sn+" "+s+" duration reliably ("+u+")"),t||!1;var c=r?0:ce(a,e,l.startPTS,l.endPTS,l.startDTS,l.endDTS);return i.hls.trigger(o.Events.LEVEL_PTS_UPDATED,{details:a,level:n,drift:c,type:s,frag:e,start:l.startPTS,end:l.endPTS}),!0}return t}),!1)||(this.warn("Found no media in fragment "+e.sn+" of level "+n.id+" resetting transmuxer to fallback to playlist timing"),this.resetTransmuxer()),this.state=Je,this.hls.trigger(o.Events.FRAG_PARSED,{frag:e,part:t})},c.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},i=r,(u=[{key:"state",get:function(){return this._state},set:function(e){var t=this._state;t!==e&&(this._state=e,this.log(t+"->"+e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(i.prototype,u),Object.defineProperty(i,"prototype",{writable:!1}),r}(Re);function at(){return self.MediaSource||self.WebKitMediaSource}function ot(){return self.SourceBuffer||self.WebKitSourceBuffer}var st=function(){var e=ENTRY_MODULE,t={},n=function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports};n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r=n(ENTRY_MODULE);return r.default||r}.toString().split("ENTRY_MODULE"),lt="\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)";function ut(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function ct(e,t,r){var i={};i[r]=[];var a=t.toString().replace(/^"[^"]+"/,"function"),o=a.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/)||a.match(/^\(\w+,\s*\w+,\s*(\w+)\)\s?\=\s?\>/);if(!o)return i;for(var s,l=o[1],u=new RegExp("(\\\\n|\\W)"+ut(l)+lt,"g");s=u.exec(a);)"dll-reference"!==s[3]&&i[r].push(s[3]);for(u=new RegExp("\\("+ut(l)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)'+lt,"g");s=u.exec(a);)e[s[2]]||(i[r].push(s[1]),e[s[2]]=n(s[1]).m),i[s[2]]=i[s[2]]||[],i[s[2]].push(s[4]);for(var c,p=Object.keys(i),d=0;d<p.length;d++)for(var f=0;f<i[p[d]].length;f++)c=i[p[d]][f],isNaN(1*c)||(i[p[d]][f]=1*i[p[d]][f]);return i}function pt(e){return Object.keys(e).reduce((function(t,n){return t||e[n].length>0}),!1)}function dt(e,t,n,r){var i=e[r].map((function(e){return'"'+e+'": '+t[r][e].toString().replace(/^"[^"]+"/,"function")})).join(",");return st[0]+"{"+i+"}"+st[1]+'"'+n+'"'+st[2]}var ft=n(544),ht=n(729),gt=n.n(ht),yt=at()||{isTypeSupported:function(){return!1}},vt=function(){function e(e,t,r,i){var a=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var u=e.config;this.hls=e,this.id=t,this.useWorker=!!u.enableWorker,this.onTransmuxComplete=r,this.onFlush=i;var c=function(e,t){(t=t||{}).frag=a.frag,t.id=a.id,a.hls.trigger(e,t)};this.observer=new ht.EventEmitter,this.observer.on(o.Events.FRAG_DECRYPTED,c),this.observer.on(o.Events.ERROR,c);var p={mp4:yt.isTypeSupported("video/mp4"),mpeg:yt.isTypeSupported("audio/mpeg"),mp3:yt.isTypeSupported('audio/mp4; codecs="mp3"')},d=navigator.vendor;if(this.useWorker&&"undefined"!=typeof Worker){var f;l.logger.log("demuxing in webworker");try{f=this.worker=function(e,t){t=t||{};var r={main:n.m},i=t.all?{main:Object.keys(r.main)}:function(e,t){for(var n={main:[182]},r={main:[]},i={main:{}};pt(n);)for(var a=Object.keys(n),o=0;o<a.length;o++){var s=a[o],l=n[s].pop();if(i[s]=i[s]||{},!i[s][l]&&e[s][l]){i[s][l]=!0,r[s]=r[s]||[],r[s].push(l);for(var u=ct(e,e[s][l],s),c=Object.keys(u),p=0;p<c.length;p++)n[c[p]]=n[c[p]]||[],n[c[p]]=n[c[p]].concat(u[c[p]])}}return r}(r),a="";Object.keys(i).filter((function(e){return"main"!==e})).forEach((function(e){for(var t=0;i[e][t];)t++;i[e].push(t),r[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",a=a+"var "+e+" = ("+dt(i,r,t,modules)+")();\n"})),a=a+"new (("+dt(i,r,182,"main")+")())(self);";var o=new window.Blob([a],{type:"text/javascript"}),s=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(o),l=new window.Worker(s);return l.objectURL=s,l}(),this.onwmsg=this.onWorkerMessage.bind(this),f.addEventListener("message",this.onwmsg),f.onerror=function(e){a.useWorker=!1,l.logger.warn("Exception in webworker, fallback to inline"),a.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:new Error(e.message+"  ("+e.filename+":"+e.lineno+")")})},f.postMessage({cmd:"init",typeSupported:p,vendor:d,id:t,config:JSON.stringify(u)})}catch(e){l.logger.warn("Error in worker:",e),l.logger.error("Error while initializing DemuxerWorker, fallback to inline"),f&&self.URL.revokeObjectURL(f.objectURL),this.transmuxer=new ft.default(this.observer,p,u,d,t),this.worker=null}}else this.transmuxer=new ft.default(this.observer,p,u,d,t)}var t=e.prototype;return t.destroy=function(){var e=this.worker;if(e)e.removeEventListener("message",this.onwmsg),e.terminate(),this.worker=null,this.onwmsg=void 0;else{var t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}var n=this.observer;n&&n.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null},t.push=function(e,t,n,r,i,a,o,s,u,c){var p,d,f=this;u.transmuxing.start=self.performance.now();var h=this.transmuxer,g=this.worker,y=a?a.start:i.start,v=i.decryptdata,m=this.frag,b=!(m&&i.cc===m.cc),_=!(m&&u.level===m.level),E=m?u.sn-m.sn:-1,k=this.part?u.part-this.part.index:-1,T=0===E&&u.id>1&&u.id===(null==m?void 0:m.stats.chunkCount),A=!_&&(1===E||0===E&&(1===k||T&&k<=0)),w=self.performance.now();(_||E||0===i.stats.parsing.start)&&(i.stats.parsing.start=w),!a||!k&&A||(a.stats.parsing.start=w);var S=!(m&&(null===(p=i.initSegment)||void 0===p?void 0:p.url)===(null===(d=m.initSegment)||void 0===d?void 0:d.url)),C=new ft.TransmuxState(b,A,s,_,y,S);if(!A||b||S){l.logger.log("[transmuxer-interface, "+i.type+"]: Starting new transmux session for sn: "+u.sn+" p: "+u.part+" level: "+u.level+" id: "+u.id+"\n        discontinuity: "+b+"\n        trackSwitch: "+_+"\n        contiguous: "+A+"\n        accurateTimeOffset: "+s+"\n        timeOffset: "+y+"\n        initSegmentChange: "+S);var x=new ft.TransmuxConfig(n,r,t,o,c);this.configureTransmuxer(x)}if(this.frag=i,this.part=a,g)g.postMessage({cmd:"demux",data:e,decryptdata:v,chunkMeta:u,state:C},e instanceof ArrayBuffer?[e]:[]);else if(h){var I=h.push(e,v,u,C);(0,ft.isPromise)(I)?(h.async=!0,I.then((function(e){f.handleTransmuxComplete(e)})).catch((function(e){f.transmuxerError(e,u,"transmuxer-interface push error")}))):(h.async=!1,this.handleTransmuxComplete(I))}},t.flush=function(e){var t=this;e.transmuxing.start=self.performance.now();var n=this.transmuxer,r=this.worker;if(r)r.postMessage({cmd:"flush",chunkMeta:e});else if(n){var i=n.flush(e);(0,ft.isPromise)(i)||n.async?((0,ft.isPromise)(i)||(i=Promise.resolve(i)),i.then((function(n){t.handleFlushResult(n,e)})).catch((function(n){t.transmuxerError(n,e,"transmuxer-interface flush error")}))):this.handleFlushResult(i,e)}},t.transmuxerError=function(e,t,n){this.hls&&this.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.FRAG_PARSING_ERROR,chunkMeta:t,fatal:!1,error:e,err:e,reason:n})},t.handleFlushResult=function(e,t){var n=this;e.forEach((function(e){n.handleTransmuxComplete(e)})),this.onFlush(t)},t.onWorkerMessage=function(e){var t=e.data,n=this.hls;switch(t.event){case"init":self.URL.revokeObjectURL(this.worker.objectURL);break;case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":l.logger[t.data.logType]&&l.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,n.trigger(t.event,t.data)}},t.configureTransmuxer=function(e){var t=this.worker,n=this.transmuxer;t?t.postMessage({cmd:"configure",config:e}):n&&n.configure(e)},t.handleTransmuxComplete=function(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)},e}(),mt=function(){function e(e,t,n,r){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=n,this.hls=r}var t=e.prototype;return t.destroy=function(){this.media=null,this.hls=this.fragmentTracker=null},t.poll=function(e,t){var n=this.config,r=this.media,i=this.stalled;if(null!==r){var a=r.currentTime,o=r.seeking,s=this.seeking&&!o,u=!this.seeking&&o;if(this.seeking=o,a===e){if((u||s)&&(this.stalled=null),!(r.paused&&!o||r.ended||0===r.playbackRate)&&Le.getBuffered(r).length){var c=Le.bufferInfo(r,a,0),p=c.len>0,d=c.nextStart||0;if(p||d){if(o){var f=c.len>2,h=!d||t&&t.start<=a||d-a>2&&!this.fragmentTracker.getPartialFragment(a);if(f||h)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var g,y=Math.max(d,c.start||0)-a,v=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,m=(null==v||null===(g=v.details)||void 0===g?void 0:g.live)?2*v.details.targetduration:2;if(y>0&&y<=m)return void this._trySkipBufferHole(null)}var b=self.performance.now();if(null!==i){var _=b-i;if(o||!(_>=250)||(this._reportStall(c),this.media)){var E=Le.bufferInfo(r,a,n.maxBufferHole);this._tryFixBufferStall(E,_)}}else this.stalled=b}}}else if(this.moved=!0,null!==i){if(this.stallReported){var k=self.performance.now()-i;l.logger.warn("playback not stuck anymore @"+a+", after "+Math.round(k)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}}},t._tryFixBufferStall=function(e,t){var n=this.config,r=this.fragmentTracker,i=this.media;if(null!==i){var a=i.currentTime,o=r.getPartialFragment(a);if(o&&(this._trySkipBufferHole(o)||!this.media))return;e.len>n.maxBufferHole&&t>1e3*n.highBufferWatchdogPeriod&&(l.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},t._reportStall=function(e){var t=this.hls,n=this.media;!this.stallReported&&n&&(this.stallReported=!0,l.logger.warn("Playback stalling at @"+n.currentTime+" due to low buffer ("+JSON.stringify(e)+")"),t.trigger(o.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:e.len}))},t._trySkipBufferHole=function(e){var t=this.config,n=this.hls,r=this.media;if(null===r)return 0;for(var i=r.currentTime,a=0,u=Le.getBuffered(r),c=0;c<u.length;c++){var p=u.start(c);if(i+t.maxBufferHole>=a&&i<p){var d=Math.max(p+.05,r.currentTime+.1);return l.logger.warn("skipping hole, adjusting currentTime from "+i+" to "+d),this.moved=!0,this.stalled=null,r.currentTime=d,e&&n.trigger(o.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+i+" to "+d,frag:e}),d}a=u.end(c)}return 0},t._tryNudgeBuffer=function(){var e=this.config,t=this.hls,n=this.media,r=this.nudgeRetry;if(null!==n){var i=n.currentTime;if(this.nudgeRetry++,r<e.nudgeMaxRetry){var a=i+(r+1)*e.nudgeOffset;l.logger.warn("Nudging 'currentTime' from "+i+" to "+a),n.currentTime=a,t.trigger(o.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else l.logger.error("Playhead still not moving while enough data buffered @"+i+" after "+e.nudgeMaxRetry+" nudges"),t.trigger(o.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})}},e}();function bt(e,t){return(bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _t=function(e){var t,n;function r(t,n,r){var i;return(i=e.call(this,t,n,r,"[stream-controller]")||this).audioCodecSwap=!1,i.gapController=null,i.level=-1,i._forceStartLoad=!1,i.altAudio=!1,i.audioOnly=!1,i.fragPlaying=null,i.onvplaying=null,i.onvseeked=null,i.fragLastKbps=0,i.couldBacktrack=!1,i.backtrackFragment=null,i.audioCodecSwitch=!1,i.videoBuffer=null,i._registerListeners(),i}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,bt(t,n);var i,l,u=r.prototype;return u._registerListeners=function(){var e=this.hls;e.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(o.Events.LEVEL_LOADING,this.onLevelLoading,this),e.on(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.on(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(o.Events.ERROR,this.onError,this),e.on(o.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(o.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(o.Events.BUFFER_CREATED,this.onBufferCreated,this),e.on(o.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(o.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},u._unregisterListeners=function(){var e=this.hls;e.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.off(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(o.Events.ERROR,this.onError,this),e.off(o.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(o.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(o.Events.BUFFER_CREATED,this.onBufferCreated,this),e.off(o.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(o.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},u.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},u.startLoad=function(e){if(this.levels){var t=this.lastCurrentTime,n=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var r=n.startLevel;-1===r&&(n.config.testBandwidth&&this.levels.length>1?(r=0,this.bitrateTest=!0):r=n.nextAutoLevel),this.level=n.nextLoadLevel=r,this.loadedmetadata=!1}t>0&&-1===e&&(this.log("Override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t),this.state=Ye,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=We},u.stopLoad=function(){this._forceStartLoad=!1,e.prototype.stopLoad.call(this)},u.doTick=function(){switch(this.state){case Ye:this.doTickIdle();break;case rt:var e,t=this.levels,n=this.level,r=null==t||null===(e=t[n])||void 0===e?void 0:e.details;if(r&&(!r.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(r))break;this.state=Ye;break}break;case $e:var i,a=self.performance.now(),o=this.retryDate;(!o||a>=o||null!==(i=this.media)&&void 0!==i&&i.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.level),this.state=Ye)}this.onTickEnd()},u.onTickEnd=function(){e.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},u.doTickIdle=function(){var e=this.hls,t=this.levelLastLoaded,n=this.levels,r=this.media,i=e.config,a=e.nextLoadLevel;if(null!==t&&(r||!this.startFragRequested&&i.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)&&n&&n[a]){var s=n[a],l=this.getMainFwdBufferInfo();if(null!==l){var u=this.getLevelDetails();if(u&&this._streamEnded(l,u)){var c={};return this.altAudio&&(c.type="video"),this.hls.trigger(o.Events.BUFFER_EOS,c),void(this.state=et)}this.level=e.nextLoadLevel=a;var p=s.details;if(!p||this.state===rt||p.live&&this.levelLastLoaded!==a)return this.level=a,void(this.state=rt);if(!(l.len>=this.getMaxBufferLength(s.maxBitrate))){this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);var d=this.backtrackFragment?this.backtrackFragment.start:l.end,f=this.getNextFragment(d,p);if(this.couldBacktrack&&!this.fragPrevious&&f&&"initSegment"!==f.sn&&this.fragmentTracker.getState(f)!==ye.OK){var h,g=(null!=(h=this.backtrackFragment)?h:f).sn-p.startSN,y=p.fragments[g-1];y&&f.cc===y.cc&&(f=y,this.fragmentTracker.removeFragment(y))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(f&&this.fragmentTracker.getState(f)===ye.OK&&this.nextLoadPosition>d){var m=this.audioOnly&&!this.altAudio?v.ElementaryStreamTypes.AUDIO:v.ElementaryStreamTypes.VIDEO,b=(m===v.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;b&&this.afterBufferFlushed(b,m,H.PlaylistLevelType.MAIN),f=this.getNextFragment(this.nextLoadPosition,p)}f&&(!f.initSegment||f.initSegment.data||this.bitrateTest||(f=f.initSegment),this.loadFragment(f,p,d))}}}},u.loadFragment=function(t,n,r){var i,a=this.fragmentTracker.getState(t);this.fragCurrent=t,a===ye.NOT_LOADED?"initSegment"===t.sn?this._loadInitSegment(t,n):this.bitrateTest?(this.log("Fragment "+t.sn+" of level "+t.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(t,n)):(this.startFragRequested=!0,e.prototype.loadFragment.call(this,t,n,r)):a===ye.APPENDING?this.reduceMaxBufferLength(t.duration)&&this.fragmentTracker.removeFragment(t):0===(null===(i=this.media)||void 0===i?void 0:i.buffered.length)&&this.fragmentTracker.removeAllFragments()},u.getAppendedFrag=function(e){var t=this.fragmentTracker.getAppendedFrag(e,H.PlaylistLevelType.MAIN);return t&&"fragment"in t?t.fragment:t},u.getBufferedFrag=function(e){return this.fragmentTracker.getBufferedFrag(e,H.PlaylistLevelType.MAIN)},u.followingBufferedFrag=function(e){return e?this.getBufferedFrag(e.end+.5):null},u.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},u.nextLevelSwitch=function(){var e=this.levels,t=this.media;if(null!=t&&t.readyState){var n,r=this.getAppendedFrag(t.currentTime);if(r&&r.start>1&&this.flushMainBuffer(0,r.start-1),!t.paused&&e){var i=e[this.hls.nextLoadLevel],a=this.fragLastKbps;n=a&&this.fragCurrent?this.fragCurrent.duration*i.maxBitrate/(1e3*a)+1:0}else n=0;var o=this.getBufferedFrag(t.currentTime+n);if(o){var s=this.followingBufferedFrag(o);if(s){this.abortCurrentFrag();var l=s.maxStartPTS?s.maxStartPTS:s.start,u=s.duration,c=Math.max(o.end,l+Math.min(Math.max(u-this.config.maxFragLookUpTolerance,.5*u),.75*u));this.flushMainBuffer(c,Number.POSITIVE_INFINITY)}}}},u.abortCurrentFrag=function(){var e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&e.abortRequests(),this.state){case qe:case Xe:case $e:case Ze:case Je:this.state=Ye}this.nextLoadPosition=this.getLoadPosition()},u.flushMainBuffer=function(t,n){e.prototype.flushMainBuffer.call(this,t,n,this.altAudio?"video":null)},u.onMediaAttached=function(t,n){e.prototype.onMediaAttached.call(this,t,n);var r=n.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),r.addEventListener("playing",this.onvplaying),r.addEventListener("seeked",this.onvseeked),this.gapController=new mt(this.config,r,this.fragmentTracker,this.hls)},u.onMediaDetaching=function(){var t=this.media;t&&this.onvplaying&&this.onvseeked&&(t.removeEventListener("playing",this.onvplaying),t.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),e.prototype.onMediaDetaching.call(this)},u.onMediaPlaying=function(){this.tick()},u.onMediaSeeked=function(){var e=this.media,t=e?e.currentTime:null;(0,a.isFiniteNumber)(t)&&this.log("Media seeked to "+t.toFixed(3)),this.tick()},u.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(o.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null,this.backtrackFragment=null},u.onManifestParsed=function(e,t){var n,r,i,a=!1,o=!1;t.levels.forEach((function(e){(n=e.audioCodec)&&(-1!==n.indexOf("mp4a.40.2")&&(a=!0),-1!==n.indexOf("mp4a.40.5")&&(o=!0))})),this.audioCodecSwitch=a&&o&&!("function"==typeof(null==(i=ot())||null===(r=i.prototype)||void 0===r?void 0:r.changeType)),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1},u.onLevelLoading=function(e,t){var n=this.levels;if(n&&this.state===Ye){var r=n[t.level];(!r.details||r.details.live&&this.levelLastLoaded!==t.level||this.waitForCdnTuneIn(r.details))&&(this.state=rt)}},u.onLevelLoaded=function(e,t){var n,r=this.levels,i=t.level,a=t.details,s=a.totalduration;if(r){this.log("Level "+i+" loaded ["+a.startSN+","+a.endSN+"], cc ["+a.startCC+", "+a.endCC+"] duration:"+s);var l=this.fragCurrent;!l||this.state!==Xe&&this.state!==$e||l.level!==t.level&&l.loader&&(this.state=Ye,this.backtrackFragment=null,l.abortRequests());var u=r[i],c=0;if(a.live||null!==(n=u.details)&&void 0!==n&&n.live){if(a.fragments[0]||(a.deltaUpdateFailed=!0),a.deltaUpdateFailed)return;c=this.alignPlaylists(a,u.details)}if(u.details=a,this.levelLastLoaded=i,this.hls.trigger(o.Events.LEVEL_UPDATED,{details:a,level:i}),this.state===rt){if(this.waitForCdnTuneIn(a))return;this.state=Ye}this.startFragRequested?a.live&&this.synchronizeToLiveEdge(a):this.setStartPosition(a,c),this.tick()}else this.warn("Levels were reset while loading level "+i)},u._handleFragmentLoadProgress=function(e){var t,n=e.frag,r=e.part,i=e.payload,a=this.levels;if(a){var o=a[n.level],s=o.details;if(s){var l=o.videoCodec,u=s.PTSKnown||!s.live,c=null===(t=n.initSegment)||void 0===t?void 0:t.data,p=this._getAudioCodec(o),d=this.transmuxer=this.transmuxer||new vt(this.hls,H.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=r?r.index:-1,h=-1!==f,g=new Me(n.level,n.sn,n.stats.chunkCount,i.byteLength,f,h),y=this.initPTS[n.cc];d.push(i,c,p,l,n,r,s.totalduration,u,g,y)}else this.warn("Dropping fragment "+n.sn+" of level "+n.level+" after level details were reset")}else this.warn("Levels were reset while fragment load was in progress. Fragment "+n.sn+" of level "+n.level+" will not be buffered")},u.onAudioTrackSwitching=function(e,t){var n=this.altAudio,r=!!t.url,i=t.id;if(!r){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var a=this.fragCurrent;a&&(this.log("Switching to main audio track, cancel main fragment load"),a.abortRequests()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var s=this.hls;n&&s.trigger(o.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),s.trigger(o.Events.AUDIO_TRACK_SWITCHED,{id:i})}},u.onAudioTrackSwitched=function(e,t){var n=t.id,r=!!this.hls.audioTracks[n].url;if(r){var i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r,this.tick()},u.onBufferCreated=function(e,t){var n,r,i=t.tracks,a=!1;for(var o in i){var s=i[o];if("main"===s.id){if(r=o,n=s,"video"===o){var l=i[o];l&&(this.videoBuffer=l.buffer)}}else a=!0}a&&n?(this.log("Alternate track found, use "+r+".buffered to schedule main fragment loading"),this.mediaBuffer=n.buffer):this.mediaBuffer=this.media},u.onFragBuffered=function(e,t){var n=t.frag,r=t.part;if(!n||n.type===H.PlaylistLevelType.MAIN){if(this.fragContextChanged(n))return this.warn("Fragment "+n.sn+(r?" p: "+r.index:"")+" of level "+n.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===Je&&(this.state=Ye));var i=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),"initSegment"!==n.sn&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}},u.onError=function(e,t){if(t.type!==s.ErrorTypes.KEY_SYSTEM_ERROR)switch(t.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.FRAG_PARSING_ERROR:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(H.PlaylistLevelType.MAIN,t);break;case s.ErrorDetails.LEVEL_LOAD_ERROR:case s.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==tt&&(t.fatal?(this.warn(""+t.details),this.state=tt):t.levelRetry||this.state!==rt||(this.state=Ye));break;case s.ErrorDetails.BUFFER_FULL_ERROR:if("main"===t.parent&&(this.state===Ze||this.state===Je)){var n=!0,r=this.getFwdBufferInfo(this.media,H.PlaylistLevelType.MAIN);r&&r.len>.5&&(n=!this.reduceMaxBufferLength(r.len)),n&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}}else this.onFragmentOrKeyLoadError(H.PlaylistLevelType.MAIN,t)},u.checkBuffer=function(){var e=this.media,t=this.gapController;if(e&&t&&e.readyState){if(this.loadedmetadata||!Le.getBuffered(e).length){var n=this.state!==Ye?this.fragCurrent:null;t.poll(this.lastCurrentTime,n)}this.lastCurrentTime=e.currentTime}},u.onFragLoadEmergencyAborted=function(){this.state=Ye,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},u.onBufferFlushed=function(e,t){var n=t.type;if(n!==v.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var r=(n===v.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,n,H.PlaylistLevelType.MAIN)}},u.onLevelsUpdated=function(e,t){this.levels=t.levels},u.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},u.seekToStartPos=function(){var e=this.media;if(e){var t=e.currentTime,n=this.startPosition;if(n>=0&&t<n){if(e.seeking)return void this.log("could not seek to "+n+", already seeking at "+t);var r=Le.getBuffered(e),i=(r.length?r.start(0):0)-n;i>0&&(i<this.config.maxBufferHole||i<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by "+i+" to match buffer start"),n+=i,this.startPosition=n),this.log("seek to target start position "+n+" from current time "+t),e.currentTime=n}}},u._getAudioCodec=function(e){var t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t},u._loadBitrateTestFrag=function(e,t){var n=this;e.bitrateTest=!0,this._doFragLoad(e,t).then((function(t){var r=n.hls;if(t&&!n.fragContextChanged(e)){n.fragLoadError=0,n.state=Ye,n.startFragRequested=!1,n.bitrateTest=!1;var i=e.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),r.trigger(o.Events.FRAG_LOADED,t),e.bitrateTest=!1}}))},u._handleTransmuxComplete=function(e){var t,n="main",r=this.hls,i=e.remuxResult,s=e.chunkMeta,l=this.getCurrentContext(s);if(!l)return this.warn("The loading context changed while buffering fragment "+s.sn+" of level "+s.level+". This chunk will not be buffered."),void this.resetStartWhenNotLoaded(s.level);var u=l.frag,c=l.part,p=l.level,d=i.video,f=i.text,h=i.id3,g=i.initSegment,y=p.details,m=this.altAudio?void 0:i.audio;if(!this.fragContextChanged(u)){if(this.state=Ze,g){g.tracks&&(this._bufferInitSegment(p,g.tracks,u,s),r.trigger(o.Events.FRAG_PARSING_INIT_SEGMENT,{frag:u,id:n,tracks:g.tracks}));var b=g.initPTS,_=g.timescale;(0,a.isFiniteNumber)(b)&&(this.initPTS[u.cc]=b,r.trigger(o.Events.INIT_PTS_FOUND,{frag:u,id:n,initPTS:b,timescale:_}))}if(d&&!1!==i.independent){if(y){var E=d.startPTS,k=d.endPTS,T=d.startDTS,A=d.endDTS;if(c)c.elementaryStreams[d.type]={startPTS:E,endPTS:k,startDTS:T,endDTS:A};else if(d.firstKeyFrame&&d.independent&&1===s.id&&(this.couldBacktrack=!0),d.dropped&&d.independent){var w=this.getMainFwdBufferInfo();if((w?w.end:this.getLoadPosition())+this.config.maxBufferHole<(d.firstKeyFramePTS?d.firstKeyFramePTS:E)-this.config.maxBufferHole)return void this.backtrack(u);u.setElementaryStreamInfo(d.type,u.start,k,u.start,A,!0)}u.setElementaryStreamInfo(d.type,E,k,T,A),this.backtrackFragment&&(this.backtrackFragment=u),this.bufferFragmentData(d,u,c,s)}}else if(!1===i.independent)return void this.backtrack(u);if(m){var S=m.startPTS,C=m.endPTS,x=m.startDTS,I=m.endDTS;c&&(c.elementaryStreams[v.ElementaryStreamTypes.AUDIO]={startPTS:S,endPTS:C,startDTS:x,endDTS:I}),u.setElementaryStreamInfo(v.ElementaryStreamTypes.AUDIO,S,C,x,I),this.bufferFragmentData(m,u,c,s)}if(y&&null!=h&&null!==(t=h.samples)&&void 0!==t&&t.length){var P={id:n,frag:u,details:y,samples:h.samples};r.trigger(o.Events.FRAG_PARSING_METADATA,P)}if(y&&f){var D={id:n,frag:u,details:y,samples:f.samples};r.trigger(o.Events.FRAG_PARSING_USERDATA,D)}}},u._bufferInitSegment=function(e,t,n,r){var i=this;if(this.state===Ze){this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;var a=t.audio,s=t.video,l=t.audiovideo;if(a){var u=e.audioCodec,c=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(u&&(u=-1!==u.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==a.metadata.channelCount&&-1===c.indexOf("firefox")&&(u="mp4a.40.5")),-1!==c.indexOf("android")&&"audio/mpeg"!==a.container&&(u="mp4a.40.2",this.log("Android: force audio codec to "+u)),e.audioCodec&&e.audioCodec!==u&&this.log('Swapping manifest audio codec "'+e.audioCodec+'" for "'+u+'"'),a.levelCodec=u,a.id="main",this.log("Init audio buffer, container:"+a.container+", codecs[selected/level/parsed]=["+(u||"")+"/"+(e.audioCodec||"")+"/"+a.codec+"]")}s&&(s.levelCodec=e.videoCodec,s.id="main",this.log("Init video buffer, container:"+s.container+", codecs[level/parsed]=["+(e.videoCodec||"")+"/"+s.codec+"]")),l&&this.log("Init audiovideo buffer, container:"+l.container+", codecs[level/parsed]=["+(e.attrs.CODECS||"")+"/"+l.codec+"]"),this.hls.trigger(o.Events.BUFFER_CODECS,t),Object.keys(t).forEach((function(e){var a=t[e].initSegment;null!=a&&a.byteLength&&i.hls.trigger(o.Events.BUFFER_APPENDING,{type:e,data:a,frag:n,part:null,chunkMeta:r,parent:n.type})})),this.tick()}},u.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,H.PlaylistLevelType.MAIN)},u.backtrack=function(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Ye},u.checkFragmentChanged=function(){var e=this.media,t=null;if(e&&e.readyState>1&&!1===e.seeking){var n=e.currentTime;if(Le.isBuffered(e,n)?t=this.getAppendedFrag(n):Le.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;var r=this.fragPlaying,i=t.level;r&&t.sn===r.sn&&r.level===i&&t.urlId===r.urlId||(this.fragPlaying=t,this.hls.trigger(o.Events.FRAG_CHANGED,{frag:t}),r&&r.level===i||this.hls.trigger(o.Events.LEVEL_SWITCHED,{level:i}))}}},i=r,(l=[{key:"nextLevel",get:function(){var e=this.nextBufferedFrag;return e?e.level:-1}},{key:"currentFrag",get:function(){var e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}},{key:"currentProgramDateTime",get:function(){var e=this.media;if(e){var t=e.currentTime,n=this.currentFrag;if(n&&(0,a.isFiniteNumber)(t)&&(0,a.isFiniteNumber)(n.programDateTime)){var r=n.programDateTime+1e3*(t-n.start);return new Date(r)}}return null}},{key:"currentLevel",get:function(){var e=this.currentFrag;return e?e.level:-1}},{key:"nextBufferedFrag",get:function(){var e=this.currentFrag;return e?this.followingBufferedFrag(e):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(i.prototype,l),Object.defineProperty(i,"prototype",{writable:!1}),r}(it);const Et=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}var t=e.prototype;return t.sample=function(e,t){var n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e},t.getTotalWeight=function(){return this.totalWeight_},t.getEstimate=function(){if(this.alpha_){var e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_},e}(),kt=function(){function e(e,t,n){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Et(e),this.fast_=new Et(t)}var t=e.prototype;return t.update=function(e,t){var n=this.slow_,r=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new Et(e,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==t&&(this.fast_=new Et(t,r.getEstimate(),r.getTotalWeight()))},t.sample=function(e,t){var n=(e=Math.max(e,this.minDelayMs_))/1e3,r=8*t/n;this.fast_.sample(n,r),this.slow_.sample(n,r)},t.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},t.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},t.destroy=function(){},e}(),Tt=function(){function e(e){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=e;var t=e.config;this.bwEstimator=new kt(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate),this.registerListeners()}var t,n,r=e.prototype;return r.registerListeners=function(){var e=this.hls;e.on(o.Events.FRAG_LOADING,this.onFragLoading,this),e.on(o.Events.FRAG_LOADED,this.onFragLoaded,this),e.on(o.Events.FRAG_BUFFERED,this.onFragBuffered,this),e.on(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.on(o.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){var e=this.hls;e.off(o.Events.FRAG_LOADING,this.onFragLoading,this),e.off(o.Events.FRAG_LOADED,this.onFragLoaded,this),e.off(o.Events.FRAG_BUFFERED,this.onFragBuffered,this),e.off(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.off(o.Events.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},r.onFragLoading=function(e,t){var n,r=t.frag;r.type===H.PlaylistLevelType.MAIN&&(this.timer||(this.fragCurrent=r,this.partCurrent=null!=(n=t.part)?n:null,this.timer=self.setInterval(this.onCheck,100)))},r.onLevelLoaded=function(e,t){var n=this.hls.config;t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)},r._abandonRulesCheck=function(){var e=this.fragCurrent,t=this.partCurrent,n=this.hls,r=n.autoLevelEnabled,i=n.media;if(e&&i){var s=t?t.stats:e.stats,u=t?t.duration:e.duration;if(s.aborted||s.loaded&&s.loaded===s.total||0===e.level)return this.clearTimer(),void(this._nextAutoLevel=-1);if(r&&!i.paused&&i.playbackRate&&i.readyState){var c=n.mainForwardBufferInfo;if(null!==c){var p=performance.now()-s.loading.start,d=Math.abs(i.playbackRate);if(!(p<=500*u/d)){var f=s.loaded&&s.loading.first,h=this.bwEstimator.getEstimate(),g=n.levels,y=n.minAutoLevel,v=g[e.level],m=s.total||Math.max(s.loaded,Math.round(u*v.maxBitrate/8)),b=f?1e3*s.loaded/p:0,_=b?(m-s.loaded)/b:8*m/h,E=c.len/d;if(!(_<=E)){var k,T=Number.POSITIVE_INFINITY;for(k=e.level-1;k>y;k--){var A=g[k].maxBitrate;if((T=b?u*A/(6.4*b):u*A/h)<E)break}T>=_||(l.logger.warn("Fragment "+e.sn+(t?" part "+t.index:"")+" of level "+e.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+k+"\n      Current BW estimate: "+((0,a.isFiniteNumber)(h)?(h/1024).toFixed(3):"Unknown")+" Kb/s\n      Estimated load time for current fragment: "+_.toFixed(3)+" s\n      Estimated load time for the next fragment: "+T.toFixed(3)+" s\n      Time to underbuffer: "+E.toFixed(3)+" s"),n.nextLoadLevel=k,f&&this.bwEstimator.sample(p,s.loaded),this.clearTimer(),(e.loader||e.keyLoader)&&(this.fragCurrent=this.partCurrent=null,e.abortRequests()),n.trigger(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:e,part:t,stats:s}))}}}}}},r.onFragLoaded=function(e,t){var n=t.frag,r=t.part;if(n.type===H.PlaylistLevelType.MAIN&&(0,a.isFiniteNumber)(n.sn)){var i=r?r.stats:n.stats,s=r?r.duration:n.duration;if(this.clearTimer(),this.lastLoadedFragLevel=n.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var l=this.hls.levels[n.level],u=(l.loaded?l.loaded.bytes:0)+i.loaded,c=(l.loaded?l.loaded.duration:0)+s;l.loaded={bytes:u,duration:c},l.realBitrate=Math.round(8*u/c)}if(n.bitrateTest){var p={stats:i,frag:n,part:r,id:n.type};this.onFragBuffered(o.Events.FRAG_BUFFERED,p)}}},r.onFragBuffered=function(e,t){var n=t.frag,r=t.part,i=r?r.stats:n.stats;if(!i.aborted&&n.type===H.PlaylistLevelType.MAIN&&"initSegment"!==n.sn){var a=i.parsing.end-i.loading.start;this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.bwEstimator.getEstimate(),n.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}},r.onError=function(e,t){var n;if((null===(n=t.frag)||void 0===n?void 0:n.type)===H.PlaylistLevelType.MAIN){if(t.type===s.ErrorTypes.KEY_SYSTEM_ERROR)return void this.clearTimer();switch(t.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.clearTimer()}}},r.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},r.getNextABRAutoLevel=function(){var e=this.fragCurrent,t=this.partCurrent,n=this.hls,r=n.maxAutoLevel,i=n.config,a=n.minAutoLevel,o=n.media,s=t?t.duration:e?e.duration:0,u=o&&0!==o.playbackRate?Math.abs(o.playbackRate):1,c=this.bwEstimator?this.bwEstimator.getEstimate():i.abrEwmaDefaultEstimate,p=n.mainForwardBufferInfo,d=(p?p.len:0)/u,f=this.findBestLevel(c,a,r,d,i.abrBandWidthFactor,i.abrBandWidthUpFactor);if(f>=0)return f;l.logger.trace((d?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var h=s?Math.min(s,i.maxStarvationDelay):i.maxStarvationDelay,g=i.abrBandWidthFactor,y=i.abrBandWidthUpFactor;if(!d){var v=this.bitrateTestDelay;v&&(h=(s?Math.min(s,i.maxLoadingDelay):i.maxLoadingDelay)-v,l.logger.trace("bitrate test took "+Math.round(1e3*v)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*h)+" ms"),g=y=1)}return f=this.findBestLevel(c,a,r,d+h,g,y),Math.max(f,0)},r.findBestLevel=function(e,t,n,r,i,o){for(var s,u=this.fragCurrent,c=this.partCurrent,p=this.lastLoadedFragLevel,d=this.hls.levels,f=d[p],h=!(null==f||null===(s=f.details)||void 0===s||!s.live),g=null==f?void 0:f.codecSet,y=c?c.duration:u?u.duration:0,v=n;v>=t;v--){var m=d[v];if(m&&(!g||m.codecSet===g)){var b,_=m.details,E=(c?null==_?void 0:_.partTarget:null==_?void 0:_.averagetargetduration)||y;b=v<=p?i*e:o*e;var k=d[v].maxBitrate,T=k*E/b;if(l.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+v+"/"+Math.round(b)+"/"+k+"/"+E+"/"+r+"/"+T),b>k&&(0===T||!(0,a.isFiniteNumber)(T)||h&&!this.bitrateTestDelay||T<r))return v}}return-1},t=e,(n=[{key:"nextAutoLevel",get:function(){var e=this._nextAutoLevel,t=this.bwEstimator;if(-1!==e&&!t.canEstimate())return e;var n=this.getNextABRAutoLevel();return-1!==e&&this.hls.levels[n].loadError?e:(-1!==e&&(n=Math.min(e,n)),n)},set:function(e){this._nextAutoLevel=e}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();var At=function(){function e(){this.chunks=[],this.dataLength=0}var t=e.prototype;return t.push=function(e){this.chunks.push(e),this.dataLength+=e.length},t.flush=function(){var e,t=this.chunks,n=this.dataLength;return t.length?(e=1===t.length?t[0]:function(e,t){for(var n=new Uint8Array(t),r=0,i=0;i<e.length;i++){var a=e[i];n.set(a,r),r+=a.length}return n}(t,n),this.reset(),e):new Uint8Array(0)},t.reset=function(){this.chunks.length=0,this.dataLength=0},e}();function wt(){return(wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function St(e,t){return(St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}const Ct=function(e){var t,n;function r(t,n,r){var i;return(i=e.call(this,t,n,r,"[audio-stream-controller]")||this).videoBuffer=null,i.videoTrackCC=-1,i.waitingVideoCC=-1,i.audioSwitch=!1,i.trackId=-1,i.waitingData=null,i.mainDetails=null,i.bufferFlushed=!1,i.cachedTrackLoadedData=null,i._registerListeners(),i}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,St(t,n);var i=r.prototype;return i.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},i._registerListeners=function(){var e=this.hls;e.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.on(o.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(o.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(o.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(o.Events.ERROR,this.onError,this),e.on(o.Events.BUFFER_RESET,this.onBufferReset,this),e.on(o.Events.BUFFER_CREATED,this.onBufferCreated,this),e.on(o.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(o.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},i._unregisterListeners=function(){var e=this.hls;e.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.off(o.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(o.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(o.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(o.Events.ERROR,this.onError,this),e.off(o.Events.BUFFER_RESET,this.onBufferReset,this),e.off(o.Events.BUFFER_CREATED,this.onBufferCreated,this),e.off(o.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(o.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},i.onInitPtsFound=function(e,t){var n=t.frag,r=t.id,i=t.initPTS;if("main"===r){var a=n.cc;this.initPTS[n.cc]=i,this.log("InitPTS for cc: "+a+" found from main: "+i),this.videoTrackCC=a,this.state===nt&&this.tick()}},i.startLoad=function(e){if(!this.levels)return this.startPosition=e,void(this.state=We);var t=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),this.fragLoadError=0,t>0&&-1===e?(this.log("Override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t,this.state=Ye):(this.loadedmetadata=!1,this.state=Qe),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()},i.doTick=function(){switch(this.state){case Ye:this.doTickIdle();break;case Qe:var t,n=this.levels,r=this.trackId,i=null==n||null===(t=n[r])||void 0===t?void 0:t.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=nt}break;case $e:var a,o=performance.now(),s=this.retryDate;(!s||o>=s||null!==(a=this.media)&&void 0!==a&&a.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Ye);break;case nt:var l=this.waitingData;if(l){var u=l.frag,c=l.part,p=l.cache,d=l.complete;if(void 0!==this.initPTS[u.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=Xe;var f={frag:u,part:c,payload:p.flush(),networkDetails:null};this._handleFragmentLoadProgress(f),d&&e.prototype._handleFragmentLoadComplete.call(this,f)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+u.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var h=this.getLoadPosition(),g=Le.bufferInfo(this.mediaBuffer,h,this.config.maxBufferHole);He(g.end,this.config.maxFragLookUpTolerance,u)<0&&(this.log("Waiting fragment cc ("+u.cc+") @ "+u.start+" cancelled because another fragment at "+g.end+" is needed"),this.clearWaitingFragment())}}else this.state=Ye}this.onTickEnd()},i.clearWaitingFragment=function(){var e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Ye)},i.resetLoadingState=function(){this.clearWaitingFragment(),e.prototype.resetLoadingState.call(this)},i.onTickEnd=function(){var e=this.media;e&&e.readyState&&(this.lastCurrentTime=e.currentTime)},i.doTickIdle=function(){var e=this.hls,t=this.levels,n=this.media,r=this.trackId,i=e.config;if(t&&t[r]&&(n||!this.startFragRequested&&i.startFragPrefetch)){var a=t[r].details;if(!a||a.live&&this.levelLastLoaded!==r||this.waitForCdnTuneIn(a))this.state=Qe;else{var s=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&s&&(this.bufferFlushed=!1,this.afterBufferFlushed(s,v.ElementaryStreamTypes.AUDIO,H.PlaylistLevelType.AUDIO));var l=this.getFwdBufferInfo(s,H.PlaylistLevelType.AUDIO);if(null!==l){var u=this.audioSwitch;if(!u&&this._streamEnded(l,a))return e.trigger(o.Events.BUFFER_EOS,{type:"audio"}),void(this.state=et);var c=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,H.PlaylistLevelType.MAIN);if(!(l.len>=this.getMaxBufferLength(null==c?void 0:c.len))||u){var p=a.fragments[0].start,d=l.end;if(u&&n){var f=this.getLoadPosition();d=f,a.PTSKnown&&f<p&&(l.end>p||l.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=p+.05)}if(!(c&&d>c.end+a.targetduration)&&(c&&c.len||!l.len)){var h=this.getNextFragment(d,a);h?this.loadFragment(h,a,d):this.bufferFlushed=!0}}}}}},i.getMaxBufferLength=function(t){var n=e.prototype.getMaxBufferLength.call(this);return t?Math.max(n,t):n},i.onMediaDetaching=function(){this.videoBuffer=null,e.prototype.onMediaDetaching.call(this)},i.onAudioTracksUpdated=function(e,t){var n=t.audioTracks;this.resetTransmuxer(),this.levels=n.map((function(e){return new ae(e)}))},i.onAudioTrackSwitching=function(e,t){var n=!!t.url;this.trackId=t.id;var r=this.fragCurrent;r&&r.abortRequests(),this.fragCurrent=null,this.clearWaitingFragment(),n?this.setInterval(100):this.resetTransmuxer(),n?(this.audioSwitch=!0,this.state=Ye):this.state=We,this.tick()},i.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},i.onLevelLoaded=function(e,t){this.mainDetails=t.details,null!==this.cachedTrackLoadedData&&(this.hls.trigger(o.Events.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)},i.onAudioTrackLoaded=function(e,t){var n;if(null!=this.mainDetails){var r=this.levels,i=t.details,a=t.id;if(r){this.log("Track "+a+" loaded ["+i.startSN+","+i.endSN+"],duration:"+i.totalduration);var o=r[a],s=0;if(i.live||null!==(n=o.details)&&void 0!==n&&n.live){var l=this.mainDetails;if(i.fragments[0]||(i.deltaUpdateFailed=!0),i.deltaUpdateFailed||!l)return;!o.details&&i.hasProgramDateTime&&l.hasProgramDateTime?(je(i,l),s=i.fragments[0].start):s=this.alignPlaylists(i,o.details)}o.details=i,this.levelLastLoaded=a,this.startFragRequested||!this.mainDetails&&i.live||this.setStartPosition(o.details,s),this.state!==Qe||this.waitForCdnTuneIn(i)||(this.state=Ye),this.tick()}else this.warn("Audio tracks were reset while loading level "+a)}else this.cachedTrackLoadedData=t},i._handleFragmentLoadProgress=function(e){var t,n=e.frag,r=e.part,i=e.payload,a=this.config,o=this.trackId,s=this.levels;if(s){var l=s[o],u=l.details,c=a.defaultAudioCodec||l.audioCodec||"mp4a.40.2",p=this.transmuxer;p||(p=this.transmuxer=new vt(this.hls,H.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var d=this.initPTS[n.cc],f=null===(t=n.initSegment)||void 0===t?void 0:t.data;if(void 0!==d){var h=r?r.index:-1,g=-1!==h,y=new Me(n.level,n.sn,n.stats.chunkCount,i.byteLength,h,g);p.push(i,f,c,"",n,r,u.totalduration,!1,y,d)}else this.log("Unknown video PTS for cc "+n.cc+", waiting for video PTS before demuxing audio frag "+n.sn+" of ["+u.startSN+" ,"+u.endSN+"],track "+o),(this.waitingData=this.waitingData||{frag:n,part:r,cache:new At,complete:!1}).cache.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=nt}else this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+n.sn+" of level "+n.level+" will not be buffered")},i._handleFragmentLoadComplete=function(t){this.waitingData?this.waitingData.complete=!0:e.prototype._handleFragmentLoadComplete.call(this,t)},i.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},i.onBufferCreated=function(e,t){var n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)},i.onFragBuffered=function(e,t){var n,r=t.frag,i=t.part;r.type===H.PlaylistLevelType.AUDIO?this.fragContextChanged(r)?this.warn("Fragment "+r.sn+(i?" p: "+i.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch):("initSegment"!==r.sn&&(this.fragPrevious=r,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(o.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(r,i)):this.loadedmetadata||r.type!==H.PlaylistLevelType.MAIN||null!==(n=this.videoBuffer||this.media)&&void 0!==n&&n.buffered.length&&(this.loadedmetadata=!0)},i.onError=function(t,n){if(n.type!==s.ErrorTypes.KEY_SYSTEM_ERROR)switch(n.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.FRAG_PARSING_ERROR:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(H.PlaylistLevelType.AUDIO,n);break;case s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==tt&&this.state!==We&&(this.state=n.fatal?tt:Ye,this.warn(n.details+" while loading frag, switching to "+this.state+" state"));break;case s.ErrorDetails.BUFFER_FULL_ERROR:if("audio"===n.parent&&(this.state===Ze||this.state===Je)){var r=!0,i=this.getFwdBufferInfo(this.mediaBuffer,H.PlaylistLevelType.AUDIO);i&&i.len>.5&&(r=!this.reduceMaxBufferLength(i.len)),r&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,e.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}}else this.onFragmentOrKeyLoadError(H.PlaylistLevelType.AUDIO,n)},i.onBufferFlushed=function(e,t){t.type===v.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0,this.state===et&&(this.state=Ye))},i._handleTransmuxComplete=function(e){var t,n="audio",r=this.hls,i=e.remuxResult,a=e.chunkMeta,s=this.getCurrentContext(a);if(!s)return this.warn("The loading context changed while buffering fragment "+a.sn+" of level "+a.level+". This chunk will not be buffered."),void this.resetStartWhenNotLoaded(a.level);var l=s.frag,u=s.part,c=s.level.details,p=i.audio,d=i.text,f=i.id3,h=i.initSegment;if(!this.fragContextChanged(l)&&c){if(this.state=Ze,this.audioSwitch&&p&&this.completeAudioSwitch(),null!=h&&h.tracks&&(this._bufferInitSegment(h.tracks,l,a),r.trigger(o.Events.FRAG_PARSING_INIT_SEGMENT,{frag:l,id:n,tracks:h.tracks})),p){var g=p.startPTS,y=p.endPTS,m=p.startDTS,b=p.endDTS;u&&(u.elementaryStreams[v.ElementaryStreamTypes.AUDIO]={startPTS:g,endPTS:y,startDTS:m,endDTS:b}),l.setElementaryStreamInfo(v.ElementaryStreamTypes.AUDIO,g,y,m,b),this.bufferFragmentData(p,l,u,a)}if(null!=f&&null!==(t=f.samples)&&void 0!==t&&t.length){var _=wt({id:n,frag:l,details:c},f);r.trigger(o.Events.FRAG_PARSING_METADATA,_)}if(d){var E=wt({id:n,frag:l,details:c},d);r.trigger(o.Events.FRAG_PARSING_USERDATA,E)}}},i._bufferInitSegment=function(e,t,n){if(this.state===Ze){e.video&&delete e.video;var r=e.audio;if(r){r.levelCodec=r.codec,r.id="audio",this.log("Init audio buffer, container:"+r.container+", codecs[parsed]=["+r.codec+"]"),this.hls.trigger(o.Events.BUFFER_CODECS,e);var i=r.initSegment;if(null!=i&&i.byteLength){var a={type:"audio",frag:t,part:null,chunkMeta:n,parent:t.type,data:i};this.hls.trigger(o.Events.BUFFER_APPENDING,a)}this.tick()}}},i.loadFragment=function(t,n,r){var i=this.fragmentTracker.getState(t);this.fragCurrent=t,(this.audioSwitch||i===ye.NOT_LOADED||i===ye.PARTIAL)&&("initSegment"===t.sn?this._loadInitSegment(t,n):n.live&&!(0,a.isFiniteNumber)(this.initPTS[t.cc])?(this.log("Waiting for video PTS in continuity counter "+t.cc+" of live stream before loading audio fragment "+t.sn+" of level "+this.trackId),this.state=nt):(this.startFragRequested=!0,e.prototype.loadFragment.call(this,t,n,r)))},i.completeAudioSwitch=function(){var t=this.hls,n=this.media,r=this.trackId;n&&(this.log("Switching audio track : flushing all audio"),e.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,t.trigger(o.Events.AUDIO_TRACK_SWITCHED,{id:r})},r}(it);function xt(e,t){return(xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}const It=function(e){var t,n;function r(t){var n;return(n=e.call(this,t,"[audio-track-controller]")||this).tracks=[],n.groupId=null,n.tracksInGroup=[],n.trackId=-1,n.trackName="",n.selectDefaultTrack=!0,n.registerListeners(),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,xt(t,n);var i,a,l=r.prototype;return l.registerListeners=function(){var e=this.hls;e.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(o.Events.LEVEL_LOADING,this.onLevelLoading,this),e.on(o.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(o.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(o.Events.ERROR,this.onError,this)},l.unregisterListeners=function(){var e=this.hls;e.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(o.Events.LEVEL_LOADING,this.onLevelLoading,this),e.off(o.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(o.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(o.Events.ERROR,this.onError,this)},l.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,e.prototype.destroy.call(this)},l.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},l.onManifestParsed=function(e,t){this.tracks=t.audioTracks||[]},l.onAudioTrackLoaded=function(e,t){var n=t.id,r=t.details,i=this.tracksInGroup[n];if(i){var a=i.details;i.details=t.details,this.log("audioTrack "+n+" loaded ["+r.startSN+"-"+r.endSN+"]"),n===this.trackId&&(this.retryCount=0,this.playlistLoaded(n,t,a))}else this.warn("Invalid audio track id "+n)},l.onLevelLoading=function(e,t){this.switchLevel(t.level)},l.onLevelSwitching=function(e,t){this.switchLevel(t.level)},l.switchLevel=function(e){var t=this.hls.levels[e];if(null!=t&&t.audioGroupIds){var n=t.audioGroupIds[t.urlId];if(this.groupId!==n){this.groupId=n;var r=this.tracks.filter((function(e){return!n||e.groupId===n}));this.selectDefaultTrack&&!r.some((function(e){return e.default}))&&(this.selectDefaultTrack=!1),this.tracksInGroup=r;var i={audioTracks:r};this.log("Updating audio tracks, "+r.length+' track(s) found in "'+n+'" group-id'),this.hls.trigger(o.Events.AUDIO_TRACKS_UPDATED,i),this.selectInitialTrack()}}},l.onError=function(t,n){e.prototype.onError.call(this,t,n),!n.fatal&&n.context&&n.context.type===H.PlaylistContextType.AUDIO_TRACK&&n.context.id===this.trackId&&n.context.groupId===this.groupId&&this.retryLoadingOrFail(n)},l.setAudioTrack=function(e){var t=this.tracksInGroup;if(e<0||e>=t.length)this.warn("Invalid id passed to audio-track controller");else{this.clearTimer();var n=t[this.trackId];this.log("Now switching to audio-track index "+e);var r=t[e],i=r.id,a=r.groupId,s=void 0===a?"":a,l=r.name,u=r.type,c=r.url;if(this.trackId=e,this.trackName=l,this.selectDefaultTrack=!1,this.hls.trigger(o.Events.AUDIO_TRACK_SWITCHING,{id:i,groupId:s,name:l,type:u,url:c}),!r.details||r.details.live){var p=this.switchParams(r.url,null==n?void 0:n.details);this.loadPlaylist(p)}}},l.selectInitialTrack=function(){this.tracksInGroup;var e=this.trackName,t=this.findTrackId(e)||this.findTrackId();-1!==t?this.setAudioTrack(t):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},l.findTrackId=function(e){for(var t=this.tracksInGroup,n=0;n<t.length;n++){var r=t[n];if((!this.selectDefaultTrack||r.default)&&(!e||e===r.name))return r.id}return-1},l.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this);var n=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(n)){var r=n.id,i=n.groupId,a=n.url;if(t)try{a=t.addDirectives(a)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}this.log("loading audio-track playlist for id: "+r),this.clearTimer(),this.hls.trigger(o.Events.AUDIO_TRACK_LOADING,{url:a,id:r,groupId:i,deliveryDirectives:t||null})}},i=r,(a=[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(i.prototype,a),Object.defineProperty(i,"prototype",{writable:!1}),r}(fe);function Pt(e,t){return(Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Dt=function(e){var t,n;function r(t,n,r){var i;return(i=e.call(this,t,n,r,"[subtitle-stream-controller]")||this).levels=[],i.currentTrackId=-1,i.tracksBuffered=[],i.mainDetails=null,i._registerListeners(),i}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Pt(t,n);var i,a,s=r.prototype;return s.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},s._registerListeners=function(){var e=this.hls;e.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.on(o.Events.ERROR,this.onError,this),e.on(o.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(o.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(o.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(o.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},s._unregisterListeners=function(){var e=this.hls;e.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),e.off(o.Events.ERROR,this.onError,this),e.off(o.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(o.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(o.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(o.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(o.Events.FRAG_BUFFERED,this.onFragBuffered,this)},s.startLoad=function(e){this.stopLoad(),this.state=Ye,this.setInterval(500),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()},s.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},s.onLevelLoaded=function(e,t){this.mainDetails=t.details},s.onSubtitleFragProcessed=function(e,t){var n=t.frag,r=t.success;if(this.fragPrevious=n,this.state=Ye,r){var i=this.tracksBuffered[this.currentTrackId];if(i){for(var a,o=n.start,s=0;s<i.length;s++)if(o>=i[s].start&&o<=i[s].end){a=i[s];break}var l=n.start+n.duration;a?a.end=l:(a={start:o,end:l},i.push(a)),this.fragmentTracker.fragBuffered(n)}}},s.onBufferFlushing=function(e,t){var n=t.startOffset,r=t.endOffset;if(0===n&&r!==Number.POSITIVE_INFINITY){var i=this.currentTrackId,a=this.levels;if(!a.length||!a[i]||!a[i].details)return;var o=r-a[i].details.targetduration;if(o<=0)return;t.endOffsetSubtitles=Math.max(0,o),this.tracksBuffered.forEach((function(e){for(var t=0;t<e.length;)if(e[t].end<=o)e.shift();else{if(!(e[t].start<o))break;e[t].start=o,t++}})),this.fragmentTracker.removeFragmentsInRange(n,o,H.PlaylistLevelType.SUBTITLE)}},s.onFragBuffered=function(e,t){var n;this.loadedmetadata||t.frag.type!==H.PlaylistLevelType.MAIN||null!==(n=this.media)&&void 0!==n&&n.buffered.length&&(this.loadedmetadata=!0)},s.onError=function(e,t){var n=t.frag;n&&n.type===H.PlaylistLevelType.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state=Ye)},s.onSubtitleTracksUpdated=function(e,t){var n=this,r=t.subtitleTracks;this.tracksBuffered=[],this.levels=r.map((function(e){return new ae(e)})),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach((function(e){n.tracksBuffered[e.id]=[]})),this.mediaBuffer=null},s.onSubtitleTrackSwitch=function(e,t){if(this.currentTrackId=t.id,this.levels.length&&-1!==this.currentTrackId){var n=this.levels[this.currentTrackId];null!=n&&n.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,n&&this.setInterval(500)}else this.clearInterval()},s.onSubtitleTrackLoaded=function(e,t){var n,r=t.details,i=t.id,a=this.currentTrackId,o=this.levels;if(o.length){var s=o[a];if(!(i>=o.length||i!==a)&&s){this.mediaBuffer=this.mediaBufferTimeRanges;var l=0;if(r.live||null!==(n=s.details)&&void 0!==n&&n.live){var u=this.mainDetails;if(r.deltaUpdateFailed||!u)return;var c=u.fragments[0];s.details?0===(l=this.alignPlaylists(r,s.details))&&c&&de(r,l=c.start):r.hasProgramDateTime&&u.hasProgramDateTime?(je(r,u),l=r.fragments[0].start):c&&de(r,l=c.start)}s.details=r,this.levelLastLoaded=i,this.startFragRequested||!this.mainDetails&&r.live||this.setStartPosition(s.details,l),this.tick(),r.live&&!this.fragCurrent&&this.media&&this.state===Ye&&(Ve(null,r.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),s.details=void 0))}}},s._handleFragmentLoadComplete=function(e){var t=this,n=e.frag,r=e.payload,i=n.decryptdata,a=this.hls;if(!this.fragContextChanged(n)&&r&&r.byteLength>0&&i&&i.key&&i.iv&&"AES-128"===i.method){var s=performance.now();this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer).then((function(e){var t=performance.now();a.trigger(o.Events.FRAG_DECRYPTED,{frag:n,payload:e,stats:{tstart:s,tdecrypt:t}})})).catch((function(e){t.warn(e.name+": "+e.message),t.state=Ye}))}},s.doTick=function(){if(this.media){if(this.state===Ye){var e=this.currentTrackId,t=this.levels;if(!t.length||!t[e]||!t[e].details)return;var n=t[e].details,r=n.targetduration,i=this.config,a=this.getLoadPosition(),o=Le.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],a-r,i.maxBufferHole),s=o.end,l=o.len,u=this.getFwdBufferInfo(this.media,H.PlaylistLevelType.MAIN);if(l>this.getMaxBufferLength(null==u?void 0:u.len)+r)return;var c=n.fragments,p=c.length,d=n.edge,f=null,h=this.fragPrevious;if(s<d){var g=i.maxFragLookUpTolerance;!(f=Ve(h,c,Math.max(c[0].start,s),g))&&h&&h.start<c[0].start&&(f=c[0])}else f=c[p-1];if(!f)return;f=this.mapToInitFragWhenRequired(f),this.fragmentTracker.getState(f)===ye.NOT_LOADED&&this.loadFragment(f,n,s)}}else this.state=Ye},s.getMaxBufferLength=function(t){var n=e.prototype.getMaxBufferLength.call(this);return t?Math.max(n,t):n},s.loadFragment=function(t,n,r){this.fragCurrent=t,"initSegment"===t.sn?this._loadInitSegment(t,n):(this.startFragRequested=!0,e.prototype.loadFragment.call(this,t,n,r))},i=r,(a=[{key:"mediaBufferTimeRanges",get:function(){return new Rt(this.tracksBuffered[this.currentTrackId]||[])}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(i.prototype,a),Object.defineProperty(i,"prototype",{writable:!1}),r}(it),Rt=function(e){this.buffered=void 0;var t=function(t,n,r){if((n>>>=0)>r-1)throw new DOMException("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+n+") is greater than the maximum bound ("+r+")");return e[n][t]};this.buffered={get length(){return e.length},end:function(n){return t("end",n,e.length)},start:function(n){return t("start",n,e.length)}}};function Ot(e,t){return(Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Lt(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"subtitles"!==r.kind&&"captions"!==r.kind||!r.label||t.push(e[n])}return t}const Mt=function(e){var t,n;function r(t){var n;return(n=e.call(this,t,"[subtitle-track-controller]")||this).media=null,n.tracks=[],n.groupId=null,n.tracksInGroup=[],n.trackId=-1,n.selectDefaultTrack=!0,n.queuedDefaultTrack=-1,n.trackChangeListener=function(){return n.onTextTracksChanged()},n.asyncPollTrackChange=function(){return n.pollTrackChange(0)},n.useTextTrackPolling=!1,n.subtitlePollingInterval=-1,n._subtitleDisplay=!0,n.registerListeners(),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Ot(t,n);var i,a,s=r.prototype;return s.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,e.prototype.destroy.call(this)},s.registerListeners=function(){var e=this.hls;e.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(o.Events.LEVEL_LOADING,this.onLevelLoading,this),e.on(o.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(o.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(o.Events.ERROR,this.onError,this)},s.unregisterListeners=function(){var e=this.hls;e.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(o.Events.LEVEL_LOADING,this.onLevelLoading,this),e.off(o.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(o.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(o.Events.ERROR,this.onError,this)},s.onMediaAttached=function(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},s.pollTrackChange=function(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,e)},s.onMediaDetaching=function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),Lt(this.media.textTracks).forEach((function(e){Y(e)})),this.subtitleTrack=-1,this.media=null)},s.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},s.onManifestParsed=function(e,t){this.tracks=t.subtitleTracks},s.onSubtitleTrackLoaded=function(e,t){var n=t.id,r=t.details,i=this.trackId,a=this.tracksInGroup[i];if(a){var o=a.details;a.details=t.details,this.log("subtitle track "+n+" loaded ["+r.startSN+"-"+r.endSN+"]"),n===this.trackId&&(this.retryCount=0,this.playlistLoaded(n,t,o))}else this.warn("Invalid subtitle track id "+n)},s.onLevelLoading=function(e,t){this.switchLevel(t.level)},s.onLevelSwitching=function(e,t){this.switchLevel(t.level)},s.switchLevel=function(e){var t=this.hls.levels[e];if(null!=t&&t.textGroupIds){var n=t.textGroupIds[t.urlId];if(this.groupId!==n){var r=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,i=this.tracks.filter((function(e){return!n||e.groupId===n}));this.tracksInGroup=i;var a=this.findTrackId(null==r?void 0:r.name)||this.findTrackId();this.groupId=n;var s={subtitleTracks:i};this.log("Updating subtitle tracks, "+i.length+' track(s) found in "'+n+'" group-id'),this.hls.trigger(o.Events.SUBTITLE_TRACKS_UPDATED,s),-1!==a&&this.setSubtitleTrack(a,r)}}},s.findTrackId=function(e){for(var t=this.tracksInGroup,n=0;n<t.length;n++){var r=t[n];if((!this.selectDefaultTrack||r.default)&&(!e||e===r.name))return r.id}return-1},s.onError=function(t,n){e.prototype.onError.call(this,t,n),!n.fatal&&n.context&&n.context.type===H.PlaylistContextType.SUBTITLE_TRACK&&n.context.id===this.trackId&&n.context.groupId===this.groupId&&this.retryLoadingOrFail(n)},s.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this);var n=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(n)){var r=n.id,i=n.groupId,a=n.url;if(t)try{a=t.addDirectives(a)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}this.log("Loading subtitle playlist for id "+r),this.hls.trigger(o.Events.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:i,deliveryDirectives:t||null})}},s.toggleTrackModes=function(e){var t=this,n=this.media,r=this.trackId;if(n){var i=Lt(n.textTracks),a=i.filter((function(e){return e.groupId===t.groupId}));if(-1===e)[].slice.call(i).forEach((function(e){e.mode="disabled"}));else{var o=a[r];o&&(o.mode="disabled")}var s=a[e];s&&(s.mode=this.subtitleDisplay?"showing":"hidden")}},s.setSubtitleTrack=function(e,t){var n,r=this.tracksInGroup;if(this.media){if(this.trackId!==e&&this.toggleTrackModes(e),!(this.trackId===e&&(-1===e||null!==(n=r[e])&&void 0!==n&&n.details)||e<-1||e>=r.length)){this.clearTimer();var i=r[e];if(this.log("Switching to subtitle track "+e),this.trackId=e,i){var a=i.id,s=i.groupId,l=void 0===s?"":s,u=i.name,c=i.type,p=i.url;this.hls.trigger(o.Events.SUBTITLE_TRACK_SWITCH,{id:a,groupId:l,name:u,type:c,url:p});var d=this.switchParams(i.url,null==t?void 0:t.details);this.loadPlaylist(d)}else this.hls.trigger(o.Events.SUBTITLE_TRACK_SWITCH,{id:e})}}else this.queuedDefaultTrack=e},s.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),this.media&&this.hls.config.renderTextTracksNatively){for(var e=-1,t=Lt(this.media.textTracks),n=0;n<t.length;n++)if("hidden"===t[n].mode)e=n;else if("showing"===t[n].mode){e=n;break}this.subtitleTrack!==e&&(this.subtitleTrack=e)}},i=r,(a=[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(e){this.selectDefaultTrack=!1;var t=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(e,t)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(i.prototype,a),Object.defineProperty(i,"prototype",{writable:!1}),r}(fe);var Nt,Ut=function(){function e(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}var t=e.prototype;return t.append=function(e,t){var n=this.queues[t];n.push(e),1===n.length&&this.buffers[t]&&this.executeNext(t)},t.insertAbort=function(e,t){this.queues[t].unshift(e),this.executeNext(t)},t.appendBlocker=function(e){var t,n=new Promise((function(e){t=e})),r={execute:t,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(r,e),n},t.executeNext=function(e){var t=this.buffers,n=this.queues,r=t[e],i=n[e];if(i.length){var a=i[0];try{a.execute()}catch(t){l.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),a.onError(t),r&&r.updating||(i.shift(),this.executeNext(e))}}},t.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},t.current=function(e){return this.queues[e][0]},e}(),Ft=at(),jt=/([ha]vc.)(?:\.[^.,]+)+/,Bt=function(){function e(e){var t=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var e=t.media,n=t.mediaSource;l.logger.log("[buffer-controller]: Media source opened"),e&&(e.removeEventListener("emptied",t._onMediaEmptied),t.updateMediaElementDuration(),t.hls.trigger(o.Events.MEDIA_ATTACHED,{media:e})),n&&n.removeEventListener("sourceopen",t._onMediaSourceOpen),t.checkPendingTracks()},this._onMediaSourceClose=function(){l.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){l.logger.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var e=t.media,n=t._objectUrl;e&&e.src!==n&&l.logger.error("Media element src was set while attaching MediaSource ("+n+" > "+e.src+")")},this.hls=e,this._initSourceBuffer(),this.registerListeners()}var t=e.prototype;return t.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},t.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null},t.registerListeners=function(){var e=this.hls;e.on(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(o.Events.BUFFER_RESET,this.onBufferReset,this),e.on(o.Events.BUFFER_APPENDING,this.onBufferAppending,this),e.on(o.Events.BUFFER_CODECS,this.onBufferCodecs,this),e.on(o.Events.BUFFER_EOS,this.onBufferEos,this),e.on(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(o.Events.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(o.Events.FRAG_PARSED,this.onFragParsed,this),e.on(o.Events.FRAG_CHANGED,this.onFragChanged,this)},t.unregisterListeners=function(){var e=this.hls;e.off(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(o.Events.BUFFER_RESET,this.onBufferReset,this),e.off(o.Events.BUFFER_APPENDING,this.onBufferAppending,this),e.off(o.Events.BUFFER_CODECS,this.onBufferCodecs,this),e.off(o.Events.BUFFER_EOS,this.onBufferEos,this),e.off(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(o.Events.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(o.Events.FRAG_PARSED,this.onFragParsed,this),e.off(o.Events.FRAG_CHANGED,this.onFragChanged,this)},t._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new Ut(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null},t.onManifestParsed=function(e,t){var n=2;(t.audio&&!t.video||!t.altAudio)&&(n=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=n,this.details=null,l.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},t.onMediaAttaching=function(e,t){var n=this.media=t.media;if(n&&Ft){var r=this.mediaSource=new Ft;r.addEventListener("sourceopen",this._onMediaSourceOpen),r.addEventListener("sourceended",this._onMediaSourceEnded),r.addEventListener("sourceclose",this._onMediaSourceClose),n.src=self.URL.createObjectURL(r),this._objectUrl=n.src,n.addEventListener("emptied",this._onMediaEmptied)}},t.onMediaDetaching=function(){var e=this.media,t=this.mediaSource,n=this._objectUrl;if(t){if(l.logger.log("[buffer-controller]: media source detaching"),"open"===t.readyState)try{t.endOfStream()}catch(e){l.logger.warn("[buffer-controller]: onMediaDetaching: "+e.message+" while calling endOfStream")}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),e&&(e.removeEventListener("emptied",this._onMediaEmptied),n&&self.URL.revokeObjectURL(n),e.src===n?(e.removeAttribute("src"),e.load()):l.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(o.Events.MEDIA_DETACHED,void 0)},t.onBufferReset=function(){var e=this;this.getSourceBufferTypes().forEach((function(t){var n=e.sourceBuffer[t];try{n&&(e.removeBufferListeners(t),e.mediaSource&&e.mediaSource.removeSourceBuffer(n),e.sourceBuffer[t]=void 0)}catch(e){l.logger.warn("[buffer-controller]: Failed to reset the "+t+" buffer",e)}})),this._initSourceBuffer()},t.onBufferCodecs=function(e,t){var n=this,r=this.getSourceBufferTypes().length;Object.keys(t).forEach((function(e){if(r){var i=n.tracks[e];if(i&&"function"==typeof i.buffer.changeType){var a=t[e],o=a.id,s=a.codec,u=a.levelCodec,c=a.container,p=a.metadata,d=(i.levelCodec||i.codec).replace(jt,"$1"),f=(u||s).replace(jt,"$1");if(d!==f){var h=c+";codecs="+(u||s);n.appendChangeType(e,h),l.logger.log("[buffer-controller]: switching codec "+d+" to "+f),n.tracks[e]={buffer:i.buffer,codec:s,container:c,levelCodec:u,metadata:p,id:o}}}}else n.pendingTracks[e]=t[e]})),r||(this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},t.appendChangeType=function(e,t){var n=this,r=this.operationQueue,i={execute:function(){var i=n.sourceBuffer[e];i&&(l.logger.log("[buffer-controller]: changing "+e+" sourceBuffer type to "+t),i.changeType(t)),r.shiftAndExecuteNext(e)},onStart:function(){},onComplete:function(){},onError:function(t){l.logger.warn("[buffer-controller]: Failed to change "+e+" SourceBuffer type",t)}};r.append(i,e)},t.onBufferAppending=function(e,t){var n=this,r=this.hls,i=this.operationQueue,a=this.tracks,u=t.data,c=t.type,p=t.frag,d=t.part,f=t.chunkMeta,h=f.buffering[c],g=self.performance.now();h.start=g;var y=p.stats.buffering,v=d?d.stats.buffering:null;0===y.start&&(y.start=g),v&&0===v.start&&(v.start=g);var m=a.audio,b=!1;"audio"===c&&"audio/mpeg"===(null==m?void 0:m.container)&&(b=!this.lastMpegAudioChunk||1===f.id||this.lastMpegAudioChunk.sn!==f.sn,this.lastMpegAudioChunk=f);var _=p.start,E={execute:function(){if(h.executeStart=self.performance.now(),b){var e=n.sourceBuffer[c];if(e){var t=_-e.timestampOffset;Math.abs(t)>=.1&&(l.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+_+" (delta: "+t+") sn: "+p.sn+")"),e.timestampOffset=_)}}n.appendExecutor(u,c)},onStart:function(){},onComplete:function(){var e=self.performance.now();h.executeEnd=h.end=e,0===y.first&&(y.first=e),v&&0===v.first&&(v.first=e);var t=n.sourceBuffer,r={};for(var i in t)r[i]=Le.getBuffered(t[i]);n.appendError=0,n.hls.trigger(o.Events.BUFFER_APPENDED,{type:c,frag:p,part:d,chunkMeta:f,parent:p.type,timeRanges:r})},onError:function(e){l.logger.error("[buffer-controller]: Error encountered while trying to append to the "+c+" SourceBuffer",e);var t={type:s.ErrorTypes.MEDIA_ERROR,parent:p.type,details:s.ErrorDetails.BUFFER_APPEND_ERROR,err:e,fatal:!1};e.code===DOMException.QUOTA_EXCEEDED_ERR?t.details=s.ErrorDetails.BUFFER_FULL_ERROR:(n.appendError++,t.details=s.ErrorDetails.BUFFER_APPEND_ERROR,n.appendError>r.config.appendErrorMaxRetry&&(l.logger.error("[buffer-controller]: Failed "+r.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),t.fatal=!0,r.stopLoad())),r.trigger(o.Events.ERROR,t)}};i.append(E,c)},t.onBufferFlushing=function(e,t){var n=this,r=this.operationQueue,i=function(e){return{execute:n.removeExecutor.bind(n,e,t.startOffset,t.endOffset),onStart:function(){},onComplete:function(){n.hls.trigger(o.Events.BUFFER_FLUSHED,{type:e})},onError:function(t){l.logger.warn("[buffer-controller]: Failed to remove from "+e+" SourceBuffer",t)}}};t.type?r.append(i(t.type),t.type):this.getSourceBufferTypes().forEach((function(e){r.append(i(e),e)}))},t.onFragParsed=function(e,t){var n=this,r=t.frag,i=t.part,a=[],s=i?i.elementaryStreams:r.elementaryStreams;s[v.ElementaryStreamTypes.AUDIOVIDEO]?a.push("audiovideo"):(s[v.ElementaryStreamTypes.AUDIO]&&a.push("audio"),s[v.ElementaryStreamTypes.VIDEO]&&a.push("video")),0===a.length&&l.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+r.type+" level: "+r.level+" sn: "+r.sn),this.blockBuffers((function(){var e=self.performance.now();r.stats.buffering.end=e,i&&(i.stats.buffering.end=e);var t=i?i.stats:r.stats;n.hls.trigger(o.Events.FRAG_BUFFERED,{frag:r,part:i,stats:t,id:r.type})}),a)},t.onFragChanged=function(e,t){this.flushBackBuffer()},t.onBufferEos=function(e,t){var n=this;this.getSourceBufferTypes().reduce((function(e,r){var i=n.sourceBuffer[r];return!i||t.type&&t.type!==r||(i.ending=!0,i.ended||(i.ended=!0,l.logger.log("[buffer-controller]: "+r+" sourceBuffer now EOS"))),e&&!(i&&!i.ended)}),!0)&&(l.logger.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers((function(){n.getSourceBufferTypes().forEach((function(e){var t=n.sourceBuffer[e];t&&(t.ending=!1)}));var e=n.mediaSource;e&&"open"===e.readyState?(l.logger.log("[buffer-controller]: Calling mediaSource.endOfStream()"),e.endOfStream()):e&&l.logger.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: "+e.readyState)})))},t.onLevelUpdated=function(e,t){var n=t.details;n.fragments.length&&(this.details=n,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},t.flushBackBuffer=function(){var e=this.hls,t=this.details,n=this.media,r=this.sourceBuffer;if(n&&null!==t){var i=this.getSourceBufferTypes();if(i.length){var s=t.live&&null!==e.config.liveBackBufferLength?e.config.liveBackBufferLength:e.config.backBufferLength;if((0,a.isFiniteNumber)(s)&&!(s<0)){var u=n.currentTime,c=t.levelTargetDuration,p=Math.max(s,c),d=Math.floor(u/c)*c-p;i.forEach((function(n){var i=r[n];if(i){var a=Le.getBuffered(i);if(a.length>0&&d>a.start(0)){if(e.trigger(o.Events.BACK_BUFFER_REACHED,{bufferEnd:d}),t.live)e.trigger(o.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:d});else if(i.ended&&a.end(a.length-1)-u<2*c)return void l.logger.info("[buffer-controller]: Cannot flush "+n+" back buffer while SourceBuffer is in ended state");e.trigger(o.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:d,type:n})}}}))}}}},t.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var e=this.details,t=this.hls,n=this.media,r=this.mediaSource,i=e.fragments[0].start+e.totalduration,o=n.duration,s=(0,a.isFiniteNumber)(r.duration)?r.duration:0;e.live&&t.config.liveDurationInfinity?(l.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),r.duration=1/0,this.updateSeekableRange(e)):(i>s&&i>o||!(0,a.isFiniteNumber)(o))&&(l.logger.log("[buffer-controller]: Updating Media Source duration to "+i.toFixed(3)),r.duration=i)}},t.updateSeekableRange=function(e){var t=this.mediaSource,n=e.fragments;if(n.length&&e.live&&null!=t&&t.setLiveSeekableRange){var r=Math.max(0,n[0].start),i=Math.max(r,r+e.totalduration);t.setLiveSeekableRange(r,i)}},t.checkPendingTracks=function(){var e=this.bufferCodecEventsExpected,t=this.operationQueue,n=this.pendingTracks,r=Object.keys(n).length;if(r&&!e||2===r){this.createSourceBuffers(n),this.pendingTracks={};var i=this.getSourceBufferTypes();if(0===i.length)return void this.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});i.forEach((function(e){t.executeNext(e)}))}},t.createSourceBuffers=function(e){var t=this.sourceBuffer,n=this.mediaSource;if(!n)throw Error("createSourceBuffers called when mediaSource was null");var r=0;for(var i in e)if(!t[i]){var a=e[i];if(!a)throw Error("source buffer exists for track "+i+", however track does not");var u=a.levelCodec||a.codec,c=a.container+";codecs="+u;l.logger.log("[buffer-controller]: creating sourceBuffer("+c+")");try{var p=t[i]=n.addSourceBuffer(c),d=i;this.addBufferListener(d,"updatestart",this._onSBUpdateStart),this.addBufferListener(d,"updateend",this._onSBUpdateEnd),this.addBufferListener(d,"error",this._onSBUpdateError),this.tracks[i]={buffer:p,codec:u,container:a.container,levelCodec:a.levelCodec,metadata:a.metadata,id:a.id},r++}catch(e){l.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+e.message),this.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,mimeType:c})}}r&&this.hls.trigger(o.Events.BUFFER_CREATED,{tracks:this.tracks})},t._onSBUpdateStart=function(e){this.operationQueue.current(e).onStart()},t._onSBUpdateEnd=function(e){var t=this.operationQueue;t.current(e).onComplete(),t.shiftAndExecuteNext(e)},t._onSBUpdateError=function(e,t){l.logger.error("[buffer-controller]: "+e+" SourceBuffer error",t),this.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var n=this.operationQueue.current(e);n&&n.onError(t)},t.removeExecutor=function(e,t,n){var r=this.media,i=this.mediaSource,o=this.operationQueue,s=this.sourceBuffer[e];if(!r||!i||!s)return l.logger.warn("[buffer-controller]: Attempting to remove from the "+e+" SourceBuffer, but it does not exist"),void o.shiftAndExecuteNext(e);var u=(0,a.isFiniteNumber)(r.duration)?r.duration:1/0,c=(0,a.isFiniteNumber)(i.duration)?i.duration:1/0,p=Math.max(0,t),d=Math.min(n,u,c);d>p&&!s.ending?(s.ended=!1,l.logger.log("[buffer-controller]: Removing ["+p+","+d+"] from the "+e+" SourceBuffer"),s.remove(p,d)):o.shiftAndExecuteNext(e)},t.appendExecutor=function(e,t){var n=this.operationQueue,r=this.sourceBuffer[t];if(!r)return l.logger.warn("[buffer-controller]: Attempting to append to the "+t+" SourceBuffer, but it does not exist"),void n.shiftAndExecuteNext(t);r.ended=!1,r.appendBuffer(e)},t.blockBuffers=function(e,t){var n=this;if(void 0===t&&(t=this.getSourceBufferTypes()),!t.length)return l.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(e);var r=this.operationQueue,i=t.map((function(e){return r.appendBlocker(e)}));Promise.all(i).then((function(){e(),t.forEach((function(e){var t=n.sourceBuffer[e];t&&t.updating||r.shiftAndExecuteNext(e)}))}))},t.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},t.addBufferListener=function(e,t,n){var r=this.sourceBuffer[e];if(r){var i=n.bind(this,e);this.listeners[e].push({event:t,listener:i}),r.addEventListener(t,i)}},t.removeBufferListeners=function(e){var t=this.sourceBuffer[e];t&&this.listeners[e].forEach((function(e){t.removeEventListener(e.event,e.listener)}))},e}(),Vt={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Ht=function(e){var t=e;return Vt.hasOwnProperty(e)&&(t=Vt[e]),String.fromCharCode(t)},Kt=100,Gt={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},zt={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Wt={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Yt={25:2,26:4,29:6,30:8,31:10,27:13,28:15},qt=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];!function(e){e[e.ERROR=0]="ERROR",e[e.TEXT=1]="TEXT",e[e.WARNING=2]="WARNING",e[e.INFO=2]="INFO",e[e.DEBUG=3]="DEBUG",e[e.DATA=3]="DATA"}(Nt||(Nt={}));var Xt=function(){function e(){this.time=null,this.verboseLevel=Nt.ERROR}return e.prototype.log=function(e,t){if(this.verboseLevel>=e){var n="function"==typeof t?t():t;l.logger.log(this.time+" ["+e+"] "+n)}},e}(),$t=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toString(16));return t},Qt=function(){function e(e,t,n,r,i){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=e||"white",this.underline=t||!1,this.italics=n||!1,this.background=r||"black",this.flash=i||!1}var t=e.prototype;return t.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},t.setStyles=function(e){for(var t=["foreground","underline","italics","background","flash"],n=0;n<t.length;n++){var r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}},t.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},t.equals=function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},t.copy=function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},t.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},e}(),Zt=function(){function e(e,t,n,r,i,a){this.uchar=void 0,this.penState=void 0,this.uchar=e||" ",this.penState=new Qt(t,n,r,i,a)}var t=e.prototype;return t.reset=function(){this.uchar=" ",this.penState.reset()},t.setChar=function(e,t){this.uchar=e,this.penState.copy(t)},t.setPenState=function(e){this.penState.copy(e)},t.equals=function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},t.copy=function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},t.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},e}(),Jt=function(){function e(e){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var t=0;t<Kt;t++)this.chars.push(new Zt);this.logger=e,this.pos=0,this.currPenState=new Qt}var t=e.prototype;return t.equals=function(e){for(var t=!0,n=0;n<Kt;n++)if(!this.chars[n].equals(e.chars[n])){t=!1;break}return t},t.copy=function(e){for(var t=0;t<Kt;t++)this.chars[t].copy(e.chars[t])},t.isEmpty=function(){for(var e=!0,t=0;t<Kt;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},t.setCursor=function(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(Nt.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>Kt&&(this.logger.log(Nt.DEBUG,"Too large cursor position "+this.pos),this.pos=Kt)},t.moveCursor=function(e){var t=this.pos+e;if(e>1)for(var n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)},t.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},t.insertChar=function(e){var t=this;e>=144&&this.backSpace();var n=Ht(e);this.pos>=Kt?this.logger.log(Nt.ERROR,(function(){return"Cannot insert "+e.toString(16)+" ("+n+") at position "+t.pos+". Skipping it!"})):(this.chars[this.pos].setChar(n,this.currPenState),this.moveCursor(1))},t.clearFromPos=function(e){var t;for(t=e;t<Kt;t++)this.chars[t].reset()},t.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},t.clearToEndOfRow=function(){this.clearFromPos(this.pos)},t.getTextString=function(){for(var e=[],t=!0,n=0;n<Kt;n++){var r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")},t.setPenStyles=function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)},e}(),en=function(){function e(e){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var t=0;t<15;t++)this.rows.push(new Jt(e));this.logger=e,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var t=e.prototype;return t.reset=function(){for(var e=0;e<15;e++)this.rows[e].clear();this.currRow=14},t.equals=function(e){for(var t=!0,n=0;n<15;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t},t.copy=function(e){for(var t=0;t<15;t++)this.rows[t].copy(e.rows[t])},t.isEmpty=function(){for(var e=!0,t=0;t<15;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},t.backSpace=function(){this.rows[this.currRow].backSpace()},t.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},t.insertChar=function(e){this.rows[this.currRow].insertChar(e)},t.setPen=function(e){this.rows[this.currRow].setPenStyles(e)},t.moveCursor=function(e){this.rows[this.currRow].moveCursor(e)},t.setCursor=function(e){this.logger.log(Nt.INFO,"setCursor: "+e),this.rows[this.currRow].setCursor(e)},t.setPAC=function(e){this.logger.log(Nt.INFO,(function(){return"pacData = "+JSON.stringify(e)}));var t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(var n=0;n<15;n++)this.rows[n].clear();var r=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){var a=i.rows[r].cueStartTime,o=this.logger.time;if(a&&null!==o&&a<o)for(var s=0;s<this.nrRollUpRows;s++)this.rows[t-this.nrRollUpRows+s+1].copy(i.rows[r+s])}}this.currRow=t;var l=this.rows[this.currRow];if(null!==e.indent){var u=e.indent,c=Math.max(u-1,0);l.setCursor(e.indent),e.color=l.chars[c].penState.foreground}var p={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(p)},t.setBkgData=function(e){this.logger.log(Nt.INFO,(function(){return"bkgData = "+JSON.stringify(e)})),this.backSpace(),this.setPen(e),this.insertChar(32)},t.setRollUpRows=function(e){this.nrRollUpRows=e},t.rollUp=function(){var e=this;if(null!==this.nrRollUpRows){this.logger.log(Nt.TEXT,(function(){return e.getDisplayText()}));var t=this.currRow+1-this.nrRollUpRows,n=this.rows.splice(t,1)[0];n.clear(),this.rows.splice(this.currRow,0,n),this.logger.log(Nt.INFO,"Rolling up")}else this.logger.log(Nt.DEBUG,"roll_up but nrRollUpRows not set yet")},t.getDisplayText=function(e){e=e||!1;for(var t=[],n="",r=-1,i=0;i<15;i++){var a=this.rows[i].getTextString();a&&(r=i+1,e?t.push("Row "+r+": '"+a+"'"):t.push(a.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n},t.getTextAndFormat=function(){return this.rows},e}(),tn=function(){function e(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new en(n),this.nonDisplayedMemory=new en(n),this.lastOutputScreen=new en(n),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}var t=e.prototype;return t.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},t.getHandler=function(){return this.outputFilter},t.setHandler=function(e){this.outputFilter=e},t.setPAC=function(e){this.writeScreen.setPAC(e)},t.setBkgData=function(e){this.writeScreen.setBkgData(e)},t.setMode=function(e){e!==this.mode&&(this.mode=e,this.logger.log(Nt.INFO,(function(){return"MODE="+e})),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},t.insertChars=function(e){for(var t=this,n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);var r=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(Nt.INFO,(function(){return r+": "+t.writeScreen.getDisplayText(!0)})),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(Nt.TEXT,(function(){return"DISPLAYED: "+t.displayedMemory.getDisplayText(!0)})),this.outputDataUpdate())},t.ccRCL=function(){this.logger.log(Nt.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},t.ccBS=function(){this.logger.log(Nt.INFO,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},t.ccAOF=function(){},t.ccAON=function(){},t.ccDER=function(){this.logger.log(Nt.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},t.ccRU=function(e){this.logger.log(Nt.INFO,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},t.ccFON=function(){this.logger.log(Nt.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},t.ccRDC=function(){this.logger.log(Nt.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},t.ccTR=function(){this.logger.log(Nt.INFO,"TR"),this.setMode("MODE_TEXT")},t.ccRTD=function(){this.logger.log(Nt.INFO,"RTD"),this.setMode("MODE_TEXT")},t.ccEDM=function(){this.logger.log(Nt.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},t.ccCR=function(){this.logger.log(Nt.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},t.ccENM=function(){this.logger.log(Nt.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},t.ccEOC=function(){var e=this;if(this.logger.log(Nt.INFO,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(Nt.TEXT,(function(){return"DISP: "+e.displayedMemory.getDisplayText()}))}this.outputDataUpdate(!0)},t.ccTO=function(e){this.logger.log(Nt.INFO,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},t.ccMIDROW=function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{var n=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][n]}this.logger.log(Nt.INFO,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},t.outputDataUpdate=function(e){void 0===e&&(e=!1);var t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))},t.cueSplitAtTime=function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))},e}();function nn(e,t,n){n.a=e,n.b=t}function rn(e,t,n){return n.a===e&&n.b===t}const an=function(){function e(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var r=new Xt;this.channels=[null,new tn(e,t,r),new tn(e+1,n,r)],this.cmdHistory={a:null,b:null},this.logger=r}var t=e.prototype;return t.getHandler=function(e){return this.channels[e].getHandler()},t.setHandler=function(e,t){this.channels[e].setHandler(t)},t.addData=function(e,t){var n,r,i,a=!1;this.logger.time=e;for(var o=0;o<t.length;o+=2)if(r=127&t[o],i=127&t[o+1],0!==r||0!==i){if(this.logger.log(Nt.DATA,"["+$t([t[o],t[o+1]])+"] -> ("+$t([r,i])+")"),(n=this.parseCmd(r,i))||(n=this.parseMidrow(r,i)),n||(n=this.parsePAC(r,i)),n||(n=this.parseBackgroundAttributes(r,i)),!n&&(a=this.parseChars(r,i))){var s=this.currentChannel;s&&s>0?this.channels[s].insertChars(a):this.logger.log(Nt.WARNING,"No channel found yet. TEXT-MODE?")}n||a||this.logger.log(Nt.WARNING,"Couldn't parse cleaned data "+$t([r,i])+" orig: "+$t([t[o],t[o+1]]))}},t.parseCmd=function(e,t){var n=this.cmdHistory;if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=33&&t<=35))return!1;if(rn(e,t,n))return nn(null,null,n),this.logger.log(Nt.DEBUG,"Repeated command ("+$t([e,t])+") is dropped"),!0;var r=20===e||21===e||23===e?1:2,i=this.channels[r];return 20===e||21===e||28===e||29===e?32===t?i.ccRCL():33===t?i.ccBS():34===t?i.ccAOF():35===t?i.ccAON():36===t?i.ccDER():37===t?i.ccRU(2):38===t?i.ccRU(3):39===t?i.ccRU(4):40===t?i.ccFON():41===t?i.ccRDC():42===t?i.ccTR():43===t?i.ccRTD():44===t?i.ccEDM():45===t?i.ccCR():46===t?i.ccENM():47===t&&i.ccEOC():i.ccTO(t-32),nn(e,t,n),this.currentChannel=r,!0},t.parseMidrow=function(e,t){var n=0;if((17===e||25===e)&&t>=32&&t<=47){if((n=17===e?1:2)!==this.currentChannel)return this.logger.log(Nt.ERROR,"Mismatch channel in midrow parsing"),!1;var r=this.channels[n];return!!r&&(r.ccMIDROW(t),this.logger.log(Nt.DEBUG,"MIDROW ("+$t([e,t])+")"),!0)}return!1},t.parsePAC=function(e,t){var n,r=this.cmdHistory;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127||(16===e||24===e)&&t>=64&&t<=95))return!1;if(rn(e,t,r))return nn(null,null,r),!0;var i=e<=23?1:2;n=t>=64&&t<=95?1===i?Gt[e]:Wt[e]:1===i?zt[e]:Yt[e];var a=this.channels[i];return!!a&&(a.setPAC(this.interpretPAC(n,t)),nn(e,t,r),this.currentChannel=i,!0)},t.interpretPAC=function(e,t){var n,r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,r.underline=1==(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r},t.parseChars=function(e,t){var n,r,i=null,a=null;if(e>=25?(n=2,a=e-8):(n=1,a=e),a>=17&&a<=19?(r=17===a?t+80:18===a?t+112:t+144,this.logger.log(Nt.INFO,"Special char '"+Ht(r)+"' in channel "+n),i=[r]):e>=32&&e<=127&&(i=0===t?[e]:[e,t]),i){var o=$t(i);this.logger.log(Nt.DEBUG,"Char codes =  "+o.join(",")),nn(e,t,this.cmdHistory)}return i},t.parseBackgroundAttributes=function(e,t){var n;if(!((16===e||24===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=45&&t<=47))return!1;var r={};16===e||24===e?(n=Math.floor((t-32)/2),r.background=qt[n],t%2==1&&(r.background=r.background+"_semi")):45===t?r.background="transparent":(r.foreground="black",47===t&&(r.underline=!0));var i=e<=23?1:2;return this.channels[i].setBkgData(r),nn(e,t,this.cmdHistory),!0},t.reset=function(){for(var e=0;e<Object.keys(this.channels).length;e++){var t=this.channels[e];t&&t.reset()}this.cmdHistory={a:null,b:null}},t.cueSplitAtTime=function(e){for(var t=0;t<this.channels.length;t++){var n=this.channels[t];n&&n.cueSplitAtTime(e)}},e}();var on=function(){function e(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}var t=e.prototype;return t.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},t.newCue=function(e,t,n){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)},t.reset=function(){this.cueRanges=[],this.startTime=null},e}();const sn=function(){if("undefined"!=typeof self&&self.VTTCue)return self.VTTCue;var e=["","lr","rl"],t=["start","middle","end","left","right"];function n(e,t){if("string"!=typeof t)return!1;if(!Array.isArray(e))return!1;var n=t.toLowerCase();return!!~e.indexOf(n)&&n}function r(e){return n(t,e)}function i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var o in a)e[o]=a[o]}return e}function a(t,a,o){var s=this,l={enumerable:!0};s.hasBeenReset=!1;var u="",c=!1,p=t,d=a,f=o,h=null,g="",y=!0,v="auto",m="start",b=50,_="middle",E=50,k="middle";Object.defineProperty(s,"id",i({},l,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(s,"pauseOnExit",i({},l,{get:function(){return c},set:function(e){c=!!e}})),Object.defineProperty(s,"startTime",i({},l,{get:function(){return p},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",i({},l,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",i({},l,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",i({},l,{get:function(){return h},set:function(e){h=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",i({},l,{get:function(){return g},set:function(t){var r=function(t){return n(e,t)}(t);if(!1===r)throw new SyntaxError("An invalid or illegal string was specified.");g=r,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",i({},l,{get:function(){return y},set:function(e){y=!!e,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",i({},l,{get:function(){return v},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",i({},l,{get:function(){return m},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",i({},l,{get:function(){return b},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",i({},l,{get:function(){return _},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",i({},l,{get:function(){return E},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");E=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",i({},l,{get:function(){return k},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");k=t,this.hasBeenReset=!0}})),s.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}();var ln=function(){function e(){}return e.prototype.decode=function(e,t){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))},e}();function un(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+parseFloat(r||0)}var n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}var cn=function(){function e(){this.values=Object.create(null)}var t=e.prototype;return t.set=function(e,t){this.get(e)||""===t||(this.values[e]=t)},t.get=function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},t.has=function(e){return e in this.values},t.alt=function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},t.integer=function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},t.percent=function(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){var n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1},e}();function pn(e,t,n,r){var i=r?e.split(r):[e];for(var a in i)if("string"==typeof i[a]){var o=i[a].split(n);2===o.length&&t(o[0],o[1])}}var dn=new sn(0,0,""),fn="middle"===dn.align?"middle":"center";function hn(e,t,n){var r=e;function i(){var t=un(e);if(null===t)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function a(){e=e.replace(/^\s+/,"")}if(a(),t.startTime=i(),a(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.slice(3),a(),t.endTime=i(),a(),function(e,t){var r=new cn;pn(e,(function(e,t){var i;switch(e){case"region":for(var a=n.length-1;a>=0;a--)if(n[a].id===t){r.set(e,n[a].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":i=t.split(","),r.integer(e,i[0]),r.percent(e,i[0])&&r.set("snapToLines",!1),r.alt(e,i[0],["auto"]),2===i.length&&r.alt("lineAlign",i[1],["start",fn,"end"]);break;case"position":i=t.split(","),r.percent(e,i[0]),2===i.length&&r.alt("positionAlign",i[1],["start",fn,"end","line-left","line-right","auto"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start",fn,"end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");var i=r.get("line","auto");"auto"===i&&-1===dn.line&&(i=-1),t.line=i,t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align",fn);var a=r.get("position","auto");"auto"===a&&50===dn.position&&(a="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=a}(e,t)}function gn(e){return e.replace(/<br(?: \/)?>/gi,"\n")}var yn=function(){function e(){this.state="INITIAL",this.buffer="",this.decoder=new ln,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var t=e.prototype;return t.parse=function(e){var t=this;function n(){var e=t.buffer,n=0;for(e=gn(e);n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.slice(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.slice(n),r}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var r="";if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var i=(r=n()).match(/^(ï»¿)?WEBVTT([ \t].*)?$/);if(!i||!i[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}for(var a=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(a?a=!1:r=n(),t.state){case"HEADER":/:/.test(r)?pn(r,(function(e,t){}),/:/):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;if(t.cue=new sn(0,0,""),t.state="CUE",-1===r.indexOf("--\x3e")){t.cue.id=r;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{hn(r,t.cue,t.regionList)}catch(e){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var o=-1!==r.indexOf("--\x3e");if(!r||o&&(a=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(null===t.cue)continue;t.cue.text&&(t.cue.text+="\n"),t.cue.text+=r;continue;case"BADCUE":r||(t.state="ID")}}}catch(e){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},t.flush=function(){var e=this;try{if((e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state||"BADWEBVTT"===e.state)throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this},e}(),vn=n(673),mn=n(524),bn=/\r\n|\n\r|\n|\r/g,_n=function(e,t,n){return void 0===n&&(n=0),e.slice(n,n+t.length)===t},En=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()};function kn(e,t,n){return En(e.toString())+En(t.toString())+En(n)}function Tn(){return(Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var An="stpp.ttml.im1t",wn=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Sn=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Cn={left:"start",center:"center",right:"end",start:"start",end:"end"};function xn(e,t,n,r,i){var a=(0,w.findBox)(new Uint8Array(e),["mdat"]);if(0!==a.length){var o=a.map((function(e){return(0,X.utf8ArrayToStr)(e)})),s=(0,vn.toTimescaleFromScale)(t,1,n);try{o.forEach((function(e){return r(function(e,t){var n=(new DOMParser).parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!n)throw new Error("Invalid ttml");var r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},i=Object.keys(r).reduce((function(e,t){return e[t]=n.getAttribute("ttp:"+t)||r[t],e}),{}),a="preserve"!==n.getAttribute("xml:space"),o=Pn(In(n,"styling","style")),s=Pn(In(n,"layout","region")),l=In(n,"body","[begin]");return[].map.call(l,(function(e){var n=function e(t,n){return[].slice.call(t.childNodes).reduce((function(t,r,i){var a;return"br"===r.nodeName&&i?t+"\n":null!==(a=r.childNodes)&&void 0!==a&&a.length?e(r,n):n?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent}),"")}(e,a);if(!n||!e.hasAttribute("begin"))return null;var r=On(e.getAttribute("begin"),i),l=On(e.getAttribute("dur"),i),u=On(e.getAttribute("end"),i);if(null===r)throw Rn(e);if(null===u){if(null===l)throw Rn(e);u=r+l}var c=new sn(r-t,u-t,n);c.id=kn(c.startTime,c.endTime,c.text);var p=function(e,t,n){var r="http://www.w3.org/ns/ttml#styling",i=null,a=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;return a&&n.hasOwnProperty(a)&&(i=n[a]),["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce((function(n,a){var o=Dn(t,r,a)||Dn(e,r,a)||Dn(i,r,a);return o&&(n[a]=o),n}),{})}(s[e.getAttribute("region")],o[e.getAttribute("style")],o),d=p.textAlign;if(d){var f=Cn[d];f&&(c.lineAlign=f),c.align=d}return Tn(c,p),c})).filter((function(e){return null!==e}))}(e,s))}))}catch(e){i(e)}}else i(new Error("Could not parse IMSC1 mdat"))}function In(e,t,n){var r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function Pn(e){return e.reduce((function(e,t){var n=t.getAttribute("xml:id");return n&&(e[n]=t),e}),{})}function Dn(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Rn(e){return new Error("Could not parse ttml timestamp "+e)}function On(e,t){if(!e)return null;var n=un(e);return null===n&&(wn.test(e)?n=function(e,t){var n=wn.exec(e),r=(0|n[4])+(0|n[5])/t.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+r/t.frameRate}(e,t):Sn.test(e)&&(n=function(e,t){var n=Sn.exec(e),r=Number(n[1]);switch(n[2]){case"h":return 3600*r;case"m":return 60*r;case"ms":return 1e3*r;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}(e,t))),n}var Ln=function(){function e(e){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var t=new on(this,"textTrack1"),n=new on(this,"textTrack2"),r=new on(this,"textTrack3"),i=new on(this,"textTrack4");this.cea608Parser1=new an(1,t,n),this.cea608Parser2=new an(3,r,i)}e.on(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.on(o.Events.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(o.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(o.Events.FRAG_LOADING,this.onFragLoading,this),e.on(o.Events.FRAG_LOADED,this.onFragLoaded,this),e.on(o.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(o.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(o.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(o.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var t=e.prototype;return t.destroy=function(){var e=this.hls;e.off(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),e.off(o.Events.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(o.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(o.Events.FRAG_LOADING,this.onFragLoading,this),e.off(o.Events.FRAG_LOADED,this.onFragLoaded,this),e.off(o.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(o.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(o.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(o.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},t.addCues=function(e,t,n,r,i){for(var a,s,l,u,c=!1,p=i.length;p--;){var d=i[p],f=(a=d[0],s=d[1],l=t,u=n,Math.min(s,u)-Math.max(a,l));if(f>=0&&(d[0]=Math.min(d[0],t),d[1]=Math.max(d[1],n),c=!0,f/(n-t)>.5))return}if(c||i.push([t,n]),this.config.renderTextTracksNatively){var h=this.captionsTracks[e];this.Cues.newCue(h,t,n,r)}else{var g=this.Cues.newCue(null,t,n,r);this.hls.trigger(o.Events.CUES_PARSED,{type:"captions",cues:g,track:e})}},t.onInitPtsFound=function(e,t){var n=this,r=t.frag,i=t.id,a=t.initPTS,s=t.timescale,l=this.unparsedVttFrags;"main"===i&&(this.initPTS[r.cc]=a,this.timescale[r.cc]=s),l.length&&(this.unparsedVttFrags=[],l.forEach((function(e){n.onFragLoaded(o.Events.FRAG_LOADED,e)})))},t.getExistingTrack=function(e){var t=this.media;if(t)for(var n=0;n<t.textTracks.length;n++){var r=t.textTracks[n];if(r[e])return r}return null},t.createCaptionsTrack=function(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)},t.createNativeTrack=function(e){if(!this.captionsTracks[e]){var t=this.captionsProperties,n=this.captionsTracks,r=this.media,i=t[e],a=i.label,o=i.languageCode,s=this.getExistingTrack(e);if(s)n[e]=s,Y(n[e]),z(n[e],r);else{var l=this.createTextTrack("captions",a,o);l&&(l[e]=!0,n[e]=l)}}},t.createNonNativeTrack=function(e){if(!this.nonNativeCaptionsTracks[e]){var t=this.captionsProperties[e];if(t){var n={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=n,this.hls.trigger(o.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}}},t.createTextTrack=function(e,t,n){var r=this.media;if(r)return r.addTextTrack(e,t,n)},t.onMediaAttaching=function(e,t){this.media=t.media,this._cleanTracks()},t.onMediaDetaching=function(){var e=this.captionsTracks;Object.keys(e).forEach((function(t){Y(e[t]),delete e[t]})),this.nonNativeCaptionsTracks={}},t.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},t._cleanTracks=function(){var e=this.media;if(e){var t=e.textTracks;if(t)for(var n=0;n<t.length;n++)Y(t[n])}},t.onSubtitleTracksUpdated=function(e,t){var n=this;this.textTracks=[];var r=t.subtitleTracks||[],i=r.some((function(e){return e.textCodec===An}));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){var a=this.tracks&&r&&this.tracks.length===r.length;if(this.tracks=r||[],this.config.renderTextTracksNatively){var s=this.media?this.media.textTracks:[];this.tracks.forEach((function(e,t){var r;if(t<s.length){for(var i=null,a=0;a<s.length;a++)if(Mn(s[a],e)){i=s[a];break}i&&(r=i)}if(r)Y(r);else{var o=n._captionsOrSubtitlesFromCharacteristics(e);(r=n.createTextTrack(o,e.name,e.lang))&&(r.mode="disabled")}r&&(r.groupId=e.groupId,n.textTracks.push(r))}))}else if(!a&&this.tracks&&this.tracks.length){var l=this.tracks.map((function(e){return{label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e}}));this.hls.trigger(o.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:l})}}},t._captionsOrSubtitlesFromCharacteristics=function(e){var t;if(null!==(t=e.attrs)&&void 0!==t&&t.CHARACTERISTICS){var n=/transcribes-spoken-dialog/gi.test(e.attrs.CHARACTERISTICS),r=/describes-music-and-sound/gi.test(e.attrs.CHARACTERISTICS);if(n&&r)return"captions"}return"subtitles"},t.onManifestLoaded=function(e,t){var n=this;this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((function(e){var t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(t){var r="textTrack"+t[1],i=n.captionsProperties[r];i&&(i.label=e.name,e.lang&&(i.languageCode=e.lang),i.media=e)}}))},t.closedCaptionsForLevel=function(e){var t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]},t.onFragLoading=function(e,t){var n=this.cea608Parser1,r=this.cea608Parser2,i=this.lastSn,a=this.lastPartIndex;if(this.enabled&&n&&r&&t.frag.type===H.PlaylistLevelType.MAIN){var o,s,l=t.frag.sn,u=null!=(o=null==t||null===(s=t.part)||void 0===s?void 0:s.index)?o:-1;l===i+1||l===i&&u===a+1||(n.reset(),r.reset()),this.lastSn=l,this.lastPartIndex=u}},t.onFragLoaded=function(e,t){var n=t.frag,r=t.payload,i=this.initPTS,s=this.unparsedVttFrags;if(n.type===H.PlaylistLevelType.SUBTITLE)if(r.byteLength){if(!(0,a.isFiniteNumber)(i[n.cc]))return s.push(t),void(i.length&&this.hls.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Missing initial subtitle PTS")}));var l=n.decryptdata,u="stats"in t;if(null==l||!l.encrypted||u){var c=this.tracks[n.level],p=this.vttCCs;p[n.cc]||(p[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),c&&c.textCodec===An?this._parseIMSC1(n,r):this._parseVTTs(n,r,p)}}else this.hls.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})},t._parseIMSC1=function(e,t){var n=this,r=this.hls;xn(t,this.initPTS[e.cc],this.timescale[e.cc],(function(t){n._appendCues(t,e.level),r.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(function(t){l.logger.log("Failed to parse IMSC1: "+t),r.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})}))},t._parseVTTs=function(e,t,n){var r,i=this,s=this.hls;!function(e,t,n,r,i,o,s,l){var u,c=new yn,p=(0,X.utf8ArrayToStr)(new Uint8Array(e)).trim().replace(bn,"\n").split("\n"),d=[],f=(0,vn.toMpegTsClockFromTimescale)(t,n),h="00:00.000",g=0,y=0,v=!0;c.oncue=function(e){var t=r[i],n=r.ccOffset,a=(g-f)/9e4;null!=t&&t.new&&(void 0!==y?n=r.ccOffset=t.start:function(e,t,n){var r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new)return e.ccOffset=e.presentationOffset=r.start,void(r.new=!1);for(;null!==(a=i)&&void 0!==a&&a.new;){var a;e.ccOffset+=r.start-i.start,r.new=!1,i=e[(r=i).prevCC]}e.presentationOffset=n}(r,i,a)),a&&(n=a-r.presentationOffset);var s=e.endTime-e.startTime,l=(0,mn.normalizePts)(9e4*(e.startTime+n-y),9e4*o)/9e4;e.startTime=Math.max(l,0),e.endTime=Math.max(l+s,0);var u=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(u)),e.id||(e.id=kn(e.startTime,e.endTime,u)),e.endTime>0&&d.push(e)},c.onparsingerror=function(e){u=e},c.onflush=function(){u?l(u):s(d)},p.forEach((function(e){if(v){if(_n(e,"X-TIMESTAMP-MAP=")){v=!1,e.slice(16).split(",").forEach((function(e){_n(e,"LOCAL:")?h=e.slice(6):_n(e,"MPEGTS:")&&(g=parseInt(e.slice(7)))}));try{y=function(e){var t=parseInt(e.slice(-3)),n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!((0,a.isFiniteNumber)(t)&&(0,a.isFiniteNumber)(n)&&(0,a.isFiniteNumber)(r)&&(0,a.isFiniteNumber)(i)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+e);return t+=1e3*n,(t+=6e4*r)+36e5*i}(h)/1e3}catch(e){u=e}return}""===e&&(v=!1)}c.parse(e+"\n")})),c.flush()}(null!==(r=e.initSegment)&&void 0!==r&&r.data?(0,w.appendUint8Array)(e.initSegment.data,new Uint8Array(t)):t,this.initPTS[e.cc],this.timescale[e.cc],n,e.cc,e.start,(function(t){i._appendCues(t,e.level),s.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(function(n){i._fallbackToIMSC1(e,t),l.logger.log("Failed to parse VTT cue: "+n),s.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:n})}))},t._fallbackToIMSC1=function(e,t){var n=this,r=this.tracks[e.level];r.textCodec||xn(t,this.initPTS[e.cc],this.timescale[e.cc],(function(){r.textCodec=An,n._parseIMSC1(e,t)}),(function(){r.textCodec="wvtt"}))},t._appendCues=function(e,t){var n=this.hls;if(this.config.renderTextTracksNatively){var r=this.textTracks[t];if(!r||"disabled"===r.mode)return;e.forEach((function(e){return W(r,e)}))}else{var i=this.tracks[t];if(!i)return;var a=i.default?"default":"subtitles"+t;n.trigger(o.Events.CUES_PARSED,{type:"subtitles",cues:e,track:a})}},t.onFragDecrypted=function(e,t){var n=t.frag;if(n.type===H.PlaylistLevelType.SUBTITLE){if(!(0,a.isFiniteNumber)(this.initPTS[n.cc]))return void this.unparsedVttFrags.push(t);this.onFragLoaded(o.Events.FRAG_LOADED,t)}},t.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},t.onFragParsingUserdata=function(e,t){var n=this.cea608Parser1,r=this.cea608Parser2;if(this.enabled&&n&&r){var i=t.frag,a=t.samples;if(i.type!==H.PlaylistLevelType.MAIN||"NONE"!==this.closedCaptionsForLevel(i))for(var o=0;o<a.length;o++){var s=a[o].bytes;if(s){var l=this.extractCea608Data(s);n.addData(a[o].pts,l[0]),r.addData(a[o].pts,l[1])}}}},t.onBufferFlushing=function(e,t){var n=t.startOffset,r=t.endOffset,i=t.endOffsetSubtitles,a=t.type,o=this.media;if(o&&!(o.currentTime<r)){if(!a||"video"===a){var s=this.captionsTracks;Object.keys(s).forEach((function(e){return q(s[e],n,r)}))}if(this.config.renderTextTracksNatively&&0===n&&void 0!==i){var l=this.textTracks;Object.keys(l).forEach((function(e){return q(l[e],n,i)}))}}},t.extractCea608Data=function(e){for(var t=[[],[]],n=31&e[0],r=2,i=0;i<n;i++){var a=e[r++],o=127&e[r++],s=127&e[r++];if((0!==o||0!==s)&&0!=(4&a)){var l=3&a;0!==l&&1!==l||(t[l].push(o),t[l].push(s))}}return t},e}();function Mn(e,t){return e&&e.label===t.name&&!(e.textTrack1||e.textTrack2)}const Nn=function(){function e(e){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var t,n,r=e.prototype;return r.setStreamController=function(e){this.streamController=e},r.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},r.registerListeners=function(){var e=this.hls;e.on(o.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.on(o.Events.BUFFER_CODECS,this.onBufferCodecs,this),e.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.unregisterListener=function(){var e=this.hls;e.off(o.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),e.off(o.Events.BUFFER_CODECS,this.onBufferCodecs,this),e.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.onFpsDropLevelCapping=function(t,n){e.isLevelAllowed(n.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(n.droppedLevel)},r.onMediaAttaching=function(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null},r.onManifestParsed=function(e,t){var n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()},r.onBufferCodecs=function(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()},r.onMediaDetaching=function(){this.stopCapping()},r.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var e=this.hls.levels;if(e.length){var t=this.hls;t.autoLevelCapping=this.getMaxLevel(e.length-1),t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},r.getMaxLevel=function(t){var n=this,r=this.hls.levels;if(!r.length)return-1;var i=r.filter((function(r,i){return e.isLevelAllowed(i,n.restrictedLevels)&&i<=t}));return this.clientRect=null,e.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},r.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},r.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},r.getDimensions=function(){if(this.clientRect)return this.clientRect;var e=this.media,t={width:0,height:0};if(e){var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.width||t.height||(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t},e.isLevelAllowed=function(e,t){return void 0===t&&(t=[]),-1===t.indexOf(e)},e.getMaxLevelByMediaSize=function(e,t,n){if(!e||!e.length)return-1;for(var r,i,a=e.length-1,o=0;o<e.length;o+=1){var s=e[o];if((s.width>=t||s.height>=n)&&(r=s,!(i=e[o+1])||r.width!==i.width||r.height!==i.height)){a=o;break}}return a},t=e,(n=[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return e}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Un=function(){function e(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var t=e.prototype;return t.setStreamController=function(e){this.streamController=e},t.registerListeners=function(){this.hls.on(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},t.unregisterListeners=function(){this.hls.off(o.Events.MEDIA_ATTACHING,this.onMediaAttaching)},t.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},t.onMediaAttaching=function(e,t){var n=this.hls.config;if(n.capLevelOnFPSDrop){var r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&"function"==typeof r.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}},t.checkFPS=function(e,t,n){var r=performance.now();if(t){if(this.lastTime){var i=r-this.lastTime,a=n-this.lastDroppedFrames,s=t-this.lastDecodedFrames,u=1e3*a/i,c=this.hls;if(c.trigger(o.Events.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:n}),u>0&&a>c.config.fpsDroppedMonitoringThreshold*s){var p=c.currentLevel;l.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+p),p>0&&(-1===c.autoLevelCapping||c.autoLevelCapping>=p)&&(p-=1,c.trigger(o.Events.FPS_DROP_LEVEL_CAPPING,{level:p,droppedLevel:c.currentLevel}),c.autoLevelCapping=p,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}},t.checkFPSInterval=function(){var e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){var t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)},e}();var Fn=n(300);function jn(e){var t="function"==typeof Map?new Map:void 0;return(jn=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Bn(e,arguments,Kn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Hn(r,e)})(e)}function Bn(e,t,n){return(Bn=Vn()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Hn(i,n.prototype),i}).apply(null,arguments)}function Vn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Hn(e,t){return(Hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Kn(e){return(Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gn="[eme]",zn=function(){function e(t){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=e.CDMCleanupPromise?[e.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=l.logger.debug.bind(l.logger,Gn),this.log=l.logger.log.bind(l.logger,Gn),this.warn=l.logger.warn.bind(l.logger,Gn),this.error=l.logger.error.bind(l.logger,Gn),this.hls=t,this.config=t.config,this.registerListeners()}var t=e.prototype;return t.destroy=function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null},t.registerListeners=function(){this.hls.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(o.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(o.Events.MANIFEST_LOADED,this.onManifestLoaded,this)},t.unregisterListeners=function(){this.hls.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(o.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(o.Events.MANIFEST_LOADED,this.onManifestLoaded,this)},t.getLicenseServerUrl=function(e){var t=this.config,n=t.drmSystems,r=t.widevineLicenseUrl,i=n[e];if(i)return i.licenseUrl;if(e===f.WIDEVINE&&r)return r;throw new Error('no license server URL configured for key-system "'+e+'"')},t.getServerCertificateUrl=function(e){var t=this.config.drmSystems[e];if(t)return t.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'+e+'"]')},t.attemptKeySystemAccess=function(e){var t=this,n=this.hls.levels,r=function(e,t,n){return!!e&&n.indexOf(e)===t},i=n.map((function(e){return e.audioCodec})).filter(r),a=n.map((function(e){return e.videoCodec})).filter(r);return i.length+a.length===0&&a.push("avc1.42e01e"),new Promise((function(n,r){!function e(o){var l=o.shift();t.getMediaKeysPromise(l,i,a).then((function(e){return n({keySystem:l,mediaKeys:e})})).catch((function(t){o.length?e(o):r(t instanceof Wn?t:new Wn({type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))}))}(e)}))},t.requestMediaKeySystemAccess=function(e,t){var n=this.config.requestMediaKeySystemAccessFunc;if("function"!=typeof n){var r="Configured requestMediaKeySystemAccess is not a function "+n;return null===A&&"http:"===self.location.protocol&&(r="navigator.requestMediaKeySystemAccess is not available over insecure protocol "+location.protocol),Promise.reject(new Error(r))}return n(e,t)},t.getMediaKeysPromise=function(e,t,n){var r=this,i=function(e,t,n,r){var i;switch(e){case f.FAIRPLAY:i=["cenc","sinf"];break;case f.WIDEVINE:case f.PLAYREADY:i=["cenc"];break;case f.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error("Unknown key-system: "+e)}return function(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"not-allowed",distinctiveIdentifier:r.distinctiveIdentifier||"not-allowed",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map((function(e){return{contentType:'audio/mp4; codecs="'+e+'"',robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null}})),videoCapabilities:n.map((function(e){return{contentType:'video/mp4; codecs="'+e+'"',robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}}))}]}(i,t,n,r)}(e,t,n,this.config.drmSystemOptions),a=this.keySystemAccessPromises[e],o=null==a?void 0:a.keySystemAccess;if(!o){this.log('Requesting encrypted media "'+e+'" key-system access with config: '+JSON.stringify(i)),o=this.requestMediaKeySystemAccess(e,i);var s=this.keySystemAccessPromises[e]={keySystemAccess:o};return o.catch((function(t){r.log('Failed to obtain access to key-system "'+e+'": '+t)})),o.then((function(t){r.log('Access for key-system "'+t.keySystem+'" obtained');var n=r.fetchServerCertificate(e);return r.log('Create media-keys for "'+e+'"'),s.mediaKeys=t.createMediaKeys().then((function(t){return r.log('Media-keys created for "'+e+'"'),n.then((function(n){return n?r.setMediaKeysServerCertificate(t,e,n):t}))})),s.mediaKeys.catch((function(t){r.error('Failed to create media-keys for "'+e+'"}: '+t)})),s.mediaKeys}))}return o.then((function(){return a.mediaKeys}))},t.createMediaKeySessionContext=function(e){var t=e.decryptdata,n=e.keySystem,r=e.mediaKeys;this.log('Creating key-system session "'+n+'" keyId: '+Fn.default.hexDump(t.keyId||[]));var i=r.createSession(),a={decryptdata:t,keySystem:n,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a},t.renewKeySession=function(e){var t=e.decryptdata;if(t.pssh){var n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t);this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,"cenc",t.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)},t.getKeyIdString=function(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw new Error("keyId is null");return Fn.default.hexDump(e.keyId)},t.updateKeySession=function(e,t){var n,r=e.mediaKeysSession;return this.log('Updating key-session "'+r.sessionId+'" for keyID '+Fn.default.hexDump((null===(n=e.decryptdata)||void 0===n?void 0:n.keyId)||[])+"\n      } (data length: "+(t?t.byteLength:t)+")"),r.update(t)},t.selectKeySystemFormat=function(e){var t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: "+e.sn+" "+e.type+": "+e.level+") key formats "+t.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise},t.getKeyFormatPromise=function(e){var t=this;return new Promise((function(n,r){var i=T(t.config),a=e.map(E).filter((function(e){return!!e&&-1!==i.indexOf(e)}));return t.getKeySystemSelectionPromise(a).then((function(e){var t=e.keySystem,i=k(t);i?n(i):r(new Error('Unable to find format for key-system "'+t+'"'))})).catch(r)}))},t.loadKey=function(e){var t=this,n=e.keyInfo.decryptdata,r=this.getKeyIdString(n),i="(keyId: "+r+' format: "'+n.keyFormat+'" method: '+n.method+" uri: "+n.uri+")";this.log("Starting session for key "+i);var a=this.keyIdToKeySessionPromise[r];return a||(a=this.keyIdToKeySessionPromise[r]=this.getKeySystemForKeyPromise(n).then((function(r){var a=r.keySystem,o=r.mediaKeys;return t.throwIfDestroyed(),t.log("Handle encrypted media sn: "+e.frag.sn+" "+e.frag.type+": "+e.frag.level+" using key "+i),t.attemptSetMediaKeys(a,o).then((function(){t.throwIfDestroyed();var e=t.createMediaKeySessionContext({keySystem:a,mediaKeys:o,decryptdata:n});return t.generateRequestWithPreferredKeySession(e,"cenc",n.pssh,"playlist-key")}))}))).catch((function(e){return t.handleError(e)})),a},t.throwIfDestroyed=function(e){if(void 0===e&&(e="Invalid state"),!this.hls)throw new Error("invalid state")},t.handleError=function(e){this.hls&&(this.error(e.message),e instanceof Wn?this.hls.trigger(o.Events.ERROR,e.data):this.hls.trigger(o.Events.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))},t.getKeySystemForKeyPromise=function(e){var t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){var r=E(e.keyFormat),i=r?[r]:T(this.config);return this.attemptKeySystemAccess(i)}return n},t.getKeySystemSelectionPromise=function(e){if(e.length||(e=T(this.config)),0===e.length)throw new Wn({type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options "+JSON.stringify({drmSystems:this.config.drmSystems}));return this.attemptKeySystemAccess(e)},t._onMediaEncrypted=function(e){var t=this,n=e.initDataType,r=e.initData;if(this.debug('"'+e.type+'" event: init data type: "'+n+'"'),null!==r){var i,a;if("sinf"===n&&this.config.drmSystems[f.FAIRPLAY]){var o=(0,w.bin2str)(new Uint8Array(r));try{var s=b(JSON.parse(o).sinf),l=(0,w.parseSinf)(new Uint8Array(s));if(!l)return;i=l.subarray(8,24),a=f.FAIRPLAY}catch(e){return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{var u=(0,w.parsePssh)(r);if(null===u)return;0===u.version&&u.systemId===g.WIDEVINE&&u.data&&(i=u.data.subarray(8,24)),a=function(e){if(e===g.WIDEVINE)return f.WIDEVINE}(u.systemId)}if(a&&i){for(var c=Fn.default.hexDump(i),p=this.keyIdToKeySessionPromise,d=this.mediaKeySessions,h=p[c],y=function(e){var a=d[e],o=a.decryptdata;if(o.pssh||!o.keyId)return"continue";var s=Fn.default.hexDump(o.keyId);return c===s||-1!==o.uri.replace(/-/g,"").indexOf(c)?(h=p[s],delete p[s],o.pssh=new Uint8Array(r),o.keyId=i,h=p[c]=h.then((function(){return t.generateRequestWithPreferredKeySession(a,n,r,"encrypted-event-key-match")})),"break"):void 0},v=0;v<d.length;v++){var m=y(v);if("continue"!==m&&"break"===m)break}h||(h=p[c]=this.getKeySystemSelectionPromise([a]).then((function(e){var a,o=e.keySystem,s=e.mediaKeys;t.throwIfDestroyed();var l=new C("ISO-23001-7",c,null!=(a=k(o))?a:"");return l.pssh=new Uint8Array(r),l.keyId=i,t.attemptSetMediaKeys(o,s).then((function(){t.throwIfDestroyed();var e=t.createMediaKeySessionContext({decryptdata:l,keySystem:o,mediaKeys:s});return t.generateRequestWithPreferredKeySession(e,n,r,"encrypted-event-no-match")}))}))),h.catch((function(e){return t.handleError(e)}))}}},t._onWaitingForKey=function(e){this.log('"'+e.type+'" event')},t.attemptSetMediaKeys=function(e,t){var n=this,r=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'+e+'"');var i=Promise.all(r).then((function(){if(!n.media)throw new Error("Attempted to set mediaKeys without media element attached");return n.media.setMediaKeys(t)}));return this.setMediaKeysQueue.push(i),i.then((function(){n.log('Media-keys set for "'+e+'"'),r.push(i),n.setMediaKeysQueue=n.setMediaKeysQueue.filter((function(e){return-1===r.indexOf(e)}))}))},t.generateRequestWithPreferredKeySession=function(e,t,n,r){var i,a,o=this,l=null===(i=this.config.drmSystems)||void 0===i||null===(a=i[e.keySystem])||void 0===a?void 0:a.generateRequest;if(l)try{var u=l.call(this.hls,t,n,e);if(!u)throw new Error("Invalid response from configured generateRequest filter");t=u.initDataType,n=e.decryptdata.pssh=u.initData?new Uint8Array(u.initData):null}catch(e){var c;if(this.warn(e.message),null!==(c=this.hls)&&void 0!==c&&c.config.debug)throw e}if(null===n)return this.log('Skipping key-session request for "'+r+'" (no initData)'),Promise.resolve(e);var p=this.getKeyIdString(e.decryptdata);this.log('Generating key-session request for "'+r+'": '+p+" (init data type: "+t+" length: "+(n?n.byteLength:null)+")");var d=new(gt());e.mediaKeysSession.onmessage=function(t){var n=e.mediaKeysSession;if(n){var r=t.messageType,i=t.message;o.log('"'+r+'" message event for session "'+n.sessionId+'" message size: '+i.byteLength),"license-request"===r||"license-renewal"===r?o.renewLicense(e,i).catch((function(e){o.handleError(e),d.emit("error",e)})):"license-release"===r?e.keySystem===f.FAIRPLAY&&(o.updateKeySession(e,_("acknowledged")),o.removeSession(e)):o.warn('unhandled media key message type "'+r+'"')}else d.emit("error",new Error("invalid state"))},e.mediaKeysSession.onkeystatuseschange=function(t){if(e.mediaKeysSession){o.onKeyStatusChange(e);var n=e.keyStatus;d.emit("keyStatus",n),"expired"===n&&(o.warn(e.keySystem+" expired for key "+p),o.renewKeySession(e))}else d.emit("error",new Error("invalid state"))};var h=new Promise((function(e,t){d.on("error",t),d.on("keyStatus",(function(n){n.startsWith("usable")?e():"output-restricted"===n?t(new Wn({type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===n?t(new Wn({type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'+n+'"')):"expired"===n?t(new Error("key expired while generating request")):o.warn('unhandled key status change "'+n+'"')}))}));return e.mediaKeysSession.generateRequest(t,n).then((function(){var t;o.log('Request generated for key-session "'+(null===(t=e.mediaKeysSession)||void 0===t?void 0:t.sessionId)+'" keyId: '+p)})).catch((function(e){throw new Wn({type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_SESSION,error:e,fatal:!1},"Error generating key-session request: "+e)})).then((function(){return h})).catch((function(t){throw d.removeAllListeners(),o.removeSession(e),t})).then((function(){return d.removeAllListeners(),e}))},t.onKeyStatusChange=function(e){var t=this;e.mediaKeysSession.keyStatuses.forEach((function(n,r){t.log('key status change "'+n+'" for keyStatuses keyId: '+Fn.default.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))+" session keyId: "+Fn.default.hexDump(new Uint8Array(e.decryptdata.keyId||[]))+" uri: "+e.decryptdata.uri),e.keyStatus=n}))},t.fetchServerCertificate=function(e){var t=this;return new Promise((function(n,r){var i=t.getServerCertificateUrl(e);if(!i)return n();t.log('Fetching serverCertificate for "'+e+'"');var a=new XMLHttpRequest;a.open("GET",i,!0),a.responseType="arraybuffer",a.onreadystatechange=function(){a.readyState===XMLHttpRequest.DONE&&(200===a.status?n(a.response):r(new Wn({type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:a},'"'+e+'" certificate request XHR failed ('+i+"). Status: "+a.status+" ("+a.statusText+")")))},a.send()}))},t.setMediaKeysServerCertificate=function(e,t,n){var r=this;return new Promise((function(i,a){e.setServerCertificate(n).then((function(a){r.log("setServerCertificate "+(a?"success":"not supported by CDM")+" ("+(null==n?void 0:n.byteLength)+') on "'+t+'"'),i(e)})).catch((function(e){a(new Wn({type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))}))}))},t.renewLicense=function(e,t){var n=this;return this.requestLicense(e,new Uint8Array(t)).then((function(t){return n.updateKeySession(e,new Uint8Array(t)).catch((function(e){throw new Wn({type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:e,fatal:!0},e.message)}))}))},t.setupLicenseXHR=function(e,t,n,r){var i=this,a=this.config.licenseXhrSetup;return a?Promise.resolve().then((function(){if(!n.decryptdata)throw new Error("Key removed");return a.call(i.hls,e,t,n,r)})).catch((function(o){if(!n.decryptdata)throw o;return e.open("POST",t,!0),a.call(i.hls,e,t,n,r)})).then((function(n){return e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:n||r}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))},t.requestLicense=function(e,t){var n=this;return new Promise((function(r,i){var a=n.getLicenseServerUrl(e.keySystem);n.log("Sending license request to URL: "+a);var o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=function(){if(!n.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(4===o.readyState)if(200===o.status){n._requestLicenseFailureCount=0;var l=o.response;n.log("License received "+(l instanceof ArrayBuffer?l.byteLength:l));var u=n.config.licenseResponseCallback;if(u)try{l=u.call(n.hls,o,a,e)}catch(e){n.error(e)}r(l)}else if(n._requestLicenseFailureCount++,n._requestLicenseFailureCount>3||o.status>=400&&o.status<500)i(new Wn({type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:o},"License Request XHR failed ("+a+"). Status: "+o.status+" ("+o.statusText+")"));else{var c=3-n._requestLicenseFailureCount+1;n.warn("Retrying license request, "+c+" attempts left"),n.requestLicense(e,t).then(r,i)}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=o,n.setupLicenseXHR(o,a,e,t).then((function(e){var t=e.xhr,n=e.licenseChallenge;t.send(n)}))}))},t.onMediaAttached=function(e,t){if(this.config.emeEnabled){var n=t.media;this.media=n,n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}},t.onMediaDetached=function(){var t=this,n=this.media,r=this.mediaKeySessions;n&&(n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},C.clearKeyUriToKeyIdMap();var i=r.length;e.CDMCleanupPromise=Promise.all(r.map((function(e){return t.removeSession(e)})).concat(null==n?void 0:n.setMediaKeys(null).catch((function(e){t.log("Could not clear media keys: "+e+". media.src: "+(null==n?void 0:n.src))})))).then((function(){i&&(t.log("finished closing key sessions and clearing media keys"),r.length=0)})).catch((function(e){t.log("Could not close sessions and clear media keys: "+e+". media.src: "+(null==n?void 0:n.src))}))},t.onManifestLoaded=function(e,t){var n=t.sessionKeys;if(n&&this.config.emeEnabled&&!this.keyFormatPromise){var r=n.reduce((function(e,t){return-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e}),[]);this.log("Selecting key-system from session-keys "+r.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(r)}},t.removeSession=function(e){var t=this,n=e.mediaKeysSession,r=e.licenseXhr;if(n){this.log("Remove licenses and keys and close session "+n.sessionId),n.onmessage=null,n.onkeystatuseschange=null,r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;var i=this.mediaKeySessions.indexOf(e);return i>-1&&this.mediaKeySessions.splice(i,1),n.remove().catch((function(e){t.log("Could not remove session: "+e)})).then((function(){return n.close()})).catch((function(e){t.log("Could not close session: "+e)}))}},e}();zn.CDMCleanupPromise=void 0;var Wn=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,n)||this).data=void 0,r.data=t,t.err=t.error,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Hn(t,n),r}(jn(Error));const Yn=zn;var qn,Xn,$n;function Qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}function Zn(e,t,n){return t&&Qn(e.prototype,t),n&&Qn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return er(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?er(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tr(){return(tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}!function(e){e.MANIFEST="m",e.AUDIO="a",e.VIDEO="v",e.MUXED="av",e.INIT="i",e.CAPTION="c",e.TIMED_TEXT="tt",e.KEY="k",e.OTHER="o"}(qn||(qn={})),function(e){e.DASH="d",e.HLS="h",e.SMOOTH="s",e.OTHER="o"}(Xn||(Xn={})),function(e){e.VOD="v",e.LIVE="l"}($n||($n={}));var nr=function(){function e(t){var n=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){n.initialized&&(n.starved=!0),n.buffering=!0},this.onPlaying=function(){n.initialized||(n.initialized=!0),n.buffering=!1},this.applyPlaylistData=function(e){try{n.apply(e,{ot:qn.MANIFEST,su:!n.initialized})}catch(e){l.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=function(e){try{var t=e.frag,r=n.hls.levels[t.level],i=n.getObjectType(t),a={d:1e3*t.duration,ot:i};i!==qn.VIDEO&&i!==qn.AUDIO&&i!=qn.MUXED||(a.br=r.bitrate/1e3,a.tb=n.getTopBandwidth(i)/1e3,a.bl=n.getBufferLength(i)),n.apply(e,a)}catch(e){l.logger.warn("Could not generate segment CMCD data.",e)}},this.hls=t;var r=this.config=t.config,i=r.cmcd;null!=i&&(r.pLoader=this.createPlaylistLoader(),r.fLoader=this.createFragmentLoader(),this.sid=i.sessionId||e.uuid(),this.cid=i.contentId,this.useHeaders=!0===i.useHeaders,this.registerListeners())}var t=e.prototype;return t.registerListeners=function(){var e=this.hls;e.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(o.Events.MEDIA_DETACHED,this.onMediaDetached,this),e.on(o.Events.BUFFER_CREATED,this.onBufferCreated,this)},t.unregisterListeners=function(){var e=this.hls;e.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(o.Events.MEDIA_DETACHED,this.onMediaDetached,this),e.off(o.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},t.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},t.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},t.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},t.onBufferCreated=function(e,t){var n,r;this.audioBuffer=null===(n=t.tracks.audio)||void 0===n?void 0:n.buffer,this.videoBuffer=null===(r=t.tracks.video)||void 0===r?void 0:r.buffer},t.createData=function(){var e;return{v:1,sf:Xn.HLS,sid:this.sid,cid:this.cid,pr:null===(e=this.media)||void 0===e?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},t.apply=function(t,n){void 0===n&&(n={}),tr(n,this.createData());var r=n.ot===qn.INIT||n.ot===qn.VIDEO||n.ot===qn.MUXED;if(this.starved&&r&&(n.bs=!0,n.su=!0,this.starved=!1),null==n.su&&(n.su=this.buffering),this.useHeaders){var i=e.toHeaders(n);if(!Object.keys(i).length)return;t.headers||(t.headers={}),tr(t.headers,i)}else{var a=e.toQuery(n);if(!a)return;t.url=e.appendQueryToUri(t.url,a)}},t.getObjectType=function(e){var t=e.type;return"subtitle"===t?qn.TIMED_TEXT:"initSegment"===e.sn?qn.INIT:"audio"===t?qn.AUDIO:"main"===t?this.hls.audioTracks.length?qn.VIDEO:qn.MUXED:void 0},t.getTopBandwidth=function(e){var t,n=0,r=this.hls;if(e===qn.AUDIO)t=r.audioTracks;else{var i=r.maxAutoLevel,a=i>-1?i+1:r.levels.length;t=r.levels.slice(0,a)}for(var o,s=Jn(t);!(o=s()).done;){var l=o.value;l.bitrate>n&&(n=l.bitrate)}return n>0?n:NaN},t.getBufferLength=function(e){var t=this.hls.media,n=e===qn.AUDIO?this.audioBuffer:this.videoBuffer;return n&&t?1e3*Le.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len:NaN},t.createPlaylistLoader=function(){var e=this.config.pLoader,t=this.applyPlaylistData,n=e||this.config.loader;return function(){function e(e){this.loader=void 0,this.loader=new n(e)}var r=e.prototype;return r.destroy=function(){this.loader.destroy()},r.abort=function(){this.loader.abort()},r.load=function(e,n,r){t(e),this.loader.load(e,n,r)},Zn(e,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),e}()},t.createFragmentLoader=function(){var e=this.config.fLoader,t=this.applyFragmentData,n=e||this.config.loader;return function(){function e(e){this.loader=void 0,this.loader=new n(e)}var r=e.prototype;return r.destroy=function(){this.loader.destroy()},r.abort=function(){this.loader.abort()},r.load=function(e,n,r){t(e),this.loader.load(e,n,r)},Zn(e,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),e}()},e.uuid=function(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)},e.serialize=function(e){for(var t,n=[],r=function(e){return!Number.isNaN(e)&&null!=e&&""!==e&&!1!==e},i=function(e){return Math.round(e)},a=function(e){return 100*i(e/100)},o={br:i,d:i,bl:a,dl:a,mtp:a,nor:function(e){return encodeURIComponent(e)},rtp:a,tb:i},s=Jn(Object.keys(e||{}).sort());!(t=s()).done;){var l=t.value,u=e[l];if(r(u)&&!("v"===l&&1===u||"pr"==l&&1===u)){var c=o[l];c&&(u=c(u));var p,d=typeof u;p="ot"===l||"sf"===l||"st"===l?l+"="+u:"boolean"===d?l:"number"===d?l+"="+u:l+"="+JSON.stringify(u),n.push(p)}}return n.join(",")},e.toHeaders=function(t){for(var n={},r=["Object","Request","Session","Status"],i=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},o=0,s=Object.keys(t);o<s.length;o++){var l=s[o];i[null!=a[l]?a[l]:1][l]=t[l]}for(var u=0;u<i.length;u++){var c=e.serialize(i[u]);c&&(n["CMCD-"+r[u]]=c)}return n},e.toQuery=function(t){return"CMCD="+encodeURIComponent(e.serialize(t))},e.appendQueryToUri=function(e,t){if(!t)return e;var n=e.includes("?")?"&":"?";return""+e+n+t},e}(),rr=n(408),ir=/^age:\s*[\d.]+\s*$/m;const ar=function(){function e(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=e?e.xhrSetup:null,this.stats=new rr.LoadStats,this.retryDelay=0}var t=e.prototype;return t.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},t.abortInternal=function(){var e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))},t.abort=function(){var e;this.abortInternal(),null!==(e=this.callbacks)&&void 0!==e&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},t.load=function(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.retryDelay=t.retryDelay,this.loadInternal()},t.loadInternal=function(){var e=this.config,t=this.context;if(e){var n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0;var i=this.xhrSetup;try{if(i)try{i(n,t.url)}catch(e){n.open("GET",t.url,!0),i(n,t.url)}n.readyState||n.open("GET",t.url,!0);var a=this.context.headers;if(a)for(var o in a)n.setRequestHeader(o,a[o])}catch(e){return void this.callbacks.onError({code:n.status,text:e.message},t,n)}t.rangeEnd&&n.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),n.onreadystatechange=this.readystatechange.bind(this),n.onprogress=this.loadprogress.bind(this),n.responseType=t.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),e.timeout),n.send()}},t.readystatechange=function(){var e=this.context,t=this.loader,n=this.stats;if(e&&t){var r=t.readyState,i=this.config;if(!n.aborted&&r>=2)if(self.clearTimeout(this.requestTimeout),0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start)),4===r){t.onreadystatechange=null,t.onprogress=null;var a=t.status,o="arraybuffer"===t.responseType;if(a>=200&&a<300&&(o&&t.response||null!==t.responseText)){var s,u;if(n.loading.end=Math.max(self.performance.now(),n.loading.first),u=o?(s=t.response).byteLength:(s=t.responseText).length,n.loaded=n.total=u,!this.callbacks)return;var c=this.callbacks.onProgress;if(c&&c(n,e,s,t),!this.callbacks)return;var p={url:t.responseURL,data:s};this.callbacks.onSuccess(p,n,e,t)}else n.retry>=i.maxRetry||a>=400&&a<499?(l.logger.error(a+" while loading "+e.url),this.callbacks.onError({code:a,text:t.statusText},e,t)):(l.logger.warn(a+" while loading "+e.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,i.maxRetryDelay),n.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.timeout)}},t.loadtimeout=function(){l.logger.warn("timeout while loading "+this.context.url);var e=this.callbacks;e&&(this.abortInternal(),e.onTimeout(this.stats,this.context,this.loader))},t.loadprogress=function(e){var t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)},t.getCacheAge=function(){var e=null;if(this.loader&&ir.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e},e}();function or(e){var t="function"==typeof Map?new Map:void 0;return(or=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return sr(e,arguments,cr(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ur(r,e)})(e)}function sr(e,t,n){return(sr=lr()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ur(i,n.prototype),i}).apply(null,arguments)}function lr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ur(e,t){return(ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cr(e){return(cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pr(){return(pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var dr=function(){function e(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||fr,this.controller=new self.AbortController,this.stats=new rr.LoadStats}var t=e.prototype;return t.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},t.abortInternal=function(){var e=this.response;e&&e.ok||(this.stats.aborted=!0,this.controller.abort())},t.abort=function(){var e;this.abortInternal(),null!==(e=this.callbacks)&&void 0!==e&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},t.load=function(e,t,n){var r=this,i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();var o=function(e,t){var n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(pr({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}(e,this.controller.signal),s=n.onProgress,l="arraybuffer"===e.responseType,u=l?"byteLength":"length";this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,o),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout((function(){r.abortInternal(),n.onTimeout(i,e,r.response)}),t.timeout),self.fetch(this.request).then((function(n){if(r.response=r.loader=n,!n.ok){var o=n.status,u=n.statusText;throw new hr(u||"fetch, bad network response",o,n)}return i.loading.first=Math.max(self.performance.now(),i.loading.start),i.total=parseInt(n.headers.get("Content-Length")||"0"),s&&(0,a.isFiniteNumber)(t.highWaterMark)?r.loadProgressively(n,i,e,t.highWaterMark,s):l?n.arrayBuffer():n.text()})).then((function(o){var l=r.response;self.clearTimeout(r.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);var c=o[u];c&&(i.loaded=i.total=c);var p={url:l.url,data:o};s&&!(0,a.isFiniteNumber)(t.highWaterMark)&&s(i,e,o,l),n.onSuccess(p,i,e,l)})).catch((function(t){if(self.clearTimeout(r.requestTimeout),!i.aborted){var a=t&&t.code||0,o=t?t.message:null;n.onError({code:a,text:o},e,t?t.details:null)}}))},t.getCacheAge=function(){var e=null;if(this.response){var t=this.response.headers.get("age");e=t?parseFloat(t):null}return e},t.loadProgressively=function(e,t,n,r,i){void 0===r&&(r=0);var a=new At,o=e.body.getReader();return function s(){return o.read().then((function(o){if(o.done)return a.dataLength&&i(t,n,a.flush(),e),Promise.resolve(new ArrayBuffer(0));var l=o.value,u=l.length;return t.loaded+=u,u<r||a.dataLength?(a.push(l),a.dataLength>=r&&i(t,n,a.flush(),e)):i(t,n,l,e),s()})).catch((function(){return Promise.reject()}))}()},e}();function fr(e,t){return new self.Request(e.url,t)}var hr=function(e){var t,n;function r(t,n,r){var i;return(i=e.call(this,t)||this).code=void 0,i.details=void 0,i.code=n,i.details=r,i}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ur(t,n),r}(or(Error));const gr=dr;var yr=/\s/;function vr(){return(vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){_r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Er=br(br({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:ar,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Tt,bufferController:Bt,capLevelController:Nn,fpsController:Un,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:A,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0},{cueHandler:{newCue:function(e,t,n,r){for(var i,a,o,s,l,u=[],c=self.VTTCue||self.TextTrackCue,p=0;p<r.rows.length;p++)if(o=!0,s=0,l="",!(i=r.rows[p]).isEmpty()){for(var d=0;d<i.chars.length;d++)yr.test(i.chars[d].uchar)&&o?s++:(l+=i.chars[d].uchar,o=!1);i.cueStartTime=t,t===n&&(n+=1e-4),s>=16?s--:s++;var f=gn(l.trim()),h=kn(t,n,f);e&&e.cues&&e.cues.getCueById(h)||((a=new c(t,n,f)).id=h,a.line=p+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*s/32)),u.push(a))}return e&&u.length&&(u.sort((function(e,t){return"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line})),u.forEach((function(t){return W(e,t)}))),u}},enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:Dt,subtitleTrackController:Mt,timelineController:Ln,audioStreamController:Ct,audioTrackController:It,emeController:Yn,cmcdController:nr});function kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}var Tr=function(){function e(t){void 0===t&&(t={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ht.EventEmitter,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var n=this.config=function(e,t){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return vr({},e,t)}(e.DefaultConfig,t);this.userConfig=t,(0,l.enableLogs)(n.debug,"Hls instance"),this._autoLevelCapping=-1,n.progressive&&function(e){var t=e.loader;t!==gr&&t!==ar?(l.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1}()&&(e.loader=gr,e.progressive=!0,e.enableSoftwareAES=!0,l.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}(n);var r=n.abrController,i=n.bufferController,a=n.capLevelController,o=n.fpsController,s=this.abrController=new r(this),u=this.bufferController=new i(this),c=this.capLevelController=new a(this),p=new o(this),d=new G(this),f=new ee(this),h=this.levelController=new me(this),g=new be(this),y=new De(this.config),v=this.streamController=new _t(this,g,y);c.setStreamController(v),p.setStreamController(v);var m=[d,h,v];this.networkControllers=m;var b=[s,u,c,p,f,g];this.audioTrackController=this.createController(n.audioTrackController,m);var _=n.audioStreamController;_&&m.push(new _(this,g,y)),this.subtitleTrackController=this.createController(n.subtitleTrackController,m);var E=n.subtitleStreamController;E&&m.push(new E(this,g,y)),this.createController(n.timelineController,b),y.emeController=this.emeController=this.createController(n.emeController,b),this.cmcdController=this.createController(n.cmcdController,b),this.latencyController=this.createController(ne,b),this.coreComponents=b}e.isSupported=function(){return function(){var e=at();if(!e)return!1;var t=ot(),n=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return!!n&&!!r}()};var t,n,r,a=e.prototype;return a.createController=function(e,t){if(e){var n=new e(this);return t&&t.push(n),n}return null},a.on=function(e,t,n){void 0===n&&(n=this),this._emitter.on(e,t,n)},a.once=function(e,t,n){void 0===n&&(n=this),this._emitter.once(e,t,n)},a.removeAllListeners=function(e){this._emitter.removeAllListeners(e)},a.off=function(e,t,n,r){void 0===n&&(n=this),this._emitter.off(e,t,n,r)},a.listeners=function(e){return this._emitter.listeners(e)},a.emit=function(e,t,n){return this._emitter.emit(e,t,n)},a.trigger=function(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){l.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),this.trigger(o.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:e,error:t})}return!1},a.listenerCount=function(e){return this._emitter.listenerCount(e)},a.destroy=function(){l.logger.log("destroy"),this.trigger(o.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(e){return e.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(e){return e.destroy()})),this.coreComponents.length=0},a.attachMedia=function(e){l.logger.log("attachMedia"),this._media=e,this.trigger(o.Events.MEDIA_ATTACHING,{media:e})},a.detachMedia=function(){l.logger.log("detachMedia"),this.trigger(o.Events.MEDIA_DETACHING,void 0),this._media=null},a.loadSource=function(e){this.stopLoad();var t=this.media,n=this.url,r=this.url=i.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});l.logger.log("loadSource:"+r),t&&n&&n!==r&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(t)),this.trigger(o.Events.MANIFEST_LOADING,{url:e})},a.startLoad=function(e){void 0===e&&(e=-1),l.logger.log("startLoad("+e+")"),this.networkControllers.forEach((function(t){t.startLoad(e)}))},a.stopLoad=function(){l.logger.log("stopLoad"),this.networkControllers.forEach((function(e){e.stopLoad()}))},a.swapAudioCodec=function(){l.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},a.recoverMediaError=function(){l.logger.log("recoverMediaError");var e=this._media;this.detachMedia(),e&&this.attachMedia(e)},a.removeLevel=function(e,t){void 0===t&&(t=0),this.levelController.removeLevel(e,t)},t=e,r=[{key:"version",get:function(){return"1.3.5"}},{key:"Events",get:function(){return o.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return e.defaultConfig?e.defaultConfig:Er},set:function(t){e.defaultConfig=t}}],(n=[{key:"levels",get:function(){return this.levelController.levels||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(e){l.logger.log("set currentLevel:"+e),this.loadLevel=e,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(e){l.logger.log("set nextLevel:"+e),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(e){l.logger.log("set loadLevel:"+e),this.levelController.manualLevel=e}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(e){this.levelController.nextLoadLevel=e}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(e){l.logger.log("set firstLevel:"+e),this.levelController.firstLevel=e}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(e){l.logger.log("set startLevel:"+e),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(e){var t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(e){this._autoLevelCapping!==e&&(l.logger.log("set autoLevelCapping:"+e),this._autoLevelCapping=e)}},{key:"bandwidthEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimate():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(e){re.indexOf(e)>-1&&(this._maxHdcpLevel=e)}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var e=this.levels,t=this.config.minAutoBitrate;if(!e)return 0;for(var n=e.length,r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}},{key:"maxAutoLevel",get:function(){var e,t=this.levels,n=this.autoLevelCapping,r=this.maxHdcpLevel;if(e=-1===n&&t&&t.length?t.length-1:n,r)for(var i=e;i--;){var a=t[i].attrs["HDCP-LEVEL"];if(a&&a<=r)return i}return e}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(e){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,e)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var e=this.audioTrackController;return e?e.audioTracks:[]}},{key:"audioTrack",get:function(){var e=this.audioTrackController;return e?e.audioTrack:-1},set:function(e){var t=this.audioTrackController;t&&(t.audioTrack=e)}},{key:"subtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTrack:-1},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var e=this.subtitleTrackController;return!!e&&e.subtitleDisplay},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(e){this.config.lowLatencyMode=e}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}])&&kr(t.prototype,n),r&&kr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();Tr.defaultConfig=void 0},923:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseSegment:()=>p,ElementaryStreamTypes:()=>r,Fragment:()=>d,Part:()=>f});var r,i=n(965),a=n(945),o=n(408);function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?i:String(i),r)}var i}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}!function(e){e.AUDIO="audio",e.VIDEO="video",e.AUDIOVIDEO="audiovideo"}(r||(r={}));var p=function(){function e(e){var t;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((t={})[r.AUDIO]=null,t[r.VIDEO]=null,t[r.AUDIOVIDEO]=null,t),this.baseurl=e}return e.prototype.setByteRange=function(e,t){var n=e.split("@",2),r=[];1===n.length?r[0]=t?t.byteRangeEndOffset:0:r[0]=parseInt(n[1]),r[1]=parseInt(n[0])+r[0],this._byteRange=r},c(e,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=(0,a.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(e){this._url=e}}]),e}(),d=function(e){function t(t,n){var r;return(r=e.call(this,n)||this)._decryptdata=null,r.rawProgramDateTime=null,r.programDateTime=null,r.tagList=[],r.duration=0,r.sn=0,r.levelkeys=void 0,r.type=void 0,r.loader=null,r.keyLoader=null,r.level=-1,r.cc=0,r.startPTS=void 0,r.endPTS=void 0,r.appendedPTS=void 0,r.startDTS=void 0,r.endDTS=void 0,r.start=0,r.deltaPTS=void 0,r.maxStartPTS=void 0,r.minEndPTS=void 0,r.stats=new o.LoadStats,r.urlId=0,r.data=void 0,r.bitrateTest=!1,r.title=null,r.initSegment=null,r.endList=void 0,r.type=t,r}s(t,e);var n=t.prototype;return n.setKeyFormat=function(e){if(this.levelkeys){var t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}},n.abortRequests=function(){var e,t;null===(e=this.loader)||void 0===e||e.abort(),null===(t=this.keyLoader)||void 0===t||t.abort()},n.setElementaryStreamInfo=function(e,t,n,r,i,a){void 0===a&&(a=!1);var o=this.elementaryStreams,s=o[e];s?(s.startPTS=Math.min(s.startPTS,t),s.endPTS=Math.max(s.endPTS,n),s.startDTS=Math.min(s.startDTS,r),s.endDTS=Math.max(s.endDTS,i)):o[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:a}},n.clearElementaryStreamInfo=function(){var e=this.elementaryStreams;e[r.AUDIO]=null,e[r.VIDEO]=null,e[r.AUDIOVIDEO]=null},c(t,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var e=this.levelkeys.identity;if(e)this._decryptdata=e.getDecryptData(this.sn);else{var t=Object.keys(this.levelkeys);if(1===t.length)return this._decryptdata=this.levelkeys[t[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!(0,i.isFiniteNumber)(this.programDateTime))return null;var e=(0,i.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+1e3*e}},{key:"encrypted",get:function(){var e;if(null!==(e=this._decryptdata)&&void 0!==e&&e.encrypted)return!0;if(this.levelkeys){var t=Object.keys(this.levelkeys),n=t.length;if(n>1||1===n&&this.levelkeys[t[0]].encrypted)return!0}return!1}}]),t}(p),f=function(e){function t(t,n,r,i,a){var s;(s=e.call(this,r)||this).fragOffset=0,s.duration=0,s.gap=!1,s.independent=!1,s.relurl=void 0,s.fragment=void 0,s.index=void 0,s.stats=new o.LoadStats,s.duration=t.decimalFloatingPoint("DURATION"),s.gap=t.bool("GAP"),s.independent=t.bool("INDEPENDENT"),s.relurl=t.enumeratedString("URI"),s.fragment=n,s.index=i;var l=t.enumeratedString("BYTERANGE");return l&&s.setByteRange(l,a),a&&(s.fragOffset=a.fragOffset+a.duration),s}return s(t,e),c(t,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var e=this.elementaryStreams;return!!(e.audio||e.video||e.audiovideo)}}]),t}(p)},408:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LoadStats:()=>r});var r=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},965:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MAX_SAFE_INTEGER:()=>i,isFiniteNumber:()=>r});var r=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},i=Number.MAX_SAFE_INTEGER||9007199254740991},524:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y,flushTextTrackMetadataCueSamples:()=>m,flushTextTrackUserdataCueSamples:()=>b,normalizePts:()=>v});var r=n(965);const i=function(){function e(){}return e.getSilentFrame=function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}},e}();var a=Math.pow(2,32)-1,o=function(){function e(){}return e.init=function(){var t;for(t in e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var n=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);e.HDLR_TYPES={video:n,audio:r};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);e.STTS=e.STSC=e.STCO=a,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var o=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);e.FTYP=e.box(e.types.ftyp,o,l,o,s),e.DINF=e.box(e.types.dinf,e.box(e.types.dref,i))},e.box=function(e){for(var t=8,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var a=r.length,o=a;a--;)t+=r[a].byteLength;var s=new Uint8Array(t);for(s[0]=t>>24&255,s[1]=t>>16&255,s[2]=t>>8&255,s[3]=255&t,s.set(e,4),a=0,t=8;a<o;a++)s.set(r[a],t),t+=r[a].byteLength;return s},e.hdlr=function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])},e.mdat=function(t){return e.box(e.types.mdat,t)},e.mdhd=function(t,n){n*=t;var r=Math.floor(n/(a+1)),i=Math.floor(n%(a+1));return e.box(e.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t.timescale,t.duration),e.hdlr(t.type),e.minf(t))},e.mfhd=function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))},e.minf=function(t){return"audio"===t.type?e.box(e.types.minf,e.box(e.types.smhd,e.SMHD),e.DINF,e.stbl(t)):e.box(e.types.minf,e.box(e.types.vmhd,e.VMHD),e.DINF,e.stbl(t))},e.moof=function(t,n,r){return e.box(e.types.moof,e.mfhd(t),e.traf(r,n))},e.moov=function(t){for(var n=t.length,r=[];n--;)r[n]=e.trak(t[n]);return e.box.apply(null,[e.types.moov,e.mvhd(t[0].timescale,t[0].duration)].concat(r).concat(e.mvex(t)))},e.mvex=function(t){for(var n=t.length,r=[];n--;)r[n]=e.trex(t[n]);return e.box.apply(null,[e.types.mvex].concat(r))},e.mvhd=function(t,n){n*=t;var r=Math.floor(n/(a+1)),i=Math.floor(n%(a+1)),o=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e.box(e.types.mvhd,o)},e.sdtp=function(t){var n,r,i=t.samples||[],a=new Uint8Array(4+i.length);for(n=0;n<i.length;n++)r=i[n].flags,a[n+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return e.box(e.types.sdtp,a)},e.stbl=function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.STTS),e.box(e.types.stsc,e.STSC),e.box(e.types.stsz,e.STSZ),e.box(e.types.stco,e.STCO))},e.avc1=function(t){var n,r,i,a=[],o=[];for(n=0;n<t.sps.length;n++)i=(r=t.sps[n]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(r));for(n=0;n<t.pps.length;n++)i=(r=t.pps[n]).byteLength,o.push(i>>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(r));var s=e.box(e.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|t.sps.length].concat(a).concat([t.pps.length]).concat(o))),l=t.width,u=t.height,c=t.pixelRatio[0],p=t.pixelRatio[1];return e.box(e.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),e.box(e.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,p>>24,p>>16&255,p>>8&255,255&p])))},e.esds=function(e){var t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))},e.mp4a=function(t){var n=t.samplerate;return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,n>>8&255,255&n,0,0]),e.box(e.types.esds,e.esds(t)))},e.mp3=function(t){var n=t.samplerate;return e.box(e.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,n>>8&255,255&n,0,0]))},e.stsd=function(t){return"audio"===t.type?"mp3"===t.segmentCodec&&"mp3"===t.codec?e.box(e.types.stsd,e.STSD,e.mp3(t)):e.box(e.types.stsd,e.STSD,e.mp4a(t)):e.box(e.types.stsd,e.STSD,e.avc1(t))},e.tkhd=function(t){var n=t.id,r=t.duration*t.timescale,i=t.width,o=t.height,s=Math.floor(r/(a+1)),l=Math.floor(r%(a+1));return e.box(e.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,255&n,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,l>>24,l>>16&255,l>>8&255,255&l,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,o>>8&255,255&o,0,0]))},e.traf=function(t,n){var r=e.sdtp(t),i=t.id,o=Math.floor(n/(a+1)),s=Math.floor(n%(a+1));return e.box(e.types.traf,e.box(e.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),e.box(e.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,s>>24,s>>16&255,s>>8&255,255&s])),e.trun(t,r.length+16+20+8+16+8+8),r)},e.trak=function(t){return t.duration=t.duration||4294967295,e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.trex=function(t){var n=t.id;return e.box(e.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},e.trun=function(t,n){var r,i,a,o,s,l,u=t.samples||[],c=u.length,p=12+16*c,d=new Uint8Array(p);for(n+=8+p,d.set(["video"===t.type?1:0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,255&c,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0),r=0;r<c;r++)a=(i=u[r]).duration,o=i.size,s=i.flags,l=i.cts,d.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*r);return e.box(e.types.trun,d)},e.initSegment=function(t){e.types||e.init();var n=e.moov(t),r=new Uint8Array(e.FTYP.byteLength+n.byteLength);return r.set(e.FTYP),r.set(n,e.FTYP.byteLength),r},e}();o.types=void 0,o.HDLR_TYPES=void 0,o.STTS=void 0,o.STSC=void 0,o.STCO=void 0,o.STSZ=void 0,o.VMHD=void 0,o.SMHD=void 0,o.STSD=void 0,o.FTYP=void 0,o.DINF=void 0;const s=o;var l=n(851),u=n(973),c=n(93),p=n(308),d=n(673);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=null,g=null,y=function(){function e(e,t,n,r){if(void 0===r&&(r=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,null===h){var i=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);h=i?parseInt(i[1]):0}if(null===g){var a=navigator.userAgent.match(/Safari\/(\d+)/i);g=a?parseInt(a[1]):0}}var t=e.prototype;return t.destroy=function(){},t.resetTimeStamp=function(e){c.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e},t.resetNextTimestamp=function(){c.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},t.resetInitSegment=function(){c.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},t.getVideoStartPts=function(e){var t=!1,n=e.reduce((function(e,n){var r=n.pts-e;return r<-4294967296?(t=!0,v(e,n.pts)):r>0?e:n.pts}),e[0].pts);return t&&c.logger.debug("PTS rollover detected"),n},t.remux=function(e,t,n,r,i,a,o,s){var l,u,d,f,h,g,y=i,_=i,E=e.pid>-1,k=t.pid>-1,T=t.samples.length,A=e.samples.length>0,w=o&&T>0||T>1;if((!E||A)&&(!k||w)||this.ISGenerated||o){this.ISGenerated||(d=this.generateIS(e,t,i));var S,C=this.isVideoContiguous,x=-1;if(w&&(x=function(e){for(var t=0;t<e.length;t++)if(e[t].key)return t;return-1}(t.samples),!C&&this.config.forceKeyFrameOnDiscontinuity))if(g=!0,x>0){c.logger.warn("[mp4-remuxer]: Dropped "+x+" out of "+T+" video samples due to a missing keyframe");var I=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(x),t.dropped+=x,S=_+=(t.samples[0].pts-I)/t.inputTimeScale}else-1===x&&(c.logger.warn("[mp4-remuxer]: No keyframe found out of "+T+" video samples"),g=!1);if(this.ISGenerated){if(A&&w){var P=this.getVideoStartPts(t.samples),D=(v(e.samples[0].pts,P)-P)/t.inputTimeScale;y+=Math.max(0,D),_+=Math.max(0,-D)}if(A){if(e.samplerate||(c.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),d=this.generateIS(e,t,i)),u=this.remuxAudio(e,y,this.isAudioContiguous,a,k||w||s===p.PlaylistLevelType.AUDIO?_:void 0),w){var R=u?u.endPTS-u.startPTS:0;t.inputTimeScale||(c.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),d=this.generateIS(e,t,i)),l=this.remuxVideo(t,_,C,R)}}else w&&(l=this.remuxVideo(t,_,C,0));l&&(l.firstKeyFrame=x,l.independent=-1!==x,l.firstKeyFramePTS=S)}}return this.ISGenerated&&(n.samples.length&&(h=m(n,i,this._initPTS,this._initDTS)),r.samples.length&&(f=b(r,i,this._initPTS))),{audio:u,video:l,initSegment:d,independent:g,text:f,id3:h}},t.generateIS=function(e,t,n){var i,a,o,l=e.samples,u=t.samples,c=this.typeSupported,p={},d=!(0,r.isFiniteNumber)(this._initPTS),f="audio/mp4";if(d&&(i=a=1/0),e.config&&l.length&&(e.timescale=e.samplerate,"mp3"===e.segmentCodec&&(c.mpeg?(f="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3")),p.audio={id:"audio",container:f,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&c.mpeg?new Uint8Array(0):s.initSegment([e]),metadata:{channelCount:e.channelCount}},d&&(o=e.inputTimeScale,i=a=l[0].pts-Math.round(o*n))),t.sps&&t.pps&&u.length&&(t.timescale=t.inputTimeScale,p.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:s.initSegment([t]),metadata:{width:t.width,height:t.height}},d)){o=t.inputTimeScale;var h=this.getVideoStartPts(u),g=Math.round(o*n);a=Math.min(a,v(u[0].dts,h)-g),i=Math.min(i,h-g)}if(Object.keys(p).length)return this.ISGenerated=!0,d&&(this._initPTS=i,this._initDTS=a),{tracks:p,initPTS:i,timescale:o}},t.remuxVideo=function(e,t,n,r){var i,a,o=e.inputTimeScale,p=e.samples,y=[],m=p.length,b=this._initPTS,E=this.nextAvcDts,k=8,T=this.videoSampleDuration,A=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY,S=!1;n&&null!==E||(E=t*o-(p[0].pts-v(p[0].dts,p[0].pts)));for(var C=0;C<m;C++){var x=p[C];x.pts=v(x.pts-b,E),x.dts=v(x.dts-b,E),x.dts<p[C>0?C-1:C].dts&&(S=!0)}S&&p.sort((function(e,t){var n=e.dts-t.dts,r=e.pts-t.pts;return n||r})),i=p[0].dts;var I=p[p.length-1].dts-i,P=I?Math.round(I/(m-1)):T||e.inputTimeScale/30;if(n){var D=i-E,R=D>P,O=D<-1;if((R||O)&&(R?c.logger.warn("AVC: "+(0,d.toMsFromMpegTsClock)(D,!0)+" ms ("+D+"dts) hole between fragments detected, filling it"):c.logger.warn("AVC: "+(0,d.toMsFromMpegTsClock)(-D,!0)+" ms ("+D+"dts) overlapping between fragments detected"),!O||E>p[0].pts)){i=E;var L=p[0].pts-D;p[0].dts=i,p[0].pts=L,c.logger.log("Video: First PTS/DTS adjusted: "+(0,d.toMsFromMpegTsClock)(L,!0)+"/"+(0,d.toMsFromMpegTsClock)(i,!0)+", delta: "+(0,d.toMsFromMpegTsClock)(D,!0)+" ms")}}i=Math.max(0,i);for(var M=0,N=0,U=0;U<m;U++){for(var F=p[U],j=F.units,B=j.length,V=0,H=0;H<B;H++)V+=j[H].data.length;N+=V,M+=B,F.length=V,F.dts=Math.max(F.dts,i),A=Math.min(F.pts,A),w=Math.max(F.pts,w)}a=p[m-1].dts;var K,G=N+4*M+8;try{K=new Uint8Array(G)}catch(e){return void this.observer.emit(l.Events.ERROR,l.Events.ERROR,{type:u.ErrorTypes.MUX_ERROR,details:u.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:G,reason:"fail allocating video mdat "+G})}var z=new DataView(K.buffer);z.setUint32(0,G),K.set(s.types.mdat,4);for(var W=!1,Y=Number.POSITIVE_INFINITY,q=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY,$=Number.NEGATIVE_INFINITY,Q=0;Q<m;Q++){for(var Z=p[Q],J=Z.units,ee=0,te=0,ne=J.length;te<ne;te++){var re=J[te],ie=re.data,ae=re.data.byteLength;z.setUint32(k,ae),k+=4,K.set(ie,k),k+=ae,ee+=4+ae}var oe=void 0;if(Q<m-1)T=p[Q+1].dts-Z.dts,oe=p[Q+1].pts-Z.pts;else{var se=this.config,le=Q>0?Z.dts-p[Q-1].dts:P;if(oe=Q>0?Z.pts-p[Q-1].pts:P,se.stretchShortVideoTrack&&null!==this.nextAudioPts){var ue=Math.floor(se.maxBufferHole*o),ce=(r?A+r*o:this.nextAudioPts)-Z.pts;ce>ue?((T=ce-le)<0?T=le:W=!0,c.logger.log("[mp4-remuxer]: It is approximately "+ce/90+" ms to the next segment; using duration "+T/90+" ms for the last video frame.")):T=le}else T=le}var pe=Math.round(Z.pts-Z.dts);Y=Math.min(Y,T),X=Math.max(X,T),q=Math.min(q,oe),$=Math.max($,oe),y.push(new _(Z.key,T,ee,pe))}if(y.length)if(h){if(h<70){var de=y[0].flags;de.dependsOn=2,de.isNonSync=0}}else if(g&&$-q<X-Y&&P/X<.025&&0===y[0].cts){c.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var fe=i,he=0,ge=y.length;he<ge;he++){var ye=fe+y[he].duration,ve=fe+y[he].cts;if(he<ge-1){var me=ye+y[he+1].cts;y[he].duration=me-ve}else y[he].duration=he?y[he-1].duration:P;y[he].cts=0,fe=ye}}T=W||!T?P:T,this.nextAvcDts=E=a+T,this.videoSampleDuration=T,this.isVideoContiguous=!0;var be={data1:s.moof(e.sequenceNumber++,i,f({},e,{samples:y})),data2:K,startPTS:A/o,endPTS:(w+T)/o,startDTS:i/o,endDTS:E/o,type:"video",hasAudio:!1,hasVideo:!0,nb:y.length,dropped:e.dropped};return e.samples=[],e.dropped=0,be},t.remuxAudio=function(e,t,n,r,a){var o=e.inputTimeScale,p=o/(e.samplerate?e.samplerate:o),d="aac"===e.segmentCodec?1024:1152,h=d*p,g=this._initPTS,y="mp3"===e.segmentCodec&&this.typeSupported.mpeg,m=[],b=void 0!==a,E=e.samples,k=y?0:8,T=this.nextAudioPts||-1,A=t*o;if(this.isAudioContiguous=n=n||E.length&&T>0&&(r&&Math.abs(A-T)<9e3||Math.abs(v(E[0].pts-g,A)-T)<20*h),E.forEach((function(e){e.pts=v(e.pts-g,A)})),!n||T<0){if(!(E=E.filter((function(e){return e.pts>=0}))).length)return;T=0===a?0:r&&!b?Math.max(0,A):E[0].pts}if("aac"===e.segmentCodec)for(var w=this.config.maxAudioFramesDrift,S=0,C=T;S<E.length;S++){var x=E[S],I=x.pts,P=I-C,D=Math.abs(1e3*P/o);if(P<=-w*h&&b)0===S&&(c.logger.warn("Audio frame @ "+(I/o).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*P/o)+" ms."),this.nextAudioPts=T=C=I);else if(P>=w*h&&D<1e4&&b){var R=Math.round(P/h);(C=I-R*h)<0&&(R--,C+=h),0===S&&(this.nextAudioPts=T=C),c.logger.warn("[mp4-remuxer]: Injecting "+R+" audio frame @ "+(C/o).toFixed(3)+"s due to "+Math.round(1e3*P/o)+" ms gap.");for(var O=0;O<R;O++){var L=Math.max(C,0),M=i.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);M||(c.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),M=x.unit.subarray()),E.splice(S,0,{unit:M,pts:L}),C+=h,S++}}x.pts=C,C+=h}for(var N,U=null,F=null,j=0,B=E.length;B--;)j+=E[B].unit.byteLength;for(var V=0,H=E.length;V<H;V++){var K=E[V],G=K.unit,z=K.pts;if(null!==F)m[V-1].duration=Math.round((z-F)/p);else{if(n&&"aac"===e.segmentCodec&&(z=T),U=z,!(j>0))return;j+=k;try{N=new Uint8Array(j)}catch(e){return void this.observer.emit(l.Events.ERROR,l.Events.ERROR,{type:u.ErrorTypes.MUX_ERROR,details:u.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:j,reason:"fail allocating audio mdat "+j})}y||(new DataView(N.buffer).setUint32(0,j),N.set(s.types.mdat,4))}N.set(G,k);var W=G.byteLength;k+=W,m.push(new _(!0,d,W,0)),F=z}var Y=m.length;if(Y){var q=m[m.length-1];this.nextAudioPts=T=F+p*q.duration;var X=y?new Uint8Array(0):s.moof(e.sequenceNumber++,U/p,f({},e,{samples:m}));e.samples=[];var $=U/o,Q=T/o,Z={data1:X,data2:N,startPTS:$,endPTS:Q,startDTS:$,endDTS:Q,type:"audio",hasAudio:!0,hasVideo:!1,nb:Y};return this.isAudioContiguous=!0,Z}},t.remuxEmptyAudio=function(e,t,n,r){var a=e.inputTimeScale,o=a/(e.samplerate?e.samplerate:a),s=this.nextAudioPts,l=(null!==s?s:r.startDTS*a)+this._initDTS,u=r.endDTS*a+this._initDTS,p=1024*o,d=Math.ceil((u-l)/p),f=i.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(c.logger.warn("[mp4-remuxer]: remux empty Audio"),f){for(var h=[],g=0;g<d;g++){var y=l+g*p;h.push({unit:f,pts:y,dts:y})}return e.samples=h,this.remuxAudio(e,t,n,!1)}c.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec")},e}();function v(e,t){var n;if(null===t)return e;for(n=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=n;return e}function m(e,t,n,r){var i=e.samples.length;if(i){for(var a=e.inputTimeScale,o=0;o<i;o++){var s=e.samples[o];s.pts=v(s.pts-n,t*a)/a,s.dts=v(s.dts-r,t*a)/a}var l=e.samples;return e.samples=[],{samples:l}}}function b(e,t,n){var r=e.samples.length;if(r){for(var i=e.inputTimeScale,a=0;a<r;a++){var o=e.samples[a];o.pts=v(o.pts-n,t*i)/i}e.samples.sort((function(e,t){return e.pts-t.pts}));var s=e.samples;return e.samples=[],{samples:s}}}var _=function(e,t,n,r){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=n,this.cts=r,this.flags=new E(e)},E=function(e){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=e?2:1,this.isNonSync=e?0:1}},856:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{MetadataSchema:()=>r}),function(e){e.audioId3="org.id3",e.dateRange="com.apple.quicktime.HLS",e.emsg="https://aomedia.org/emsg/ID3"}(r||(r={}))},308:(e,t,n)=>{"use strict";var r,i;n.r(t),n.d(t,{PlaylistContextType:()=>r,PlaylistLevelType:()=>i}),function(e){e.MANIFEST="manifest",e.LEVEL="level",e.AUDIO_TRACK="audioTrack",e.SUBTITLE_TRACK="subtitleTrack"}(r||(r={})),function(e){e.MAIN="main",e.AUDIO="audio",e.SUBTITLE="subtitle"}(i||(i={}))},300:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={hexDump:function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);r.length<2&&(r="0"+r),t+=r}return t}}},93:(e,t,n)=>{"use strict";n.r(t),n.d(t,{enableLogs:()=>s,logger:()=>l});var r=function(){},i={trace:r,debug:r,log:r,warn:r,info:r,error:r},a=i;function o(e){var t=self.console[e];return t?t.bind(self.console,"["+e+"] >"):r}function s(e,t){if(self.console&&!0===e||"object"==typeof e){!function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((function(t){a[t]=e[t]?e[t].bind(e):o(t)}))}(e,"debug","log","info","warn","error");try{a.log('Debug logs enabled for "'+t+'"')}catch(e){a=i}}else a=i}var l=i},63:(e,t,n)=>{"use strict";n.r(t),n.d(t,{RemuxerTrackIdConfig:()=>c,appendUint8Array:()=>S,bin2str:()=>p,computeRawDurationFromSamples:()=>T,discardEPB:()=>P,findBox:()=>y,getDuration:()=>k,getStartDTS:()=>E,mp4Box:()=>R,mp4pssh:()=>O,offsetStartDTS:()=>A,parseEmsg:()=>D,parseInitSegment:()=>m,parsePssh:()=>L,parseSEIMessageFromNALu:()=>I,parseSamples:()=>C,parseSegmentIndex:()=>v,parseSinf:()=>_,patchEncyptionData:()=>b,readSint32:()=>h,readUint16:()=>d,readUint32:()=>f,segmentValidRange:()=>w,writeUint32:()=>g});var r=n(923),i=n(145),a=n(181),o=n(93),s=n(300),l=Math.pow(2,32)-1,u=[].push,c={video:1,audio:2,id3:3,text:4};function p(e){return String.fromCharCode.apply(null,e)}function d(e,t){var n=e[t]<<8|e[t+1];return n<0?65536+n:n}function f(e,t){var n=h(e,t);return n<0?4294967296+n:n}function h(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function g(e,t,n){e[t]=n>>24,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function y(e,t){var n=[];if(!t.length)return n;for(var r=e.byteLength,i=0;i<r;){var a=f(e,i),o=a>1?i+a:r;if(p(e.subarray(i+4,i+8))===t[0])if(1===t.length)n.push(e.subarray(i+8,o));else{var s=y(e.subarray(i+8,o),t.slice(1));s.length&&u.apply(n,s)}i=o}return n}function v(e){var t=[],n=e[0],r=8,i=f(e,r);r+=4,r+=0===n?8:16,r+=2;var a=e.length+0,o=d(e,r);r+=2;for(var s=0;s<o;s++){var l=r,u=f(e,l);l+=4;var c=2147483647&u;if(1==(2147483648&u)>>>31)return console.warn("SIDX has hierarchical references (not supported)"),null;var p=f(e,l);l+=4,t.push({referenceSize:c,subsegmentDuration:p,info:{duration:p/i,start:a,end:a+c-1}}),a+=c,r=l+=4}return{earliestPresentationTime:0,timescale:i,version:n,referencesCount:o,references:t}}function m(e){for(var t=[],n=y(e,["moov","trak"]),i=0;i<n.length;i++){var a=n[i],o=y(a,["tkhd"])[0];if(o){var s=o[0],l=0===s?12:20,u=f(o,l),c=y(a,["mdia","mdhd"])[0];if(c){var d=f(c,l=0===(s=c[0])?12:20),h=y(a,["mdia","hdlr"])[0];if(h){var g=p(h.subarray(8,12)),v={soun:r.ElementaryStreamTypes.AUDIO,vide:r.ElementaryStreamTypes.VIDEO}[g];if(v){var m=y(a,["mdia","minf","stbl","stsd"])[0],b=void 0;m&&(b=p(m.subarray(12,16))),t[u]={timescale:d,type:v},t[v]={timescale:d,id:u,codec:b}}}}}}return y(e,["moov","mvex","trex"]).forEach((function(e){var n=f(e,4),r=t[n];r&&(r.default={duration:f(e,12),flags:f(e,20)})})),t}function b(e,t){if(!e||!t)return e;var n=t.keyId;return n&&t.isCommonEncryption&&y(e,["moov","trak"]).forEach((function(e){var t=y(e,["mdia","minf","stbl","stsd"])[0].subarray(8),r=y(t,["enca"]),i=r.length>0;i||(r=y(t,["encv"])),r.forEach((function(e){y(i?e.subarray(28):e.subarray(78),["sinf"]).forEach((function(e){var t=_(e);if(t){var r=t.subarray(8,24);r.some((function(e){return 0!==e}))||(o.logger.log("[eme] Patching keyId in 'enc"+(i?"a":"v")+">sinf>>tenc' box: "+s.default.hexDump(r)+" -> "+s.default.hexDump(n)),t.set(n,8))}}))}))})),e}function _(e){var t=y(e,["schm"])[0];if(t){var n=p(t.subarray(4,8));if("cbcs"===n||"cenc"===n)return y(e,["schi","tenc"])[0]}return o.logger.error("[eme] missing 'schm' box"),null}function E(e,t){return y(t,["moof","traf"]).reduce((function(t,n){var r=y(n,["tfdt"])[0],i=r[0],a=y(n,["tfhd"]).reduce((function(t,n){var a=f(n,4),o=e[a];if(o){var s=f(r,4);1===i&&(s*=Math.pow(2,32),s+=f(r,8));var l=s/(o.timescale||9e4);if(isFinite(l)&&(null===t||l<t))return l}return t}),null);return null!==a&&isFinite(a)&&(null===t||a<t)?a:t}),null)||0}function k(e,t){for(var n=0,i=0,a=0,o=y(e,["moof","traf"]),s=0;s<o.length;s++){var l=o[s],u=y(l,["tfhd"])[0],c=t[f(u,4)];if(c){var p=c.default,d=f(u,0)|(null==p?void 0:p.flags),h=null==p?void 0:p.duration;8&d&&(h=f(u,2&d?12:8));for(var g=c.timescale||9e4,m=y(l,["trun"]),b=0;b<m.length;b++)!(n=T(m[b]))&&h&&(n=h*f(m[b],4)),c.type===r.ElementaryStreamTypes.VIDEO?i+=n/g:c.type===r.ElementaryStreamTypes.AUDIO&&(a+=n/g)}}if(0===i&&0===a){for(var _=0,E=y(e,["sidx"]),k=0;k<E.length;k++){var A=v(E[k]);null!=A&&A.references&&(_+=A.references.reduce((function(e,t){return e+t.info.duration||0}),0))}return _}return i||a}function T(e){var t=f(e,0),n=8;1&t&&(n+=4),4&t&&(n+=4);for(var r=0,i=f(e,4),a=0;a<i;a++)256&t&&(r+=f(e,n),n+=4),512&t&&(n+=4),1024&t&&(n+=4),2048&t&&(n+=4);return r}function A(e,t,n){y(t,["moof","traf"]).forEach((function(t){y(t,["tfhd"]).forEach((function(r){var i=f(r,4),a=e[i];if(a){var o=a.timescale||9e4;y(t,["tfdt"]).forEach((function(e){var t=e[0],r=f(e,4);if(0===t)r-=n*o,g(e,4,r=Math.max(r,0));else{r*=Math.pow(2,32),r+=f(e,8),r-=n*o,r=Math.max(r,0);var i=Math.floor(r/(l+1)),a=Math.floor(r%(l+1));g(e,4,i),g(e,8,a)}}))}}))}))}function w(e){var t={valid:null,remainder:null},n=y(e,["moof"]);if(!n)return t;if(n.length<2)return t.remainder=e,t;var r=n[n.length-1];return t.valid=(0,i.sliceUint8)(e,0,r.byteOffset-8),t.remainder=(0,i.sliceUint8)(e,r.byteOffset-8),t}function S(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function C(e,t){var n=[],i=t.samples,a=t.timescale,o=t.id,s=!1;return y(i,["moof"]).map((function(l){var u=l.byteOffset-8;y(l,["traf"]).map((function(l){var c=y(l,["tfdt"]).map((function(e){var t=e[0],n=f(e,4);return 1===t&&(n*=Math.pow(2,32),n+=f(e,8)),n/a}))[0];return void 0!==c&&(e=c),y(l,["tfhd"]).map((function(c){var p=f(c,4),d=16777215&f(c,0),g=0,v=0!=(16&d),m=0,b=0!=(32&d),_=8;p===o&&(0!=(1&d)&&(_+=8),0!=(2&d)&&(_+=4),0!=(8&d)&&(g=f(c,_),_+=4),v&&(m=f(c,_),_+=4),b&&(_+=4),"video"===t.type&&(s=function(e){if(!e)return!1;var t=e.indexOf("."),n=t<0?e:e.substring(0,t);return"hvc1"===n||"hev1"===n||"dvh1"===n||"dvhe"===n}(t.codec)),y(l,["trun"]).map((function(o){var l=o[0],c=16777215&f(o,0),p=0!=(1&c),d=0,y=0!=(4&c),v=0!=(256&c),b=0,_=0!=(512&c),E=0,k=0!=(1024&c),T=0!=(2048&c),A=0,w=f(o,4),S=8;p&&(d=f(o,S),S+=4),y&&(S+=4);for(var C=d+u,P=0;P<w;P++){if(v?(b=f(o,S),S+=4):b=g,_?(E=f(o,S),S+=4):E=m,k&&(S+=4),T&&(A=0===l?f(o,S):h(o,S),S+=4),t.type===r.ElementaryStreamTypes.VIDEO)for(var D=0;D<E;){var R=f(i,C);x(s,i[C+=4])&&I(i.subarray(C,C+R),s?2:1,e+A/a,n),C+=R,D+=R+4}e+=b/a}})))}))}))})),n}function x(e,t){if(e){var n=t>>1&63;return 39===n||40===n}return 6==(31&t)}function I(e,t,n,r){var i=P(e),o=0;o+=t;for(var s=0,l=0,u=!1,c=0;o<i.length;){s=0;do{if(o>=i.length)break;s+=c=i[o++]}while(255===c);l=0;do{if(o>=i.length)break;l+=c=i[o++]}while(255===c);var p=i.length-o;if(!u&&4===s&&o<i.length){if(u=!0,181===i[o++]){var h=d(i,o);if(o+=2,49===h){var g=f(i,o);if(o+=4,1195456820===g){var y=i[o++];if(3===y){var v=i[o++],m=64&v,b=m?2+3*(31&v):0,_=new Uint8Array(b);if(m){_[0]=v;for(var E=1;E<b;E++)_[E]=i[o++]}r.push({type:y,payloadType:s,pts:n,bytes:_})}}}}}else if(5===s&&l<p){if(u=!0,l>16){for(var k=[],T=0;T<16;T++){var A=i[o++].toString(16);k.push(1==A.length?"0"+A:A),3!==T&&5!==T&&7!==T&&9!==T||k.push("-")}for(var w=l-16,S=new Uint8Array(w),C=0;C<w;C++)S[C]=i[o++];r.push({payloadType:s,pts:n,uuid:k.join(""),userData:(0,a.utf8ArrayToStr)(S),userDataBytes:S})}}else if(l<p)o+=l;else if(l>p)break}}function P(e){for(var t=e.byteLength,n=[],r=1;r<t-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return e;var i=t-n.length,a=new Uint8Array(i),o=0;for(r=0;r<i;o++,r++)o===n[0]&&(o++,n.shift()),a[r]=e[o];return a}function D(e){var t=e[0],n="",r="",i=0,a=0,o=0,s=0,l=0,u=0;if(0===t){for(;"\0"!==p(e.subarray(u,u+1));)n+=p(e.subarray(u,u+1)),u+=1;for(n+=p(e.subarray(u,u+1)),u+=1;"\0"!==p(e.subarray(u,u+1));)r+=p(e.subarray(u,u+1)),u+=1;r+=p(e.subarray(u,u+1)),u+=1,i=f(e,12),a=f(e,16),s=f(e,20),l=f(e,24),u=28}else if(1===t){i=f(e,u+=4);var c=f(e,u+=4),d=f(e,u+=4);for(u+=4,o=Math.pow(2,32)*c+d,Number.isSafeInteger(o)||(o=Number.MAX_SAFE_INTEGER,console.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),s=f(e,u),l=f(e,u+=4),u+=4;"\0"!==p(e.subarray(u,u+1));)n+=p(e.subarray(u,u+1)),u+=1;for(n+=p(e.subarray(u,u+1)),u+=1;"\0"!==p(e.subarray(u,u+1));)r+=p(e.subarray(u,u+1)),u+=1;r+=p(e.subarray(u,u+1)),u+=1}return{schemeIdUri:n,value:r,timeScale:i,presentationTime:o,presentationTimeDelta:a,eventDuration:s,id:l,payload:e.subarray(u,e.byteLength)}}function R(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=n.length,a=8,o=i;o--;)a+=n[o].byteLength;var s=new Uint8Array(a);for(s[0]=a>>24&255,s[1]=a>>16&255,s[2]=a>>8&255,s[3]=255&a,s.set(e,4),o=0,a=8;o<i;o++)s.set(n[o],a),a+=n[o].byteLength;return s}function O(e,t,n){if(16!==e.byteLength)throw new RangeError("Invalid system id");var r,i,a;if(t){r=1,i=new Uint8Array(16*t.length);for(var o=0;o<t.length;o++){var s=t[o];if(16!==s.byteLength)throw new RangeError("Invalid key");i.set(s,16*o)}}else r=0,i=new Uint8Array;r>0?(a=new Uint8Array(4),t.length>0&&new DataView(a.buffer).setUint32(0,t.length,!1)):a=new Uint8Array;var l=new Uint8Array(4);return n&&n.byteLength>0&&new DataView(l.buffer).setUint32(0,n.byteLength,!1),R([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,i,l,n||new Uint8Array)}function L(e){if(!(e instanceof ArrayBuffer)||e.byteLength<32)return null;var t={version:0,systemId:"",kids:null,data:null},n=new DataView(e),r=n.getUint32(0);if(e.byteLength!==r&&r>44)return null;if(1886614376!==n.getUint32(4))return null;if(t.version=n.getUint32(8)>>>24,t.version>1)return null;t.systemId=s.default.hexDump(new Uint8Array(e,12,16));var i=n.getUint32(28);if(0===t.version){if(r-32<i)return null;t.data=new Uint8Array(e,32,i)}else if(1===t.version){t.kids=[];for(var a=0;a<i;a++)t.kids.push(new Uint8Array(e,32+16*a,16))}return t}},673:(e,t,n)=>{"use strict";function r(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=!1);var i=e*t*n;return r?Math.round(i):i}function i(e,t,n,i){return void 0===n&&(n=1),void 0===i&&(i=!1),r(e,t,1/n,i)}function a(e,t){return void 0===t&&(t=!1),r(e,1e3,1/9e4,t)}function o(e,t){return void 0===t&&(t=1),r(e,9e4,1/t)}n.r(t),n.d(t,{toMpegTsClockFromTimescale:()=>o,toMsFromMpegTsClock:()=>a,toTimescaleFromBase:()=>r,toTimescaleFromScale:()=>i})},145:(e,t,n)=>{"use strict";function r(e,t,n){return Uint8Array.prototype.slice?e.slice(t,n):new Uint8Array(Array.prototype.slice.call(e,t,n))}n.r(t),n.d(t,{sliceUint8:()=>r})},729:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,a||e,o),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);i<a;i++)o[i]=r[i].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,a,o){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],p=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),p){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,a),!0;case 6:return c.fn.call(c.context,t,r,i,a,o),!0}for(u=1,l=new Array(p-1);u<p;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),p){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!l)for(d=1,l=new Array(p-1);d<p;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||o(this,a);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},945:function(e){var t,n,r,i,a;t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,i=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var i=a.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=a.normalizePath(i.path),a.buildURLFromParts(i)}var o=a.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return r.alwaysNormalize?(o.path=a.normalizePath(o.path),a.buildURLFromParts(o)):t;var s=a.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=n.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=s.netLoc,"/"!==o.path[0]))if(o.path){var c=s.path,p=c.substring(0,c.lastIndexOf("/")+1)+o.path;u.path=a.normalizePath(p)}else u.path=s.path,o.params||(u.params=s.params,o.query||(u.query=s.query));return null===u.path&&(u.path=r.alwaysNormalize?a.normalizePath(o.path):o.path),a.buildURLFromParts(u)},parseURL:function(e){var n=t.exec(e);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(r,"");e.length!==(e=e.replace(i,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=a}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}return n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(76).default})(),e.exports=r())},function(e,t,n){var r,i;window,e.exports=(r=n(0),i=n(318),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=r},function(e,t){e.exports=i},function(e){e.exports=JSON.parse('{"shakaConfig":{"streaming":{"ignoreTextStreamFailures":true,"bufferingGoal":60,"alwaysStreamText":true},"abr":{"enabled":true,"restrictions":{}}},"forceRedirectExternalStreams":false,"trackEmsgEvents":true,"switchDynamicToStatic":false}')},function(e,t,n){(t=n(5)(!1)).push([e.i,".shaka-text-container {\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 0;\n  bottom: 0;\n  pointer-events: none;\n  width: 100%;\n  min-width: 48px;\n  transition: bottom cubic-bezier(0.4, 0, 0.6, 1) 0.1s;\n  transition-delay: 0s;\n  font-size: 20px;\n  line-height: 1.4;\n  color: #fff;\n  font-family: Roboto-Regular, Roboto, sans-serif, TengwarTelcontar;\n}\n.shaka-text-container span.shaka-text-wrapper {\n  display: inline;\n  background: 0 0;\n  text-align: center;\n}\n\n:fullscreen .shaka-text-container {\n  font-size: 4.4vmin;\n}\n\n:-webkit-full-screen .shaka-text-container {\n  font-size: 4.4vmin;\n}\n\n:-moz-full-screen .shaka-text-container {\n  font-size: 4.4vmin;\n}\n\n:-ms-fullscreen .shaka-text-container {\n  font-size: 4.4vmin;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function o(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],l=t.base?s[0]+t.base:s[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var p=o(c),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==p?(a[p].references++,a[p].updater(d)):a.push({identifier:c,updater:g(d,t),references:1}),r.push(c)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var a=n.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=i(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,c=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=c(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function d(e,t,n){var r=n.css,i=n.media,a=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,h=0;function g(e,t){var n,r,i;if(t.singleton){var a=h++;n=f||(f=l(t)),r=p.bind(null,n,a,!1),i=p.bind(null,n,a,!0)}else n=l(t),r=d.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=o(n[r]);a[i].references--}for(var l=s(e,t),u=0;u<n.length;u++){var c=o(n[u]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=l}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,a=e[1]||"",o=e[3];if(!o)return a;if(t&&"function"==typeof btoa){var s=(n=o,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[a].concat(l).concat([s]).join("\n")}return[a].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";n.r(t),n.d(t,"VERSION",(function(){return X})),n.d(t,"NAME",(function(){return $}));var r,i,a,o,s,l,u,c=n(0),p=n(1),d=n.n(p),f=(i=r=function(){function e(){}return e.isConfigured=function(e,t){return c.DrmScheme.WIDEVINE===t.keySystem&&!!e.find((function(e){return e.scheme===t.keySystem}))},e.canPlayDrm=function(t){return e._logger.debug("Can play DRM scheme of: "+c.DrmScheme.WIDEVINE),!!t.find((function(e){return e.scheme===c.DrmScheme.WIDEVINE}))},e.setDrmPlayback=function(t,n){e._logger.debug("Sets drm playback");var r,i,a=c.Env.browser.name,o=n.find((function(e){return e.scheme===c.DrmScheme.WIDEVINE}));o&&(t.drm={servers:(r={},r[c.DrmScheme.WIDEVINE]=o.licenseUrl,r),advanced:{}},"Chrome"===a&&(t.drm.advanced=((i={})[c.DrmScheme.WIDEVINE]={videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},i)))},e}(),a=r,o="_logger",s=Object(c.getLogger)("Widevine"),o in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s,i),h=(u=l=function(){function e(){}return e.isConfigured=function(e,t){return c.DrmScheme.PLAYREADY===t.keySystem&&!!e.find((function(e){return e.scheme===t.keySystem}))},e.canPlayDrm=function(t){return e._logger.debug("Can play DRM scheme of: "+c.DrmScheme.PLAYREADY),!!t.find((function(e){return e.scheme===c.DrmScheme.PLAYREADY}))},e.setDrmPlayback=function(t,n){e._logger.debug("Sets drm playback");var r,i=n.find((function(e){return e.scheme===c.DrmScheme.PLAYREADY}));i&&(t.drm={servers:(r={},r[c.DrmScheme.PLAYREADY]=i.licenseUrl,r)})},e}(),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(l,"_logger",Object(c.getLogger)("PlayReady")),u),g=n(2),y=n(4),v=n.n(y),m=n(3),b=n.n(m);function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}v()(b.a,{insert:"head",singleton:!1}),b.a.locals;var E=function(){function e(e){this._media=A.parseAttr(e,T.AttributeTypes.MEDIA),this._startNumber=A.parseAttr(e,T.AttributeTypes.START_NUMBER,A.parseInt,1),this._duration=A.parseAttr(e,T.AttributeTypes.DURATION,A.parseFloat),this._timescale=A.parseAttr(e,T.AttributeTypes.TIMESCALE,A.parsePositiveInt,1),this._presentationTimeOffset=A.parseAttr(e,T.AttributeTypes.PRESENTATION_TIME_OFFSET,A.parseInt,0),this._endNumber=A.parseAttr(e,T.AttributeTypes.END_NUMBER,A.parsePositiveInt)}var t,n;return t=e,(n=[{key:"media",get:function(){return this._media}},{key:"startNumber",get:function(){return this._startNumber}},{key:"duration",get:function(){return this._duration}},{key:"timescale",get:function(){return this._timescale}},{key:"presentationTimeOffset",get:function(){return this._presentationTimeOffset}},{key:"endNumber",get:function(){return this._endNumber}}])&&_(t.prototype,n),e}();!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(E,"MediaTemplateType",{REPRESENTATION:"$RepresentationID$",NUMBER:"$Number$",BANDWIDTH:"$Bandwidth$",TIME:"$Time$"});var k=function(e,t){var n=t.id,r=t.index,i=t.bitrate,a=t.time,o=e.match(/\$([a-zA-Z]+)\$/g),s=function(e,t,n){return n?e.replace(t,n):e};return o&&o.forEach((function(t){switch(t){case E.MediaTemplateType.REPRESENTATION:e=s(e,t,n);break;case E.MediaTemplateType.NUMBER:e=s(e,t,r);break;case E.MediaTemplateType.BANDWIDTH:e=s(e,t,i);break;case E.MediaTemplateType.TIME:e=s(e,t,a)}})),e},T={TagTypes:{BASE_URL:"BaseURL",SEGMENT_TEMPLATE:"SegmentTemplate",REPRESENTATION:"Representation",ESSENTIAL_PROPERTY:"EssentialProperty",ADAPTATION_SET:"AdaptationSet"},AttributeTypes:{BASE_URL:"BaseURL",ID:"id",CONTENT_TYPE:"contentType",MIME_TYPE:"mimeType",MEDIA:"media",DURATION:"duration",START_NUMBER:"startNumber",TIMESCALE:"timescale",PRESENTATION_TIME_OFFSET:"presentationTimeOffset",END_NUMBER:"endNumber",BANDWIDTH:"bandwidth",WIDTH:"width",HEIGHT:"height",SCHEME_ID_URI:"schemeIdUri",VALUE:"value"}},A={parseXml:function(e){return(new DOMParser).parseFromString(e,"text/xml")},parseAttr:function(e,t,n,r){var i=null,a=e.getAttribute(t);return null!==a&&(i=n?n(a):a),null==i?r:i},findElements:function(e,t){return e.getElementsByTagName(t)},findChild:function(e,t){var n=this.findChildren(e,t);return 1!==n.length?null:n[0]},findChildren:function(e,t){return Array.from(e.childNodes).filter((function(e){return e instanceof Element&&e.tagName===t}))},parseInt:function(e){var t=Number(e);return t%1==0?t:null},parsePositiveInt:function(e){var t=Number(e);return t%1==0&&t>0?t:null},parseFloat:function(e){var t=Number(e);return isNaN(t)?null:t}};function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var S=function(){function e(e){this._schemeIdUri=A.parseAttr(e,T.AttributeTypes.SCHEME_ID_URI),this._value=A.parseAttr(e,T.AttributeTypes.VALUE)}var t,n;return t=e,(n=[{key:"schemeIdUri",get:function(){return this._schemeIdUri}},{key:"value",get:function(){return this._value}}])&&w(t.prototype,n),e}();function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var x=function(){function e(e){this._id=A.parseAttr(e,T.AttributeTypes.ID),this._bandwidth=A.parseAttr(e,T.AttributeTypes.BANDWIDTH,parseInt),this._width=A.parseAttr(e,T.AttributeTypes.WIDTH,parseInt),this._height=A.parseAttr(e,T.AttributeTypes.HEIGHT,parseInt);var t=A.findChild(e,T.TagTypes.ESSENTIAL_PROPERTY);t&&(this._essentialProperty=new S(t))}var t,n;return t=e,(n=[{key:"bandwidth",get:function(){return this._bandwidth}},{key:"id",get:function(){return this._id}},{key:"width",get:function(){return this._width}},{key:"height",get:function(){return this._height}},{key:"essentialProperty",get:function(){return this._essentialProperty}}])&&C(t.prototype,n),e}();function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var P=function(){function e(e){this._id=A.parseAttr(e,T.AttributeTypes.ID),this._mimeType=A.parseAttr(e,T.AttributeTypes.MIME_TYPE),this._contentType=A.parseAttr(e,T.AttributeTypes.CONTENT_TYPE),this._representations=Array.from(A.findChildren(e,T.TagTypes.REPRESENTATION)).map((function(e){return new x(e)}));var t=A.findChild(e,T.TagTypes.SEGMENT_TEMPLATE);t&&(this._segmentTemplate=new E(t));var n=A.findChild(e,T.TagTypes.ESSENTIAL_PROPERTY);n&&(this._essentialProperty=new S(n))}var t,n;return t=e,(n=[{key:"id",get:function(){return this._id}},{key:"mimeType",get:function(){return this._mimeType}},{key:"contentType",get:function(){return this._contentType}},{key:"segmentTemplate",get:function(){return this._segmentTemplate}},{key:"essentialProperty",get:function(){return this._essentialProperty}},{key:"representations",get:function(){return this._representations}}])&&I(t.prototype,n),e}();function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(P,"ContentType",{VIDEO:"video",AUDIO:"audio",TEXT:"text",IMAGE:"image"});var O=function(){function e(e){var t,n=this;R(this,"_logger",Object(c.getLogger)("DashManifestParser")),R(this,"_parseAdaptionSets",(function(){var e=A.findElements(n._xmlDoc,T.TagTypes.BASE_URL);e&&e.length>0&&e[0].innerHTML&&(n._baseURL=e[0].textContent);var t=A.findElements(n._xmlDoc,T.TagTypes.ADAPTATION_SET),r=Array.from(t).filter((function(e){return A.parseAttr(e,T.AttributeTypes.CONTENT_TYPE)===P.ContentType.IMAGE}));r.length>0?(n._adaptationSets=r.map((function(e){return new P(e)})),n._logger.debug("Found image adaptation set",n._adaptationSets)):n._logger.debug("No image adaptations were found in manifest")})),this._logger.debug("Initialize manifest parser"),this._adaptationSets=[],(t=e instanceof ArrayBuffer?function(e){return TextDecoder?(new TextDecoder).decode(new Uint8Array(e)):null}(e):e)&&(this._xmlDoc=A.parseXml(t))}e.isValid=function(){return window.TextEncoder&&window.TextDecoder};var t,n,r=e.prototype;return r.parseManifest=function(){try{this._logger.debug("Start parsing dash manifest"),this._parseAdaptionSets(),this._logger.debug("Manifest parsing finished successfully")}catch(e){this._logger.warn("Manifest parsing failed",e)}},r.getBaseUrl=function(){return this._baseURL||""},r.getImageSet=function(){return this._adaptationSets.find((function(e){return e.contentType===P.ContentType.IMAGE}))},r.hasImageSet=function(){return!!this.getImageSet()},t=e,(n=[{key:"adaptationSets",get:function(){return this._adaptationSets}}])&&D(t.prototype,n),e}();function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function(){function e(e,t,n){var r=this;L(this,"_tracks",[]),L(this,"_parseTracks",(function(e,t,n){var i=e.representations,a=e.segmentTemplate,o=e.essentialProperty;i.forEach((function(e,i){var s=e.id,l=e.bandwidth,u=e.width,p=e.height,d=a.startNumber,f=a.duration,h=a.media,g=a.timescale,y=a.presentationTimeOffset,v=r._getEssentialValue(o,e),m=r._getDimensions(v),b=m[0],_=m[1];r._tracks.push(new c.ImageTrack({id:s,index:i,active:!1,width:u,height:p,duration:f,rows:b,cols:_,url:r._buildTemplateUrl(h,s,t,n),customData:{bitrate:l,startNumber:d,timescale:g,presentationTimeOffset:y}}))}))})),L(this,"_getDimensions",(function(e){var t=1,n=1;if(e.includes("x")){var r=e.split("x");n=parseInt(r[0]),t=parseInt(r[1])}return[t,n]})),L(this,"_getEssentialValue",(function(e,t){return e?e.value:t.essentialProperty?t.essentialProperty.value:""})),L(this,"_buildTemplateUrl",(function(e,t,n,r){var i=n.split("/").pop(),a=n.replace(i,"");return(r=r.replace(/^\.\/|^\./,"")).length>0&&!r.endsWith("/")&&(r+="/"),k(""+a+r+e,{id:t})})),L(this,"_buildUrlFromTemplate",(function(e,t){return k(e.url,{index:t,time:(t-1)*e.duration*e.customData.timescale,bitrate:e.customData.bitrate})})),this._parseTracks(e,t,n),this._tracks.length>0&&(this._tracks.sort((function(e,t){return e.customData.bitrate-t.customData.bitrate})),this.selectTrack(this._tracks[this._tracks.length-1]))}var t=e.prototype;return t.selectTrack=function(e){this._tracks.forEach((function(t){return t.index===e.index?t.active=!0:t.active=!1}))},t.getTracks=function(){return this._tracks},t.getActiveTrack=function(){return this._tracks.find((function(e){return e.active}))},t.getThumbnail=function(e){var t=this.getActiveTrack(),n=t.duration,r=t.rows,i=t.cols,a=t.sliceWidth,o=t.sliceHeight,s=t.customData,l=Math.floor(e/n)+s.startNumber,u=e%n,p=Math.floor(u*r*i/n);return new c.ThumbnailInfo({width:Math.floor(a),height:Math.floor(o),x:Math.floor(p%i)*a,y:Math.floor(p/i)*o,url:this._buildUrlFromTemplate(t,l)})},e}();function N(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function U(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){N(a,r,i,o,s,"next",e)}function s(e){N(a,r,i,o,s,"throw",e)}o(void 0)}))}}function F(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K="error",G="adaptation",z="buffering",W="drmsessionupdate",Y="emsg",q=function(e){var t,n;n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.createAdapter=function(e,t,n){var r=c.Utils.Object.copyDeep(g);if(c.Utils.Object.hasPropertyPath(n,"text.useNativeTextTrack")&&(r.textTrackVisibile=c.Utils.Object.getPropertyPath(n,"text.useNativeTextTrack")),c.Utils.Object.hasPropertyPath(n,"text.useShakaTextTrackDisplay")&&(r.useShakaTextTrackDisplay=c.Utils.Object.getPropertyPath(n,"text.useShakaTextTrackDisplay"),r.textTrackVisibile=r.textTrackVisibile||r.useShakaTextTrackDisplay),c.Utils.Object.hasPropertyPath(n,"streaming")){var i=n.streaming;"boolean"==typeof i.forceBreakStall&&(r.forceBreakStall=i.forceBreakStall),"boolean"==typeof i.lowLatencyMode&&(r.lowLatencyMode=i.lowLatencyMode),"boolean"==typeof i.trackEmsgEvents&&(r.trackEmsgEvents=i.trackEmsgEvents),"boolean"==typeof i.switchDynamicToStatic&&(r.switchDynamicToStatic=i.switchDynamicToStatic)}if(c.Utils.Object.hasPropertyPath(n,"sources.options")){var a=n.sources.options;r.forceRedirectExternalStreams=a.forceRedirectExternalStreams,r.redirectExternalStreamsHandler=a.redirectExternalStreamsHandler,r.redirectExternalStreamsTimeout=a.redirectExternalStreamsTimeout}if(c.Utils.Object.hasPropertyPath(n,"abr")){var o=n.abr;"boolean"==typeof o.enabled&&(r.shakaConfig.abr.enabled=o.enabled),"boolean"==typeof o.capLevelToPlayerSize&&(r.capLevelToPlayerSize=o.capLevelToPlayerSize),o.defaultBandwidthEstimate&&(r.shakaConfig.abr.defaultBandwidthEstimate=o.defaultBandwidthEstimate),o.restrictions&&c.Utils.Object.createPropertyPath(r,"abr.restrictions",o.restrictions)}return c.Utils.Object.hasPropertyPath(n,"playback.options.html5.dash")&&(c.Utils.Object.mergeDeep(r.shakaConfig,n.playback.options.html5.dash),c.Utils.Object.hasPropertyPath(r.shakaConfig,"manifest.dash.defaultPresentationDelay")&&(r.shakaConfig.manifest.defaultPresentationDelay=r.shakaConfig.manifest.dash.defaultPresentationDelay,delete r.shakaConfig.manifest.dash.defaultPresentationDelay)),r.network=n.network,new this(e,t,r)},o.canPlayType=function(e){var t="string"==typeof e&&e.toLowerCase()===o._dashMimeType&&o.isMSESupported();return o._logger.debug("canPlayType result for mimeType: "+e+" is "+t.toString()),t};var r,i,a=o.prototype;function o(t,n,r){var i,a;return void 0===r&&(r={}),o._logger.debug("Creating adapter. Shaka version: "+d.a.Player.version),H(V(a=e.call(this,t,n,r)||this),"_shakaLib",d.a),H(V(a),"_adapterEventsBindings",((i={})[K]=function(e){return a._onError(e)},i[G]=function(){return a._onAdaptation()},i[z]=function(e){return a._onBuffering(e)},i[W]=function(){return a._onDrmSessionUpdate()},i[Y]=function(e){return a._onEmsg(e)},i[c.EventType.WAITING]=function(){return a._onWaiting()},i[c.EventType.PLAYING]=function(){return a._onPlaying()},i)),H(V(a),"_buffering",!1),H(V(a),"_waitingSent",!1),H(V(a),"_playingSent",!1),H(V(a),"_videoSizeUpdateTimer",null),H(V(a),"_stallInterval",null),H(V(a),"VIDEO_ERROR_CODE",3016),H(V(a),"_lastTimeDetach",NaN),H(V(a),"_requestFilterError",!1),H(V(a),"_responseFilterError",!1),H(V(a),"_isDestroyInProgress",!1),H(V(a),"_isStartOver",!0),H(V(a),"_seekRangeStart",0),H(V(a),"_isLive",!1),H(V(a),"_isStaticLive",!1),H(V(a),"_selectedVideoTrack",null),a._config=c.Utils.Object.mergeDeep({},g,a._config),a._init(),a}return a.setMaxBitrate=function(e){this._hasLowerOrEqualBitrate(e)&&this._shaka.configure({abr:{restrictions:{maxBandwidth:e}}})},a._getSortedTracks=function(){return this._shaka.getVariantTracks().map((function(e){return{id:e.id,bandwidth:e.bandwidth,active:e.active}})).sort((function(e,t){return e.bandwidth-t.bandwidth}))},a._hasLowerOrEqualBitrate=function(e){return this._getSortedTracks()[0].bandwidth<=e},o.canPlayDrm=function(e,t){o._availableDrmProtocol=[];for(var n,r=F(o._drmProtocols);!(n=r()).done;){var i=n.value;if(i.isConfigured(e,t)){o._availableDrmProtocol.push(i);break}}if(!o._availableDrmProtocol.length)for(var a,s=F(o._drmProtocols);!(a=s()).done;){var l=a.value;l.canPlayDrm(e)&&o._availableDrmProtocol.push(l)}return!!o._availableDrmProtocol.length},o.isSupported=function(){var e=!1;window.VTTCue||(e=!0),d.a.polyfill.installAll();var t=d.a.Player.isBrowserSupported();return e&&(window.VTTCue=void 0),o._logger.debug("isSupported:"+t),t},a._init=function(){d.a.polyfill.installAll(),this._shaka=new d.a.Player,this._config.useShakaTextTrackDisplay&&this._shaka.setVideoContainer(c.Utils.Dom.getElementBySelector(".playkit-subtitles")),this._maybeSetFilters(),this._maybeSetDrmConfig(),this._maybeBreakStalls(),this._shaka.configure(this._config.shakaConfig),this._addBindings()},a._clearStallInterval=function(){this._stallInterval&&(clearInterval(this._stallInterval),this._stallInterval=null)},a._stallHandler=function(){var e=this;this._clearStallInterval();var t=function(){return Date.now()/1e3},n=t(),r=this._videoElement.currentTime;this._stallInterval=setInterval((function(){t()-n>3&&!e._videoElement.paused&&(r===e._videoElement.currentTime&&(o._logger.debug("stall found, break the stall"),e._videoElement.currentTime=parseFloat(e._videoElement.currentTime.toFixed(1))+.1),e._clearStallInterval()),r=e._videoElement.currentTime}),500)},a._maybeBreakStalls=function(){var e=this;this._config.forceBreakStall&&this._eventManager.listen(this._videoElement,c.EventType.SEEKING,(function(){return e._stallHandler()}))},a._maybeGetRedirectedUrl=function(e){var t=this._config.forceRedirectExternalStreams,n=this._config.redirectExternalStreamsTimeout,r=this._config.redirectExternalStreamsHandler;return new Promise((function(i){if(!t)return i(e);c.Utils.Http.jsonp(e,r,{timeout:n}).then((function(e){i(e)})).catch((function(){return i(e)}))}))},a._maybeSetFilters=function(){var e=this;"function"==typeof c.Utils.Object.getPropertyPath(this._config,"network.requestFilter")&&(o._logger.debug("Register request filter"),this._shaka.getNetworkingEngine().registerRequestFilter((function(t,n){if(Object.values(c.RequestType).includes(t)){var r,i={url:n.uris[0],body:n.body,headers:n.headers};try{r=e._config.network.requestFilter(t,i)}catch(e){r=Promise.reject(e)}return(r=r||Promise.resolve(i)).then((function(e){n.uris=[e.url],n.headers=e.headers,"boolean"==typeof e.withCredentials&&(n.allowCrossSiteCredentials=e.withCredentials),"POST"===n.method?n.body=e.body:e.body&&o._logger.warn("Request with "+n.method+" method cannot have body")})).catch((function(t){throw e._requestFilterError=!0,t}))}}))),"function"==typeof c.Utils.Object.getPropertyPath(this._config,"network.responseFilter")&&(o._logger.debug("Register response filter"),this._shaka.getNetworkingEngine().registerResponseFilter((function(t,n){if(Object.values(c.RequestType).includes(t)){var r,i=n.uri,a=n.data,o=n.headers,s={url:i,originalUrl:e._sourceObj.url,data:a,headers:o};try{r=e._config.network.responseFilter(t,s)}catch(e){r=Promise.reject(e)}return(r=r||Promise.resolve(s)).then((function(e){n.data=e.data})).catch((function(t){throw e._responseFilterError=!0,t}))}})))},a._maybeSetDrmConfig=function(){if(this._sourceObj&&this._sourceObj.drmData)for(var e,t={},n=F(o._availableDrmProtocol);!(e=n()).done;)e.value.setDrmPlayback(t,this._sourceObj.drmData),this._config.shakaConfig.drm&&c.Utils.Object.mergeDeep(t.drm,this._config.shakaConfig.drm),c.Utils.Object.mergeDeep(this._config.shakaConfig,t)},a._maybeCapLevelToPlayerSize=function(){var e=this;if(this._config.capLevelToPlayerSize){var t=function(){return{minHeight:0,maxHeight:e._videoHeight,minWidth:0,maxWidth:e._videoWidth,minBitrate:0,maxBitrate:1/0}};this._clearVideoUpdateTimer(),this._videoSizeUpdateTimer=setInterval((function(){return e._updateRestriction(t())}),1e3),this._updateRestriction(t())}},a._maybeApplyAbrRestrictions=function(){this._config.capLevelToPlayerSize||(this._clearVideoUpdateTimer(),c.Utils.Object.hasPropertyPath(this._config,"abr.restrictions")&&this._updateRestriction(this._config.abr.restrictions))},a._updateRestriction=function(e){var t=this._getRestrictionShakaConfig(e);this._shaka.configure({abr:{restrictions:t}})},a._getRestrictionShakaConfig=function(e){var t=this,n=function(e){var n=t._getVideoTracks();return Math.min.apply(null,n.map((function(t){return t[e]})))},r={};if(e){var i=e.maxHeight,a=e.maxWidth,s=e.maxBitrate,l=e.minHeight,u=e.minWidth,c=e.minBitrate,p=Math.max(l,0),d=Math.max(i,n("height"));d>=p?(r.minHeight=p,r.maxHeight=d):o._logger.warn("Invalid maxHeight restriction, maxHeight must be greater than minHeight",l,i);var f=Math.max(u,0),h=Math.max(a,n("width"));h>=f?(r.minWidth=f,r.maxWidth=h):o._logger.warn("Invalid maxWidth restriction, maxWidth must be greater than minWidth",u,a);var g=Math.max(c,0),y=Math.max(s,n("bandwidth"));y>=g?(r.minBandwidth=g,r.maxBandwidth=y):o._logger.warn("Invalid maxBitrate restriction, maxBitrate must be greater than minBitrate",c,s)}return r},a.attachMediaSource=function(){this._shaka||(this._videoElement&&this._videoElement.src&&(c.Utils.Dom.setAttribute(this._videoElement,"src",""),c.Utils.Dom.removeAttribute(this._videoElement,"src")),this._init())},a.detachMediaSource=function(){var e=this;return this._shaka?(0===Math.floor(this.duration-this.currentTime)?this._lastTimeDetach=0:this.currentTime>0&&(this._lastTimeDetach=this.currentTime),this._reset().then((function(){e._shaka=null,e._loadPromise=null}))):Promise.resolve()},a._clearVideoUpdateTimer=function(){this._videoSizeUpdateTimer&&(clearInterval(this._videoSizeUpdateTimer),this._videoSizeUpdateTimer=null)},a._addBindings=function(){var e=this;this._eventManager.listen(this._shaka,G,this._adapterEventsBindings.adaptation),this._eventManager.listen(this._shaka,K,this._adapterEventsBindings.error),this._eventManager.listen(this._shaka,W,this._adapterEventsBindings.drmsessionupdate),this._eventManager.listen(this._videoElement,c.EventType.WAITING,this._adapterEventsBindings.waiting),this._eventManager.listen(this._videoElement,c.EventType.PLAYING,this._adapterEventsBindings.playing),this._eventManager.listen(this._videoElement,c.EventType.LOADED_DATA,(function(){return e._onLoadedData()})),this._eventManager.listenOnce(this._videoElement,c.EventType.PLAYING,(function(){e._eventManager.listen(e._shaka,z,e._adapterEventsBindings.buffering)})),this._config.trackEmsgEvents&&this._eventManager.listen(this._shaka,Y,this._adapterEventsBindings.emsg),this._shaka.getNetworkingEngine().registerResponseFilter((function(t,n){switch(t){case d.a.net.NetworkingEngine.RequestType.SEGMENT:e._trigger(c.EventType.FRAG_LOADED,{miliSeconds:n.timeMs,bytes:n.data.byteLength,url:n.uri}),e.isLive()&&e._dispatchNativeEvent(c.EventType.DURATION_CHANGE);break;case d.a.net.NetworkingEngine.RequestType.MANIFEST:e._parseManifest(n.data),e._playbackActualUri=n.uri,e._trigger(c.EventType.MANIFEST_LOADED,{miliSeconds:n.timeMs}),setTimeout((function(){var t,r;e._isLive=e._isLive||(null==(t=e._shaka)?void 0:t.isLive()),e._isLive&&!(null==(r=e._shaka)?void 0:r.isLive())&&!e._isStaticLive&&e._config.switchDynamicToStatic&&(e._sourceObj.url=n.uri,e._switchFromDynamicToStatic())}))}}))},a._onLoadedData=function(){var e=this;this._setLowLatencyMode();var t=this.getSegmentDuration();this._seekRangeStart=this._shaka.seekRange().start,this._startOverTimeout=setTimeout((function(){e._shaka.seekRange().start-e._seekRangeStart>=t&&(e._isStartOver=!1)}),1e3*(t+1))},a._switchFromDynamicToStatic=function(){var e=U(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o._logger.info("Switching from dynamic manifest to static"),this._dispatchNativeEvent(c.EventType.WAITING),t=this._videoElement.currentTime-this._seekRangeStart,n=this.isAdaptiveBitrateEnabled(),r=this._videoElement.paused,e.next=7,this.detachMediaSource();case 7:return this._isStaticLive=!0,this._isLive=!0,this.attachMediaSource(),e.next=12,this.load();case 12:this._videoElement.currentTime=t,r||this._videoElement.play(),n?this._onAdaptation():this._selectedVideoTrack&&this.selectVideoTrack(this._selectedVideoTrack);case 15:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),a._setLowLatencyMode=function(){this._shaka.configure({streaming:{lowLatencyMode:"boolean"==typeof this._config.lowLatencyMode?this._config.lowLatencyMode:this.isLive()}})},a._parseManifest=function(e){!this._manifestParser&&O.isValid()&&(o._logger.debug("Creating parser for the first time"),this._manifestParser=new O(e),this._manifestParser.parseManifest())},a.load=function(){var e=U(regeneratorRuntime.mark((function e(t){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._loadPromise){e.next=5;break}return e.next=3,this._removeMediaKeys();case 3:this._shaka.attach(this._videoElement),this._loadPromise=new Promise((function(e,r){if(n._sourceObj&&n._sourceObj.url){n._trigger(c.EventType.ABR_MODE_CHANGED,{mode:n.isAdaptiveBitrateEnabled()?"auto":"manual"});var i=t&&t>-1?t:void 0;i=isNaN(n._lastTimeDetach)?i:n._lastTimeDetach,n._lastTimeDetach=NaN,n._maybeGetRedirectedUrl(n._sourceObj.url).then((function(e){return n._shaka.load(e,i)})).then((function(){var t={tracks:n._getParsedTracks()};n._maybeCapLevelToPlayerSize(),o._logger.debug("The source has been loaded successfully"),e(t)})).catch((function(e){r(new c.Error(n._isDestroyInProgress?c.Error.Severity.RECOVERABLE:e.severity,e.category,e.code,e.data))}))}}));case 5:return e.abrupt("return",this._loadPromise);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),a.destroy=function(){var t=this;return this._isDestroyInProgress=!0,new Promise((function(n,r){e.prototype.destroy.call(t).then((function(){o._logger.debug("destroy"),t._loadPromise=null,t._adapterEventsBindings={},t._reset().then((function(e){t._isDestroyInProgress=!1,n(e)})).catch((function(e){t._isDestroyInProgress=!1,r(e)}))}))}))},a.getThumbnail=function(e){if(this._thumbnailController)return this._thumbnailController.getThumbnail(e)},a._reset=function(){return this._buffering=!1,this._waitingSent=!1,this._playingSent=!1,this._isLive=!1,this._isStaticLive=!1,this._requestFilterError=!1,this._responseFilterError=!1,this._manifestParser=null,this._thumbnailController=null,this._clearStallInterval(),this._clearVideoUpdateTimer(),clearTimeout(this._startOverTimeout),this._eventManager&&this._eventManager.removeAll(),this._shaka?this._shaka.destroy():Promise.resolve()},a._removeMediaKeys=function(){var e=U(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._videoElement||!this._videoElement.mediaKeys){e.next=16;break}return e.prev=1,o._logger.debug("Removing mediaKeys from the video element"),e.next=5,this._videoElement.setMediaKeys(null);case 5:o._logger.debug("mediaKeys removed"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),this._logger.warn("mediaKeys not cleared");case 11:return e.prev=11,e.abrupt("return",Promise.resolve());case 14:e.next=17;break;case 16:return e.abrupt("return",Promise.resolve());case 17:case"end":return e.stop()}}),e,this,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}(),a._getVideoTracks=function(){var e=this._shaka.getVariantTracks(),t=this._getActiveTrack();return e.filter((function(e){return e.audioId===t.audioId}))},a._getActiveTrack=function(){return this._shaka.getVariantTracks().find((function(e){return e.active}))},a._getAudioTracks=function(){var e=this._shaka.getVariantTracks(),t=this._shaka.getAudioLanguagesAndRoles();return t.forEach((function(t){var n=e.filter((function(e){return e.language===t.language})),r=n.map((function(e){return e.id})).join("_"),i=n.some((function(e){return e.active}));t.id=r,t.label=n[0].label,t.active=i})),t},a._getParsedTracks=function(){if(this._shaka){var e=this._getParsedVideoTracks(),t=this._getParsedAudioTracks(),n=this._getParsedTextTracks(),r=this._getParsedImageTracks();return e.concat(t).concat(n).concat(r)}return[]},a._getParsedVideoTracks=function(){var e=this._getVideoTracks(),t=[];if(e)for(var n=0;n<e.length;n++){var r={id:e[n].id,bandwidth:e[n].videoBandwidth||e[n].bandwidth,width:e[n].width,height:e[n].height,active:e[n].active,index:n};t.push(new c.VideoTrack(r))}return t},a._getParsedAudioTracks=function(){var e=this._getAudioTracks(),t=[];if(e)for(var n=0;n<e.length;n++){var r={id:e[n].id,active:e[n].active,label:e[n].label,language:e[n].language,index:n};t.push(new c.AudioTrack(r))}return t},a._getParsedTextTracks=function(){for(var e,t=[],n=F(this._shaka.getTextTracks());!(e=n()).done;){var r=e.value,i=r.kind?r.kind+"s":"";i=""===i&&this._config.useShakaTextTrackDisplay?"captions":i;var a={id:r.id,kind:i,active:!1,default:r.primary,label:r.label,language:r.language};t.push(new c.TextTrack(a))}return t},a._getParsedImageTracks=function(){var e,t,n=null==(e=this._manifestParser)?void 0:e.getImageSet(),r=(null==(t=this._manifestParser)?void 0:t.getBaseUrl())||"";return n?(this._thumbnailController=new M(n,this._playbackActualUri,r),this._thumbnailController.getTracks()):[]},a.selectVideoTrack=function(e){if(this._shaka){var t=this._getVideoTracks();if(e instanceof c.VideoTrack&&t){var n=t[e.index];n&&(this.isAdaptiveBitrateEnabled()&&(this._shaka.configure({abr:{enabled:!1}}),this._trigger(c.EventType.ABR_MODE_CHANGED,{mode:"manual"})),n.active||(this._selectedVideoTrack=e,this._shaka.selectVariantTrack(t[e.index],!0),this._onTrackChanged(e)))}}},a.selectAudioTrack=function(e){this._shaka&&e instanceof c.AudioTrack&&!e.active&&(this._shaka.selectAudioLanguage(e.language),this._onTrackChanged(e))},a.selectTextTrack=function(e){this._shaka&&e instanceof c.TextTrack&&!e.active&&("subtitles"===e.kind||"captions"===e.kind)&&(this._shaka.setTextTrackVisibility(this._config.textTrackVisibile),this._shaka.selectTextLanguage(e.language),this._onTrackChanged(e))},a.selectImageTrack=function(e){this._shaka&&this._thumbnailController&&e instanceof c.ImageTrack&&!e.active&&(this._thumbnailController.selectTrack(e),this._onTrackChanged(c.ImageTrack))},a.hideTextTrack=function(){this._shaka&&this._shaka.setTextTrackVisibility(!1)},a.enableAdaptiveBitrate=function(){this._shaka&&!this.isAdaptiveBitrateEnabled()&&(this._trigger(c.EventType.ABR_MODE_CHANGED,{mode:"auto"}),this._shaka.configure({abr:{enabled:!0}}))},a.isAdaptiveBitrateEnabled=function(){return!!this._shaka&&this._shaka.getConfiguration().abr.enabled},a.applyABRRestriction=function(e){if(c.Utils.Object.createPropertyPath(this._config,"abr.restrictions",e),this._maybeApplyAbrRestrictions(),!this.isAdaptiveBitrateEnabled()){var t=this._getParsedVideoTracks(),n=Object(c.filterTracksByRestriction)(t,this._config.abr.restrictions);n.length&&(n.find((function(e){return e.active}))||this.selectVideoTrack(n[0]))}},a._getLiveEdge=function(){return this._shaka?this._shaka.seekRange().end:NaN},a.seekToLiveEdge=function(){this._shaka&&this._videoElement.readyState>0&&(this._videoElement.currentTime=this._getLiveEdge())},a.isLive=function(){var e;return(null==(e=this._shaka)?void 0:e.isLive())||this._isLive},a.getSegmentDuration=function(){return this._shaka?this._shaka.getStats().maxSegmentDuration:0},a._onAdaptation=function(){var e=this._getParsedVideoTracks().find((function(e){return e.active}));this._onTrackChanged(e)},a._onError=function(e){if(e&&e.detail){var t=e.detail;if(t.code===this.VIDEO_ERROR_CODE)return;(this._requestFilterError||this._responseFilterError)&&t.data[0]instanceof d.a.util.Error&&(t=t.data[0],this._requestFilterError?this._requestFilterError=!1:this._responseFilterError=!1),this._trigger(c.EventType.ERROR,new c.Error(t.severity,t.category,t.code,t.data)),o._logger.error(t),t.severity===c.Error.Severity.CRITICAL&&this.destroy()}},a._onBuffering=function(e){e.buffering?this._waitingSent||(this._dispatchNativeEvent(c.EventType.WAITING),this._buffering=!0):(this._buffering=!1,this._videoElement.paused||this._playingSent||this._dispatchNativeEvent(c.EventType.PLAYING))},a._dispatchNativeEvent=function(e){var t;"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),this._videoElement.dispatchEvent(t)},a._onDrmSessionUpdate=function(){this._trigger(c.EventType.DRM_LICENSE_LOADED,{licenseTime:this._shaka.getStats().licenseTime,scheme:this._shaka.drmInfo().keySystem})},a._onEmsg=function(e){var t=e.detail,n=e.type,r=Array.from(this._videoElement.textTracks).find((function(e){return e.label===n}));r||(r=this._videoElement.addTextTrack(c.TextTrack.KIND.METADATA,n));var i=t.startTime,a=t.endTime,o=t.id,s=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["startTime","endTime","id"]),l=new c.TimedMetadata(i,a,o,c.TimedMetadata.TYPE.EMSG,s),u=Object(c.createTextTrackCue)(l);r.addCue(u),this._trigger(c.EventType.TIMED_METADATA_ADDED,{cues:[l]})},a._onWaiting=function(){this._waitingSent=!0,this._playingSent=!1},a._onPlaying=function(){this._playingSent=!0,this._waitingSent=!1,this._buffering&&this._dispatchNativeEvent(c.EventType.WAITING)},a.getStartTimeOfDvrWindow=function(){return this.isLive()&&this._shaka?(this._isStartOver?this._seekRangeStart:this._shaka.seekRange().start)+this._shaka.getConfiguration().streaming.safeSeekOffset:0},a.getDrmInfo=function(){var e=this._shaka.drmInfo();if(e){var t=e.licenseServerUri,n=e.keySystem,r=e.serverCertificateUri,i={licenseUrl:t,scheme:n};return r&&(i.certificate=r),i}return null},r=o,(i=[{key:"_videoWidth",get:function(){var e,t=this._videoElement;return t&&(e=t.width||t.clientWidth||t.offsetWidth,e*=this._contentScaleFactor),e}},{key:"_videoHeight",get:function(){var e,t=this._videoElement;return t&&(e=t.height||t.clientHeight||t.offsetHeight,e*=this._contentScaleFactor),e}},{key:"_contentScaleFactor",get:function(){var e=1;try{e=window.devicePixelRatio}catch(e){o._logger.debug("failed reading devicePixelRatio, assume 1")}return e}},{key:"liveDuration",get:function(){return this._getLiveEdge()}},{key:"targetBuffer",get:function(){var e=NaN;return this._shaka?(e=this.isLive()?this._getLiveEdge()-this._videoElement.currentTime:this._videoElement.duration-this._videoElement.currentTime,e=Math.min(e,this._shaka.getConfiguration().streaming.bufferingGoal+this._shaka.getStats().maxSegmentDuration)):NaN}}])&&B(r.prototype,i),o}(c.BaseMediaSourceAdapter);H(q,"id","DashAdapter"),H(q,"_logger",c.BaseMediaSourceAdapter.getLogger(q.id)),H(q,"_dashMimeType","application/dash+xml"),H(q,"_drmProtocols",[f,h]),H(q,"_availableDrmProtocol",[]);var X="1.34.2",$="@playkit-js/playkit-js-dash";t.default=q,q.isSupported()&&Object(c.registerMediaSourceAdapter)(q)}]))},function(e,t,n){(function(e){
/*
 @license
 Shaka Player
 Copyright 2016 Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
!function(){var n="undefined"!=typeof window?window:e,r={};for(var i in function(e,t,n){
/*
 @license
 Shaka Player
 Copyright 2016 Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
var r;function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var a="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var o=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof e&&e,"object"==typeof self&&self,"object"==typeof t&&t];for(var r=0;r<n.length;++r){var i=n[r];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this);function s(e,t){if(t)e:{var n=o;e=e.split(".");for(var r=0;r<e.length-1;r++){var i=e[r];if(!(i in n))break e;n=n[i]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&a(n,e,{configurable:!0,writable:!0,value:t})}}function l(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function u(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:i(e)}}function c(e){if(!(e instanceof Array)){e=u(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}s("Symbol",(function(e){function t(e,t){this.g=e,a(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0;return function e(i){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(n+(i||"")+"_"+r++,i)}})),s("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var r=o[t[n]];"function"==typeof r&&"function"!=typeof r.prototype[e]&&a(r.prototype,e,{configurable:!0,writable:!0,value:function(){return l(i(this))}})}return e}));var p,d="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)p=Object.setPrototypeOf;else{var f;e:{var h={};try{h.__proto__={a:!0},f=h.a;break e}catch(e){}f=!1}p=f?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var g=p;function y(e,t){if(e.prototype=d(t.prototype),e.prototype.constructor=e,g)g(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(e,n,r)}else e[n]=t[n];e.xh=t.prototype}function v(){this.o=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.u=this.i=null}function m(e){if(e.o)throw new TypeError("Generator is already running");e.o=!0}function b(e,t){e.i={Ee:t,Le:!0},e.g=e.m||e.j}function _(e,t,n){return e.g=n,{value:t}}function E(e){e.g=0}function k(e,t,n){e.m=t,null!=n&&(e.j=n)}function T(e){e.m=0,e.j=2}function A(e,t){e.g=t,e.m=0}function w(e){e.m=0;var t=e.i.Ee;return e.i=null,t}function S(e){e.u=[e.i],e.m=0,e.j=0}function C(e,t){var n=e.u.splice(0)[0];(n=e.i=e.i||n)?n.Le?e.g=e.m||e.j:null!=n.A&&e.j<n.A?(e.g=n.A,e.i=null):e.g=e.j:e.g=t}function x(e){this.g=new v,this.h=e}function I(e,t,n,r){try{var i=t.call(e.g.l,n);if(!(i instanceof Object))throw new TypeError("Iterator result "+i+" is not an object");if(!i.done)return e.g.o=!1,i;var a=i.value}catch(t){return e.g.l=null,b(e.g,t),P(e)}return e.g.l=null,r.call(e.g,a),P(e)}function P(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.o=!1,{value:t.value,done:!1}}catch(t){e.g.h=void 0,b(e.g,t)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.Le)throw t.Ee;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function D(e){this.next=function(t){return m(e.g),e.g.l?t=I(e,e.g.l.next,t,e.g.s):(e.g.s(t),t=P(e)),t},this.throw=function(t){return m(e.g),e.g.l?t=I(e,e.g.l.throw,t,e.g.s):(b(e.g,t),t=P(e)),t},this.return=function(t){return function(e,t){m(e.g);var n=e.g.l;return n?I(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),P(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function R(e){return function(e){function t(t){return e.next(t)}function n(t){return e.throw(t)}return new Promise((function(r,i){!function e(a){a.done?r(a.value):Promise.resolve(a.value).then(t,n).then(e,i)}(e.next())}))}(new D(new x(e)))}function O(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function M(e,t,n){e instanceof String&&(e=String(e));for(var r=e.length,i=0;i<r;i++){var a=e[i];if(t.call(n,a,i,e))return{Je:i,v:a}}return{Je:-1,v:void 0}}function N(e,t,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}function U(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}v.prototype.s=function(e){this.h=e},v.prototype.return=function(e){this.i={return:e},this.g=this.j},v.prototype.A=function(e){this.g=e},s("Promise",(function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.o=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.g=null}function r(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.h=function(e){if(null==this.g){this.g=[];var t=this;this.i((function(){t.l()}))}this.g.push(e)};var i=o.setTimeout;n.prototype.i=function(e){i(e,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.j(e)}}}this.g=null},n.prototype.j=function(e){this.i((function(){throw e}))},t.prototype.j=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.F),reject:e(this.l)}},t.prototype.F=function(e){if(e===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.H(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.D(e):this.m(e)}},t.prototype.D=function(e){var t=void 0;try{t=e.then}catch(e){return void this.l(e)}"function"==typeof t?this.J(t,e):this.m(e)},t.prototype.l=function(e){this.s(2,e)},t.prototype.m=function(e){this.s(1,e)},t.prototype.s=function(e,t){if(0!=this.h)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.h);this.h=e,this.i=t,2===this.h&&this.G(),this.u()},t.prototype.G=function(){var e=this;i((function(){if(e.B()){var t=o.console;void 0!==t&&t.error(e.i)}}),1)},t.prototype.B=function(){if(this.o)return!1;var e=o.CustomEvent,t=o.Event,n=o.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=o.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.u=function(){if(null!=this.g){for(var e=0;e<this.g.length;++e)a.h(this.g[e]);this.g=null}};var a=new n;return t.prototype.H=function(e){var t=this.j();e.Lc(t.resolve,t.reject)},t.prototype.J=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(e){a(e)}}:t}var i,a,o=new t((function(e,t){i=e,a=t}));return this.Lc(r(e,i),r(n,a)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Lc=function(e,t){function n(){switch(r.h){case 1:e(r.i);break;case 2:t(r.i);break;default:throw Error("Unexpected state: "+r.h)}}var r=this;null==this.g?a.h(n):this.g.push(n),this.o=!0},t.resolve=r,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var i=u(e),a=i.next();!a.done;a=i.next())r(a.value).Lc(t,n)}))},t.all=function(e){var n=u(e),i=n.next();return i.done?r([]):new t((function(e,t){function a(t){return function(n){o[t]=n,0==--s&&e(o)}}var o=[],s=0;do{o.push(void 0),s++,r(i.value).Lc(a(o.length-1),t),i=n.next()}while(!i.done)}))},t})),s("WeakMap",(function(e){function t(e){if(this.g=(l+=Math.random()+1).toString(),e){e=u(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function r(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function i(e){if(!L(e,s)){var t=new n;a(e,s,{value:t})}}function o(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&i(e),t(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),n=Object.seal({}),r=new e([[t,2],[n,3]]);return 2==r.get(t)&&3==r.get(n)&&(r.delete(t),r.set(n,4),!r.has(t)&&4==r.get(n))}catch(e){return!1}}())return e;var s="$jscomp_hidden_"+Math.random();o("freeze"),o("preventExtensions"),o("seal");var l=0;return t.prototype.set=function(e,t){if(!r(e))throw Error("Invalid WeakMap key");if(i(e),!L(e,s))throw Error("WeakMap key fail: "+e);return e[s][this.g]=t,this},t.prototype.get=function(e){return r(e)&&L(e,s)?e[s][this.g]:void 0},t.prototype.has=function(e){return r(e)&&L(e,s)&&L(e[s],this.g)},t.prototype.delete=function(e){return!!(r(e)&&L(e,s)&&L(e[s],this.g))&&delete e[s][this.g]},t})),s("Map",(function(e){function t(){var e={};return e.Qa=e.next=e.head=e}function n(e,t){var n=e.g;return l((function(){if(n){for(;n.head!=e.g;)n=n.Qa;for(;n.next!=n.head;)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}}))}function r(e,t){var n=t&&typeof t;"object"==n||"function"==n?a.has(t)?n=a.get(t):(n=""+ ++o,a.set(t,n)):n="p_"+t;var r=e.h[n];if(r&&L(e.h,n))for(e=0;e<r.length;e++){var i=r[e];if(t!=t&&i.key!=i.key||t===i.key)return{id:n,list:r,index:e,ga:i}}return{id:n,list:r,index:-1,ga:void 0}}function i(e){if(this.h={},this.g=t(),this.size=0,e){e=u(e);for(var n;!(n=e.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(u([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var r=n.entries(),i=r.next();return!i.done&&i.value[0]==t&&"s"==i.value[1]&&!((i=r.next()).done||4!=i.value[0].x||"t"!=i.value[1]||!r.next().done)}catch(e){return!1}}())return e;var a=new WeakMap;i.prototype.set=function(e,t){var n=r(this,e=0===e?0:e);return n.list||(n.list=this.h[n.id]=[]),n.ga?n.ga.value=t:(n.ga={next:this.g,Qa:this.g.Qa,head:this.g,key:e,value:t},n.list.push(n.ga),this.g.Qa.next=n.ga,this.g.Qa=n.ga,this.size++),this},i.prototype.delete=function(e){return!(!(e=r(this,e)).ga||!e.list)&&(e.list.splice(e.index,1),e.list.length||delete this.h[e.id],e.ga.Qa.next=e.ga.next,e.ga.next.Qa=e.ga.Qa,e.ga.head=null,this.size--,!0)},i.prototype.clear=function(){this.h={},this.g=this.g.Qa=t(),this.size=0},i.prototype.has=function(e){return!!r(this,e).ga},i.prototype.get=function(e){return(e=r(this,e).ga)&&e.value},i.prototype.entries=function(){return n(this,(function(e){return[e.key,e.value]}))},i.prototype.keys=function(){return n(this,(function(e){return e.key}))},i.prototype.values=function(){return n(this,(function(e){return e.value}))},i.prototype.forEach=function(e,t){for(var n,r=this.entries();!(n=r.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},i.prototype[Symbol.iterator]=i.prototype.entries;var o=0;return i})),s("Set",(function(e){function t(e){if(this.g=new Map,e){e=u(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(u([t]));if(!n.has(t)||1!=n.size||n.add(t)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1;var r=n.entries(),i=r.next();return!i.done&&i.value[0]==t&&i.value[1]==t&&(!(i=r.next()).done&&i.value[0]!=t&&4==i.value[0].x&&i.value[1]==i.value[0]&&r.next().done)}catch(e){return!1}}()?e:(t.prototype.add=function(e){return e=0===e?0:e,this.g.set(e,e),this.size=this.g.size,this},t.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(e){return this.g.has(e)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var n=this;this.g.forEach((function(r){return e.call(t,r,r,n)}))},t)})),s("Array.prototype.findIndex",(function(e){return e||function(e,t){return M(this,e,t).Je}})),s("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),s("Array.prototype.includes",(function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var r=n.length;for(0>(t=t||0)&&(t=Math.max(t+r,0));t<r;t++){var i=n[t];if(i===e||Object.is(i,e))return!0}return!1}})),s("String.prototype.includes",(function(e){return e||function(e,t){return-1!==N(this,e,"includes").indexOf(e,t||0)}})),s("Array.prototype.find",(function(e){return e||function(e,t){return M(this,e,t).v}})),s("String.prototype.startsWith",(function(e){return e||function(e,t){var n=N(this,e,"startsWith"),r=n.length,i=e.length;t=Math.max(0,Math.min(0|t,n.length));for(var a=0;a<i&&t<r;)if(n[t++]!=e[a++])return!1;return a>=i}})),s("Array.prototype.keys",(function(e){return e||function(){return U(this,(function(e){return e}))}}));var F="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var i in r)L(r,i)&&(e[i]=r[i])}return e};s("Object.assign",(function(e){return e||F})),s("Array.from",(function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var r=[],i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof i){e=i.call(e);for(var a=0;!(i=e.next()).done;)r.push(t.call(n,i.value,a++))}else for(i=e.length,a=0;a<i;a++)r.push(t.call(n,e[a],a));return r}})),s("Array.prototype.values",(function(e){return e||function(){return U(this,(function(e,t){return t}))}})),s("Promise.prototype.finally",(function(e){return e||function(e){return this.then((function(t){return Promise.resolve(e()).then((function(){return t}))}),(function(t){return Promise.resolve(e()).then((function(){throw t}))}))}})),s("Array.prototype.entries",(function(e){return e||function(){return U(this,(function(e,t){return[e,t]}))}})),s("String.prototype.repeat",(function(e){return e||function(e){var t=N(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}})),s("Number.isNaN",(function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}})),s("Object.values",(function(e){return e||function(e){var t,n=[];for(t in e)L(e,t)&&n.push(e[t]);return n}})),s("Math.log2",(function(e){return e||function(e){return Math.log(e)/Math.LN2}})),s("Math.trunc",(function(e){return e||function(e){if(e=Number(e),isNaN(e)||1/0===e||-1/0===e||0===e)return e;var t=Math.floor(Math.abs(e));return 0>e?-t:t}})),s("Object.entries",(function(e){return e||function(e){var t,n=[];for(t in e)L(e,t)&&n.push([t,e[t]]);return n}}));var j=this||self;function B(e,t){e=e.split(".");var n,r=j;e[0]in r||void 0===r.execScript||r.execScript("var "+e[0]);for(;e.length&&(n=e.shift());)e.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t}function V(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function H(e){return e.h/(1-Math.pow(e.g,e.i))}function K(){this.h=new V(2),this.j=new V(5),this.g=0,this.i=128e3,this.l=16e3}function G(){}function z(){}function W(){}function Y(e){var t=O.apply(1,arguments);X.has(e)||(X.add(e),W.apply(G,c(t)))}function q(){}V.prototype.sample=function(e,t){var n=Math.pow(this.g,e);t=t*(1-n)+n*this.h,isNaN(t)||(this.h=t,this.i+=e)},K.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},K.prototype.sample=function(e,t){if(!(t<this.l)){var n=8e3*t/e;e/=1e3,this.g+=t,this.h.sample(e,n),this.j.sample(e,n)}},K.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min(H(this.h),H(this.j))};var X=new Set;if(e.console&&e.console.log.bind){var $={},Q=($[1]=console.error.bind(console),$[2]=console.warn.bind(console),$[3]=console.info.bind(console),$[4]=console.log.bind(console),$[5]=console.debug.bind(console),$[6]=console.debug.bind(console),$);W=Q[2],z=Q[1]}function Z(e){if(J.has(e))return J.get(e);var t=MediaSource.isTypeSupported(e);return J.set(e,t),t}var J=new Map;function ee(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||e===t}function te(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}function ne(e,t,n){if(n||(n=ee),e.length!=t.length)return!1;t=t.slice();for(var r={},i=(e=u(e)).next();!i.done;r={md:r.md},i=e.next()){if(r.md=i.value,-1==(i=t.findIndex(function(e){return function(t){return n(e.md,t)}}(r))))return!1;t[i]=t[t.length-1],t.pop()}return 0==t.length}function re(e,t,n){if(n||(n=ee),e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function ie(e,t,n){this.startTime=e,this.direction=pe,this.endTime=t,this.payload=n,this.region=new Ee,this.position=null,this.positionAlign=oe,this.size=0,this.textAlign=se,this.writingMode=de,this.lineInterpretation=fe,this.line=null,this.lineHeight="",this.lineAlign=he,this.displayAlign=ue,this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=me,this.fontStyle=be,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textDecoration=[],this.wrapLine=!0,this.id="",this.nestedCues=[],this.lineBreak=this.isContainer=!1,this.cellResolution={columns:32,rows:15}}function ae(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.payload!=t.payload)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n)if("nestedCues"==n){if(!re(e.nestedCues,t.nestedCues,ae))return!1}else if("region"==n||"cellResolution"==n){for(var r in e[n])if(e[n][r]!=t[n][r])return!1}else if(Array.isArray(e[n])){if(!re(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1;return!0}ie.prototype.clone=function(){var e,t=new ie(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},B("shaka.text.Cue",ie);var oe="auto";ie.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:oe};var se="center",le={LEFT:"left",RIGHT:"right",CENTER:se,START:"start",END:"end"};ie.textAlign=le;var ue="after",ce={BEFORE:"before",CENTER:"center",AFTER:ue};ie.displayAlign=ce;var pe="ltr";ie.direction={HORIZONTAL_LEFT_TO_RIGHT:pe,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var de="horizontal-tb";ie.writingMode={HORIZONTAL_TOP_TO_BOTTOM:de,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var fe=0;ie.lineInterpretation={LINE_NUMBER:fe,PERCENTAGE:1};var he="start",ge={CENTER:"center",START:he,END:"end"};ie.lineAlign=ge;var ye={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};ie.defaultTextColor=ye;var ve={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};ie.defaultTextBackgroundColor=ve;var me=400;ie.fontWeight={NORMAL:me,BOLD:700};var be="normal",_e={NORMAL:be,ITALIC:"italic",OBLIQUE:"oblique"};function Ee(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=ke,this.scroll=Te}ie.fontStyle=_e,ie.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},B("shaka.text.CueRegion",Ee);var ke=1;Ee.units={PX:0,PERCENTAGE:ke,LINES:2};var Te="";function Ae(){}function we(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(Se(e)==Se(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;var n=xe(e);t=xe(t);for(var r=0;r<e.byteLength;r++)if(n[r]!=t[r])return!1;return!0}function Se(e){return e instanceof ArrayBuffer?e:e.buffer}function Ce(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function xe(e,t,n){return Pe(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function Ie(e,t,n){return Pe(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function Pe(e,t,n,r){var i=(e.byteOffset||0)+e.byteLength;return t=Math.max(0,Math.min((e.byteOffset||0)+t,i)),new r(Se(e),t,Math.min(t+Math.max(n,0),i)-t)}function De(e,t,n){var r=O.apply(3,arguments);this.severity=e,this.category=t,this.code=n,this.data=r,this.handled=!1}Ee.scrollMode={NONE:Te,UP:"up"},B("shaka.util.BufferUtils",Ae),Ae.toDataView=Ie,Ae.toUint8=xe,Ae.toArrayBuffer=Ce,Ae.equal=we,De.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null,"  ")},B("shaka.util.Error",De),De.Severity={RECOVERABLE:1,CRITICAL:2},De.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},De.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_SRC_EQUALS:2016,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,HLS_AES_128_INVALID_IV_LENGTH:4043,HLS_AES_128_INVALID_KEY_LENGTH:4044,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};
/*
 @license
 Copyright 2008 The Closure Library Authors
 SPDX-License-Identifier: Apache-2.0
*/
var Re=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");
/*
 @license
 Copyright 2006 The Closure Library Authors
 SPDX-License-Identifier: Apache-2.0
*/function Oe(e){var t;e instanceof Oe?(Le(this,e.Ea),this.pb=e.pb,this.Ha=e.Ha,Me(this,e.Kb),this.qa=e.qa,Ne(this,e.g.clone()),this.fb=e.fb):e&&(t=String(e).match(Re))?(Le(this,t[1]||"",!0),this.pb=Ue(t[2]||""),this.Ha=Ue(t[3]||"",!0),Me(this,t[4]),this.qa=Ue(t[5]||"",!0),Ne(this,t[6]||"",!0),this.fb=Ue(t[7]||"")):this.g=new ze(null)}function Le(e,t,n){e.Ea=n?Ue(t,!0):t,e.Ea&&(e.Ea=e.Ea.replace(/:$/,""))}function Me(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.Kb=t}else e.Kb=null}function Ne(e,t,n){t instanceof ze?e.g=t:(n||(t=Fe(t,Ke)),e.g=new ze(t))}function Ue(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Fe(e,t,n){return null!=e?(e=encodeURI(e).replace(t,je),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function je(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(r=Oe.prototype).Ea="",r.pb="",r.Ha="",r.Kb=null,r.qa="",r.fb="",r.toString=function(){var e=[],t=this.Ea;if(t&&e.push(Fe(t,Be,!0),":"),t=this.Ha){e.push("//");var n=this.pb;n&&e.push(Fe(n,Be,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.Kb)&&e.push(":",String(t))}return(t=this.qa)&&(this.Ha&&"/"!=t.charAt(0)&&e.push("/"),e.push(Fe(t,"/"==t.charAt(0)?He:Ve,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.fb)&&e.push("#",Fe(t,Ge)),e.join("")},r.resolve=function(e){var t=this.clone();"data"===t.Ea&&(t=new Oe);var n=!!e.Ea;n?Le(t,e.Ea):n=!!e.pb,n?t.pb=e.pb:n=!!e.Ha,n?t.Ha=e.Ha:n=null!=e.Kb;var r=e.qa;if(n)Me(t,e.Kb);else if(n=!!e.qa){if("/"!=r.charAt(0))if(this.Ha&&!this.qa)r="/"+r;else{var i=t.qa.lastIndexOf("/");-1!=i&&(r=t.qa.substr(0,i+1)+r)}if(".."==r||"."==r)r="";else if(-1!=r.indexOf("./")||-1!=r.indexOf("/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var a=[],o=0;o<r.length;){var s=r[o++];"."==s?i&&o==r.length&&a.push(""):".."==s?((1<a.length||1==a.length&&""!=a[0])&&a.pop(),i&&o==r.length&&a.push("")):(a.push(s),i=!0)}r=a.join("/")}}return n?t.qa=r:n=""!==e.g.toString(),n?Ne(t,e.g.clone()):n=!!e.fb,n&&(t.fb=e.fb),t},r.clone=function(){return new Oe(this)};var Be=/[#\/\?@]/g,Ve=/[#\?:]/g,He=/[#\?]/g,Ke=/[#\?@]/g,Ge=/#/g;function ze(e){this.g=e||null}function We(e){if(!e.la&&(e.la={},e.Oc=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var a=t[n].substring(0,r);i=t[n].substring(r+1)}else a=t[n];a=decodeURIComponent(a.replace(/\+/g," ")),i=i||"",e.add(a,decodeURIComponent(i.replace(/\+/g," ")))}}function Ye(e,t){return e.concat(t)}function qe(){}function Xe(e){return null!=e}function $e(e,t){if(0==t.length)return e;var n=t.map((function(e){return new Oe(e)}));return e.map((function(e){return new Oe(e)})).map((function(e){return n.map((function(t){return e.resolve(t)}))})).reduce(Ye,[]).map((function(e){return e.toString()}))}function Qe(e,t){return{keySystem:e,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:t||[],keyIds:new Set}}function Ze(e,t){if(1==t.length)return t[0];if(null!=(e=Je(e,t)))return e;throw new De(2,4,4025,t)}function Je(e,t){for(var n=u(nt[e]),r=n.next();!r.done;r=n.next()){r=r.value;for(var i=u(t),a=i.next();!a.done;a=i.next())if(a=a.value,r.test(a.trim()))return a.trim()}return e==et?"":null}(r=ze.prototype).la=null,r.Oc=null,r.add=function(e,t){We(this),this.g=null;var n=this.la.hasOwnProperty(e)?this.la[e]:null;return n||(this.la[e]=n=[]),n.push(t),this.Oc++,this},r.set=function(e,t){return We(this),this.g=null,this.la.hasOwnProperty(e)?this.la[e]=[t]:this.add(e,t),this},r.toString=function(){if(this.g)return this.g;if(!this.la)return"";var e,t=[];for(e in this.la)for(var n=encodeURIComponent(e),r=this.la[e],i=0;i<r.length;i++){var a=n;""!==r[i]&&(a+="="+encodeURIComponent(r[i])),t.push(a)}return this.g=t.join("&")},r.clone=function(){var e=new ze;if(e.g=this.g,this.la){var t,n={};for(t in this.la)n[t]=this.la[t].concat();e.la=n,e.Oc=this.Oc}return e};var et="text",tt={va:"video",Hc:"audio",X:et,Wb:"image",Gg:"application"},nt={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cx]$/,/^[du]dts$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvhe/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function rt(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function it(e){this.h=e,this.g=void 0}function at(e){this.h=e,this.g=null}function ot(e){this.h=e,this.g=null}function st(){return!(!e.MediaSource||!MediaSource.isTypeSupported)}function lt(e){return""!=vt().canPlayType(e)}function ut(){return!!navigator.userAgent.match(/Edge?\//)}function ct(){return yt("Xbox One")}function pt(){return yt("Tizen")}function dt(){return yt("Web0S")&&yt("Chrome/38.0.2125.122 Safari/537.36")}function ft(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!pt()&&!yt("PC=EOS")&&!yt("VirginMedia")&&!ht()&&!yt("AFT")}function ht(){return yt("PlayStation 4")}function gt(){if(!ft())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function yt(e){return(navigator.userAgent||"").includes(e)}function vt(){return bt||(mt||(mt=new ot((function(){bt=null}))),(bt=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(bt=document.createElement("video")),mt.N(1),bt)}rt.prototype.resolve=function(){},rt.prototype.reject=function(){},it.prototype.value=function(){return null==this.g&&(this.g=this.h()),this.g},at.prototype.N=function(t){var n=this;this.stop();var r=!0,i=null;return this.g=function(){e.clearTimeout(i),r=!1},i=e.setTimeout((function(){r&&n.h()}),1e3*t),this},at.prototype.stop=function(){this.g&&(this.g(),this.g=null)},ot.prototype.Mb=function(){return this.stop(),this.h(),this},ot.prototype.N=function(e){var t=this;return this.stop(),this.g=new at((function(){t.h()})).N(e),this},ot.prototype.Ca=function(e){var t=this;return this.stop(),this.g=new at((function(){t.g.N(e),t.h()})).N(e),this},ot.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},B("shaka.util.Timer",ot),ot.prototype.stop=ot.prototype.stop,ot.prototype.tickEvery=ot.prototype.Ca,ot.prototype.tickAfter=ot.prototype.N,ot.prototype.tickNow=ot.prototype.Mb;var mt=null,bt=null;function _t(){}function Et(t){if(!t)return"";if(239==(t=xe(t))[0]&&187==t[1]&&191==t[2]&&(t=t.subarray(3)),e.TextDecoder&&!ht())return(t=(new TextDecoder).decode(t)).includes("�")&&z('Decoded string contains an "unknown character" codepoint.  That probably means the UTF8 encoding was incorrect!'),t;for(var n="",r=0;r<t.length;++r){var i=65533;if(0==(128&t[r])?i=t[r]:t.length>=r+2&&192==(224&t[r])&&128==(192&t[r+1])?(i=(31&t[r])<<6|63&t[r+1],r+=1):t.length>=r+3&&224==(240&t[r])&&128==(192&t[r+1])&&128==(192&t[r+2])?(i=(15&t[r])<<12|(63&t[r+1])<<6|63&t[r+2],r+=2):t.length>=r+4&&240==(241&t[r])&&128==(192&t[r+1])&&128==(192&t[r+2])&&128==(192&t[r+3])&&(i=(7&t[r])<<18|(63&t[r+1])<<12|(63&t[r+2])<<6|63&t[r+3],r+=3),65535>=i)n+=String.fromCharCode(i);else{var a=1023&(i-=65536);n+=String.fromCharCode(55296+(i>>10)),n+=String.fromCharCode(56320+a)}}return n}function kt(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new De(2,2,2004);n=Math.floor(e.byteLength/2);var r=new Uint16Array(n);e=Ie(e);for(var i=0;i<n;i++)r[i]=e.getUint16(2*i,t);return St.value()(r)}function Tt(e){function t(e){return n.byteLength<=e||32<=n[e]&&126>=n[e]}if(!e)return"";var n=xe(e);if(239==n[0]&&187==n[1]&&191==n[2])return Et(n);if(254==n[0]&&255==n[1])return kt(n.subarray(2),!1);if(255==n[0]&&254==n[1])return kt(n.subarray(2),!0);if(0==n[0]&&0==n[2])return kt(e,!1);if(0==n[1]&&0==n[3])return kt(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return Et(e);throw new De(2,2,2003)}function At(t){if(e.TextEncoder&&!ht()){var n=new TextEncoder;return Ce(n.encode(t))}t=encodeURIComponent(t),t=unescape(t),n=new Uint8Array(t.length);for(var r=0;r<t.length;r++)n[r]=t[r].charCodeAt(0);return Ce(n)}function wt(e,t){for(var n=new ArrayBuffer(2*e.length),r=new DataView(n),i=0;i<e.length;++i)r.setUint16(2*i,e.charCodeAt(i),t);return n}B("shaka.util.StringUtils",_t),_t.resetFromCharCode=function(){St.g=void 0},_t.toUTF16=wt,_t.toUTF8=At,_t.fromBytesAutoDetect=Tt,_t.fromUTF16=kt,_t.fromUTF8=Et;var St=new it((function(){function e(e){try{var t=new Uint8Array(e);return 0<String.fromCharCode.apply(null,t).length}catch(e){return!1}}for(var t={Ua:65536};0<t.Ua;(t={Ua:t.Ua}).Ua/=2)if(e(t.Ua))return function(e){return function(t){for(var n="",r=0;r<t.length;r+=e.Ua)n+=String.fromCharCode.apply(null,t.subarray(r,r+e.Ua));return n}}(t);return null}));function Ct(){}function xt(e){return e=xe(e),e=St.value()(e),btoa(e)}function It(e,t){return t=null==t||t,e=xt(e).replace(/\+/g,"-").replace(/\//g,"_"),t?e:e.replace(/[=]*$/,"")}function Pt(t){t=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));for(var n=new Uint8Array(t.length),r=0;r<t.length;++r)n[r]=t.charCodeAt(r);return n}function Dt(t){for(var n=t.length/2,r=new Uint8Array(n),i=0;i<n;i++)r[i]=e.parseInt(t.substr(2*i,2),16);return r}function Rt(e){var t=xe(e);e="";for(var n=(t=u(t)).next();!n.done;n=t.next())1==(n=(n=n.value).toString(16)).length&&(n="0"+n),e+=n;return e}function Ot(){for(var e=O.apply(0,arguments),t=0,n=u(e),r=n.next();!r.done;r=n.next())t+=r.value.byteLength;for(t=new Uint8Array(t),n=0,r=(e=u(e)).next();!r.done;r=e.next())r=r.value,t.set(xe(r),n),n+=r.byteLength;return t}function Lt(){}B("shaka.util.Uint8ArrayUtils",Ct),Ct.concat=Ot,Ct.toHex=Rt,Ct.fromHex=Dt,Ct.fromBase64=Pt,Ct.toBase64=It,Ct.toStandardBase64=xt,B("shaka.dependencies",Lt),Lt.has=function(e){return Nt.has(e)},Lt.add=function(e,t){if(!Mt[e])throw Error(e+" is not supported");Nt.set(e,(function(){return t}))};var Mt={muxjs:"muxjs"};Lt.Allowed=Mt;var Nt=new Map([["muxjs",function(){return e.muxjs}]]);function Ut(e){var t=this;this.o=e,this.m=Nt.get("muxjs")(),this.h=this.g=null,this.l=[],this.i=[],this.j=!1,this.m&&(this.g=new this.m.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.g.on("data",(function(e){t.i=e.captions,t.l.push(Ot(e.initSegment,e.data))})),this.g.on("done",(function(){var e={data:Ot.apply(Ct,c(t.l)),captions:t.i};t.h.resolve(e),t.j=!1})))}function Ft(e,t){var n=jt(e),r="audio/aac"==e.toLowerCase().split(";")[0];return!(!Nt.get("muxjs")()||!n&&!r)&&(r?Z('audio/mp4; codecs="mp4a.40.2"'):t?Z(Vt(t,e)):(t=Vt("audio",e),e=Vt("video",e),Z(t)||Z(e)))}function jt(e){return"mp2t"==e.toLowerCase().split(";")[0].split("/")[1]}function Bt(e,t){return"audio/aac"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp4a.40.2"':jt(t)?Vt(e,t):t}function Vt(e,t){if(t=t.replace(/mp2t/i,"mp4"),"audio"==e&&(t=t.replace("video","audio")),e=/avc1\.(66|77|100)\.(\d+)/.exec(t)){var n="avc1.",r=e[1],i=Number(e[2]);n=("66"==r?n+"4200":"77"==r?n+"4d00":n+"6400")+(i>>4).toString(16),n+=(15&i).toString(16),t=t.replace(e[0],n)}return t}function Ht(){}function Kt(e,t){return t&&(e+='; codecs="'+t+'"'),e}function Gt(e,t,n){return Ft(t=Kt(e,t),n)?Bt(n,t):"video/mp2t"!=e&&"audio"==n?t.replace("video","audio"):t}function zt(e){var t=Yt(e);switch(e=t[0],t=t[1].toLowerCase(),!0){case"mp4a"===e&&"69"===t:case"mp4a"===e&&"6b"===t:return"mp3";case"mp4a"===e&&"66"===t:case"mp4a"===e&&"67"===t:case"mp4a"===e&&"68"===t:case"mp4a"===e&&"40.2"===t:case"mp4a"===e&&"40.02"===t:case"mp4a"===e&&"40.5"===t:case"mp4a"===e&&"40.05"===t:case"mp4a"===e&&"40.29"===t:case"mp4a"===e&&"40.42"===t:return"aac";case"mp4a"===e&&"a5"===t:return"ac-3";case"mp4a"===e&&"a6"===t:return"ec-3";case"mp4a"===e&&"b2"===t:return"dtsx";case"mp4a"===e&&"a9"===t:return"dtsc";case"avc1"===e:case"avc3"===e:return"avc";case"hvc1"===e:case"hev1"===e:return"hevc";case"dvh1"===e:case"dvhe"===e:return"dovi"}return e}function Wt(e){return(e=e.split(/ *; */)).shift(),(e=e.find((function(e){return e.startsWith("codecs=")})))?e.split("=")[1].replace(/^"|"$/g,""):""}function Yt(e){var t=(e=e.split("."))[0];return e.shift(),[t,e.join(".")]}function qt(e){this.j=null,this.i=e,this.u=!1,this.l=this.s=0,this.m=1/0,this.h=this.g=null,this.B="",this.o=new Map}function Xt(e){return!(!Jt[e]&&"application/cea-608"!=e&&"application/cea-708"!=e)}function $t(e,t,n){if(e.B=t,t=e.o.get(t))for(var r=u(t.keys()),i=r.next();!i.done;i=r.next())(i=t.get(i.value).filter((function(e){return e.endTime<=n})))&&e.i.append(i)}function Qt(e,t,n){t.startTime+=n,t.endTime+=n;for(var r=(t=u(t.nestedCues)).next();!r.done;r=t.next())Qt(e,r.value,n)}function Zt(e,t,n,r,i){for(var a=n+" "+r,o=new Map,s=(t=u(t)).next();!s.done;s=t.next()){var l=s.value;s=l.stream,l=l.cue,o.has(s)||o.set(s,new Map),o.get(s).has(a)||o.get(s).set(a,[]),Qt(e,l,i),l.startTime>=e.l&&l.startTime<e.m&&(o.get(s).get(a).push(l),s==e.B&&e.i.append([l]))}for(a=(i=u(o.keys())).next();!a.done;a=i.next())for(a=a.value,e.o.has(a)||e.o.set(a,new Map),s=(t=u(o.get(a).keys())).next();!s.done;s=t.next())s=s.value,l=o.get(a).get(s),e.o.get(a).set(s,l);e.g=null==e.g?Math.max(n,e.l):Math.min(e.g,Math.max(n,e.l)),e.h=Math.max(e.h,Math.min(r,e.m))}Ut.prototype.destroy=function(){return this.g&&this.g.dispose(),this.g=null,Promise.resolve()},B("shaka.util.MimeUtils",Ht),Ht.getFullType=Kt,(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),qt.prototype.destroy=function(){return this.i=this.j=null,this.o.clear(),Promise.resolve()},qt.prototype.remove=function(e,t){var n=this;return R((function(r){if(1==r.g)return _(r,Promise.resolve(),2);!n.i||!n.i.remove(e,t)||null==n.g||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),E(r)}))},B("shaka.text.TextEngine",qt),qt.prototype.destroy=qt.prototype.destroy,qt.findParser=function(e){return Jt[e]},qt.unregisterParser=function(e){delete Jt[e]},qt.registerParser=function(e,t){Jt[e]=t};var Jt={};function en(){}function tn(e,t){return e=an(e),t=an(t),e.split("-")[0]==t.split("-")[0]}function nn(e,t){return e=an(e),t=an(t),e=e.split("-"),t=t.split("-"),e[0]==t[0]&&1==e.length&&2==t.length}function rn(e,t){return e=an(e),t=an(t),e=e.split("-"),t=t.split("-"),2==e.length&&2==t.length&&e[0]==t[0]}function an(e){var t=e.split("-");return e=t[0]||"",t=t[1]||"",e=e.toLowerCase(),e=cn.get(e)||e,(t=t.toUpperCase())?e+"-"+t:e}function on(e,t){return e=an(e),(t=an(t))==e?4:nn(t,e)?3:rn(t,e)?2:nn(e,t)?1:0}function sn(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),cn.get(e)||e}function ln(e){return e.language?an(e.language):e.audio&&e.audio.language?an(e.audio.language):e.video&&e.video.language?an(e.video.language):"und"}function un(e,t){e=an(e);var n=new Set,r=u(t);for(t=r.next();!t.done;t=r.next())n.add(an(t.value));for(t=(r=u(n)).next();!t.done;t=r.next())if((t=t.value)==e)return t;for(t=(r=u(n)).next();!t.done;t=r.next())if(nn(t=t.value,e))return t;for(t=(r=u(n)).next();!t.done;t=r.next())if(rn(t=t.value,e))return t;for(t=(n=u(n)).next();!t.done;t=n.next())if(nn(e,t=t.value))return t;return null}B("shaka.util.LanguageUtils",en),en.findClosestLocale=un,en.getLocaleForVariant=ln,en.getLocaleForText=function(e){return an(e.language||"und")},en.getBase=sn,en.relatedness=on,en.areSiblings=function(e,t){var n=sn(e),r=sn(t);return e!=n&&t!=r&&n==r},en.normalize=an,en.isSiblingOf=rn,en.isParentOf=nn,en.areLanguageCompatible=tn,en.areLocaleCompatible=function(e,t){return(e=an(e))==(t=an(t))};var cn=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function pn(){this.g={}}function dn(e,t,n,r,i){var a=e.variants;(t.length||n.length)&&(a=function(e,t,n){for(var r={},i=(t=u(t)).next();!i.done;r={xd:r.xd},i=t.next())if(r.xd=i.value,(i=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.xd)}}(r))).length){e=i;break}for(r={},n=u(n),t=n.next();!t.done;r={jd:r.jd},t=n.next())if(r.jd=t.value,(t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.jd)}}(r))).length){e=t;break}return e}(a,t,n));var o=function(e,t){for(var n=(t=u(t)).next();!n.done;n=t.next())if((n=n.value)==jn||n==Bn){if(1==(e=fn(e,n)).size())return e.keys()[0]}else if(n==Vn)break;return function(e){var t="",n=1/0;return e.forEach((function(e,r){for(var i=0,a=0,o=(r=u(r)).next();!o.done;o=r.next())i+=o.value.bandwidth||0,++a;(i/=a)<n&&(t=e,n=i)})),t}(e)}(t=function(e){var t=0,n=new Map,r=e.size();return e.forEach((function(e,i){for(var a=(i=u(i)).next();!a.done;a=i.next()){var o=(a=a.value).video;if(o&&o.width&&o.height){o=o.width*o.height*(o.frameRate||1),n.has(o)||n.set(o,new pn);var s=n.get(o);s.push(e,a),s.size()===r&&(t=Math.max(t,o))}}})),t?n.get(t):e}(t=function(e){for(var t=new pn,n=(e=u(e)).next();!n.done;n=e.next()){var r=hn(n=n.value);t.push(r,n)}return t}(a=On(a,r))),i);e.variants=e.variants.filter((function(e){return hn(e)==o}))}function fn(e,t){var n=0,r=new pn;return e.forEach((function(e,i){for(var a=0,o=0,s=u(i),l=s.next();!l.done;l=s.next())(l=l.value).decodingInfos.length&&(a+=l.decodingInfos[0][t]?1:0,o++);(a/=o)>n?(r.g={},r.push(e,i),n=a):a==n&&r.push(e,i)})),r}function hn(e){var t="";e.video&&(t=zt(e.video.codecs));var n="";return e.audio&&(n=zt(e.audio.codecs)),t+"-"+n}function gn(e,t,n){function r(e,t,n){return e>=t&&e<=n}var i=e.video;if(0!=e.disabledUntilTime){if(e.disabledUntilTime>Date.now()/1e3)return!1;e.disabledUntilTime=0}return!(i&&i.width&&i.height&&(!r(i.width,t.minWidth,Math.min(t.maxWidth,n.width))||!r(i.height,t.minHeight,Math.min(t.maxHeight,n.height))||!r(i.width*i.height,t.minPixels,t.maxPixels))||e&&e.video&&e.video.frameRate&&!r(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||!r(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function yn(e,t,n){for(var r=!1,i=(e=u(e)).next();!i.done;i=e.next()){var a=(i=i.value).allowedByApplication;i.allowedByApplication=gn(i,t,n),a!=i.allowedByApplication&&(r=!0)}return r}function vn(e,t){return R((function(n){return 1==n.g?_(n,mn(t,0<t.offlineSessionIds.length),2):(Tn(e,t),function(e){e.textStreams=e.textStreams.filter((function(e){return Xt(Kt(e.mimeType,e.codecs))}))}(t),_(n,function(e){var t,n,r,i,a,o,s;return R((function(l){switch(l.g){case 1:t=[],n=u(e.imageStreams),r=n.next();case 2:if(r.done){l.A(4);break}if(i=r.value,a=i.mimeType,Hn.has(a)){l.A(5);break}if(!(o=Kn.get(a))){Hn.set(a,!1),l.A(5);break}return _(l,function(e){return new Promise((function(t){var n=new Image;n.src=e,"decode"in n?n.decode().then((function(){t(!0)})).catch((function(){t(!1)})):n.onload=n.onerror=function(){t(2===n.height)}}))}(o),7);case 7:s=l.h,Hn.set(a,s);case 5:Hn.get(a)&&t.push(i),r=n.next(),l.A(2);break;case 4:e.imageStreams=t,E(l)}}))}(t),0))}))}function mn(e,t){return R((function(n){if(1==n.g)return _(n,bn(e.variants,t,!1),2);e.variants=e.variants.filter((function(e){var t=e.video;if(t){var n=kn(t.codecs);if(t.codecs.includes(",")){var r=t.codecs.split(",");n=kn(n=Ze("video",r)),r=En(r=Ze("audio",r));var i=Gt(t.mimeType,r,"audio");if(!Z(i))return!1;n=[n,r].join()}if(!Z(r=Gt(t.mimeType,n,"video")))return!1;t.codecs=n}if(n=e.audio){if(r=En(n.codecs),!Z(i=Gt(n.mimeType,r,"audio")))return!1;n.codecs=r}return ct()&&t&&(t.width&&1920<t.width||t.height&&1080<t.height)&&(t.codecs.includes("avc1.")||t.codecs.includes("avc3."))?(Nn(e),!1):((t=e.decodingInfos.some((function(e){return e.supported})))||Nn(e),t)})),E(n)}))}function bn(e,t,n){var r,i,a,o,s,l,c,p,d,f;return R((function(h){if(e.some((function(e){return e.decodingInfos.length})))return h.return();for(r=navigator.mediaCapabilities,i=[],a=function(e,t){var n;return R((function(i){return 1==i.g?(k(i,2),_(i,r.decodingInfo(t),4)):2!=i.g?(n=i.h,e.decodingInfos.push(n),A(i,0)):(w(i),JSON.stringify(t),void E(i))}))},o=u(e),s=o.next();!s.done;s=o.next())for(l=s.value,c=_n(l,t,n),p=u(c),d=p.next();!d.done;d=p.next())f=d.value,i.push(a(l,f));return _(h,Promise.all(i),0)}))}function _n(e,t,n){var r=e.audio,i=e.video;if(n={type:n?"file":"media-source"},i){var a=i.codecs;if(i.codecs.includes(",")){var o=i.codecs.split(",");a=kn(a=Ze("video",o)),o=Ze("audio",o),o=Gt(i.mimeType,o,"audio"),n.audio={contentType:o,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1}}if(a=kn(a),a=Gt(i.mimeType,a,"video"),n.video={contentType:a,width:i.width||64,height:i.height||64,bitrate:i.bandwidth||e.bandwidth||1,framerate:i.frameRate||1},i.hdr)switch(i.hdr){case"SDR":n.video.transferFunction="srgb";break;case"PQ":n.video.transferFunction="pq";break;case"HLG":n.video.transferFunction="hlg"}}if(r&&(a=En(r.codecs),a=Gt(r.mimeType,a,"audio"),n.audio={contentType:a,channels:r.channelsCount||2,bitrate:r.bandwidth||e.bandwidth||1,samplerate:r.audioSamplingRate||1,spatialRendering:r.spatialAudio}),!(o=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])).length)return[n];e=[],a=new Map;for(var s=(o=u(o)).next();!s.done;s=o.next()){var l=s.value;a.get(l.keySystem)||a.set(l.keySystem,[]),a.get(l.keySystem).push(l)}o=t?"required":"optional",t=t?["persistent-license"]:["temporary"];for(var c=(l=u(a.keys())).next();!c.done;c=l.next()){var p=c.value;c=Object.assign({},n);var d=a.get(p);for(p={keySystem:p,initDataType:"cenc",persistentState:o,distinctiveIdentifier:"optional",sessionTypes:t},s=(d=u(d)).next();!s.done;s=d.next()){if((s=s.value).initData&&s.initData.length){for(var f=new Set,h=u(s.initData),g=h.next();!g.done;g=h.next())f.add(g.value.initDataType);p.initDataType=s.initData[0].initDataType}s.distinctiveIdentifierRequired&&(p.distinctiveIdentifier="required"),s.persistentStateRequired&&(p.persistentState="required"),s.sessionType&&(p.sessionTypes=[s.sessionType]),r&&(""!=s.audioRobustness?p.audio?p.audio.robustness=p.audio.robustness||s.audioRobustness:p.audio={robustness:s.audioRobustness}:p.audio||(p.audio={})),i&&(""!=s.videoRobustness?p.video?p.video.robustness=p.video.robustness||s.videoRobustness:p.video={robustness:s.videoRobustness}:p.video||(p.video={}))}c.keySystemConfiguration=p,e.push(c)}return e}function En(e){return pt()&&"ac-3"==e.toLowerCase()?"ec-3":e}function kn(e){if(e.includes("avc1")){var t=e.split(".");if(3==t.length)return e=t.shift()+".",(e+=parseInt(t.shift(),10).toString(16))+("000"+parseInt(t.shift(),10).toString(16)).slice(-4)}else if("vp9"==e)return"vp09.00.41.08";return e}function Tn(e,t){t.variants=t.variants.filter((function(t){var n=t.audio;return t=t.video,!(n&&e&&e.audio&&!An(n,e.audio)||t&&e&&e.video&&!An(t,e.video))}))}function An(e,t){return e.mimeType==t.mimeType&&e.codecs.split(".")[0]==t.codecs.split(".")[0]}function wn(e){var t=e.audio,n=e.video,r=t?t.mimeType:null,i=n?n.mimeType:null,a=t?t.codecs:null,o=n?n.codecs:null,s=[];o&&s.push(o),a&&s.push(a);var l=[];n&&l.push(n.mimeType),t&&l.push(t.mimeType),l=l[0]||null;var c=[];t&&c.push(t.kind),n&&c.push(n.kind),c=c[0]||null;var p=new Set;if(t)for(var d=u(t.roles),f=d.next();!f.done;f=d.next())p.add(f.value);if(n)for(f=(d=u(n.roles)).next();!f.done;f=d.next())p.add(f.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:c,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:l,audioMimeType:r,videoMimeType:i,codecs:s.join(", "),audioCodec:a,videoCodec:o,primary:e.primary,roles:Array.from(p),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null),t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.spatialAudio=t.spatialAudio,e.label=t.label,e.audioRoles=t.roles),e}function Sn(e){return{id:e.id,active:!1,type:et,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null}}function Cn(e){var t=e.width||null,n=e.height||null,r=null;e.segmentIndex&&(r=e.segmentIndex.get(0));var i=e.tilesLayout;return r&&(i=r.tilesLayout||i),i&&null!=t&&(t/=Number(i.split("x")[0])),i&&null!=n&&(n/=Number(i.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:i||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId}}function xn(e){return e.__shaka_id||(e.__shaka_id=Fn++),e.__shaka_id}function In(e){var t=Dn(e);return t.active="disabled"!=e.mode,t.type="text",t.originalTextId=e.id,"captions"==e.kind&&(t.mimeType="application/cea-608"),e.kind&&(t.roles=[e.kind]),"forced"==e.kind&&(t.forced=!0),t}function Pn(e){var t=Dn(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function Dn(e){return{id:xn(e),active:!1,type:"",bandwidth:0,language:an(e.language),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null}}function Rn(e){return e.allowedByApplication&&e.allowedByKeySystem}function On(e,t){for(var n=e.filter((function(e){return e.audio&&e.audio.channelsCount})),r=new Map,i=(n=u(n)).next();!i.done;i=n.next()){var a=(i=i.value).audio.channelsCount;r.has(a)||r.set(a,[]),r.get(a).push(i)}return 0==(n=Array.from(r.keys())).length?e:(e=n.filter((function(e){return e<=t}))).length?r.get(Math.max.apply(Math,c(e))):r.get(Math.min.apply(Math,c(n)))}function Ln(e,t,n,r){var i=e,a=e.filter((function(e){return e.primary}));a.length&&(i=a);var o=i.length?i[0].language:"";if(i=i.filter((function(e){return e.language==o})),t){var s=un(an(t),e.map((function(e){return e.language})));s&&(i=e.filter((function(e){return an(e.language)==s})))}if(i=i.filter((function(e){return e.forced==r})),n){if((e=Mn(i,n)).length)return e}else if((e=i.filter((function(e){return 0==e.roles.length}))).length)return e;return(e=i.map((function(e){return e.roles})).reduce(Ye,[])).length?Mn(i,e[0]):i}function Mn(e,t){return e.filter((function(e){return e.roles.includes(t)}))}function Nn(e){var t=[];return e.audio&&t.push(Un(e.audio)),e.video&&t.push(Un(e.video)),t.join(", ")}function Un(e){return"audio"==e.type?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:"video"==e.type?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}(r=pn.prototype).push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},r.get=function(e){return(e=this.g[e])?e.slice():null},r.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter((function(e){return e!=t})),0==this.g[e].length&&delete this.g[e])},r.forEach=function(e){for(var t in this.g)e(t,this.g[t])},r.size=function(){return Object.keys(this.g).length},r.keys=function(){return Object.keys(this.g)};var Fn=0,jn="smooth",Bn="powerEfficient",Vn="bandwidth",Hn=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Kn=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Gn(){var e=this;this.l=null,this.o=!1,this.i=new K,navigator.connection&&navigator.connection.addEventListener("change",(function(){if(e.g.useNetworkInformation&&e.o){e.i=new K,e.g&&e.i.configure(e.g.advanced);var t=e.chooseVariant();t&&e.l(t)}})),this.m=[],this.u=1,this.B=!1,this.h=this.j=this.g=this.s=null,this.D=new ot((function(){if(e.g.restrictToElementSize){var t=e.chooseVariant();t&&e.l(t)}}))}function zn(e){var t=e.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&e.g.useNetworkInformation&&(t=1e6*navigator.connection.downlink),t}function Wn(e,t,n,r){return e&&(t=t.filter((function(t){return gn(t,e,{width:r,height:n})}))),t.sort((function(e,t){return e.bandwidth-t.bandwidth}))}(r=Gn.prototype).stop=function(){this.l=null,this.o=!1,this.m=[],this.u=1,this.j=this.s=null,this.h&&(this.h.disconnect(),this.h=null),this.D.stop()},r.init=function(e){this.l=e},r.chooseVariant=function(){var t=1/0,n=1/0;this.g.restrictToScreenSize&&(n=this.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,t=e.screen.height*n,n*=e.screen.width),this.h&&this.g.restrictToElementSize&&(n=this.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,t=this.j.clientWidth*n,n*=this.j.clientHeight),t=Wn(this.g.restrictions,this.m,t,n),n=this.i.getBandwidthEstimate(zn(this)),this.m.length&&!t.length&&(t=[(t=Wn(null,this.m,1/0,1/0))[0]]);for(var r=t[0]||null,i=0;i<t.length;i++){for(var a=t[i],o=isNaN(this.u)?1:Math.abs(this.u),s=o*a.bandwidth/this.g.bandwidthDowngradeTarget,l={bandwidth:1/0},u=i+1;u<t.length;u++)if(a.bandwidth!=t[u].bandwidth){l=t[u];break}o=o*l.bandwidth/this.g.bandwidthUpgradeTarget,n>=s&&n<=o&&r.bandwidth!=a.bandwidth&&(r=a)}return this.s=Date.now(),r},r.enable=function(){this.o=!0},r.disable=function(){this.o=!1},r.segmentDownloaded=function(e,t){if(this.i.sample(e,t),null!=this.s&&this.o)e:{if(this.B){if(Date.now()-this.s<1e3*this.g.switchInterval)break e}else{if(!((e=this.i).g>=e.i))break e;this.B=!0}e=this.chooseVariant(),this.i.getBandwidthEstimate(zn(this)),e&&this.l(e)}},r.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(zn(this))},r.setVariants=function(e){this.m=e},r.playbackRateChanged=function(e){this.u=e},r.setMediaElement=function(t){var n=this;this.j=t,this.h&&(this.h.disconnect(),this.h=null),this.j&&"ResizeObserver"in e&&(this.h=new ResizeObserver((function(){n.D.N(Yn)})),this.h.observe(this.j))},r.configure=function(e){this.g=e,this.i&&this.g&&this.i.configure(this.g.advanced)},B("shaka.abr.SimpleAbrManager",Gn),Gn.prototype.configure=Gn.prototype.configure,Gn.prototype.setMediaElement=Gn.prototype.setMediaElement,Gn.prototype.playbackRateChanged=Gn.prototype.playbackRateChanged,Gn.prototype.setVariants=Gn.prototype.setVariants,Gn.prototype.getBandwidthEstimate=Gn.prototype.getBandwidthEstimate,Gn.prototype.segmentDownloaded=Gn.prototype.segmentDownloaded,Gn.prototype.disable=Gn.prototype.disable,Gn.prototype.enable=Gn.prototype.enable,Gn.prototype.chooseVariant=Gn.prototype.chooseVariant,Gn.prototype.init=Gn.prototype.init,Gn.prototype.stop=Gn.prototype.stop;var Yn=1;function qn(e,t){this.g=e,this.h=t}function Xn(e,t){var n=new qn(5,0),r=Zn,i=r.g,a=n.h-i.h;(0<(n.g-i.g||a)?r.i:r.h)(r.g,n,e,t)}function $n(e,t,n,r){W([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",r].join(" "))}function Qn(e,t,n,r){z([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",r].join(""))}qn.prototype.toString=function(){return"v"+this.g+"."+this.h};var Zn=null;function Jn(e,t){for(this.h=e,this.g=new Set([e]),t=(e=u(t=t||[])).next();!t.done;t=e.next())this.add(t.value)}function er(e,t){var n;if(!(n=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(n=e.audio&&t.audio)){n=e.audio;var r=t.audio;n=!((!(!n.channelsCount||!r.channelsCount||2<n.channelsCount||2<r.channelsCount)||n.channelsCount==r.channelsCount)&&tr(n,r)&&nr(n.roles,r.roles))}return!n&&(n=e.video&&t.video)&&(n=!(tr(e=e.video,t=t.video)&&nr(e.roles,t.roles))),!n}function tr(e,t){if(e.mimeType!=t.mimeType)return!1;if(e=e.codecs.split(",").map((function(e){return Yt(e)[0]})),t=t.codecs.split(",").map((function(e){return Yt(e)[0]})),e.length!=t.length)return!1;e.sort(),t.sort();for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function nr(e,t){if(e=new Set(e),t=new Set(t),e.delete("main"),t.delete("main"),e.size!=t.size)return!1;for(var n=(e=u(e)).next();!n.done;n=e.next())if(!t.has(n.value))return!1;return!0}function rr(e){this.g=e,this.h=new ir(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"")}function ir(e,t,n,r){this.i=e,this.j=t,this.g=n,this.h=void 0===r?"":r}function ar(){this.g=lr,this.h=(new Map).set(lr,2).set(sr,1)}function or(e,t,n){e.h.set(lr,n).set(sr,t)}B("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3}),Jn.prototype.add=function(e){return!!er(this.h,e)&&(this.g.add(e),!0)},Jn.prototype.values=function(){return this.g.values()},rr.prototype.create=function(e){var t=this,n=e.filter((function(e){return er(t.g,e)}));return n.length?new Jn(n[0],n):this.h.create(e)},ir.prototype.create=function(e){var t=[];t=function(e,t){var n=un(t=an(t),e.map((function(e){return ln(e)})));return n?e.filter((function(e){return n==ln(e)})):[]}(e,this.i);var n=e.filter((function(e){return e.primary}));for((e=function(e,t){return e.filter((function(e){return!!e.audio&&(t?e.audio.roles.includes(t):0==e.audio.roles.length)}))}(t=t.length?t:n.length?n:e,this.j)).length&&(t=e),this.g&&((e=On(t,this.g)).length&&(t=e)),this.h&&((e=function(e,t){return e.filter((function(e){return!!e.audio&&e.audio.label.toLowerCase()==t.toLowerCase()}))}(t,this.h)).length&&(t=e)),e=new Jn(t[0]),n=(t=u(t)).next();!n.done;n=t.next())n=n.value,er(e.h,n)&&e.add(n);return e};var sr=0,lr=1;function ur(e,t){var n={maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4};this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.o=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.m=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function cr(e){var t,n;return R((function(r){if(1==r.g){if(e.g>=e.l){if(!e.i)throw new De(2,7,1010);e.g=1,e.h=e.j}return t=e.g,e.g++,0==t?r.return():(n=e.h*(1+(2*Math.random()-1)*e.o),_(r,new Promise((function(e){new ot(e).N(n/1e3)})),2))}e.h*=e.m,E(r)}))}function pr(e,t){this.promise=e,this.i=t,this.g=!1}function dr(e){return new pr(Promise.reject(e),(function(){return Promise.resolve()}))}function fr(){var e=Promise.reject(new De(2,7,7001));return e.catch((function(){})),new pr(e,(function(){return Promise.resolve()}))}function hr(e){return new pr(Promise.resolve(e),(function(){return Promise.resolve()}))}function gr(e){return new pr(e,(function(){return e.catch((function(){}))}))}function yr(e){return new pr(Promise.all(e.map((function(e){return e.promise}))),(function(){return Promise.all(e.map((function(e){return e.abort()})))}))}function vr(t,n){if(n)if(n instanceof Map)for(var r=u(n.keys()),i=r.next();!i.done;i=r.next())i=i.value,Object.defineProperty(this,i,{value:n.get(i),writable:!0,enumerable:!0});else for(r in n)Object.defineProperty(this,r,{value:n[r],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function mr(e){var t,n=new vr(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}pr.prototype.abort=function(){return this.g=!0,this.i()},pr.prototype.finally=function(e){return this.promise.then((function(){return e(!0)}),(function(){return e(!1)})),this},pr.prototype.Y=function(e,t){function n(n){return function(s){if(i.g&&n)a.reject(o);else{var l=n?e:t;l?r=function(e,t,n){try{var r=e(t);return r&&r.promise&&r.abort?(n.resolve(r.promise),function(){return r.abort()}):(n.resolve(r),function(){return Promise.resolve(r).then((function(){}),(function(){}))})}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(l,s,a):(n?a.resolve:a.reject)(s)}}}function r(){return a.reject(o),i.abort()}var i=this,a=new rt,o=new De(2,7,7001);return this.promise.then(n(!0),n(!1)),new pr(a,(function(){return r()}))},B("shaka.util.AbortableOperation",pr),pr.prototype.chain=pr.prototype.Y,pr.prototype.finally=pr.prototype.finally,pr.all=yr,pr.prototype.abort=pr.prototype.abort,pr.notAbortable=gr,pr.completed=hr,pr.aborted=fr,pr.failed=dr,vr.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},vr.prototype.stopImmediatePropagation=function(){this.g=!0},vr.prototype.stopPropagation=function(){},B("shaka.util.FakeEvent",vr);var br={Ig:"abrstatuschanged",Jg:"adaptation",Kg:"buffering",Lg:"downloadfailed",Mg:"downloadheadersreceived",Ng:"drmsessionupdate",Pg:"emsg",ah:"prft",Error:"error",Qg:"expirationupdated",Rg:"gapjumped",Tg:"loaded",Ug:"loading",Wg:"manifestparsed",Xg:"mediaqualitychanged",Metadata:"metadata",Zg:"onstatechange",$g:"onstateidle",bh:"ratechange",eh:"segmentappended",fh:"sessiondata",gh:"stalldetected",hh:"streaming",ih:"textchanged",jh:"texttrackvisibility",kh:"timelineregionadded",lh:"timelineregionenter",mh:"timelineregionexit",nh:"trackschanged",ph:"unloading",qh:"variantchanged"};function _r(){this.da=new pn,this.Wc=this}function Er(e){var t=new Set;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer&&n.buffer.constructor==ArrayBuffer)return n;if(t.has(n))return null;var r=n.constructor==Array;if(n.constructor!=Object&&!r)return null;t.add(n);var i,a=r?[]:{};for(i in n)a[i]=e(n[i]);return r&&(a.length=n.length),a}}(e)}function kr(e){var t,n={};for(t in e)n[t]=e[t];return n}function Tr(){this.g=[]}function Ar(e,t){e.g.push(t.finally((function(){te(e.g,t)})))}function wr(e,t,n){_r.call(this),this.i=!1,this.m=new Tr,this.g=new Set,this.h=new Set,this.l=e||null,this.j=t||null,this.s=n||null,this.o=!1}function Sr(e,t,n,r){n=n||Dr;var i=Rr[e];(!i||n>=i.priority)&&(Rr[e]={priority:n,jg:t,kg:void 0!==r&&r})}function Cr(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===n?null:n}}function xr(){this.g=0}function Ir(e,t,n){pr.call(this,e,t),this.h=n}_r.prototype.addEventListener=function(e,t){this.da&&this.da.push(e,t)},_r.prototype.removeEventListener=function(e,t){this.da&&this.da.remove(e,t)},_r.prototype.dispatchEvent=function(e){if(!this.da)return!0;var t=this.da.get(e.type)||[],n=this.da.get("All");for(n&&(t=t.concat(n)),n=(t=u(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.Wc,e.currentTarget=this.Wc;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},_r.prototype.release=function(){this.da=null},Tr.prototype.destroy=function(){for(var e=[],t=u(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch((function(){})),e.push(n.abort());return this.g=[],Promise.all(e)},y(wr,_r),(r=wr.prototype).je=function(e){this.o=e},r.lg=function(e){this.g.add(e)},r.Bg=function(e){this.g.delete(e)},r.rf=function(){this.g.clear()},r.mg=function(e){this.h.add(e)},r.Cg=function(e){this.h.delete(e)},r.tf=function(){this.h.clear()},r.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),_r.prototype.release.call(this),this.m.destroy()},r.request=function(e,t){var n=this,r=new xr;if(this.i){var i=Promise.reject(new De(2,7,7001));return i.catch((function(){})),new Ir(i,(function(){return Promise.resolve()}),r)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?Er(t.retryParameters):{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},t.uris=Er(t.uris);var a=(i=function(e,t,n){for(var r=hr(void 0),i={},a=(e=u(e.g)).next();!a.done;i={sd:i.sd},a=e.next())i.sd=a.value,r=r.Y(function(e){return function(){return n.body&&(n.body=Ce(n.body)),e.sd(t,n)}}(i));return r.Y(void 0,(function(e){if(e instanceof De&&7001==e.code)throw e;throw new De(2,1,1006,e)}))}(this,e,t)).Y((function(){return function e(t,n,r,i,a,o,s){t.o&&(r.uris[a]=r.uris[a].replace("http://","https://"));var l=new Oe(r.uris[a]),u=l.Ea,c=!1;u||(u=(u=location.protocol).slice(0,-1),Le(l,u),r.uris[a]=l.toString()),u=u.toLowerCase();var p=(u=Rr[u])?u.jg:null;if(!p)return dr(new De(2,1,1e3,l));var d,f=u.kg,h=null,g=null,y=!1,v=!1;return gr(cr(i)).Y((function(){if(t.i)return fr();d=Date.now();var e=p(r.uris[a],r,n,(function(e,r,i){h&&h.stop(),g&&g.N(o/1e3),t.l&&n==Pr&&(t.l(e,r),c=!0,s.g=i)}),(function(e){t.j&&t.j(e,r,n),v=!0}));if(!f)return e;var i=r.retryParameters.connectionTimeout;i&&(h=new ot((function(){y=!0,e.abort()}))).N(i/1e3);var o=r.retryParameters.stallTimeout;return o&&(g=new ot((function(){y=!0,e.abort()}))),e})).Y((function(e){h&&h.stop(),g&&g.stop(),null==e.timeMs&&(e.timeMs=Date.now()-d);var i={response:e,Yf:c};return!v&&t.j&&t.j(e.headers,r,n),i}),(function(l){if(h&&h.stop(),g&&g.stop(),t.s){var u=null,c=0;l instanceof De&&(u=l,1001==l.code&&(c=l.data[1])),t.s(r,u,c,y)}if(t.i)return fr();if(y&&(l=new De(1,1,1003,r.uris[a],n)),l instanceof De){if(7001==l.code)throw l;if(1010==l.code)throw o;if(1==l.severity)return u=new vr("retry",u=(new Map).set("error",l)),t.dispatchEvent(u),a=(a+1)%r.uris.length,e(t,n,r,i,a,l,s)}throw l}))}(n,e,t,new ur(t.retryParameters,!1),0,null,r)})),o=a.Y((function(t){return function(e,t,n){for(var r=hr(void 0),i={},a=(e=u(e.h)).next();!a.done;i={td:i.td},a=e.next())i.td=a.value,r=r.Y(function(e){return function(){var r=n.response;return r.data&&(r.data=Ce(r.data)),e.td(t,r)}}(i));return r.Y((function(){return n}),(function(e){var t=2;if(e instanceof De){if(7001==e.code)throw e;t=e.severity}throw new De(t,1,1007,e)}))}(n,e,t)})),s=Date.now(),l=0;i.promise.then((function(){l=Date.now()-s}),(function(){}));var c=0;a.promise.then((function(){c=Date.now()}),(function(){}));var p=o.Y((function(t){var r=Date.now()-c,i=t.response;return i.timeMs+=l,i.timeMs+=r,t.Yf||!n.l||i.fromCache||e!=Pr||n.l(i.timeMs,i.data.byteLength),i}),(function(e){throw e&&(e.severity=2),e}));return i=new Ir(p.promise,(function(){return p.abort()}),r),Ar(this.m,i),i},B("shaka.net.NetworkingEngine",wr),wr.prototype.request=wr.prototype.request,wr.prototype.destroy=wr.prototype.destroy,wr.makeRequest=Cr,wr.defaultRetryParameters=function(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}},wr.prototype.clearAllResponseFilters=wr.prototype.tf,wr.prototype.unregisterResponseFilter=wr.prototype.Cg,wr.prototype.registerResponseFilter=wr.prototype.mg,wr.prototype.clearAllRequestFilters=wr.prototype.rf,wr.prototype.unregisterRequestFilter=wr.prototype.Bg,wr.prototype.registerRequestFilter=wr.prototype.lg,wr.unregisterScheme=function(e){delete Rr[e]},wr.registerScheme=Sr,wr.prototype.setForceHTTPS=wr.prototype.je,wr.NumBytesRemainingClass=xr,y(Ir,pr),wr.PendingRequest=Ir;var Pr=1;wr.RequestType={MANIFEST:0,SEGMENT:Pr,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var Dr=3;wr.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Dr};var Rr={};function Or(e){this.g=!1,this.h=new rt,this.i=e}function Lr(e,t){if(e.g){if(t instanceof De&&7003==t.code)throw t;throw new De(2,7,7003,t)}}function Mr(){this.g=new pn}function Nr(e,t,n,r){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(null==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter((function(e){return!n.has(e)})),function(e){var t=Ur;if(null==t){t=!1;try{var n={},r={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",r),Object.defineProperty(n,"capture",r),r=function(){},e.addEventListener("test",r,n),e.removeEventListener("test",r,n)}catch(e){t=!1}Ur=t}return t||!1}(e)?t:t.capture||!1}(e,r),this.target.addEventListener(t,n,this.g)}Or.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then((function(){e.h.resolve()}),(function(){e.h.resolve()})))},(r=Mr.prototype).release=function(){this.nb(),this.g=null},r.C=function(e,t,n,r){this.g&&(e=new Nr(e,t,n,r),this.g.push(t,e))},r.ma=function(e,t,n,r){var i=this;this.C(e,t,(function r(a){i.zc(e,t,r),n(a)}),r)},r.zc=function(e,t,n){if(this.g)for(var r=this.g.get(t)||[],i=(r=u(r)).next();!i.done;i=r.next())(i=i.value).target!=e||n!=i.listener&&n||(i.zc(),this.g.remove(t,i))},r.nb=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,c(t.g[e]));for(n=(t=u(n)).next();!n.done;n=t.next())n.value.zc();this.g.g={}}},B("shaka.util.EventManager",Mr),Mr.prototype.removeAll=Mr.prototype.nb,Mr.prototype.unlisten=Mr.prototype.zc,Mr.prototype.listenOnce=Mr.prototype.ma,Mr.prototype.listen=Mr.prototype.C,Mr.prototype.release=Mr.prototype.release,Nr.prototype.zc=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var Ur=void 0;function Fr(e,t){for(var n=[],r=(e=u(e)).next();!r.done;r=e.next())n.push(t(r.value));return n}function jr(e){for(var t=new Map,n=u(Object.keys(e)),r=n.next();!r.done;r=n.next())r=r.value,t.set(r,e[r]);return t}function Br(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}function Vr(e,t){if(!e&&!t)return!0;if(e&&!t||t&&!e)return!1;if(e.size!=t.size)return!1;for(var n=(e=u(e)).next();!n.done;n=e.next()){var r=u(n.value);if(n=r.next().value,r=r.next().value,!t.has(n))return!1;if((n=t.get(n))!=r||null==n)return!1}return!0}function Hr(e,t){this.S=Ie(e),this.h=t==Gr,this.g=0}function Kr(){return new De(2,3,3e3)}(r=Hr.prototype).ha=function(){return this.g<this.S.byteLength},r.Z=function(){return this.g},r.Gf=function(){return this.S.byteLength},r.Ra=function(){try{var e=this.S.getUint8(this.g);return this.g+=1,e}catch(e){throw Kr()}},r.$d=function(){try{var e=this.S.getUint16(this.g,this.h);return this.g+=2,e}catch(e){throw Kr()}},r.K=function(){try{var e=this.S.getUint32(this.g,this.h);return this.g+=4,e}catch(e){throw Kr()}},r.Pe=function(){try{var e=this.S.getInt32(this.g,this.h);return this.g+=4,e}catch(e){throw Kr()}},r.$a=function(){try{if(this.h)var e=this.S.getUint32(this.g,!0),t=this.S.getUint32(this.g+4,!0);else t=this.S.getUint32(this.g,!1),e=this.S.getUint32(this.g+4,!1)}catch(e){throw Kr()}if(2097151<t)throw new De(2,3,3001);return this.g+=8,t*Math.pow(2,32)+e},r.Za=function(e){if(this.g+e>this.S.byteLength)throw Kr();var t=xe(this.S,this.g,e);return this.g+=e,t},r.skip=function(e){if(this.g+e>this.S.byteLength)throw Kr();this.g+=e},r.sg=function(e){if(this.g<e)throw Kr();this.g-=e},r.seek=function(e){if(0>e||e>this.S.byteLength)throw Kr();this.g=e},r.sc=function(){for(var e=this.g;this.ha()&&0!=this.S.getUint8(this.g);)this.g+=1;return e=xe(this.S,e,this.g-e),this.g+=1,Et(e)},B("shaka.util.DataViewReader",Hr),Hr.prototype.readTerminatedString=Hr.prototype.sc,Hr.prototype.seek=Hr.prototype.seek,Hr.prototype.rewind=Hr.prototype.sg,Hr.prototype.skip=Hr.prototype.skip,Hr.prototype.readBytes=Hr.prototype.Za,Hr.prototype.readUint64=Hr.prototype.$a,Hr.prototype.readInt32=Hr.prototype.Pe,Hr.prototype.readUint32=Hr.prototype.K,Hr.prototype.readUint16=Hr.prototype.$d,Hr.prototype.readUint8=Hr.prototype.Ra,Hr.prototype.getLength=Hr.prototype.Gf,Hr.prototype.getPosition=Hr.prototype.Z,Hr.prototype.hasMoreData=Hr.prototype.ha;var Gr=1;function zr(){this.i=[],this.h=[],this.g=!1}function Wr(e){for(var t=Zr(e);e.reader.ha()&&!e.parser.g;)e.parser.qc(e.start+t,e.reader,e.partialOkay)}function Yr(e){for(var t=Zr(e),n=e.reader.K(),r=0;r<n&&(e.parser.qc(e.start+t,e.reader,e.partialOkay),!e.parser.g);r++);}function qr(e){var t=Zr(e);for(e.reader.skip(78);e.reader.ha()&&!e.parser.g;)e.parser.qc(e.start+t,e.reader,e.partialOkay)}function Xr(e){return function(t){e(t.reader.Za(t.reader.S.byteLength-t.reader.Z()))}}function $r(e){for(var t=0,n=(e=u(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function Qr(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function Zr(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}Hr.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Gr},(r=zr.prototype).box=function(e,t){return e=$r(e),this.i[e]=Jr,this.h[e]=t,this},r.P=function(e,t){return e=$r(e),this.i[e]=ei,this.h[e]=t,this},r.stop=function(){this.g=!0},r.parse=function(e,t,n){for(e=new Hr(e,0),this.g=!1;e.ha()&&!this.g;)this.qc(0,e,t,n)},r.qc=function(e,t,n,r){var i=t.Z();if(r&&i+8>t.S.byteLength)this.g=!0;else{var a=t.K(),o=t.K(),s=Qr(o),l=!1;switch(a){case 0:a=t.S.byteLength-i;break;case 1:if(r&&t.Z()+8>t.S.byteLength)return void(this.g=!0);a=t.$a(),l=!0}var u=this.h[o];if(u){var c=null,p=null;if(this.i[o]==ei){if(r&&t.Z()+4>t.S.byteLength)return void(this.g=!0);c=(p=t.K())>>>24,p&=16777215}o=i+a,n&&o>t.S.byteLength&&(o=t.S.byteLength),r&&o>t.S.byteLength?this.g=!0:(r=o-t.Z(),u({name:s,parser:this,partialOkay:n||!1,version:c,flags:p,reader:t=new Hr(t=0<r?t.Za(r):new Uint8Array(0),0),size:a,start:i+e,has64BitSize:l}))}else t.skip(Math.min(i+a-t.Z(),t.S.byteLength-t.Z()))}},B("shaka.util.Mp4Parser",zr),zr.headerSize=Zr,zr.typeToString=Qr,zr.allData=Xr,zr.visualSampleEntry=qr,zr.sampleDescription=Yr,zr.children=Wr,zr.prototype.parseNext=zr.prototype.qc,zr.prototype.parse=zr.prototype.parse,zr.prototype.stop=zr.prototype.stop,zr.prototype.fullBox=zr.prototype.P,zr.prototype.box=zr.prototype.box;var Jr=0,ei=1;function ti(e){var t=this;this.g=[],this.h=[],this.data=[],(new zr).box("moov",Wr).box("moof",Wr).P("pssh",(function(e){if(!(1<e.version)){var n=xe(e.reader.S,-12,e.size);if(t.data.push(n),t.g.push(Rt(e.reader.Za(16))),0<e.version){n=e.reader.K();for(var r=0;r<n;r++){var i=Rt(e.reader.Za(16));t.h.push(i)}}}})).parse(e)}function ni(e,t,n,r){var i=e.length,a=t.length+16+i;0<r&&(a+=4+16*n.size);var o=new Uint8Array(a),s=Ie(o),l=0;if(s.setUint32(l,a),l+=4,s.setUint32(l,1886614376),l+=4,1>r?s.setUint32(l,0):s.setUint32(l,16777216),l+=4,o.set(t,l),l+=t.length,0<r)for(s.setUint32(l,n.size),l+=4,n=(t=u(n)).next();!n.done;n=t.next())n=Dt(n.value),o.set(n,l),l+=n.length;return s.setUint32(l,i),o.set(e,l+4),o}function ri(e,t){return 1!=(e=ai(e,t)).length?null:e[0]}function ii(e,t,n){return 1!=(e=oi(e,t,n)).length?null:e[0]}function ai(e,t){for(var n=[],r=(e=u(e.childNodes)).next();!r.done;r=e.next())(r=r.value)instanceof Element&&r.tagName==t&&n.push(r);return n}function oi(e,t,n){for(var r=[],i=(e=u(e.childNodes)).next();!i.done;i=e.next())(i=i.value)instanceof Element&&i.localName==n&&i.namespaceURI==t&&r.push(i);return r}function si(e,t,n){return e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function li(e,t,n){for(var r=(t=u(t)).next();!r.done;r=t.next())if(r=r.value,e.hasAttributeNS(r,n))return e.getAttributeNS(r,n);return null}function ui(e){return Array.from(e.childNodes).every(ci)?e.textContent.trim():null}function ci(e){return e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE}function pi(e,t,n,r){r=void 0===r?null:r;var i=null;return null!=(e=e.getAttribute(t))&&(i=n(e)),null==i?r:i}function di(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:e/1e3):null}function fi(e){return e&&(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(e))?(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null):null}function hi(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t?(e=Number(t[1]),isFinite(e)?(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null):null):null}function gi(e){return 0==(e=Number(e))%1?e:null}function yi(e){return 0==(e=Number(e))%1&&0<e?e:null}function vi(e){return 0==(e=Number(e))%1&&0<=e?e:null}function mi(e){return e=Number(e),isNaN(e)?null:e}function bi(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function _i(e,t){var n=new DOMParser,r=ki.value()(e);e=null;try{e=n.parseFromString(r,"text/xml")}catch(e){return null}if(!(n=e.documentElement)||n.getElementsByTagName("parsererror").length||n.tagName!=t)return null;for(t=document.createNodeIterator(e,NodeFilter.SHOW_ALL);e=t.nextNode();)if(e instanceof HTMLElement||e instanceof SVGElement)return null;return n}function Ei(e,t){try{return _i(Et(e),t)}catch(e){return null}}var ki=new it((function(){if("undefined"!=typeof trustedTypes){var e=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(e){return e}});return function(t){return e.createHTML(t)}}return function(e){return e}}));function Ti(e,t){var n=this;t=void 0===t?1:t,this.D=e,this.G=new Set,this.l=this.u=null,this.da=this.W=!1,this.H=0,this.g=null,this.s=new Mr,this.i=new Map,this.B=[],this.o=new rt,this.h=null,this.m=function(t){n.o.reject(t),e.onError(t)},this.ea=new Map,this.ba=new Map,this.O=new ot((function(){return function(e){var t=e.ea,n=e.ba;n.clear(),t.forEach((function(e,t){return n.set(t,e)})),(t=Array.from(n.values())).length&&t.every((function(e){return"expired"==e}))&&e.m(new De(2,6,6014)),e.D.cd(Br(n))}(n)})),this.L=!1,this.J=[],this.M=!1,this.ca=new ot((function(){!function(e){e.i.forEach((function(t,n){var r=t.Vd,i=n.expiration;isNaN(i)&&(i=1/0),i!=r&&(e.D.onExpirationUpdated(n.sessionId,i),t.Vd=i)}))}(n)})).Ca(t),this.o.catch((function(){})),this.j=new Or((function(){return function(e){return R((function(t){switch(t.g){case 1:return e.s.release(),e.s=null,e.o.reject(),e.ca.stop(),e.ca=null,e.O.stop(),e.O=null,_(t,Ni(e),2);case 2:if(!e.l){t.A(3);break}return k(t,4),_(t,e.l.setMediaKeys(null),6);case 6:A(t,5);break;case 4:w(t);case 5:e.l=null;case 3:e.g=null,e.G.clear(),e.u=null,e.B=[],e.h=null,e.m=function(){},e.D=null,e.V=!1,e.F=null,E(t)}}))}(n)})),this.V=!1,this.F=null}function Ai(e,t,n){return e.B=n,e.L=0<n.length,wi(e,t)}function wi(t,n){var r,i,a,o,s,l,c,p,d,f,h,g;return R((function(y){if(1==y.g){if(r=function(t){if(0==(t=jr(t.h.clearKeys)).size)return null;var n=[],r=[];t.forEach((function(e,t){var i=t;22!=i.length&&(i=It(Dt(t),!1)),22!=(t=e).length&&(t=It(Dt(e),!1)),e={kty:"oct",kid:i,k:t},n.push(e),r.push(e.kid)})),t=JSON.stringify({keys:n});var i=JSON.stringify({kids:r});return i=[{initData:xe(At(i)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+e.btoa(t),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:i,keyIds:new Set(r)}}(t))for(i=u(n),a=i.next();!a.done;a=i.next())(o=a.value).video&&(o.video.drmInfos=[r]),o.audio&&(o.audio.drmInfos=[r]);for((s=n.some((function(e){return!!(e.video&&e.video.drmInfos.length||e.audio&&e.audio.drmInfos.length)})))||(l=jr(t.h.servers),function(e,t){var n=[];for(t.forEach((function(e,t){n.push({keySystem:t,licenseServerUri:e,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})})),e=u(e),t=e.next();!t.done;t=e.next())(t=t.value).video&&(t.video.drmInfos=n),t.audio&&(t.audio.drmInfos=n)}(n,l)),c=u(n),a=c.next();!a.done;a=c.next())for(p=a.value,d=Fi(p),f=u(d),h=f.next();!h.done;h=f.next())Vi(h.value,jr(t.h.servers),jr(t.h.advanced||{}),t.h.keySystemsMapping);return _(y,bn(n,t.L,t.V),2)}return s||Object.keys(t.h.servers).length?(g=Ri(t,void 0,n),y.return(s?g:g.catch((function(){})))):(t.W=!0,y.return(Promise.resolve()))}))}function Si(e){var t;return R((function(n){switch(n.g){case 1:if(e.l.mediaKeys)return n.return();if(!e.F){n.A(2);break}return _(n,e.F,3);case 3:return Lr(e.j),n.return();case 2:return k(n,4),e.F=e.l.setMediaKeys(e.u),_(n,e.F,6);case 6:A(n,5);break;case 4:t=w(n),e.m(new De(2,6,6003,t.message));case 5:Lr(e.j),E(n)}}))}function Ci(e){var t,n;return R((function(r){switch(r.g){case 1:if(!e.u||!e.g)return r.return();if(!e.g.serverCertificateUri||e.g.serverCertificate&&e.g.serverCertificate.length){r.A(2);break}return t=Cr([e.g.serverCertificateUri],e.h.retryParameters),k(r,3),_(r,e.D.kb.request(5,t).promise,5);case 5:n=r.h,e.g.serverCertificate=xe(n.data),A(r,4);break;case 3:throw new De(2,6,6017,w(r));case 4:if(e.j.g)return r.return();case 2:return e.g.serverCertificate&&e.g.serverCertificate.length?(k(r,6),_(r,e.u.setServerCertificate(e.g.serverCertificate),8)):r.return();case 8:A(r,0);break;case 6:throw new De(2,6,6004,w(r).message)}}))}function xi(e){for(var t=(e.g?e.g.initData:[])||[],n=u(t),r=n.next();!r.done;r=n.next())Ii(e,(r=r.value).initDataType,r.initData);for(r=(n=u(e.B)).next();!r.done;r=n.next())Oi(e,r.value);return t.length||e.B.length||e.o.resolve(),e.o}function Ii(e,t,n){if(n.length){for(var r=e.i.values(),i=(r=u(r)).next();!i.done;i=r.next())if(we(n,i.value.initData)&&!yt("Tizen 2"))return;0<e.i.size&&ji(e)&&(e.o.resolve(),e.o=new rt,e.o.catch((function(){}))),function(e,t,n,r){try{var i=e.u.createSession(r)}catch(t){return void e.m(new De(2,6,6005,t.message))}e.s.C(i,"message",(function(t){e.l&&e.h.delayLicenseRequestUntilPlayed&&e.l.paused&&!e.M?e.J.push(t):Li(e,t)})),e.s.C(i,"keystatuseschange",(function(t){return Mi(e,t)})),e.i.set(i,{initData:n,initDataType:t,loaded:!1,Vd:1/0,Ja:null,type:r});try{n=e.h.initDataTransform(n,t,e.g)}catch(n){return t=n,n instanceof De||(t=new De(2,6,6016,n)),void e.m(t)}e.h.logLicenseExchange&&It(n),i.generateRequest(t,n).catch((function(t){if(!e.j.g){e.i.delete(i);var n=t.errorCode;if(n&&n.systemCode){var r=n.systemCode;0>r&&(r+=Math.pow(2,32)),r="0x"+r.toString(16)}e.m(new De(2,6,6006,t.message,t,r))}}))}(e,t,n,e.g.sessionType)}}function Pi(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}function Di(e){return e=Fr(e=e.i.keys(),(function(e){return e.sessionId})),Array.from(e)}function Ri(e,t,n){var r,i,a,o,s,l,c,p,d,f,h,g,y;return R((function(v){switch(v.g){case 1:if(r=new Map,n.length){i=function(e,t,n){for(var r=u(t),i=r.next();!i.done;i=r.next()){var a=u(Fi(i.value));for(i=a.next();!i.done;i=a.next())i=i.value,n.has(i.keySystem)||n.set(i.keySystem,[]),n.get(i.keySystem).push(i)}if(1==n.size&&n.has(""))throw new De(2,6,6e3);for(r={},e=u(e.h.preferredKeySystems),i=e.next();!i.done;r={qd:r.qd},i=e.next())for(r.qd=i.value,a=u(t),i=a.next();!i.done;i=a.next())if(i=i.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.qd}}(r)))return i.keySystemAccess;for(e=u([!0,!1]),i=e.next();!i.done;i=e.next())for(r=i.value,a=u(t),i=a.next();!i.done;i=a.next()){var o=u(i.value.decodingInfos);for(i=o.next();!i.done;i=o.next()){var s=i.value;if(s.supported&&s.keySystemAccess){var l=u(i=n.get(s.keySystemAccess.keySystem));for(i=l.next();!i.done;i=l.next())if(!!i.value.licenseServerUri==r)return s.keySystemAccess}}}return null}(e,n,r),v.A(2);break}return _(v,function(e,t){var n,r,i,a,o,s,l,c,p,d,f,h,g,y;return R((function(v){switch(v.g){case 1:if(1==t.size&&t.has(""))throw new De(2,6,6e3);for(r=u(t.values()),i=r.next();!i.done;i=r.next())0==(a=i.value).audioCapabilities.length&&delete a.audioCapabilities,0==a.videoCapabilities.length&&delete a.videoCapabilities;o=u(e.h.preferredKeySystems),s=o.next();case 2:if(s.done){v.A(4);break}if(l=s.value,!t.has(l)){v.A(3);break}return c=t.get(l),k(v,6),_(v,navigator.requestMediaKeySystemAccess(l,[c]),8);case 8:return n=v.h,v.return(n);case 6:w(v);case 7:Lr(e.j);case 3:s=o.next(),v.A(2);break;case 4:p=u([!0,!1]),d=p.next();case 9:if(d.done){v.A(11);break}f=d.value,h=u(t.keys()),s=h.next();case 12:if(s.done){d=p.next(),v.A(9);break}if(g=s.value,y=t.get(g),y.drmInfos.some((function(e){return!!e.licenseServerUri}))!=f){v.A(13);break}return k(v,15),_(v,navigator.requestMediaKeySystemAccess(g,[y]),17);case 17:return n=v.h,v.return(n);case 15:w(v);case 16:Lr(e.j);case 13:s=h.next(),v.A(12);break;case 11:return v.return(n)}}))}(e,t),3);case 3:i=v.h;case 2:if(!(a=i))throw new De(2,6,6001);for(Lr(e.j),k(v,4),e.G.clear(),o=a.getConfiguration(),s=o.audioCapabilities||[],l=o.videoCapabilities||[],c=u(s),p=c.next();!p.done;p=c.next())d=p.value,e.G.add(d.contentType.toLowerCase());for(f=u(l),p=f.next();!p.done;p=f.next())h=p.value,e.G.add(h.contentType.toLowerCase());if(n.length){var m=a.keySystem,b=r.get(a.keySystem),E=[],T=[],S=[],C=[],x=new Set;Bi(b,E,S,T,C,x);var I=e.L?"persistent-license":"temporary";for(m={keySystem:m,licenseServerUri:E[0],distinctiveIdentifierRequired:b[0].distinctiveIdentifierRequired,persistentStateRequired:b[0].persistentStateRequired,sessionType:b[0].sessionType||I,audioRobustness:b[0].audioRobustness||"",videoRobustness:b[0].videoRobustness||"",serverCertificate:S[0],serverCertificateUri:T[0],initData:C,keyIds:x},E=(b=u(b)).next();!E.done;E=b.next())(E=E.value).distinctiveIdentifierRequired&&(m.distinctiveIdentifierRequired=E.distinctiveIdentifierRequired),E.persistentStateRequired&&(m.persistentStateRequired=E.persistentStateRequired);b=m}else b=a.keySystem,m=t.get(a.keySystem),E=[],T=[],S=[],C=[],x=new Set,Bi(m.drmInfos,E,S,T,C,x),b={keySystem:b,licenseServerUri:E[0],distinctiveIdentifierRequired:"required"==m.distinctiveIdentifier,persistentStateRequired:"required"==m.persistentState,sessionType:m.sessionTypes[0]||"temporary",audioRobustness:(m.audioCapabilities?m.audioCapabilities[0].robustness:"")||"",videoRobustness:(m.videoCapabilities?m.videoCapabilities[0].robustness:"")||"",serverCertificate:S[0],serverCertificateUri:T[0],initData:C,keyIds:x};if(e.g=b,!e.g.licenseServerUri)throw new De(2,6,6012,e.g.keySystem);return _(v,a.createMediaKeys(),6);case 6:return g=v.h,Lr(e.j),e.u=g,e.W=!0,_(v,Ci(e),7);case 7:Lr(e.j),A(v,0);break;case 4:if(y=w(v),Lr(e.j,y),e.g=null,e.G.clear(),y instanceof De)throw y;throw new De(2,6,6002,y.message)}}))}function Oi(e,t){var n,r,i,a,o;return R((function(s){switch(s.g){case 1:try{n=e.u.createSession("persistent-license")}catch(t){return r=new De(2,6,6005,t.message),e.m(r),s.return(Promise.reject(r))}return e.s.C(n,"message",(function(t){e.l&&e.h.delayLicenseRequestUntilPlayed&&e.l.paused&&!e.M?e.J.push(t):Li(e,t)})),e.s.C(n,"keystatuseschange",(function(t){return Mi(e,t)})),i={initData:null,initDataType:null,loaded:!1,Vd:1/0,Ja:null,type:"persistent-license"},e.i.set(n,i),k(s,2),_(s,n.load(t),4);case 4:return a=s.h,Lr(e.j),a?(i.loaded=!0,ji(e)&&e.o.resolve(),s.return(n)):(e.i.delete(n),e.m(new De(2,6,6013)),s.return(Promise.resolve()));case 2:o=w(s),Lr(e.j,o),e.i.delete(n),e.m(new De(2,6,6005,o.message));case 3:return s.return(Promise.resolve())}}))}function Li(e,t){var n,r,i,a,o,s,l,c,p,d,f,h;R((function(g){switch(g.g){case 1:return n=t.target,e.h.logLicenseExchange&&It(t.message),r=e.i.get(n),i=e.g.licenseServerUri,a=e.h.advanced[e.g.keySystem],"individualization-request"==t.messageType&&a&&a.individualizationServer&&(i=a.individualizationServer),(o=Cr([i],e.h.retryParameters)).body=t.message,o.method="POST",o.licenseRequestType=t.messageType,o.sessionId=n.sessionId,o.drmInfo=e.g,r&&(o.initData=r.initData,o.initDataType=r.initDataType),Pi(e.g.keySystem)&&function(e){var t=kt(e.body,!0,!0);if(t.includes("PlayReadyKeyMessage")){for(var n=u((t=_i(t,"PlayReadyKeyMessage")).getElementsByTagName("HttpHeader")),r=n.next();!r.done;r=n.next())r=r.value,e.headers[r.getElementsByTagName("name")[0].textContent]=r.getElementsByTagName("value")[0].textContent;e.body=Pt(t.getElementsByTagName("Challenge")[0].textContent)}else e.headers["Content-Type"]="text/xml; charset=utf-8"}(o),s=Date.now(),k(g,2),_(g,e.D.kb.request(2,o).promise,4);case 4:l=g.h,A(g,3);break;case 2:return c=w(g),p=new De(2,6,6007,c),e.m(p),r&&r.Ja&&r.Ja.reject(p),g.return();case 3:return e.j.g?g.return():(e.H+=(Date.now()-s)/1e3,e.h.logLicenseExchange&&It(l.data),k(g,5),_(g,n.update(l.data),7));case 7:A(g,6);break;case 5:return d=w(g),f=new De(2,6,6008,d.message),e.m(f),r&&r.Ja&&r.Ja.reject(f),g.return();case 6:if(e.j.g)return g.return();h=new vr("drmsessionupdate"),e.D.onEvent(h),r&&(r.Ja&&r.Ja.resolve(),new ot((function(){r.loaded=!0,ji(e)&&e.o.resolve()})).N(Ki)),E(g)}}))}function Mi(e,t){t=t.target;var n=e.i.get(t),r=!1;t.keyStatuses.forEach((function(t,i){if("string"==typeof i){var a=i;i=t,t=a}if(Pi(e.g.keySystem)&&16==i.byteLength&&(ut()||ht())){var o=(a=Ie(i)).getUint32(0,!0),s=a.getUint16(4,!0),l=a.getUint16(6,!0);a.setUint32(0,o,!1),a.setUint16(4,s,!1),a.setUint16(6,l,!1)}"status-pending"!=t&&(n.loaded=!0),"expired"==t&&(r=!0),i=Rt(i).slice(0,32),e.ea.set(i,t)}));var i=t.expiration-Date.now();(0>i||r&&1e3>i)&&n&&!n.Ja&&(e.i.delete(t),t.close().catch((function(){}))),ji(e)&&(e.o.resolve(),e.O.N(Gi))}function Ni(e){var t;return R((function(n){return t=Array.from(e.i.entries()),e.i.clear(),_(n,Promise.all(t.map((function(t){var n=(t=u(t)).next().value,r=t.next().value;return R((function(t){return 1==t.g?(k(t,2),e.da||e.B.includes(n.sessionId)||"persistent-license"!==r.type?_(t,function(e){var t;return R((function(n){return 1==n.g?(t=new Promise((function(e,t){new ot(t).N(Hi)})),k(n,2),_(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.g?A(n,0):(w(n),void E(n))}))}(n),5):_(t,n.remove(),5)):2!=t.g?A(t,0):(w(t),void E(t))}))}))),0)}))}function Ui(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],r=(e=u(e)).next();!r.done;r=e.next()){r=r.value;for(var i={},a=u(t),o=a.next();!o.done;i={Da:i.Da},o=a.next())if(o=o.value,r.keySystem==o.keySystem){i.Da=[],i.Da=i.Da.concat(r.initData||[]),i.Da=i.Da.concat(o.initData||[]),i.Da=i.Da.filter(function(e){return function(t,n){return void 0===t.keyId||n===e.Da.findIndex((function(e){return e.keyId===t.keyId}))}}(i)),a=r.keyIds&&o.keyIds?new Set([].concat(c(r.keyIds),c(o.keyIds))):r.keyIds||o.keyIds,n.push({keySystem:r.keySystem,licenseServerUri:r.licenseServerUri||o.licenseServerUri,distinctiveIdentifierRequired:r.distinctiveIdentifierRequired||o.distinctiveIdentifierRequired,persistentStateRequired:r.persistentStateRequired||o.persistentStateRequired,videoRobustness:r.videoRobustness||o.videoRobustness,audioRobustness:r.audioRobustness||o.audioRobustness,serverCertificate:r.serverCertificate||o.serverCertificate,serverCertificateUri:r.serverCertificateUri||o.serverCertificateUri,initData:i.Da,keyIds:a});break}}return n}function Fi(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function ji(e){return function(e,t){for(var n=(e=u(e)).next();!n.done;n=e.next())if(!t(n.value))return!1;return!0}(e=e.i.values(),(function(e){return e.loaded}))}function Bi(e,t,n,r,i,a){for(var o={},s=(e=u(e)).next();!s.done;o={oa:o.oa},s=e.next()){if(o.oa=s.value,t.includes(o.oa.licenseServerUri)||t.push(o.oa.licenseServerUri),r.includes(o.oa.serverCertificateUri)||r.push(o.oa.serverCertificateUri),o.oa.serverCertificate&&(n.some(function(e){return function(t){return we(t,e.oa.serverCertificate)}}(o))||n.push(o.oa.serverCertificate)),o.oa.initData){s={};for(var l=u(o.oa.initData),c=l.next();!c.done;s={Dc:s.Dc},c=l.next())s.Dc=c.value,i.some(function(e){return function(t){var n=e.Dc;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&we(t.initData,n.initData)}}(s))||i.push(s.Dc)}if(o.oa.keyIds)for(l=(s=u(o.oa.keyIds)).next();!l.done;l=s.next())a.add(l.value)}}function Vi(t,n,r,i){var a=t.keySystem;!a||"org.w3.clearkey"==a&&t.licenseServerUri||(n.size&&(n=n.get(a)||"",t.licenseServerUri=n),t.keyIds||(t.keyIds=new Set),(r=r.get(a))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=r.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=r.persistentStateRequired),t.videoRobustness||(t.videoRobustness=r.videoRobustness),t.audioRobustness||(t.audioRobustness=r.audioRobustness),t.serverCertificate||(t.serverCertificate=r.serverCertificate),r.sessionType&&(t.sessionType=r.sessionType),t.serverCertificateUri||(t.serverCertificateUri=r.serverCertificateUri)),i[a]&&(t.keySystem=i[a]),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==a&&(t.keySystem="com.chromecast.playready"))}(r=Ti.prototype).destroy=function(){return this.j.destroy()},r.configure=function(e){this.h=e},r.Yb=function(e){var t,n=this;return R((function(r){if(1==r.g)return n.u?(n.l=e,n.s.ma(n.l,"play",(function(){for(var e=u(n.J),t=e.next();!t.done;t=e.next())Li(n,t.value);n.M=!0,n.J=[]})),"webkitCurrentPlaybackTargetIsWireless"in n.l&&n.s.C(n.l,"webkitcurrentplaybacktargetiswirelesschanged",(function(){return Ni(n)})),(t=n.g?n.g.initData.find((function(e){return 0<e.initData.length})):null)||"com.apple.fps"!==n.g.keySystem||n.B.length?_(r,Si(n),2):r.A(2)):(n.s.ma(e,"encrypted",(function(){n.m(new De(2,6,6010))})),r.return());xi(n),t||n.B.length||n.h.parseInbandPsshEnabled||n.s.C(n.l,"encrypted",(function(e){return function(e,t){return R((function(n){if(1==n.g)return _(n,Si(e),2);Ii(e,t.initDataType,xe(t.initData)),E(n)}))}(n,e)})),E(r)}))},r.ic=function(){for(var e=1/0,t=this.i.keys(),n=(t=u(t)).next();!n.done;n=t.next())n=n.value,isNaN(n.expiration)||(e=Math.min(e,n.expiration));return e},r.Qc=function(){return Br(this.ba)};var Hi=1,Ki=5,Gi=.5,zi=new it((function(){return Ce(new Uint8Array([0]))}));function Wi(){}function Yi(e,t,n,r){var i,a,o,s;return R((function(l){if(1==l.g)return r&&(i=$i[r.toLowerCase()])?l.return(i):(a=Xi(e))&&(o=Qi[a])?l.return(o):r?l.A(2):_(l,qi(e,t,n),3);if(2!=l.g&&(r=l.h)&&(s=$i[r]))return l.return(s);throw new De(2,4,4e3,e)}))}function qi(e,t,n){var r,i,a;return R((function(o){return 1==o.g?((r=Cr([e],n)).method="HEAD",_(o,t.request(0,r).promise,2)):(i=o.h,a=i.headers["content-type"],o.return(a?a.toLowerCase().split(";").shift():""))}))}function Xi(e){return 1==(e=new Oe(e).qa.split("/").pop().split(".")).length?"":e.pop().toLowerCase()}B("shaka.media.ManifestParser",Wi),Wi.unregisterParserByMime=function(e){delete $i[e]},Wi.registerParserByMime=function(e,t){$i[e]=t},Wi.registerParserByExtension=function(e,t){Qi[e]=t};var $i={},Qi={};function Zi(e,t,n,r,i){var a=ea.value(),o=e.subarray(n.start,n.start+n.size),s=Ie(o),l=new Uint8Array(n.size+a.byteLength);for(l.set(o,0),(o=Ie(l)).setUint32(4,i),l.set(a,n.size),i=s.getUint32(4),o.setUint32(n.size+16,i),Ji(l,0,l.byteLength),i=new Uint8Array(e.byteLength+l.byteLength),n=ct()?n.start:n.start+n.size,a=e.subarray(n),i.set(e.subarray(0,n)),i.set(l,n),i.set(a,n+l.byteLength),r=(e=u(r)).next();!r.done;r=e.next())Ji(i,(r=r.value).start,r.size+l.byteLength);return l=Ie(i,t.start),t=Zr(t),e=l.getUint32(t),l.setUint32(t,e+1),i}function Ji(e,t,n){0!=(t=(e=Ie(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}var ea=new it((function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}));function ta(e,t,n,r,i){if(r>=i)return null;for(var a=-1,o=-1,s=0;s<n.length;s++)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){a=s;break}for(s=n.length-1;0<=s;s--)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){o=s;break}if(-1===a||-1===o)return null;for(var l=s=!1,u="white",c="black",p=na(r,i,s,l,u,c);a<=o;a++){for(var d=n[a],f=-1,h=-1,g=0;g<d.length;g++)if(null!=d[g]&&""!==d[g].g.trim()){f=g;break}for(g=d.length-1;0<=g;g--)if(null!=d[g]&&""!==d[g].g.trim()){h=g;break}if(-1===f||-1===h)d=ra(r,i),e.nestedCues.push(d);else{for(;f<=h;f++)if(g=d[f]){var y=g.l,v=g.i,m=g.j,b=g.h;y==s&&v==l&&m==u&&b==c||(p.payload&&e.nestedCues.push(p),p=na(r,i,y,v,m,b),s=y,l=v,u=m,c=b),p.payload+=g.g}else p.payload+=" ";p.payload&&e.nestedCues.push(p),a!==o&&(p=ra(r,i),e.nestedCues.push(p)),p=na(r,i,s,l,u,c)}}return e.nestedCues.length?{cue:e,stream:t}:null}function na(e,t,n,r,i,a){return e=new ie(e,t,""),n&&e.textDecoration.push("underline"),r&&(e.fontStyle="italic"),e.color=i,e.backgroundColor=a,e}function ra(e,t){return(e=new ie(e,t,"")).lineBreak=!0,e}function ia(e,t,n,r,i){this.g=e,this.l=t,this.i=n,this.h=r,this.j=i}function aa(e,t){this.i=[],this.g=1,this.h=0,this.u=e,this.s=t,this.j=this.m=!1,this.l="white",this.o="black",sa(this)}function oa(e,t,n){return ta(new ie(t,n,""),"CC"+(e.u<<1|e.s+1),e.i,t,n)}function sa(e){ca(e,0,15),e.g=1}function la(e,t,n){if(!(32>n||127<n)){var r="";switch(t){case pa:r=ga.has(n)?ga.get(n):String.fromCharCode(n);break;case da:r=ya.get(n);break;case fa:e.i[e.g].pop(),r=va.get(n);break;case ha:e.i[e.g].pop(),r=ma.get(n)}r&&e.i[e.g].push(new ia(r,e.m,e.j,e.o,e.l))}}function ua(e,t,n,r){if(!(0>n||0>t))if(t>=n)for(--r;0<=r;r--)e.i[t+r]=e.i[n+r].map((function(e){return e}));else for(var i=0;i<r;i++)e.i[t+i]=e.i[n+i].map((function(e){return e}))}function ca(e,t,n){for(var r=0;r<=n;r++)e.i[t+r]=[]}var pa=0,da=1,fa=2,ha=3,ga=new Map([[39,"’"],[42,"á"],[92,"é"],[92,"é"],[94,"í"],[95,"ó"],[96,"ú"],[123,"ç"],[124,"÷"],[125,"Ñ"],[126,"ñ"],[127,"█"]]),ya=new Map([[48,"®"],[49,"°"],[50,"½"],[51,"¿"],[52,"™"],[53,"¢"],[54,"£"],[55,"♪"],[56,"à"],[57,"⠀"],[58,"è"],[59,"â"],[60,"ê"],[61,"î"],[62,"ô"],[63,"û"]]),va=new Map([[32,"Á"],[33,"É"],[34,"Ó"],[35,"Ú"],[36,"Ü"],[37,"ü"],[38,"‘"],[39,"¡"],[40,"*"],[41,"'"],[42,"─"],[43,"©"],[44,"℠"],[45,"·"],[46,"“"],[47,"”"],[48,"À"],[49,"Â"],[50,"Ç"],[51,"È"],[52,"Ê"],[53,"Ë"],[54,"ë"],[55,"Î"],[56,"Ï"],[57,"ï"],[58,"Ô"],[59,"Ù"],[60,"ù"],[61,"Û"],[62,"«"],[63,"»"]]),ma=new Map([[32,"Ã"],[33,"ã"],[34,"Í"],[35,"Ì"],[36,"ì"],[37,"Ò"],[38,"ò"],[39,"Õ"],[40,"õ"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"Ä"],[49,"ä"],[50,"Ö"],[51,"ö"],[52,"ß"],[53,"¥"],[54,"¤"],[55,"│"],[56,"Å"],[57,"å"],[58,"Ø"],[59,"ø"],[60,"┌"],[61,"┐"],[62,"└"],[63,"┘"]]);function ba(e,t){this.h=Ta,this.o=new aa(e,t),this.i=new aa(e,t),this.l=new aa(e,t),this.g=this.i,this.j=0,this.m=null}function _a(e,t,n){e.g=e.i;var r=e.g,i=null;return e.h!==wa&&e.h!==Sa&&(i=oa(r,e.j,n),(n=e.i).g=0<n.h?n.h:0,ca(n,0,15),(n=e.l).g=0<n.h?n.h:0,ca(n,0,15),r.g=15),e.h=wa,r.h=t,i}function Ea(e){e.h=Aa,e.g=e.l,e.g.h=0}function ka(e){Y("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.o,e.h=Sa}var Ta=0,Aa=1,wa=3,Sa=4,Ca="black green blue cyan red yellow magenta black".split(" "),xa="white green blue cyan red yellow magenta white_italics".split(" ");function Ia(){this.l=!1,this.B=this.F=0,this.D=Ua,this.i=[],this.g=this.h=this.j=0,this.u=this.o=!1,this.s="white",this.m="black",Pa(this)}function Pa(e){e.i=[];for(var t=0;16>t;t++)e.i.push(Da())}function Da(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function Ra(e,t){Oa(e)&&(e.i[e.h][e.g]=new ia(t,e.u,e.o,e.m,e.s),e.g++)}function Oa(e){var t=e.g<e.B&&0<=e.g;return e.h<e.F&&0<=e.h&&t}function La(e,t,n){var r=new ie(e.j,t,"");return r.textAlign=e.D===Ma?"left":e.D===Na?"right":se,(n=ta(r,"svc"+n,e.i,e.j,t))&&(e.j=t),n}Ia.prototype.isVisible=function(){return this.l};var Ma=0,Na=1,Ua=2;function Fa(){this.i=[],this.h=null,this.g=0}function ja(e,t){3===t.type?(e.g=2*(63&t.value)-1,e.h=[]):e.h&&(0<e.g&&(e.h.push(t),e.g--),0===e.g&&(e.i.push(new Ba(e.h)),e.h=null,e.g=0))}function Ba(e){this.g=0,this.h=e}function Va(e){if(!e.ha())throw new De(2,2,3e3);return e.h[e.g++]}function Ha(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function Ka(e,t,n,r){if(128<=n&&135>=n)r=7&n,e.h[r]&&(e.g=e.h[r]);else{if(136===n){n=Va(t).value,t=null;for(var i=(n=u(Ga(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=La(i,r,e.i)),Pa(i);return t}if(137===n)for(n=(t=u(Ga(e,t=Va(t).value))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=r),n.l=!0;else{if(138===n){for(n=Va(t).value,t=null,i=(n=u(Ga(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=La(i,r,e.i)),i.l=!1;return t}if(139===n){for(n=Va(t).value,t=null,i=(n=u(Ga(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()?t=La(i,r,e.i):i.j=r,i.l=!i.l;return t}if(140===n)return za(e,t=Va(t).value,r);if(143===n)return r=za(e,255,r),Wa(e),r;if(144===n)t.skip(1),r=Va(t).value,e.g&&(e.g.o=0<(128&r),e.g.u=0<(64&r));else if(145===n)r=Va(t).value,n=Va(t).value,t.skip(1),e.g&&(t=Ya((48&n)>>4,(12&n)>>2,3&n),e.g.s=Ya((48&r)>>4,(12&r)>>2,3&r),e.g.m=t);else if(146===n)r=Va(t).value,t=Va(t).value,e.g&&((e=e.g).h=15&r,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),r=Va(t).value,t.skip(1),e.g&&(e.g.D=3&r);else if(152<=n&&159>=n){if(n=(15&n)-8,!(i=null!==e.h[n])){var a=new Ia;a.j=r,e.h[n]=a}r=Va(t).value,Va(t),Va(t),a=Va(t).value;var o=Va(t).value;t=Va(t).value,i&&0==(7&t)||((t=e.h[n]).h=0,t.g=0,t.u=!1,t.o=!1,t.s="white",t.m="black"),(t=e.h[n]).l=0<(32&r),t.F=1+(15&a),t.B=1+(63&o),e.g=e.h[n]}}}return null}function Ga(e,t){for(var n=[],r=0;8>r;r++)1==(1&t)&&e.h[r]&&n.push(r),t>>=1;return n}function za(e,t,n){for(var r=null,i=(t=u(Ga(e,t))).next();!i.done;i=t.next()){i=i.value;var a=e.h[i];a.isVisible()&&(r=La(a,n,e.i)),e.h[i]=null}return r}function Wa(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function Ya(e,t,n){var r={0:0,1:0,2:1,3:1};return Xa[(e=r[e])<<2|(t=r[t])<<1|(n=r[n])]}Ba.prototype.ha=function(){return this.g<this.h.length},Ba.prototype.Z=function(){return this.g},Ba.prototype.skip=function(e){if(this.g+e>this.h.length)throw new De(2,2,3e3);this.g+=e};var qa=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,"‘"],[50,"’"],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),Xa="black blue green cyan red magenta yellow white".split(" ");function $a(){this.h=[],this.g=[],this.i=new Fa,this.l=0,this.s=new Map([["CC1",new ba(0,0)],["CC2",new ba(0,1)],["CC3",new ba(1,0)],["CC4",new ba(1,1)]]),this.o=this.m=0,this.j=new Map,Qa(this)}function Qa(e){e.m=0,e.o=0;for(var t=(e=u(e.s.values())).next();!t.done;t=e.next())(t=t.value).h=2,t.g=t.i,t.m=null,sa(t.i),sa(t.l),sa(t.o)}function Za(e,t){var n=t.type;if(16==(112&t.xa)){var r=t.xa>>3&1;0===n?e.m=r:e.o=r}if(n=e.s.get("CC"+(n<<1|(n?e.o:e.m)+1)),255===t.xa&&255===t.La||!t.xa&&!t.La||!eo(t.xa)||!eo(t.La))return 45<=++e.l&&Qa(e),null;if(e.l=0,t.xa&=127,t.La&=127,!t.xa&&!t.La)return null;if(e=null,16==(112&t.xa))e:{if(r=t.xa,e=t.La,n.m===(r<<8|e))n.m=null;else if(n.m=r<<8|e,16==(240&r)&&64==(192&e)){t=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&r)<<1|e>>5&1];var i=(30&e)>>1;r="white";var a=!1;if(7>i?r=xa[i]:7===i&&(a=!0),e=1==(1&e),n.h!==Sa){if(i=n.g,n.h===wa&&t!==i.g){var o=1+t-i.h;ua(i,o,1+i.g-i.h,i.h),ca(i,0,o-1),ca(i,t+1,15-t)}i.g=t,n.g.m=e,n.g.j=a,n.g.l=r,n.g.o="black"}}else if(17==(247&r)&&32==(240&e))n.g.m=!1,n.g.j=!1,n.g.l="white",la(n.g,pa,32),r=!1,"white_italics"===(t=xa[(14&e)>>1])&&(t="white",r=!0),n.g.m=1==(1&e),n.g.j=r,n.g.l=t;else if(16==(247&r)&&32==(240&e)||23==(247&r)&&45==(255&e))t="black",0==(7&r)&&(t=Ca[(14&e)>>1]),n.g.o=t;else if(17==(247&r)&&48==(240&e))la(n.g,da,e);else if(18==(246&r)&&32==(224&e))la(n.g,1&r?ha:fa,e);else if(20==(246&r)&&32==(240&e)){switch(e=t.pts,r=null,t.La){case 32:Ea(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:r=_a(n,2,e);break;case 38:r=_a(n,3,e);break;case 39:r=_a(n,4,e);break;case 40:la(n.g,pa,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.j=e;break;case 42:sa(n.o),ka(n);break;case 43:ka(n);break;case 44:t=n.i,r=null,n.h!==Sa&&(r=oa(t,n.j,e)),ca(t,0,15);break;case 45:t=n.g,n.h!==wa?r=null:(r=oa(t,n.j,e),ua(t,(a=t.g-t.h+1)-1,a,t.h),ca(t,0,a-1),ca(t,t.g,15-t.g),n.j=e);break;case 46:ca(n.l,0,15);break;case 47:t=null,n.h!==Sa&&(t=oa(n.i,n.j,e)),r=n.l,n.l=n.i,n.i=r,Ea(n),n.j=e,r=t}e=r;break e}e=null}else r=t.La,la(n.g,pa,t.xa),la(n.g,pa,r);return e}function Ja(e,t){var n=[];try{for(;t.ha();){var r=Va(t).value,i=(224&r)>>5,a=31&r;if(7===i&&0!=a&&(i=63&Va(t).value),0!=i){e.j.has(i)||e.j.set(i,new Ha(i));for(var o=e.j.get(i),s=t.Z();t.Z()-s<a;){var l=Va(i=t),u=l.value,c=l.pts;if(16===u)u=u<<16|Va(i).value;if(0<=u&&31>=u){var p=c;if(o.g){var d=o.g;switch(i=null,u){case 8:!Oa(d)||0>=d.g&&0>=d.h||(0>=d.g?(d.g=d.B-1,d.h--):d.g--,d.i[d.h][d.g]=null);break;case 13:if(d.isVisible()&&(i=La(d,p,o.i)),d.h+1>=d.F){p=d;for(var f=0,h=1;16>h;h++,f++)p.i[f]=p.i[h];for(h=0;1>h;h++,f++)p.i[f]=Da()}else d.h++;d.g=0;break;case 14:d.isVisible()&&(i=La(d,p,o.i)),d.i[d.h]=Da(),d.g=0;break;case 12:d.isVisible()&&(i=La(d,p,o.i)),Pa(d),(p=d).h=0,p.g=0}var g=i}else g=null}else if(128<=u&&159>=u)g=Ka(o,i,u,c);else{if(4096<=u&&4127>=u)8<=(p=255&u)&&15>=p?i.skip(1):16<=p&&23>=p?i.skip(2):24<=p&&31>=p&&i.skip(3);else if(4224<=u&&4255>=u)128<=(p=255&u)&&135>=p?i.skip(4):136<=p&&143>=p&&i.skip(5);else if(32<=u&&127>=u)i=u,o.g&&Ra(o.g,127===i?"♪":String.fromCharCode(i));else if(160<=u&&255>=u)o.g&&Ra(o.g,String.fromCharCode(u));else if(4128<=u&&4223>=u){if(i=255&u,o.g)if(qa.has(i)){var y=qa.get(i);Ra(o.g,y)}else Ra(o.g,"_")}else 4256<=u&&4351>=u&&o.g&&Ra(o.g,160!=(255&u)?"_":"[CC]");g=null}(i=g)&&n.push(i)}}}}catch(e){if(!(e instanceof De&&3e3===e.code))throw e;Y("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}function eo(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function to(){}function no(e,t){var n=null,r=null,i=null,a=e.K();return 1&t&&(i=e.$a()),2&t&&e.skip(4),8&t&&(n=e.K()),16&t&&(r=e.K()),{trackId:a,Ce:n,xf:r,rh:i}}function ro(e,t){return{we:1==t?e.$a():e.K()}}function io(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),{timescale:e.K()}}function ao(e,t,n){var r=e.K(),i=[],a=null;1&n&&(a=e.K()),4&n&&e.skip(4);for(var o=0;o<r;o++){var s={ee:null,sampleSize:null,ed:null};256&n&&(s.ee=e.K()),512&n&&(s.sampleSize=e.K()),1024&n&&e.skip(4),2048&n&&(s.ed=0==t?e.K():e.Pe()),i.push(s)}return{wh:r,Re:i,wf:a}}function oo(){this.j=new Map,this.i=this.h=0,this.g=so}to.prototype.init=function(){},to.prototype.parse=function(){return[]},oo.prototype.init=function(e){function t(e){(e=e.name)in co&&(n.g=co[e])}var n=this,r=[],i=[];if((new zr).box("moov",Wr).box("mvex",Wr).P("trex",(function(e){var t=e.reader;t.skip(4),t.skip(4),e=t.K(),t=t.K(),n.h=e,n.i=t})).box("trak",Wr).P("tkhd",(function(e){var t=e.reader;1==e.version?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4)),e=t.K(),r.push(e)})).box("mdia",Wr).P("mdhd",(function(e){e=io(e.reader,e.version),i.push(e.timescale)})).box("minf",Wr).box("stbl",Wr).P("stsd",Yr).box("avc1",t).box("avc3",t).box("hev1",t).box("hvc1",t).box("dvh1",t).box("dvhe",t).box("encv",qr).box("sinf",Wr).box("frma",(function(e){(e=Qr(e=e.reader.K()))in co&&(n.g=co[e])})).parse(e,!0),!r.length||!i.length||r.length!=i.length)throw new De(2,2,2010);this.g==so&&W("Unable to determine bitstream format for CEA parsing!"),r.forEach((function(e,t){n.j.set(e,i[t])}))},oo.prototype.parse=function(e){var t=this;if(this.g==so)return[];var n=[],r=this.h,i=this.i,a=[],o=null,s=null,l=null,p=9e4;return(new zr).box("moof",(function(e){o=e.start,Wr(e)})).box("traf",Wr).P("trun",(function(e){e=ao(e.reader,e.version,e.flags),a=e.Re,s=e.wf})).P("tfhd",(function(e){e=no(e.reader,e.flags),r=e.Ce||t.h,i=e.xf||t.i,e=e.trackId,t.j.has(e)&&(p=t.j.get(e))})).P("tfdt",(function(e){l=ro(e.reader,e.version).we})).box("mdat",(function(e){if(null===l)throw new De(2,2,2010);e:{var d=e.reader,f=l,h=p,g=r,y=i,v=a,m=0,b=y;for(v.length&&(b=v[0].sampleSize||y),d.skip((o||0)+(s||0)-e.start-8);d.ha();){e=d.K();var _=d.Ra();switch(t.g){case lo:_=6==(_&=31);break;case uo:_=39==(_=_>>1&63)||40==_;break;default:break e}if(_){_=0,v.length>m&&(_=v[m].ed||0),_=(f+_)/h;for(var E,k=[],T=d.Za(e-1),A=E=0;A<T.length;)2==E&&3==T[A]?(E=0,(T=[].concat(c(T))).splice(A,1),T=new Uint8Array(T)):0==T[A]?E++:E=0,A++;for(E=T,A=0;A<E.length;){for(T=0;255==E[A];)T+=255,A++;T+=E[A++];for(var w=0;255==E[A];)w+=255,A++;w+=E[A++],4==T&&k.push(E.subarray(A,A+w)),A+=w}for(E=(k=u(k)).next();!E.done;E=k.next())n.push({ig:E.value,pts:_})}else try{d.skip(e-1)}catch(e){break}0==(b-=e+4)&&(f=v.length>m?f+(v[m].ee||g):f+g,m++,b=v.length>m&&v[m].sampleSize||y)}}})).parse(e,!1),n};var so=0,lo=1,uo=2,co={avc1:lo,avc3:lo,hev1:uo,hvc1:uo,dvh1:uo,dvhe:uo};function po(e){this.h=new to,e.includes("video/mp4")&&(this.h=new oo),this.g=new $a}function fo(e,t){for(var n=(t=u(t=e.h.parse(t))).next();!n.done;n=t.next()){var r=n.value,i=xe(r.ig);if(0<i.length&&(n=e.g,r=r.pts,181===(i=new Hr(i,0)).Ra()&&49===i.$d()&&1195456820===i.K()&&3===i.Ra())){var a=i.Ra();if(0!=(64&a)){a&=31,i.skip(1);for(var o=0;o<a;o++){var s=i.Ra(),l=(4&s)>>2,p=i.Ra(),d=i.Ra();l&&(0===(s&=3)||1===s?n.h.push({pts:r,type:s,xa:p,La:d,order:n.h.length}):(n.g.push({pts:r,type:s,value:p,order:n.g.length}),n.g.push({pts:r,type:2,value:d,order:n.g.length})))}}}}return function(e){function t(e,t){return e.pts-t.pts||e.order-t.order}var n=[];e.h.sort(t),e.g.sort(t);for(var r=u(e.h),i=r.next();!i.done;i=r.next())(i=Za(e,i.value))&&n.push(i);for(i=(r=u(e.g)).next();!i.done;i=r.next())ja(e.i,i.value);for(i=(r=u(e.i.i)).next();!i.done;i=r.next())i=Ja(e,i.value),n.push.apply(n,c(i));return e.i.i=[],e.h=[],e.g=[],n}(e.g)}function ho(e,t,n,r,i){this.ya=e,this.Ba=t,this.ka=n,this.Od=void 0===r?null:r,this.timescale=i}function go(e,t,n,r,i,a,o,s,l,u,c,p,d,f,h){u=void 0===u?[]:u,f=void 0===f?yo:f,this.startTime=e,this.j=this.endTime=t,this.u=n,this.Ba=r,this.ka=i,this.h=a,this.timestampOffset=o,this.appendWindowStart=s,this.appendWindowEnd=l,this.i=u,this.tilesLayout=void 0===c?"":c,this.s=void 0===p?null:p,this.g=void 0===d?null:d,this.status=f,this.l=void 0===h?null:h,this.o=null,this.m=0}po.prototype.init=function(e){this.h.init(e)},ho.prototype.lc=function(){return this.Ba},ho.prototype.hc=function(){return this.ka},B("shaka.media.InitSegmentReference",ho),ho.prototype.getEndByte=ho.prototype.hc,ho.prototype.getStartByte=ho.prototype.lc,(r=go.prototype).ya=function(){return this.u()},r.getStartTime=function(){return this.startTime},r.Ef=function(){return this.endTime},r.lc=function(){return this.Ba},r.hc=function(){return this.ka},r.Vf=function(){return this.tilesLayout},r.Uf=function(){return this.s},r.Eb=function(){return this.status},r.bg=function(){this.status=vo},r.Ye=function(e){this.o=e},r.Sf=function(){return this.o},r.offset=function(e){this.startTime+=e,this.endTime+=e,this.j+=e;for(var t=u(this.i),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.j+=e},r.oe=function(e){null==this.g?z("Sync attempted without sync time!"):(e=this.g-e-this.startTime,.001<=Math.abs(e)&&this.offset(e))},B("shaka.media.SegmentReference",go),go.prototype.syncAgainst=go.prototype.oe,go.prototype.offset=go.prototype.offset,go.prototype.getThumbnailSprite=go.prototype.Sf,go.prototype.setThumbnailSprite=go.prototype.Ye,go.prototype.markAsUnavailable=go.prototype.bg,go.prototype.getStatus=go.prototype.Eb,go.prototype.getTileDuration=go.prototype.Uf,go.prototype.getTilesLayout=go.prototype.Vf,go.prototype.getEndByte=go.prototype.hc,go.prototype.getStartByte=go.prototype.lc,go.prototype.getEndTime=go.prototype.Ef,go.prototype.getStartTime=go.prototype.getStartTime,go.prototype.getUris=go.prototype.ya;var yo=0,vo=1;function mo(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:1==e.length&&0>e.start(0)?0:e.length?e.start(0):null}function bo(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function _o(e,t){return!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t>=e.start(0)}function Eo(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,r=(e=u(ko(e))).next();!r.done;r=e.next()){var i=r.value;r=i.start,(i=i.end)>t&&(n+=i-Math.max(r,t))}return n}function ko(e){if(!e)return[];for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}
/*
 @license
 Shaka Player
 Copyright 2022 Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
function To(){}function Ao(e,t){var n=(127&e[t])<<21;return n|=(127&e[t+1])<<14,(n|=(127&e[t+2])<<7)|127&e[t+3]}function wo(e){var t={key:e.type,description:"",data:""};if("TXXX"===e.type){if(2>e.size||3!==e.data[0])return null;var n=e.data.subarray(1).indexOf(0);if(-1===n)return null;var r=Et(xe(e.data,1,n));return e=Et(xe(e.data,2+n)).replace(/\0*$/,""),t.description=r,t.data=e,t}return"WXXX"===e.type?2>e.size||3!==e.data[0]||-1===(n=e.data.subarray(1).indexOf(0))?null:(r=Et(xe(e.data,1,n)),e=Et(xe(e.data,2+n)).replace(/\0*$/,""),t.description=r,t.data=e,t):"PRIV"===e.type?2>e.size||-1===(r=e.data.indexOf(0))?null:(r=Et(xe(e.data,0,r)),e=Ce(e.data.subarray(r.length+1)),t.description=r,t.data=e,t):"T"===e.type[0]?2>e.size||3!==e.data[0]?null:(e=Et(e.data.subarray(1)).replace(/\0*$/,""),t.data=e,t):"W"===e.type[0]?(e=Et(e.data).replace(/\0*$/,""),t.data=e,t):e.data?(t.data=Ce(e.data),t):null}function So(e){for(var t=0,n=[];t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9];){var r=Ao(e,t+6);for(e[t+5]>>6&1&&(t+=10),r=(t+=10)+r;t+10<r;){var i=e.subarray(t),a=Ao(i,4);(a=wo(i={type:String.fromCharCode(i[0],i[1],i[2],i[3]),size:a,data:i.subarray(10,10+a)}))&&n.push(a),t+=i.size+10}t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]&&(t+=10)}return n}function Co(){this.o=null,this.s=!1,this.l=this.m=null,this.B=[],this.g=this.h=null,this.u=[],this.j=null,this.i=[]}function xo(e){if(1!=(e[0]<<16|e[1]<<8|e[2]))return null;var t={data:new Uint8Array(0),vh:6+(e[4]<<8|e[5]),pts:null,dts:null},n=e[7];return 192&n&&(t.pts=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,t.dts=t.pts,64&n&&(t.dts=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)),t.data=e.subarray(9+e[8]),t}function Io(e){for(var t=Math.min(1e3,e.length-564),n=0;n<t;){if(71===e[n]&&71===e[n+188]&&71===e[n+376])return n;n++}return-1}function Po(e,t,n){this.g=null,this.i=-1,this.j=e,this.h=t,this.l=n,"undefined"==typeof libDPIModule&&W("Could not Find LCEVC Library dependencies on this page"),"undefined"==typeof LcevcDil?W("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||W(LcevcDil.SupportObject.SupportError),"undefined"!=typeof LcevcDil&&"undefined"!=typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&(this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}function Do(e,t){var n=Ro;switch(t.mimeType){case"video/webm":n=Oo;break;case"video/mp4":n=Lo}e.g&&(e.i=t.id,e.g.setLevelSwitching(t.id,!0),e.g.setContainerFormat(n))}go.Status={Hg:yo,oh:vo,Vg:2},B("shaka.util.Id3Utils",To),To.getID3Frames=So,Co.prototype.parse=function(e){if(564>e.length)return this;for(var t=Math.max(0,Io(e)),n=e.length-(e.length+t)%188,r=!1,i=t;i<n;i+=188)if(71===e[i]){var a=!!(64&e[i+1]),o=((31&e[i+1])<<8)+e[i+2];if(1<(48&e[i+3])>>4){var s=i+5+e[i+4];if(s===i+188)continue}else s=i+4;switch(o){case 0:a&&(s+=e[s]+1),this.o=(31&e[s+10])<<8|e[s+11];break;case 17:case 8191:break;case this.o:a&&(s+=e[s]+1),o={audio:-1,video:-1,Ed:-1,audioCodec:"",videoCodec:""};var l=s+3+((15&(a=e)[s+1])<<8|a[s+2])-4;for(s+=12+((15&a[s+10])<<8|a[s+11]);s<l;){var u=(31&a[s+1])<<8|a[s+2];switch(a[s]){case 15:-1===o.audio&&(o.audio=u,o.audioCodec="aac");break;case 21:-1===o.Ed&&(o.Ed=u);break;case 27:-1===o.video&&(o.video=u,o.videoCodec="avc");break;case 3:case 4:-1===o.audio&&(o.audio=u,o.audioCodec="mp3");break;case 36:-1===o.video&&(o.video=u,o.videoCodec="hvc")}s+=5+((15&a[s+3])<<8|a[s+4])}a=o,null==this.l&&(this.l=a.video),null==this.g&&(this.g=a.audio),null==this.j&&(this.j=a.Ed),r&&!this.s&&(r=!1,i=t-188),this.s=!0;break;case this.l:a=e.subarray(s,i+188),null==this.m&&(s=xo(a))&&null!=s.pts&&(this.m=s.pts/9e4),this.B.push(a);break;case this.g:a=e.subarray(s,i+188),null==this.h&&(s=xo(a))&&null!=s.pts&&(this.h=s.pts/9e4),this.u.push(a);break;case this.j:this.i.push(e.subarray(s,i+188));break;default:r=!0}}return this},Co.prototype.getStartTime=function(){return{audio:this.h,video:this.m}},B("shaka.util.TsParser",Co),Po.prototype.release=function(){this.g&&(this.g.close(),this.g=null)},B("shaka.lcevc.Dil",Po),Po.prototype.release=Po.prototype.release;var Ro=0,Oo=1,Lo=2;function Mo(e,t,n,r){var i=this;this.j=e,this.F=null,this.m=t,this.h={},this.L={},this.O={},this.g=null,this.H=!1,this.V=n||function(){},this.D=r||null,this.i={},this.u=new Mr,this.o={},this.s=null,this.J=new rt,this.l=function(e,t){var n=new MediaSource;return e.u.ma(n,"sourceopen",(function(){URL.revokeObjectURL(e.M),t.resolve()})),e.M=Zo(n),e.j.src=e.M,n}(this,this.J),this.G=new Or((function(){return function(e){var t,n,r,i,a,o,s;return R((function(l){if(1==l.g){for(n in t=[],e.i)for(r=e.i[n],i=r[0],e.i[n]=r.slice(0,1),i&&t.push(i.p.catch(qe)),a=u(r.slice(1)),o=a.next();!o.done;o=a.next())o.value.p.reject(new De(2,7,7003,void 0));for(s in e.g&&t.push(e.g.destroy()),e.m&&t.push(e.m.destroy()),e.o)t.push(e.o[s].destroy());return _(l,Promise.all(t),2)}e.u&&(e.u.release(),e.u=null),e.j&&(e.j.removeAttribute("src"),e.j.load(),e.j=null),e.F=null,e.l=null,e.g=null,e.m=null,e.h={},e.o={},e.s=null,e.i={},e.D=null,E(l)}))}(i)})),this.M="",this.B=!1,this.W=new rt}function No(e,t,n){e.g||(e.g=new qt(e.m));var r=e.g;e=e.H,"application/cea-608"!=t&&"application/cea-708"!=t&&(r.j=(0,Jt[t])(),r.j.setSequenceMode?r.j.setSequenceMode(n):W('Text parsers should have a "setSequenceMode" method!'),r.u=e)}function Uo(e){return!e.l||"ended"==e.l.readyState}function Fo(e,t){return t==et?e.g.g:mo(Bo(e,t))}function jo(e,t){return t==et?e.g.h:bo(Bo(e,t))}function Bo(e,t){try{return e.h[t].buffered}catch(e){return null}}function Vo(e,t,n,r,i,a,o){var s,l,c,p,d,f,h,g,y,v,m,b,k,T,A,w,S,C,x,I,P,D;return a=void 0!==a&&a,o=void 0!==o&&o,R((function(O){switch(O.g){case 1:if(t!=(s=tt).X){O.A(2);break}if(!e.B){O.A(3);break}return _(O,e.W,4);case 4:l=O.h,e.g.s=l;case 3:return _(O,function(e,t,n,r){var i,a,o,s;return R((function(l){return 1==l.g?_(l,Promise.resolve(),2):e.j&&e.i?null==n||null==r?(e.j.parseInit(xe(t)),l.return()):(i=e.u?n:e.s,a={periodStart:e.s,segmentStart:n,segmentEnd:r,vttOffset:i},o=e.j.parseMedia(xe(t),a),s=o.filter((function(t){return t.startTime>=e.l&&t.startTime<e.m})),e.i.append(s),null==e.g&&(e.g=Math.max(n,e.l)),e.h=Math.min(r,e.m),void E(l)):l.return()}))}(e.g,n,r?r.startTime:null,r?r.endTime:null),5);case 5:return O.return();case 2:if(c=xe(n),p=e.L[t],e.o[t]&&(p=e.o[t].o),0>Io(c)?es.includes(p)&&((g=So(c)).length&&r&&(y={cueTime:r.startTime,data:c,frames:g,dts:r.startTime,pts:r.startTime},e.V([y],0,r.endTime))):(d=(new Co).parse(c),f=r.startTime-(d.getStartTime()[t]||0),(h=function(e){for(var t=[],n=new Uint8Array(0),r=e.i.length-1;0<=r;r--){var i=xo(n=Ot(e.i[r],n));i&&(t.unshift({cueTime:i.pts?i.pts/9e4:null,data:i.data,frames:So(i.data),dts:i.dts,pts:i.pts}),n=new Uint8Array(0))}return t}(d)).length&&e.V(h,f,r?r.endTime:null)),!e.o[t]){i&&t==s.va&&(e.g||No(e,"text/vtt",e.B),e.s||(e.s=new po(p)),r?(v=fo(e.s,n)).length&&(m=e.h[s.va].timestampOffset,Zt(e.g,v,r.startTime,r.endTime,m)):e.s.init(n)),O.A(6);break}return a&&e.o[t].g.resetCaptions(),_(O,function(e,t){return e.j=!0,e.h=new rt,e.l=[],e.i=[],t=xe(t),e.g.push(t),e.g.flush(),e.j&&e.h.reject(new De(2,3,3018)),e.h}(e.o[t],n),7);case 7:b=O.h,e.g||No(e,"text/vtt",e.B),b.captions&&b.captions.length&&(k=e.h[s.va].timestampOffset,T=function(e){for(var t=[],n=(e=u(e)).next();!n.done;n=e.next())n=n.value,t.push({stream:n.stream,cue:new ie(n.startTime,n.endTime,n.text)});return t}(b.captions),Zt(e.g,T,r?r.startTime:null,r?r.endTime:null,k)),n=b.data;case 6:if(n=function(e,t,n,r){var i=e.O[r];return null==n&&i&&(pt()||ct())&&"mp4"==e.L[r].split(";")[0].split("/")[1]&&(t=function(e){function t(){i=!0}function n(e){a.push(e),Wr(e)}e=xe(e);var r,i=!1,a=[],o=[];if((new zr).box("moov",n).box("trak",n).box("mdia",n).box("minf",n).box("stbl",n).P("stsd",(function(e){r=e,a.push(e),Yr(e)})).P("encv",t).P("enca",t).P("hev1",(function(e){o.push({box:e,lb:1701733238})})).P("hvc1",(function(e){o.push({box:e,lb:1701733238})})).P("avc1",(function(e){o.push({box:e,lb:1701733238})})).P("avc3",(function(e){o.push({box:e,lb:1701733238})})).P("ac-3",(function(e){o.push({box:e,lb:1701733217})})).P("ec-3",(function(e){o.push({box:e,lb:1701733217})})).P("mp4a",(function(e){o.push({box:e,lb:1701733217})})).parse(e),i)return e;if(0==o.length||!r)throw Rt(e),new De(2,3,3019);o.reverse();for(var s=u(o),l=s.next();!l.done;l=s.next())l=l.value,e=Zi(e,r,l.box,a,l.lb);return e}(t)),t}(e,n,r?r.startTime:null,t),A=e.h[t],w=Jo,!e.B||A.mode==w||!r){O.A(8);break}if(S=e.l.duration,!(t==s.va||!(s.va in e.h))){O.A(9);break}return C=[A.appendWindowStart,A.appendWindowEnd],A.appendWindowStart=0,A.appendWindowEnd=1/0,x=A.timestampOffset,A.timestampOffset=0,_(O,qo(e,t,(function(){return Ko(e,t,n)})),10);case 10:return _(O,qo(e,t,(function(){return zo(e,t)})),11);case 11:return A.timestampOffset=x,A.appendWindowStart=C[0],A.appendWindowEnd=C[1],I=mo(Bo(e,t)),P=(r.startTime||0)-(I||0),e.W.resolve(P),_(O,qo(e,t,(function(){return Go(e,t,0,S)})),12);case 12:if(t!=s.va){O.A(9);break}return _(O,qo(e,t,(function(){e.j.currentTime-=.001,Yo(e,t)})),9);case 9:return A.mode=w,_(O,e.Aa(S),8);case 8:return r&&e.B&&t!=s.X&&(a||o)&&(D=r.startTime,qo(e,t,(function(){return zo(e,t)})),qo(e,t,(function(){return Wo(e,t,D)}))),_(O,qo(e,t,(function(){Ko(e,t,n)})),16);case 16:E(O)}}))}function Ho(e,t){return R((function(n){return t==tt.X?e.g?_(n,e.g.remove(0,1/0),0):n.return():_(n,qo(e,t,(function(){return Go(e,t,0,e.l.duration)})),0)}))}function Ko(e,t,n){if("video"==t&&e.D){var r=e.D;r.g&&r.g.appendBuffer(n,"video",r.i)}e.h[t].appendBuffer(n)}function Go(e,t,n,r){r<=n?Yo(e,t):e.h[t].remove(n,r)}function zo(e,t){var n=e.h[t].appendWindowStart,r=e.h[t].appendWindowEnd;e.h[t].abort(),e.h[t].appendWindowStart=n,e.h[t].appendWindowEnd=r,Yo(e,t)}function Wo(e,t,n){0>n&&(n+=.001),e.h[t].timestampOffset=n,Yo(e,t)}function Yo(e,t){var n=e.i[t][0];n&&(n.p.resolve(),$o(e,t))}function qo(e,t,n){return Lr(e.G),n={start:n,p:new rt},e.i[t].push(n),1==e.i[t].length&&Qo(e,t),n.p}function Xo(e,t){var n,r,i,a,o;return R((function(s){switch(s.g){case 1:for(i in Lr(e.G),n=[],r={},e.h)r.Ub=new rt,a={start:function(e){return function(){return e.Ub.resolve()}}(r),p:r.Ub},e.i[i].push(a),n.push(r.Ub),1==e.i[i].length&&a.start(),r={Ub:r.Ub};return k(s,2),_(s,Promise.all(n),4);case 4:A(s,3);break;case 2:throw w(s);case 3:try{t()}catch(e){throw new De(2,3,3015,e)}finally{for(o in e.h)$o(e,o)}E(s)}}))}function $o(e,t){e.i[t].shift(),Qo(e,t)}function Qo(e,t){var n=e.i[t][0];if(n)try{n.start()}catch(r){"QuotaExceededError"==r.name?n.p.reject(new De(2,3,3017,t)):n.p.reject(new De(2,3,3015,r)),$o(e,t)}}(r=Mo.prototype).destroy=function(){return this.G.destroy()},r.init=function(e,t,n){n=void 0!==n&&n;var r,i,a,o,s,l,c,p,d=this;return R((function(f){if(1==f.g)return r=tt,_(f,d.J,2);for(d.B=n,i={},a=u(e.keys()),o=a.next();!o.done;i={na:i.na},o=a.next())i.na=o.value,s=e.get(i.na),l=Kt(s.mimeType,s.codecs),i.na==r.X?No(d,l,n):(!t&&Z(l)||!Ft(l,i.na)||(d.o[i.na]=new Ut(l),l=Bt(i.na,l)),c=l+d.F.sourceBufferExtraFeatures,p=d.l.addSourceBuffer(c),d.u.C(p,"error",function(e){return function(){d.i[e.na][0].p.reject(new De(2,3,3014,d.j.error?d.j.error.code:0))}}(i)),d.u.C(p,"updateend",function(e){return function(){return Yo(d,e.na)}}(i)),d.h[i.na]=p,d.L[i.na]=l,d.i[i.na]=[],d.O[i.na]=!!s.drmInfos.length);E(f)}))},r.configure=function(e){this.F=e},r.Na=function(){var e={total:ko(this.j.buffered),audio:ko(Bo(this,"audio")),video:ko(Bo(this,"video")),text:[]};if(this.g){var t=this.g.g,n=this.g.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},r.remove=function(e,t,n){var r=this;return R((function(i){return _(i,e==tt.X?r.g.remove(t,n):qo(r,e,(function(){return Go(r,e,t,n)})),0)}))},r.flush=function(e){var t=this;return R((function(n){return e==tt.X?n.return():_(n,qo(t,e,(function(){t.j.currentTime-=.001,Yo(t,e)})),0)}))},r.endOfStream=function(e){var t=this;return R((function(n){return _(n,Xo(t,(function(){Uo(t)||(e?t.l.endOfStream(e):t.l.endOfStream())})),0)}))},r.Aa=function(e){var t=this;return R((function(n){return _(n,Xo(t,(function(){if(e<t.l.duration)for(var n in t.h){var r={start:function(){},p:new rt};t.i[n].unshift(r)}t.l.duration=e})),0)}))},r.getDuration=function(){return this.l.duration};var Zo=e.URL.createObjectURL,Jo="sequence",es=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function ts(e,t,n){this.i=e,this.m=t,this.o=this.j=1/0,this.g=1,this.h=this.l=null,this.s=0,this.u=!0,this.B=0,this.D=void 0===n||n,this.F=0,this.G=!1}function ns(e,t,n){this.l=n,this.j=e,this.s=is(e),this.g=e.g.currentTime,this.m=Date.now()/1e3,this.h=!1,this.o=0,this.u=t,this.i=function(){}}function rs(e){this.g=e}function is(e){if(e.g.paused||0==e.g.playbackRate||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime;for(var n=(e=u(ko(e.g.buffered))).next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function as(e,t,n,r,i){var a=this;this.o=i,this.g=e,this.s=t,this.D=n,this.i=new Mr,this.m=!1,this.B=e.readyState,this.u=0,this.h=r,this.l=!1,this.i.C(e,"waiting",(function(){return os(a)})),this.j=new ot((function(){os(a)})).Ca(.25)}function os(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.m)return}else e.m=!1;if(!e.g.paused||0==e.g.currentTime&&(e.g.autoplay||0!=e.g.currentTime)){var t;if(e.g.readyState!=e.B&&(e.B=e.g.readyState),!(t=!e.h)){var n=(t=e.h).j,r=is(n),i=n.g.currentTime,a=Date.now()/1e3;t.g==i&&t.s==r||(t.m=a,t.g=i,t.s=r,t.h=!1),(r=(i=a-t.m)>=t.u&&r&&!t.h)&&(t.i(t.g,i),t.h=!0,t.g=n.g.currentTime,t.o++,t.l(new vr("stalldetected"))),t=!r}t&&(t=e.g.currentTime,null==(r=function(e,t,n){return!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)?null:0<=(e=ko(e).findIndex((function(e,r,i){return e.start>t&&(0==r||i[r-1].end-t<=n)})))?e:null}(n=e.g.buffered,t,e.D.gapDetectionThreshold))||0==r&&!e.l||((i=n.start(r))>=e.s.Oa()||.001>i-t||(0!=r&&n.end(r-1),e.g.currentTime=i,e.u++,e.o(new vr("gapjumped")))))}}}function ss(e,t,n,r){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?r():(t=ls.value().get(t),n.ma(e,t,r))}(r=ts.prototype).getDuration=function(){return this.j},r.Kf=function(){return this.g},r.Xe=function(e){this.i=e},r.Aa=function(e){this.j=e},r.Pf=function(){return this.i},r.Ve=function(e){this.s=e},r.yc=function(e){this.u=e},r.me=function(e){this.o=e},r.We=function(e){this.m=e},r.Df=function(){return this.m},r.Ib=function(e){if(0!=e.length){for(var t=e[0].startTime,n=e[0].endTime,r=(e=u(e)).next();!r.done;r=e.next())r=r.value,t=Math.min(t,r.startTime),n=Math.max(n,r.endTime),this.g=Math.max(this.g,r.endTime-r.startTime);this.Td(t),this.h=Math.max(this.h,n),null!=this.i&&this.D&&!this.G&&(this.i=(Date.now()+this.s)/1e3-this.h-this.g)}},r.Md=function(){this.G=!0},r.Td=function(e){this.l=null==this.l?e:Math.min(this.l,e)},r.Sd=function(e){this.g=Math.max(this.g,e)},r.offset=function(e){null!=this.l&&(this.l+=e),null!=this.h&&(this.h+=e)},r.U=function(){return 1/0==this.j&&!this.u},r.jb=function(){return 1/0!=this.j&&!this.u},r.Pa=function(){return Math.max(this.B,this.gb()-this.o)},r.Ze=function(e){this.B=e},r.gb=function(){return this.U()||this.jb()?Math.min(Math.max(0,(Date.now()+this.s)/1e3-this.g-this.i)+this.F,this.j):this.h?Math.min(this.h,this.j):this.j},r.kc=function(e){var t=Math.max(this.l,this.B);return 1/0==this.o?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.gb()-this.o+e,this.Oa()))},r.Db=function(){return this.kc(0)},r.Oa=function(){return Math.max(0,this.gb()-(this.U()||this.jb()?this.m:0))},r.df=function(){return!(null==this.i||null!=this.h&&this.D)},r.Ue=function(e){this.F=e},B("shaka.media.PresentationTimeline",ts),ts.prototype.setAvailabilityTimeOffset=ts.prototype.Ue,ts.prototype.usingPresentationStartTime=ts.prototype.df,ts.prototype.getSeekRangeEnd=ts.prototype.Oa,ts.prototype.getSeekRangeStart=ts.prototype.Db,ts.prototype.getSafeSeekRangeStart=ts.prototype.kc,ts.prototype.getSegmentAvailabilityEnd=ts.prototype.gb,ts.prototype.setUserSeekStart=ts.prototype.Ze,ts.prototype.getSegmentAvailabilityStart=ts.prototype.Pa,ts.prototype.isInProgress=ts.prototype.jb,ts.prototype.isLive=ts.prototype.U,ts.prototype.offset=ts.prototype.offset,ts.prototype.notifyMaxSegmentDuration=ts.prototype.Sd,ts.prototype.notifyMinSegmentStartTime=ts.prototype.Td,ts.prototype.lockStartTime=ts.prototype.Md,ts.prototype.notifySegments=ts.prototype.Ib,ts.prototype.getDelay=ts.prototype.Df,ts.prototype.setDelay=ts.prototype.We,ts.prototype.setSegmentAvailabilityDuration=ts.prototype.me,ts.prototype.setStatic=ts.prototype.yc,ts.prototype.setClockOffset=ts.prototype.Ve,ts.prototype.getPresentationStartTime=ts.prototype.Pf,ts.prototype.setDuration=ts.prototype.Aa,ts.prototype.setPresentationStartTime=ts.prototype.Xe,ts.prototype.getMaxSegmentDuration=ts.prototype.Kf,ts.prototype.getDuration=ts.prototype.getDuration,ns.prototype.release=function(){this.l=this.j=null,this.i=function(){}},as.prototype.release=function(){this.i&&(this.i.release(),this.i=null),null!=this.j&&(this.j.stop(),this.j=null),this.h&&(this.h.release(),this.h=null),this.g=this.s=this.o=null},as.prototype.Wd=function(){this.l=!0,os(this)};var ls=new it((function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])}));function us(e,t,n){var r=this;this.g=e,this.l=t,this.j=n,this.m=!1,this.h=new Mr,this.i=new hs(e),ss(this.g,HTMLMediaElement.HAVE_METADATA,this.h,(function(){ds(r,r.j)}))}function cs(e){return e.m?e.g.currentTime:e.j}function ps(e,t){0<e.g.readyState?gs(e.i,t):ss(e.g,HTMLMediaElement.HAVE_METADATA,e.h,(function(){ds(e,e.j)}))}function ds(e,t){.001>Math.abs(e.g.currentTime-t)?fs(e):(e.h.ma(e.g,"seeking",(function(){fs(e)})),gs(e.i,e.g.currentTime&&0!=e.g.currentTime?e.g.currentTime:t))}function fs(e){e.m=!0,e.h.C(e.g,"seeking",(function(){return e.l()}))}function hs(e){var t=this;this.h=e,this.m=10,this.l=this.j=this.i=0,this.g=new ot((function(){0>=t.i||t.h.currentTime!=t.j?t.g.stop():(t.h.currentTime=t.l,t.i--)}))}function gs(e,t){e.j=e.h.currentTime,e.l=t,e.i=e.m,e.h.currentTime=t,e.g.Ca(.1)}function ys(e){this.g=e,this.j=!1,this.h=null,this.i=new Mr}function vs(e,t,n,r,i,a){var o=this;this.i=e,this.g=t.presentationTimeline,this.B=t.minBufferTime||0,this.l=n,this.u=i,this.s=null,this.o=function(e,t,n){if(!t.stallEnabled)return null;var r=t.stallSkip;return function(e,t){e.i=t}(t=new ns(new rs(e),t.stallThreshold,n),(function(){r?e.currentTime+=r:(e.pause(),e.play())})),t}(e,n,a),this.j=new as(e,t.presentationTimeline,n,this.o,a),this.h=new us(e,(function(){var e=o.j;e.m=!0,e.l=!1;var t=cs(o.h);return e=bs(o,t),.001<Math.abs(e-t)&&(t=Date.now()/1e3,!o.s||o.s<t-1)?(o.s=t,ps(o.h,e),e=void 0):(o.u(),e=void 0),e}),function(e,t){return null==t?t=1/0>e.g.getDuration()?e.g.Db():e.g.Oa():0>t&&(t=e.g.Oa()+t),ms(e,_s(e,t))}(this,r)),this.m=new ot((function(){if(0!=o.i.readyState&&!o.i.paused){var e=cs(o.h),t=o.g.Db(),n=o.g.Oa();3>n-t&&(t=n-3),e<t&&(e=bs(o,e),o.i.currentTime=e)}}))}function ms(e,t){var n=e.g.getDuration();return t>=n?n-e.l.durationBackoff:t}function bs(e,t){var n=Math.max(e.B,e.l.rebufferingGoal),r=e.l.safeSeekOffset,i=e.g.Db(),a=e.g.Oa(),o=e.g.getDuration();3>a-i&&(i=a-3);var s=e.g.kc(n),l=e.g.kc(r);return n=e.g.kc(n+r),t>=o?ms(e,t):t>a?a:t<i?_o(e.i.buffered,l)?l:n:t>=s||_o(e.i.buffered,t)?t:n}function _s(e,t){var n=e.g.Db();return t<n?n:t>(e=e.g.Oa())?e:t}function Es(e){this.g=e,this.h=null,this.i=0,this.j=!1}function ks(e,t){for(var n=(e=u(e.g)).next();!n.done;n=e.next())t(n.value)}function Ts(e,t,n){return new Es([new go(e,e+t,(function(){return n}),0,null,null,e,e,e+t)])}function As(e,t,n){this.i=e,this.g=t,this.h=n}function ws(){Es.call(this,[]),this.l=[]}function Ss(e){var t=this;this.g=e,this.j=!1,this.i=this.g.Tc(),this.h=new ot((function(){t.g.Me(.25*t.i)}))}function Cs(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{return void(e.g.Tc()!=t&&e.g.le(t))}catch(e){}e.h.Ca(.25),0!=e.g.Tc()&&e.g.le(0)}function xs(e){var t=this;this.h=e,this.g=new Set,this.i=new ot((function(){Is(t,!1)})).Ca(.25)}function Is(e,t){for(var n=u(e.g),r=n.next();!r.done;r=n.next())r.value.j(e.h.currentTime,t)}function Ps(e){_r.call(this),this.g=new Map,this.h=e}function Ds(e){_r.call(this);var t=this;this.g=new Set,this.i=e,this.h=new ot((function(){for(var e=t.i(),n=u(t.g),r=n.next();!r.done;r=n.next())(r=r.value).endTime<e.start&&(t.g.delete(r),r=new vr("regionremove",new Map([["region",r]])),t.dispatchEvent(r))})).Ca(2)}function Rs(e){_r.call(this);var t=this;this.i=e,this.g=new Map,this.l=[{rb:null,qb:Ms,ib:function(e,n){return Os(t,"enter",e,n)}},{rb:Ls,qb:Ms,ib:function(e,n){return Os(t,"enter",e,n)}},{rb:Ns,qb:Ms,ib:function(e,n){return Os(t,"enter",e,n)}},{rb:Ms,qb:Ls,ib:function(e,n){return Os(t,"exit",e,n)}},{rb:Ms,qb:Ns,ib:function(e,n){return Os(t,"exit",e,n)}},{rb:Ls,qb:Ns,ib:function(e,n){return Os(t,"skip",e,n)}},{rb:Ns,qb:Ls,ib:function(e,n){return Os(t,"skip",e,n)}}],this.h=new Mr,this.h.C(this.i,"regionremove",(function(e){t.g.delete(e.region)}))}function Os(e,t,n,r){t=new vr(t,new Map([["region",n],["seeking",r]])),e.dispatchEvent(t)}us.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.l=function(){},this.g=null},hs.prototype.release=function(){this.g&&(this.g.stop(),this.g=null),this.h=null},(r=ys.prototype).yd=function(){var e=this;ss(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,(function(){null==e.h||0==e.h?e.j=!0:(e.i.ma(e.g,"seeking",(function(){e.j=!0})),e.g.currentTime=Math.max(0,e.g.currentTime+e.h))}))},r.release=function(){this.i&&(this.i.release(),this.i=null),this.g=null},r.zd=function(e){this.h=this.j?this.h:e},r.Ic=function(){return(this.j?this.g.currentTime:this.h)||0},r.ue=function(){return 0},r.te=function(){return 0},r.Ne=function(){},(r=vs.prototype).yd=function(){this.m.Ca(.25)},r.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.m&&(this.m.stop(),this.m=null),this.i=this.h=this.g=this.l=null,this.u=function(){}},r.zd=function(e){ps(this.h,e)},r.Ic=function(){var e=cs(this.h);return 0<this.i.readyState&&!this.i.paused?_s(this,e):e},r.ue=function(){return this.o?this.o.o:0},r.te=function(){return this.j.u},r.Ne=function(){this.j.Wd()},(r=Es.prototype).release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)},r.cg=function(){this.j=!0},r.find=function(e){for(var t=this.g.length-1,n=t;0<=n;--n){var r=this.g[n],i=n<t?this.g[n+1].startTime:r.endTime;if(e>=r.startTime&&e<i)return n+this.i}return this.g.length&&e<this.g[0].startTime?this.i:null},r.get=function(e){return 0==this.g.length||0>(e-=this.i)||e>=this.g.length?null:this.g[e]},r.offset=function(e){if(!this.j)for(var t=u(this.g),n=t.next();!n.done;n=t.next())n.value.offset(e)},r.pc=function(e){if(!this.j&&e.length){var t=Math.round(1e3*e[0].startTime)/1e3;this.g=this.g.filter((function(e){return Math.round(1e3*e.startTime)/1e3<t})),this.g.push.apply(this.g,c(e))}},r.Hb=function(e,t){var n=this;e=e.filter((function(e){return e.endTime>t&&(0==n.g.length||e.endTime>n.g[0].startTime)})),this.pc(e),this.eb(t)},r.eb=function(e){if(!this.j){var t=this.g.length;this.g=this.g.filter((function(t){return t.endTime>e})),this.i+=t-this.g.length}},r.Wa=function(e,t,n){if(n=void 0!==n&&n,!this.j){for(;this.g.length&&this.g[this.g.length-1].startTime>=t;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=e;)this.g.shift(),n||this.i++;0!=this.g.length&&(e=this.g[this.g.length-1],this.g[this.g.length-1]=new go(e.startTime,t,e.u,e.Ba,e.ka,e.h,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.i,e.tilesLayout,e.s,e.g,e.status,e.l))}},r.fd=function(e,t){var n=this;this.j||(this.h&&this.h.stop(),this.h=new ot((function(){var e=t();e?n.g.push.apply(n.g,c(e)):(n.h.stop(),n.h=null)})),this.h.Ca(e))},Es.prototype[Symbol.iterator]=function(){return this.Cb(0)},Es.prototype.Cb=function(e){var t=this.find(e);if(null==t)return null;t--;var n=this.get(t+1),r=-1;if(n&&0<n.i.length)for(var i=n.i.length-1;0<=i;--i){var a=n.i[i];if(e>=a.startTime&&e<a.endTime){t++,r=i-1;break}}return new As(this,t,r)},B("shaka.media.SegmentIndex",Es),Es.forSingleSegment=Ts,Es.prototype.getIteratorForTime=Es.prototype.Cb,Es.prototype.updateEvery=Es.prototype.fd,Es.prototype.fit=Es.prototype.Wa,Es.prototype.evict=Es.prototype.eb,Es.prototype.mergeAndEvict=Es.prototype.Hb,Es.prototype.offset=Es.prototype.offset,Es.prototype.get=Es.prototype.get,Es.prototype.find=Es.prototype.find,Es.prototype.markImmutable=Es.prototype.cg,Es.prototype.release=Es.prototype.release,As.prototype.vf=function(){return this.g},As.prototype.current=function(){var e=this.i.get(this.g);return e&&0<e.i.length&&e.ya().length&&this.h>=e.i.length&&(this.g++,this.h=0,e=this.i.get(this.g)),e&&0<e.i.length?e.i[this.h]:e},As.prototype.next=function(){var e=this.i.get(this.g);return e&&0<e.i.length?(this.h++,e.ya().length&&this.h==e.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0),{value:e=this.current(),done:!e}},B("shaka.media.SegmentIterator",As),As.prototype.next=As.prototype.next,As.prototype.current=As.prototype.current,As.prototype.currentPosition=As.prototype.vf,y(ws,Es),(r=ws.prototype).clone=function(){var e=new ws;return e.l=this.l.slice(),e},r.release=function(){for(var e=u(this.l),t=e.next();!t.done;t=e.next())t.value.release();this.l=[]},r.find=function(e){for(var t=0,n=u(this.l),r=n.next();!r.done;r=n.next()){var i=(r=r.value).find(e);if(null!=i)return i+t;t+=r.i+r.g.length}return null},r.get=function(e){for(var t=0,n=u(this.l),r=n.next();!r.done;r=n.next()){var i=(r=r.value).get(e-t);if(i)return i;t+=r.i+r.g.length}return null},r.offset=function(){},r.pc=function(){},r.eb=function(){},r.Hb=function(){},r.Wa=function(){},r.fd=function(){},B("shaka.media.MetaSegmentIndex",ws),ws.prototype.updateEvery=ws.prototype.fd,ws.prototype.fit=ws.prototype.Wa,ws.prototype.mergeAndEvict=ws.prototype.Hb,ws.prototype.evict=ws.prototype.eb,ws.prototype.merge=ws.prototype.pc,ws.prototype.offset=ws.prototype.offset,ws.prototype.get=ws.prototype.get,ws.prototype.find=ws.prototype.find,ws.prototype.release=ws.prototype.release,Ss.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},Ss.prototype.set=function(e){this.i=e,Cs(this)},Ss.prototype.Pc=function(){return this.g.Pc()},xs.prototype.release=function(){this.i.stop();for(var e=u(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},y(Ps,_r),Ps.prototype.release=function(){this.g.clear(),_r.prototype.release.call(this)},Ps.prototype.j=function(e){for(var t=u(this.g.values()),n=t.next();!n.done;n=t.next()){e:{for(var r=(n=n.value).rc,i=r.length-1;0<=i;i--){var a=r[i];if(a.position<=e){r=a.Od;break e}}r=null}if((i=r)&&(i=!((i=n.Ae)===r||i&&r&&i.bandwidth==r.bandwidth&&i.audioSamplingRate==r.audioSamplingRate&&i.codecs==r.codecs&&i.contentType==r.contentType&&i.frameRate==r.frameRate&&i.height==r.height&&i.mimeType==r.mimeType&&i.channelsCount==r.channelsCount&&i.pixelAspectRatio==r.pixelAspectRatio&&i.width==r.width)),i)e:{if(i=e,a=r.contentType,(a=this.h()[a])&&0<a.length){var o=a[a.length-1].end;if(i>=a[0].start&&i<o){i=!0;break e}}i=!1}i&&(n.Ae=r,JSON.stringify(r),n=new vr("qualitychange",new Map([["quality",r],["position",e]])),this.dispatchEvent(n))}},y(Ds,_r),Ds.prototype.release=function(){this.g.clear(),this.h.stop(),_r.prototype.release.call(this)},y(Rs,_r),Rs.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,_r.prototype.release.call(this)},Rs.prototype.j=function(e,t){for(var n=u(this.i.g),r=n.next();!r.done;r=n.next()){r=r.value;var i=this.g.get(r),a=e<r.startTime?Ls:e>r.endTime?Ns:Ms;this.g.set(r,a);for(var o=u(this.l),s=o.next();!s.done;s=o.next())(s=s.value).rb==i&&s.qb==a&&s.ib(r,t)}};var Ls=1,Ms=2,Ns=3;function Us(e,t,n,r,i){return e=Cr(e,r,i),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Fs(e,t){var n=this;this.g=t,this.m=e,this.i=null,this.u=1,this.o=this.l=null,this.D=!1,this.j=new Map,this.B=!1,this.F=null,this.s=!1,this.h=new Or((function(){return function(e){var t,n,r,i;return R((function(a){if(1==a.g){for(t=[],n=u(e.j.values()),r=n.next();!r.done;r=n.next())Qs(i=r.value),t.push(Zs(i));return _(a,Promise.all(t),2)}e.j.clear(),e.g=null,e.m=null,e.i=null,E(a)}))}(n)}))}function js(e,t){var n=e.j.get("video");if(n){var r=n.stream;r&&(t?(t=r.trickModeVideo)&&!n.ob&&(Hs(e,t,!1,0,!1),n.ob=r):(r=n.ob)&&(n.ob=null,Hs(e,r,!0,0,!1)))}}function Bs(e,t,n,r,i,a){n=void 0!==n&&n,r=void 0===r?0:r,i=void 0!==i&&i,a=void 0!==a&&a,e.l=t,e.B&&(t.video&&Hs(e,t.video,n,r,i,a),t.audio&&Hs(e,t.audio,n,r,i,a))}function Vs(e,t){e.o=t,e.B&&Hs(e,t,!0,0,!1)}function Hs(e,t,n,r,i,a){var o=e.j.get(t.type);o||t.type!=et?o&&(o.ob&&(t.trickModeVideo?(o.ob=t,t=t.trickModeVideo):o.ob=null),o.stream!=t||i)&&(t.type==et&&No(e.g.R,Kt(t.mimeType,t.codecs),e.m.sequenceMode),o.stream.closeSegmentIndex&&o.stream.closeSegmentIndex(),o.stream=t,o.aa=null,o.ve=!!a,n&&(o.ac?o.hd=!0:o.ra?(o.bb=!0,o.Nc=r,o.hd=!0):(Qs(o),Xs(e,o,!0,r).catch((function(t){e.g&&e.g.onError(t)})))),function(e,t){var n,r;return R((function(i){if(1==i.g)return t.ta?(n=t.stream,r=t.ta,n.segmentIndex?i.A(2):_(i,n.createSegmentIndex(),2)):i.return();if(t.ta!=r||t.stream!=n)return i.return();var a=e.g.Sc(),o=jo(e.g.R,t.type),s=t.stream.segmentIndex.find(t.pa?t.pa.endTime:a),l=null==s?null:t.stream.segmentIndex.get(s);s=l&&l.ka?l.ka-l.Ba:null,l&&!s&&(s=(l.endTime-l.getStartTime())*(t.stream.bandwidth||0)/8),s?((l=l.h)&&(s+=(l.ka?l.ka-l.Ba:null)||0),a=8*s/(l=e.g.getBandwidthEstimate())<(o||0)-a-Math.max(e.m.minBufferTime||0,e.i.rebufferingGoal)||t.ta.h.g>s):a=!1,a&&t.ta.abort(),E(i)}))}(e,o).catch((function(t){e.g&&e.g.onError(t)}))):function(e,t){var n,r,i,a,o;R((function(s){switch(s.g){case 1:return n=tt,k(s,2),_(s,Ho(e.g.R,n.X),4);case 4:A(s,3);break;case 2:r=w(s),e.g&&e.g.onError(r);case 3:i=Kt(t.mimeType,t.codecs),No(e.g.R,i,e.m.sequenceMode),a=e.g.R.m,(a.isTextVisible()||e.i.alwaysStreamText)&&(o=Gs(t),e.j.set(n.X,o),$s(e,o,0)),E(s)}}))}(e,t)}function Ks(e,t){t.ac||t.bb||(t.ra?(t.bb=!0,t.Nc=0):null==Fo(e.g.R,t.type)?null==t.Ka&&$s(e,t,0):(Qs(t),Xs(e,t,!1,0).catch((function(t){e.g&&e.g.onError(t)}))))}function Gs(e){return{stream:e,type:e.type,aa:null,pa:null,Zc:null,Kd:null,Jd:null,Id:null,ob:null,endOfStream:!1,ra:!1,Ka:null,bb:!1,Nc:0,hd:!1,ac:!1,vc:!0,Rd:!1,be:!1,nc:!1,ta:null}}function zs(t,n){var r,i,a,o,s;return R((function(l){switch(l.g){case 1:if(Lr(t.h),n.ra||null==n.Ka||n.ac)return l.return();if(n.Ka=null,!n.bb){l.A(2);break}return _(l,Xs(t,n,n.hd,n.Nc),3);case 3:return l.return();case 2:if(n.stream.segmentIndex){l.A(4);break}return r=n.stream,_(l,n.stream.createSegmentIndex(),5);case 5:if(r!=n.stream)return r.closeSegmentIndex&&r.closeSegmentIndex(),n.ra||n.Ka||$s(t,n,0),l.return();case 4:k(l,6),null!=(i=function(t,n){if(Ys(n))return function(e,t){var n=jo(e,"video")||0;$t(e.g,t,n)}(t.g.R,n.stream.originalId||""),null;n.type==et&&function(e){e.g&&$t(e.g,"",0)}(t.g.R);var r=t.g.Sc(),i=n.pa?n.pa.endTime:r,a=function(e,t,n){return t==et?null==(e=e.g).h||e.h<n?0:e.h-Math.max(n,e.g):Eo(e=Bo(e,t),n)}(t.g.R,n.type,r),o=Math.max(t.m.minBufferTime||0,t.i.rebufferingGoal,t.i.bufferingGoal)*t.u,s=t.m.presentationTimeline.getDuration()-i,l=jo(t.g.R,n.type);if(1e-6>s&&l)return n.endOfStream=!0,"video"==n.type&&(t=t.j.get(et))&&Ys(t)&&(t.endOfStream=!0),null;if(n.endOfStream=!1,a>=o)return t.i.updateIntervalSeconds/2;if(!(a=function(e,t,n,r){if(t.aa)return t.aa.current();if(t.pa||r)return n=t.pa?t.pa.endTime:r,t.Rd=!0,t.aa=t.stream.segmentIndex.Cb(n),t.aa&&t.aa.next().value;e=e.i.inaccurateManifestTolerance,r=Math.max(n-e,0);var i=null;return e&&(t.aa=t.stream.segmentIndex.Cb(r),i=t.aa&&t.aa.next().value),i||(t.aa=t.stream.segmentIndex.Cb(n),i=t.aa&&t.aa.next().value),i}(t,n,r,l)))return t.i.updateIntervalSeconds;for(o=1/0,s=u(s=Array.from(t.j.values())),l=s.next();!l.done;l=s.next())Ys(l=l.value)||l.aa&&!l.aa.current()||(o=Math.min(o,l.pa?l.pa.endTime:r));return i>=o+t.m.presentationTimeline.g?t.i.updateIntervalSeconds:(function(t,n,r,i){var a,o,s,l,u,c,p,d,f,h,g,y,v,m;return R((function(b){switch(b.g){case 1:if(a=tt,o=n.stream,s=n.aa,n.ra=!0,k(b,2),2==i.Eb())throw new De(1,1,1011);return _(b,function(e,t,n){var r,i,a,o,s,l,u,c;return R((function(p){return r=[],i=Math.max(0,n.appendWindowStart-.1),a=n.appendWindowEnd+.01,(o=n.timestampOffset)==t.Kd&&i==t.Jd&&a==t.Id||(s=function(){var n;return R((function(r){if(1==r.g)return k(r,2),t.Jd=i,t.Id=a,t.Kd=o,_(r,function(e,t,n,r,i,a){return R((function(o){return t==tt.X?(a||(e.g.s=n),function(e,t,n){e.l=t,e.m=n}(e.g,r,i),o.return()):_(o,Promise.all([qo(e,t,(function(){return zo(e,t)})),a?Promise.resolve():qo(e,t,(function(){return Wo(e,t,n)})),qo(e,t,(function(){e.h[t].appendWindowStart=0,e.h[t].appendWindowEnd=i,e.h[t].appendWindowStart=r,Yo(e,t)}))]),0)}))}(e.g.R,t.type,o,i,a,e.m.sequenceMode),4);if(2!=r.g)return A(r,0);throw n=w(r),t.Jd=null,t.Id=null,t.Kd=null,n}))},r.push(s())),!function(e,t){return e&&t?e.lc()==t.lc()&&e.hc()==t.hc()&&re(e.ya(),t.ya()):e==t}(n.h,t.Zc)&&(t.Zc=n.h)&&(l=qs(e,t,n.h),u=function(){var r,i,a;return R((function(o){switch(o.g){case 1:return k(o,2),_(o,l,4);case 4:return r=o.h,Lr(e.h),(new zr).box("moov",Wr).box("trak",Wr).box("mdia",Wr).P("mdhd",(function(e){e=io(e.reader||0,e.version||0),n.h.timescale=e.timescale})).parse(r),i=t.stream.closedCaptions&&0<t.stream.closedCaptions.size,_(o,e.g.xe(t.type,r),5);case 5:return _(o,Vo(e.g.R,t.type,r,null,i),6);case 6:A(o,0);break;case 2:throw a=w(o),t.Zc=null,a}}))},e.g.fg(n.startTime,n.h),r.push(u())),e.m.sequenceMode&&(c=t.pa?t.pa.m:null,n.m!=c||t.Rd)&&(t.Rd=!1,r.push(function(e,t,n){return R((function(r){return t==tt.X?r.return():(qo(e,t,(function(){return zo(e,t)})),_(r,qo(e,t,(function(){return Wo(e,t,n)})),0))}))}(e.g.R,t.type,n.startTime))),_(p,Promise.all(r),0)}))}(t,n,i),4);case 4:return Lr(t.h),t.s?b.return():(l="video/mp4"==o.mimeType||"audio/mp4"==o.mimeType,u=e.ReadableStream,t.i.lowLatencyMode&&u&&l&&!i.l?(p=new Uint8Array(0),f=d=!1,h=function(e){var a,s,l;return R((function(u){return d?u.return():(f=!0,Lr(t.h),t.s?u.return():(p=function(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(p,e),a=!1,s=0,(new zr).box("mdat",(function(e){s=e.size+e.start,a=!0})).parse(p,!1,!0),a?(l=p.subarray(0,s),p=p.subarray(s),_(u,Ws(t,n,r,o,i,l),0)):u.A(0)))}))},_(b,qs(t,n,i,h),11)):_(b,qs(t,n,i),7));case 7:if(c=b.h,Lr(t.h),t.s)return b.return();if(!i.l){b.A(8);break}return _(b,function(t,n,r){var i,a,o,s;return R((function(l){if(1==l.g)return(i=n.l).cryptoKey?l.A(2):_(l,i.fetchKey(),3);if(!(a=i.iv))for(a=xe(new ArrayBuffer(16)),o=i.firstMediaSequenceNumber+r.g,s=a.byteLength-1;0<=s;s--)a[s]=255&o,o>>=8;return l.return(e.crypto.subtle.decrypt({name:"AES-CBC",iv:a},i.cryptoKey,t))}))}(c,i,s),9);case 9:c=b.h;case 8:return Lr(t.h),n.bb?(n.ra=!1,$s(t,n,0),b.return()):_(b,Ws(t,n,r,o,i,c),6);case 11:if(g=b.h,f){b.A(6);break}return d=!0,Lr(t.h),t.s?b.return():n.bb?(n.ra=!1,$s(t,n,0),b.return()):_(b,Ws(t,n,r,o,i,g),6);case 6:if(Lr(t.h),t.s)return b.return();n.pa=i,s.next(),n.ra=!1,n.be=!1,y=t.g.R.Na(),v=y[n.type],JSON.stringify(v),n.bb||t.g.Wd(i.startTime,i.endTime,n.type),$s(t,n,0),A(b,0);break;case 2:if(m=w(b),Lr(t.h,m),t.s)return b.return();if(n.ra=!1,7001==m.code)n.ra=!1,Qs(n),$s(t,n,0),b.A(0);else if(n.type==a.X&&t.i.ignoreTextStreamFailures)t.j.delete(a.X),b.A(0);else{if(3017!=m.code)return n.nc=!0,m.severity=2,_(b,Js(t,m),0);(function(e,t,n){if(!Array.from(e.j.values()).some((function(e){return e!=t&&e.be}))){var r=Math.round(100*e.u);if(20<r)e.u-=.2;else{if(!(4<r))return t.nc=!0,e.s=!0,void e.g.onError(n);e.u-=.04}t.be=!0}$s(e,t,4)})(t,n,m),b.A(0)}}}))}(t,n,r,a).catch((function(){})),null)}(t,n))&&($s(t,n,i),n.nc=!1),A(l,7);break;case 6:return a=w(l),_(l,Js(t,a),8);case 8:return l.return();case 7:if(o=Array.from(t.j.values()),!t.B||!o.every((function(e){return e.endOfStream}))){l.A(0);break}return _(l,t.g.R.endOfStream(),10);case 10:Lr(t.h),0!=(s=t.g.R.getDuration())&&s<t.m.presentationTimeline.getDuration()&&t.m.presentationTimeline.Aa(s),E(l)}}))}function Ws(e,t,n,r,i,a){var o,s,l,u,c,p;return R((function(d){switch(d.g){case 1:return o=r.closedCaptions&&0<r.closedCaptions.size,l=null!=r.emsgSchemeIdUris&&0<r.emsgSchemeIdUris.length||e.i.dispatchAllEmsgBoxes,u=e.i.parsePrftBox&&!e.D,(l||u)&&(s=new zr),l&&s.P("emsg",(function(t){var n=r.emsgSchemeIdUris;if(0===t.version)var a=t.reader.sc(),o=t.reader.sc(),s=t.reader.K(),l=t.reader.K(),u=t.reader.K(),c=t.reader.K(),p=i.startTime+l/s;else s=t.reader.K(),l=(p=t.reader.$a()/s+i.timestampOffset)-i.startTime,u=t.reader.K(),c=t.reader.K(),a=t.reader.sc(),o=t.reader.sc();t=t.reader.Za(t.reader.S.byteLength-t.reader.Z()),(n&&n.includes(a)||e.i.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==a?e.g.gg():"https://aomedia.org/emsg/ID3"==a?(n=So(t)).length&&i&&e.g.hg([{cueTime:i.startTime,data:t,frames:n,dts:i.startTime,pts:i.startTime}],0,i.endTime):(n=new vr("emsg",n=(new Map).set("detail",{startTime:p,endTime:p+u/s,schemeIdUri:a,value:o,timescale:s,presentationTimeDelta:l,eventDuration:u,id:c,messageData:t})),e.g.onEvent(n)))})),u&&s.P("prft",(function(t){e:{if(!e.D&&i.h.timescale){t.reader.K();var n=t.reader.K();if(n=1e3*n+t.reader.K()/Math.pow(2,32)*1e3,0===t.version)var r=t.reader.K();else try{r=t.reader.$a()}catch(t){e.D=!0,r=void 0;break e}t=new Date(new Date(Date.UTC(1900,0,1,0,0,0)).getTime()+n).getTime(),r=new vr("prft",r=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-r/i.h.timescale*1e3)})),e.g.onEvent(r),e.D=!0}r=void 0}return r})),(l||u)&&s.parse(a),_(d,function(e,t,n){var r,i,a;return R((function(o){if(1==o.g)return r=Math.max(e.i.bufferBehind,e.m.presentationTimeline.g),null==(i=Fo(e.g.R,t.type))||.01>=(a=n-i-r)?o.return():_(o,e.g.R.remove(t.type,i,i+a),2);Lr(e.h),E(o)}))}(e,t,n),2);case 2:return Lr(e.h),c=t.vc,t.vc=!1,p=t.ve,t.ve=!1,_(d,e.g.xe(t.type,a),3);case 3:return _(d,Vo(e.g.R,t.type,a,i,o,c,p),4);case 4:Lr(e.h),E(d)}}))}function Ys(e){return e&&e.type==et&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function qs(e,t,n,r){var i,a,o,s,l;return R((function(u){return 1==u.g?(i=Pr,a=Us(n.ya(),n.Ba,n.ka,e.i.retryParameters,r),o=t.stream,e.g.modifySegmentRequest(a,{type:o.type,init:n instanceof ho,duration:n.endTime-n.startTime,mimeType:o.mimeType,codecs:o.codecs,bandwidth:o.bandwidth}),s=e.g.kb.request(i,a),t.ta=s,_(u,s.promise,2)):(l=u.h,t.ta=null,u.return(l.data))}))}function Xs(e,t,n,r){var i,a;return R((function(o){return 1==o.g?(t.bb=!1,t.hd=!1,t.Nc=0,t.ac=!0,t.pa=null,t.Zc=null,t.aa=null,r?(i=e.g.Sc(),a=e.g.R.getDuration(),_(o,e.g.R.remove(t.type,i+r,a),3)):_(o,Ho(e.g.R,t.type),4)):3!=o.g?(Lr(e.h),n?_(o,e.g.R.flush(t.type),3):o.A(3)):(Lr(e.h),t.ac=!1,t.endOfStream=!1,t.ra||t.Ka||$s(e,t,0),void E(o))}))}function $s(e,t,n){var r=t.type;(r!=et||e.j.has(r))&&(t.Ka=new at((function(){var n;return R((function(r){return 1==r.g?(k(r,2),_(r,zs(e,t),4)):2!=r.g?A(r,0):(n=w(r),e.g&&e.g.onError(n),void E(r))}))})).N(n))}function Qs(e){null!=e.Ka&&(e.Ka.stop(),e.Ka=null)}function Zs(e){return R((function(t){return e.ta?_(t,e.ta.abort(),0):t.A(0)}))}function Js(e,t){return R((function(n){if(1==n.g)return _(n,cr(e.F),2);Lr(e.h),e.g.onError(t),t.handled||e.i.failureCallback(t),E(n)}))}function el(e,t){var n=Bu(),r=this;this.j=t,this.i=e,this.l=n,this.o=null,this.m=[],this.h=this.g=null,this.u=Promise.resolve().then((function(){return function(e){return R((function(t){if(e.s.g)t=t.A(0);else{if(0==e.m.length||e.g&&!e.g.hb)var n=!1;else{e.g&&(e.g.Ia.mb(),e.g=null);var r=(n=e.m.shift()).create(e.l);r?(n.Ia.Jb(),e.g={node:r.node,payload:r.payload,hb:r.hb,Ia:n.Ia}):n.Ia.dd(),n=!0}n?n=Promise.resolve():e.g?n=function(e){var t,n;return R((function(r){switch(r.g){case 1:return e.i=e.j.Mf(e.i,e.l,e.g.node,e.g.payload),k(r,2),e.h=e.j.yf(e.i,e.l,e.g.payload),_(r,e.h.promise,4);case 4:e.h=null,e.i==e.g.node&&(e.g.Ia.bd(),e.g=null),A(r,0);break;case 2:return 7001==(t=w(r)).code?e.g.Ia.mb():e.g.Ia.onError(t),e.g=null,e.h=null,n=e,_(r,e.j.handleError(e.l,t),5);case 5:n.i=r.h,E(r)}}))}(e):(e.j.eg(e.i),e.o=new rt,n=e.o),t=_(t,n,1)}return t}))}(r)})),this.s=new Or((function(){return function(e){var t,n;return R((function(r){if(1==r.g)return e.h&&e.h.abort(),nl(e),_(r,e.u,2);for(e.g&&e.g.Ia.mb(),t=u(e.m),n=t.next();!n.done;n=t.next())n.value.Ia.mb();e.g=null,e.m=[],e.j=null,E(r)}))}(r)}))}function tl(e,t){var n={Jb:function(){},bd:function(){},mb:function(){},onError:function(){},dd:function(){},uh:function(){}};return e.m.push({create:t,Ia:n}),e.h&&e.h.abort(),nl(e),n}function nl(e){e.o&&(e.o.resolve(),e.o=null)}function rl(e){var t=[],n=700<=e.fontWeight,r="italic"==e.fontStyle,i=e.textDecoration.includes("underline");return n&&t.push("b"),r&&t.push("i"),i&&t.push("u"),n=t.reduce((function(e,t){return e+"<"+t+">"}),""),t=t.reduceRight((function(e,t){return e+"</"+t+">"}),""),e.lineBreak?"\n":e.nestedCues.length?e.nestedCues.map(rl).join(""):n+e.payload+t}function il(e,t){for(var n=(e=u(e)).next();!n.done;n=e.next())if((n=n.value).isContainer)il(n.nestedCues,t);else{var r=n.clone();r.nestedCues=[],r.payload=rl(n),t.push(r)}return t}function al(e){this.g=null;for(var t=u(Array.from(e.textTracks)),n=t.next();!n.done;n=t.next())(n=n.value).mode="disabled","Shaka Player TextTrack"==n.label&&(this.g=n);this.g||(this.g=e.addTextTrack("subtitles","Shaka Player TextTrack")),this.g.mode="hidden"}function ol(e){if(e.startTime>=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.payload);t.lineAlign=e.lineAlign,t.positionAlign=e.positionAlign,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.lineInterpretation&&(t.snapToLines=!1),null!=e.line&&(t.line=e.line),null!=e.position&&(t.position=e.position),t}function sl(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var r=u(Array.from(e.cues)),i=r.next();!i.done;i=r.next())(i=i.value)&&t(i)&&e.removeCue(i);e.mode=n}function ll(){}function ul(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function cl(t,n){var r=this;this.j=!1,this.i=[],this.B=t,this.m=n,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.m.appendChild(this.g),this.u=new ot((function(){dl(r)})).Ca(.25),this.h=new Map,this.s=new Mr,this.s.C(document,"fullscreenchange",(function(){dl(r,!0)})),this.l=null,"ResizeObserver"in e&&(this.l=new ResizeObserver((function(){dl(r,!0)})),this.l.observe(this.g)),this.o=new Map}function pl(e,t){for(;null!=t;){if(t==e.g)return!0;t=t.parentElement}return!1}function dl(e,t){if(e.g){var n=e.B.currentTime;if(!e.j||void 0!==t&&t){for(var r=(t=u(e.o.values())).next();!r.done;r=t.next())ul(r.value);ul(e.g),e.h.clear(),e.o.clear()}if(e.j){t=new Map;for(var i=(r=u(e.h.keys())).next();!i.done;i=r.next())i=i.value,t.set(i,e.h.get(i));!function e(t,n,r,i,a){for(var o=!1,s=[],l=[],c=(n=u(n)).next();!c.done;c=n.next()){c=c.value,a.push(c);var p=t.h.get(c),d=c.startTime<=i&&c.endTime>i,f=p?p.ef:null;p&&(s.push(p.Bd),p.tc&&s.push(p.tc),d||(o=!0,t.h.delete(c),p=null)),d&&(l.push(c),p?pl(t,f)||(o=!0):(fl(t,c,a),f=(p=t.h.get(c)).ef,o=!0)),0<c.nestedCues.length&&f&&e(t,c.nestedCues,f,i,a),a.pop()}if(o){for(a=(i=u(s)).next();!a.done;a=i.next())(a=a.value).parentElement&&a.parentElement.removeChild(a);for(l.sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime})),c=(l=u(l)).next();!c.done;c=l.next())(i=t.h.get(c.value)).tc?(r.appendChild(i.tc),i.tc.appendChild(i.Bd)):r.appendChild(i.Bd)}}(e,e.i,e.g,n,[])}}}function fl(e,t,n){var r=1<n.length,i=r?"span":"div";t.lineBreak&&(i="br"),r=!r&&0<t.nestedCues.length;var a=document.createElement(i);if("br"!=i&&function(e,t,n,r,i){var a=t.style,o=0==n.nestedCues.length,s=1<r.length;a.whiteSpace="pre-wrap";var l=n.payload.replace(/\s+$/g,(function(e){return" ".repeat(e.length)}));if(a.webkitTextStrokeColor=n.textStrokeColor,a.webkitTextStrokeWidth=n.textStrokeWidth,a.color=n.color,a.direction=n.direction,a.opacity=n.opacity,a.paddingLeft=hl(n.linePadding,n,e.m),a.paddingRight=hl(n.linePadding,n,e.m),a.textShadow=n.textShadow,n.backgroundImage)a.backgroundImage="url('"+n.backgroundImage+"')",a.backgroundRepeat="no-repeat",a.backgroundSize="contain",a.backgroundPosition="center",a.width="100%",a.height="100%";else{if(n.nestedCues.length)var u=t;else u=document.createElement("span"),t.appendChild(u);n.border&&(u.style.border=n.border),i||((t=function(e,t){for(var n=e.length-1;0<=n;n--){var r=t(e[n]);if(r||0===r)return r}return null}(r,(function(e){return e.backgroundColor})))?u.style.backgroundColor=t:l&&(u.style.backgroundColor="rgba(0, 0, 0, 0.8)")),l&&(u.textContent=l)}s&&!r[r.length-1].isContainer?a.display="inline":(a.display="flex",a.flexDirection="column",a.alignItems="center",a.justifyContent="before"==n.displayAlign?"flex-start":"center"==n.displayAlign?"center":"flex-end"),o||(a.margin="0"),a.fontFamily=n.fontFamily,a.fontWeight=n.fontWeight.toString(),a.fontStyle=n.fontStyle,a.letterSpacing=n.letterSpacing,a.fontSize=hl(n.fontSize,n,e.m),null!=n.line&&1==n.lineInterpretation&&(a.position="absolute",n.writingMode==de?(a.width="100%",n.lineAlign==he?a.top=n.line+"%":"end"==n.lineAlign&&(a.bottom=100-n.line+"%")):"vertical-lr"==n.writingMode?(a.height="100%",n.lineAlign==he?a.left=n.line+"%":"end"==n.lineAlign&&(a.right=100-n.line+"%")):(a.height="100%",n.lineAlign==he?a.right=n.line+"%":"end"==n.lineAlign&&(a.left=100-n.line+"%"))),a.lineHeight=n.lineHeight,null!=n.position&&(n.writingMode==de?a.paddingLeft=n.position:a.paddingTop=n.position),"line-left"==n.positionAlign?a.cssFloat="left":"line-right"==n.positionAlign&&(a.cssFloat="right"),a.textAlign=n.textAlign,a.textDecoration=n.textDecoration.join(" "),a.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&a.writingMode==n.writingMode||(a.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==de?a.width=n.size+"%":a.height=n.size+"%")}(e,a,t,n,r),n=null,t.region&&t.region.id)if(i=(n=t.region).id+"_"+n.width+"x"+n.height+(n.heightUnits==ke?"%":"px")+"-"+n.viewportAnchorX+"x"+n.viewportAnchorY+(n.viewportAnchorUnits==ke?"%":"px"),e.o.has(i))n=e.o.get(i);else{var o=document.createElement("span"),s=n.heightUnits==ke?"%":"px",l=n.widthUnits==ke?"%":"px",u=n.viewportAnchorUnits==ke?"%":"px";o.id="shaka-text-region---"+i,o.classList.add("shaka-text-region"),o.style.height=n.height+s,o.style.width=n.width+l,o.style.position="absolute",o.style.top=n.viewportAnchorY+u,o.style.left=n.viewportAnchorX+u,o.style.display="flex",o.style.flexDirection="column",o.style.alignItems="center",o.style.justifyContent="before"==t.displayAlign?"flex-start":"center"==t.displayAlign?"center":"flex-end",e.o.set(i,o),n=o}i=a,r&&((i=document.createElement("span")).classList.add("shaka-text-wrapper"),i.style.backgroundColor=t.backgroundColor,i.style.lineHeight="normal",a.appendChild(i)),e.h.set(t,{Bd:a,ef:i,tc:n})}function hl(e,t,n){var r=(r=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(r[1]),unit:r[2]}:null;if(!r)return e;var i=r.value;switch(r.unit){case"%":return i/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*i/t.cellResolution.rows+"px";default:return e}}function gl(e,t){this.h=e,this.g=t,this.j="",this.o=void 0,this.i=!1,this.m=!0,this.l=!1}function yl(e,t,n){try{if(e.g.enabled){var r={d:1e3*n.duration,st:e.h.U()?Il:xl};r.ot=function(e){var t=e.type;if(e.init)return wl;if("video"==t)return e.codecs.includes(",")?Al:Tl;if("audio"==t)return kl;if("text"==t)return"application/mp4"===e.mimeType?Cl:Sl}(n);var i=r.ot===Tl||r.ot===kl||r.ot===Al||r.ot===Cl;i&&(r.bl=function(e,t){if(!(t=e.h.Na()[t]).length)return NaN;var n=e.h.getCurrentTime();return(e=t.find((function(e){return e.start<=n&&e.end>=n})))?1e3*(e.end-n):NaN}(e,n.type)),n.bandwidth&&(r.br=n.bandwidth/1e3),i&&r.ot!==Cl&&(r.tb=function(e,t){var n=e.h.Xa();if(!n.length)return NaN;e=n[0];for(var r=(n=u(n)).next();!r.done;r=n.next())"variant"===(r=r.value).type&&r.bandwidth>e.bandwidth&&(e=r);switch(t){case Tl:return e.videoBandwidth||NaN;case kl:return e.audioBandwidth||NaN;default:return e.bandwidth}}(e,r.ot)/1e3),ml(e,t,r)}}catch(e){Y("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}}function vl(t){return t.j||(t.j=t.g.sessionId||e.crypto.randomUUID()),{v:1,sf:t.o,sid:t.j,cid:t.g.contentId,mtp:t.h.getBandwidthEstimate()/1e3}}function ml(e,t,n){n=void 0===n?{}:n;var r=void 0===r?e.g.useHeaders:r;if(e.g.enabled){Object.assign(n,vl(e)),n.pr=e.h.Rc();var i=n.ot===Tl||n.ot===Al;if(e.l&&i&&(n.bs=!0,n.su=!0,e.l=!1),null==n.su&&(n.su=e.m),r)e=function(e){for(var t=Object.keys(e),n={},r=["Object","Request","Session","Status"],i=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},o=(t=u(t)).next();!o.done;o=t.next())o=o.value,i[null!=a[o]?a[o]:1][o]=e[o];for(e=0;e<i.length;e++)(a=bl(i[e]))&&(n["CMCD-"+r[e]]=a);return n}(n),Object.keys(e).length&&Object.assign(t.headers,e);else{var a=bl(n);a&&(t.uris=t.uris.map((function(e){return _l(e,a)})))}}}function bl(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}for(var r,i=[],a={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},o=Object.keys(e||{}).sort(),s=(o=u(o)).next();!s.done;s=o.next()){var l=e[s=s.value];if(!(r=l,Number.isNaN(r)||null==r||""===r||!1===r||"v"===s&&1===l||"pr"==s&&1===l)){var c=a[s];c&&(l=c(l));var p;p="string"===(c=typeof l)&&"ot"!==s&&"sf"!==s&&"st"!==s?s+"="+JSON.stringify(l):"boolean"===c?s:"symbol"===c?s+"="+l.description:s+"="+l,i.push(p)}}return i.join(",")}function _l(e,t){return!t||e.includes("offline:")?e:((e=new Oe(e)).g.set("CMCD",t),e.toString())}(r=Fs.prototype).destroy=function(){return this.h.destroy()},r.configure=function(e){this.i=e,this.F=new ur({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0)},r.start=function(){var e=this;return R((function(t){if(1==t.g)return _(t,function(e){var t,n,r,i,a,o,s,l,c,p;return R((function(d){if(1==d.g){if(t=tt,!e.l)throw new De(2,5,5006);return n=new Map,r=new Set,e.l.audio&&(n.set(t.Hc,e.l.audio),r.add(e.l.audio)),e.l.video&&(n.set(t.va,e.l.video),r.add(e.l.video)),e.o&&(n.set(t.X,e.o),r.add(e.o)),i=e.g.R,a=e.i.forceTransmux,_(d,i.init(n,a,e.m.sequenceMode),2)}for(Lr(e.h),e.updateDuration(),o=u(n.keys()),s=o.next();!s.done;s=o.next())l=s.value,c=n.get(l),e.j.has(l)||(p=Gs(c),e.j.set(l,p),$s(e,p,0));E(d)}))}(e),2);Lr(e.h),e.B=!0,E(t)}))},r.vc=function(){if(this.g)for(var e=this.g.Sc(),t=u(this.j.keys()),n=t.next();!n.done;n=t.next()){var r=n.value;(n=this.j.get(r)).aa=null;var i=this.g.R;if(r==et?i=null!=(i=i.g).g&&null!=i.h&&(e>=i.g&&e<i.h):i=_o(i=Bo(i,r),e),!i){if((null!=jo(this.g.R,r)||n.ra)&&Ks(this,n),n.ta&&(n.ta.abort(),n.ta=null),r===et&&(r=this.g.R).s)for((r=r.s.g).l=0,r.h=[],r.g=[],(i=r.i).i=[],i.h=[],i.g=0,Qa(r),i=(r=u(r.j.values())).next();!i.done;i=r.next())Wa(i.value);n.vc=!0}}},r.updateDuration=function(){var e=this.m.presentationTimeline.getDuration();1/0>e?this.g.R.Aa(e):this.g.R.Aa(Math.pow(2,32))},el.prototype.destroy=function(){return this.s.destroy()},(r=al.prototype).remove=function(e,t){return!!this.g&&(sl(this.g,(function(n){return n.startTime<t&&n.endTime>e})),!0)},r.append=function(e){var t=il(e,[]),n=[];e=this.g.cues?Array.from(this.g.cues):[];for(var r={},i=(t=u(t)).next();!i.done;r={sb:r.sb},i=t.next())r.sb=i.value,e.some(function(e){return function(t){return t.startTime==e.sb.startTime&&t.endTime==e.sb.endTime&&t.text==e.sb.payload}}(r))||(i=ol(r.sb))&&n.push(i);for(r=(e=u(e=n.slice().sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?n.indexOf(t)-n.indexOf(e):n.indexOf(e)-n.indexOf(t)})))).next();!r.done;r=e.next())this.g.addCue(r.value)},r.destroy=function(){return this.g&&(sl(this.g,(function(){return!0})),this.g.mode="disabled"),this.g=null,Promise.resolve()},r.isTextVisible=function(){return"showing"==this.g.mode},r.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},B("shaka.text.SimpleTextDisplayer",al),al.prototype.setTextVisibility=al.prototype.setTextVisibility,al.prototype.isTextVisible=al.prototype.isTextVisible,al.prototype.destroy=al.prototype.destroy,al.prototype.append=al.prototype.append,al.prototype.remove=al.prototype.remove,B("shaka.util.Dom",ll),ll.removeAllChildren=ul,(r=cl.prototype).append=function(e){for(var t=[].concat(c(this.i)),n={},r=(e=u(e)).next();!r.done;n={Cc:n.Cc},r=e.next())n.Cc=r.value,t.some(function(e){return function(t){return ae(t,e.Cc)}}(n))||this.i.push(n.Cc);dl(this)},r.destroy=function(){this.m.removeChild(this.g),this.g=null,this.j=!1,this.i=[],this.u&&this.u.stop(),this.h.clear(),this.s&&(this.s.release(),this.s=null),this.l&&(this.l.disconnect(),this.l=null)},r.remove=function(e,t){if(!this.g)return!1;var n=this.i.length;return this.i=this.i.filter((function(n){return n.startTime<e||n.endTime>=t})),dl(this,n>this.i.length),!0},r.isTextVisible=function(){return this.j},r.setTextVisibility=function(e){this.j=e},B("shaka.text.UITextDisplayer",cl),cl.prototype.setTextVisibility=cl.prototype.setTextVisibility,cl.prototype.isTextVisible=cl.prototype.isTextVisible,cl.prototype.remove=cl.prototype.remove,cl.prototype.destroy=cl.prototype.destroy,cl.prototype.append=cl.prototype.append,B("shaka.text.WebVttGenerator",(function(){}));var El="m",kl="a",Tl="v",Al="av",wl="i",Sl="c",Cl="tt",xl="v",Il="l";function Pl(){}function Dl(e,t,n,r,i){var a,o=i in r,s=!0;for(a in t){var l=i+"."+a,u=o?r[i]:n[a];o||a in n?void 0===t[a]?void 0===u||o?delete e[a]:e[a]=Er(u):u.constructor==Object&&t[a]&&t[a].constructor==Object?(e[a]||(e[a]=Er(u)),l=Dl(e[a],t[a],u,r,l),s=s&&l):typeof t[a]!=typeof u||null==t[a]||"function"!=typeof t[a]&&t[a].constructor!=u.constructor?(z("Invalid config, wrong type for "+l),s=!1):("function"==typeof n[a]&&n[a].length!=t[a].length&&W("Unexpected number of arguments for "+l),e[a]=t[a]):(z("Invalid config, unrecognized key "+l),s=!1)}return s}function Rl(e,t){for(var n={},r=n,i=0,a=0;!(0>(i=e.indexOf(".",i)));)0!=i&&"\\"==e[i-1]||(r[a=e.substring(a,i).replace(/\\\./g,".")]={},r=r[a],a=i+1),i+=1;return r[e.substring(a).replace(/\\\./g,".")]=t,n}function Ol(e,t){return e&&t}function Ll(){}function Ml(e){return new Oe(e=Tt(e)).Ha}function Nl(e,t,n){function r(e){Ie(a).setUint32(o,e.byteLength,!0),o+=4,a.set(xe(e),o),o+=e.byteLength}if(!n||!n.byteLength)throw new De(2,6,6015);var i;i="string"==typeof t?wt(t,!0):t,e=wt(e=Tt(e),!0);var a=new Uint8Array(12+e.byteLength+i.byteLength+n.byteLength),o=0;return r(e),r(i),r(n),a}function Ul(){}function Fl(){var e=1/0;navigator.connection&&navigator.connection.saveData&&(e=360);var t={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(e,t,n){return"com.apple.fps.1_0"==n.keySystem&&"skd"==t&&(t=n.serverCertificate,e=Nl(e,n=Ml(e),t)),e},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:ct()},n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(e){return Ol([e],e)},sequenceMode:!1},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3}},r={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},failureCallback:function(e){return Ol([e])},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmux:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1};(yt("Web0S")||pt()||yt("CrKey"))&&(r.stallSkip=0);var i={trackSelectionCallback:function(e){return R((function(t){return t.return(e)}))},downloadSizeCallback:function(e){var t;return R((function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?_(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))}))},progressCallback:function(e,t){return Ol([e,t])},usePersistentLicense:!0,numberOfParallelDownloads:5},a={drm:t,manifest:n,streaming:r,mediaSource:{sourceBufferExtraFeatures:""},offline:i,abrFactory:function(){return new Gn},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1},autoShowText:3,preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1}};return i.trackSelectionCallback=function(e){return R((function(t){return t.return(function(e,t){var n=e.filter((function(e){return"variant"==e.type})),r=[],i=un(t,n.map((function(e){return e.language})));i&&(r=n.filter((function(e){return an(e.language)==i}))),0==r.length&&(r=n.filter((function(e){return e.primary}))),0==r.length&&(n.map((function(e){return e.language})),r=n);var a=r.filter((function(e){return e.height&&480>=e.height}));for(a.length&&(a.sort((function(e,t){return t.height-e.height})),r=a.filter((function(e){return e.height==a[0].height}))),t=[],r.length&&(n=Math.floor(r.length/2),r.sort((function(e,t){return e.bandwidth-t.bandwidth})),t.push(r[n])),e=u(e),r=e.next();!r.done;r=e.next())(r=r.value).type!=et&&"image"!=r.type||t.push(r);return t}(e,a.preferredAudioLanguage))}))},a}function jl(e,t,n){var r={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Dl(e,t,n||Fl(),r,"")}function Bl(){this.g=null,this.h=[]}function Vl(e,t){if(null==e.g)e.g={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.g.duration=n-e.g.timestamp,e.g.state!=t&&(e.h.push(e.g),e.g={timestamp:n,state:t,duration:0})}}function Hl(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var r=(e=u(e.h)).next();!r.done;r=e.next())n+=(r=r.value).state==t?r.duration:0;return n}function Kl(){this.i=this.h=null,this.g=[]}function Gl(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function zl(){this.u=this.B=this.G=this.D=this.s=this.j=this.F=this.m=this.i=this.M=this.O=this.H=this.J=this.L=this.l=this.o=NaN,this.g=new Bl,this.h=new Kl}function Wl(t,n){_r.call(this);var r=this;this.l=Ku,this.Uc=this.g=null,this.ca=!1,this.Xc=new Mr,this.Xb=new Mr,this.s=new Mr,this.Nb=this.i=this.Yc=this.J=this.j=this.ua=this.L=this.cf=this.V=this.Fa=this.M=this.Vc=this.H=this.xb=this.B=this.G=this.m=this.D=null,this.dc=!1,this.Nd=this.u=null,this.Yd=1e9,this.h=uu(this),this.ec={width:1/0,height:1/0},this.o=null,this.ub=new ir(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount),this.vb=this.h.preferredTextLanguage,this.cc=this.h.preferredTextRole,this.$b=this.h.preferForcedSubs,this.Zb=[],this.fc=null,n&&n(this),this.D=function(e){return new wr((function(t,n){e.u&&e.u.segmentDownloaded(t,n)}),(function(t,n,r){t=(new Map).set("headers",t).set("request",n).set("requestType",r),e.dispatchEvent(ql("downloadheadersreceived",t))}),(function(t,n,r,i){t=(new Map).set("request",t).set("error",n).set("httpResponseCode",r).set("aborted",i),e.dispatchEvent(ql("downloadfailed",t))}))}(this),this.D.je(this.h.streaming.forceHTTPS),this.F=null,Xu&&(this.F=Xu()),this.Xc.C(e,"online",(function(){r.ce()})),this.O={name:"detach"},this.W={name:"attach"},this.ea={name:"unload"},this.Zd={name:"manifest-parser"},this.Xd={name:"manifest"},this.wb={name:"media-source"},this.Qd={name:"drm-engine"},this.ba={name:"load"},this.de={name:"src-equals-drm-engine"},this.yb={name:"src-equals"};var i=new Map;i.set(this.W,(function(e,t){return gr(function(e,t,n){return null==t.mediaElement&&(t.mediaElement=n.mediaElement,e.Xb.C(t.mediaElement,"error",(function(){var t=Iu(e);t&&Cu(e,t)}))),e.g=t.mediaElement,Promise.resolve()}(r,e,t))})),i.set(this.O,(function(e){return e.mediaElement&&(r.Xb.nb(),e.mediaElement=null),r.F&&r.F.release(),r.g=null,gr(e=Promise.resolve())})),i.set(this.ea,(function(e){return gr(Xl(r,e))})),i.set(this.wb,(function(e){return gr(e=function(e,t){var n,r,i,a,o;return R((function(s){if(1==s.g)return n=e.h.textDisplayFactory,r=n(),e.Ud=n,(i=function(e,t,n,r){return new Mo(e,t,n,r)}(t.mediaElement,r,(function(t,n,r){$l(e,t,n,r)}),e.L)).configure(e.h.mediaSource),a=e.h.manifest,o=a.segmentRelativeVttTiming,i.H=o,_(s,i.J,2);e.G=i,E(s)}))}(r,e))})),i.set(this.Zd,(function(e,t){return gr(e=function(e,t,n){var r,i,a,o;return R((function(s){if(1==s.g)return t.mimeType=n.mimeType,t.uri=n.uri,r=t.uri,i=e.D,e.Nb=r,a=e,_(s,Yi(r,i,e.h.manifest.retryParameters,t.mimeType),2);a.Yc=s.h,e.J=e.Yc(),o=Er(e.h.manifest),n.mediaElement&&"AUDIO"===n.mediaElement.nodeName&&(o.disableVideo=!0),e.J.configure(o),E(s)}))}(r,e,t))})),i.set(this.Xd,(function(e){return function(e,t){var n=t.uri;t=e.D,e.Fa=new Ds((function(){return e.uc()})),e.Fa.addEventListener("regionadd",(function(t){t=t.region,xu(e,"timelineregionadded",t),e.F&&e.F.onDashTimedMetadata(t)})),e.ua=null,e.h.streaming.observeQualityChanges&&(e.ua=new Ps((function(){return e.Na()})),e.ua.addEventListener("qualitychange",(function(t){var n=t.quality;t=t.position,n=(new Map).set("mediaQuality",{bandwidth:n.bandwidth,audioSamplingRate:n.audioSamplingRate,codecs:n.codecs,contentType:n.contentType,frameRate:n.frameRate,height:n.height,mimeType:n.mimeType,channelsCount:n.channelsCount,pixelAspectRatio:n.pixelAspectRatio,width:n.width}).set("position",t),e.dispatchEvent(ql("mediaqualitychanged",n))})));var r={networkingEngine:t,modifyManifestRequest:function(t,n){var r=e.V;try{r.g.enabled&&(r.o=n.format,ml(r,t,{ot:El,su:!r.i}))}catch(e){Y("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",e)}},modifySegmentRequest:function(t,n){yl(e.V,t,n)},filter:function(t){return cu(e,t)},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,r=u(t.textStreams),i=r.next();!i.done;i=r.next())"application/cea-608"!=(i=i.value).mimeType&&"application/cea-708"!=i.mimeType||n.add(i.originalId);for(r=u(t.variants),i=r.next();!i.done;i=r.next())if((i=i.value.video)&&i.closedCaptions)for(var a=u(i.closedCaptions.keys()),o=a.next();!o.done;o=a.next())if(o=o.value,!n.has(o)){var s=o.startsWith("CC")?"application/cea-608":"application/cea-708",l=new ws;s={id:e.Yd++,originalId:o,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:l,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:i.closedCaptions.get(o),label:null,type:et,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:i.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},t.textStreams.push(s),n.add(o)}}(e,t)},onTimelineRegionAdded:function(t){var n=e.Fa;e:{for(var r=u(n.g),i=r.next();!i.done;i=r.next())if((i=i.value).schemeIdUri==t.schemeIdUri&&i.id==t.id&&i.startTime==t.startTime&&i.endTime==t.endTime){r=i;break e}r=null}null==r&&(n.g.add(t),t=new vr("regionadd",new Map([["region",t]])),n.dispatchEvent(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return Cu(e,t)},isLowLatencyMode:function(){return e.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return e.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){e.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){e.j&&e.j.updateDuration()},newDrmInfo:function(t){var n=e.m?e.m.g:null;n&&e.m.u&&du(e,n.keySystem,t)}},i=Date.now()/1e3;return new pr(function(){var t,a,o,s;return R((function(l){if(1==l.g)return t=e,_(l,e.J.start(n,r),2);if(t.i=l.h,a=ql("manifestparsed"),e.dispatchEvent(a),0==e.i.variants.length)throw new De(2,4,4036);!function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}(e.i),o=Date.now()/1e3,s=o-i,e.o.F=s,E(l)}))}(),(function(){return e.J.stop()}))}(r,e)})),i.set(this.Qd,(function(e){return gr(e=function(e,t){var n,r;return R((function(i){return 1==i.g?(n=Date.now()/1e3,r=!0,e.m=Jl(e,{kb:e.D,onError:function(t){Cu(e,t)},cd:function(t){Pu(e,t)},onExpirationUpdated:function(t,n){Du(e,t,n)},onEvent:function(t){e.dispatchEvent(t),"drmsessionupdate"==t.type&&r&&(r=!1,e.o.j=Date.now()/1e3-n,e.L&&((t=e.L).g&&t.h.classList.add("shaka-hidden")))}}),e.m.configure(e.h.drm),_(i,Ai(e.m,e.i.variants,e.i.offlineSessionIds),2)):3!=i.g?_(i,e.m.Yb(t.mediaElement),3):_(i,cu(e,e.i),0)}))}(r,e))})),i.set(this.ba,(function(e,t){return gr(function(e,t,n){var r,i,a,o,s,l,c,p,d,f,h,g,y,v,m,b;return R((function(k){switch(k.g){case 1:for(t.startTime=n.startTime,null!=e.fc&&(t.startTime=e.fc,e.fc=null),r=t.mediaElement,i=t.uri,e.Nb=i,e.H=new Ss({Tc:function(){return r.playbackRate},Pc:function(){return r.defaultPlaybackRate},le:function(e){r.playbackRate=e},Me:function(e){r.currentTime+=e}}),a=function(){return gu(e)},o=function(){return hu(e)},e.s.C(r,"playing",a),e.s.C(r,"pause",a),e.s.C(r,"ended",a),e.s.C(r,"ratechange",o),function(e,t){if(t.lcevc.enabled){var n=e.Xa();n&&n[0]&&n[0].videoMimeType==$u.ts&&(ut()||navigator.userAgent.match(/Edge\//))&&(t.streaming.forceTransmux||W("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled.")),Yl(e),null==e.L&&(e.L=new Po(e.g,e.cf,t.lcevc),e.G&&(e.G.D=e.L))}else Yl(e)}(e,e.h),s=e.h.abrFactory,e.u&&e.Nd==s||(e.Nd=s,e.u=s(),"function"!=typeof e.u.setMediaElement&&(Xn("AbrManager","Please use an AbrManager with setMediaElement function."),e.u.setMediaElement=function(){}),e.u.configure(e.h.abr)),e.ub=new ir(e.h.preferredAudioLanguage,e.h.preferredVariantRole,e.h.preferredAudioChannelCount),e.vb=e.h.preferredTextLanguage,e.cc=e.h.preferredTextRole,e.$b=e.h.preferForcedSubs,Ru(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd),e.u.init((function(t,n,r){e.j&&t!=e.j.l&&bu(e,t,!0,void 0!==n&&n,void 0===r?0:r)})),e.u.setMediaElement(r),dn(e.i,e.h.preferredVideoCodecs,e.h.preferredAudioCodecs,e.h.preferredAudioChannelCount,e.h.preferredDecodingAttributes),e.j=function(e){return new Fs(e.i,{Sc:function(){return e.B?e.B.Ic():0},getBandwidthEstimate:function(){return e.u.getBandwidthEstimate()},modifySegmentRequest:function(t,n){yl(e.V,t,n)},R:e.G,kb:e.D,onError:function(t){return Cu(e,t)},onEvent:function(t){return e.dispatchEvent(t)},gg:function(){e.J&&e.J.update&&e.J.update()},Wd:function(t,n,r){e.B&&e.B.Ne(),tu(e),t=(new Map).set("start",t).set("end",n).set("contentType",r),e.dispatchEvent(ql("segmentappended",t))},fg:function(t,n){(n=n.Od)&&e.ua&&function(e,t,n){var r=function(e,t){var n=e.g.get(t);return n||(n={rc:[],Ae:null,contentType:t},e.g.set(t,n)),n}(e,t.contentType);!function(e,t){if((e=e.h()[t.contentType])&&0<e.length){var n=e[0].start,r=e[e.length-1].end,i=t.rc;t.rc=i.filter((function(e,t){return!(e.position<=n&&t+1<i.length&&i[t+1].position<=n||e.position>=r)}))}else t.rc=[]}(e,r),e={Od:t,position:n},0<=(t=(r=r.rc).findIndex((function(e){return e.position>=n})))?r.splice(t,r[t].position==n?1:0,e):r.push(e)}(e.ua,n,t)},xe:function(t,n){var r=e.m;if(r.h.parseInbandPsshEnabled&&["audio","video"].includes(t)){var i=0,a=u((n=new ti(xe(n))).data);for(t=a.next();!t.done;t=a.next())i+=t.value.length;if(0==i)r=Promise.resolve();else{for(i=new Uint8Array(i),a=0,t=(n=u(n.data)).next();!t.done;t=n.next())t=t.value,i.set(t,a),a+=t.length;Ii(r,"cenc",i),r=r.o}}else r=Promise.resolve();return r},hg:function(t,n,r){$l(e,t,n,r)}})}(e),e.j.configure(e.h.streaming),e.l=Gu,r.textTracks&&e.s.C(r.textTracks,"addtrack",(function(t){if(t.track)switch(t=t.track,t.kind){case"chapters":Zl(e,t)}})),e.dispatchEvent(ql("streaming")),l=null,(c=e.j.l)||(l=vu(e)),p=[],f=u([(d=c||l).video,d.audio]),h=f.next();!h.done;h=f.next())(g=h.value)&&!g.segmentIndex&&p.push(g.createSegmentIndex());if(!(0<p.length)){k.A(2);break}return _(k,Promise.all(p),2);case 2:if(e.B=function(e,t){return new vs(e.g,e.i,e.h.streaming,t,(function(){e.xb&&Is(e.xb,!0),e.j&&e.j.vc(),e.M&&tu(e)}),(function(t){return e.dispatchEvent(t)}))}(e,t.startTime),e.xb=function(e){var t=new Rs(e.Fa);t.addEventListener("enter",(function(t){xu(e,"timelineregionenter",t.region)})),t.addEventListener("exit",(function(t){xu(e,"timelineregionexit",t.region)})),t.addEventListener("skip",(function(t){var n=t.region;t.seeking||(xu(e,"timelineregionenter",n),xu(e,"timelineregionexit",n))}));var n=new xs(e.g);return n.g.add(t),e.ua&&n.g.add(e.ua),n}(e),y=Math.max(e.i.minBufferTime,e.h.streaming.rebufferingGoal),eu(e,y),c){k.A(4);break}if(bu(e,l,!0,!1,0),!e.h.streaming.startAtSegmentBoundary){k.A(5);break}return v=e.B.Ic(),_(k,function(e,t){var n,r,i,a,o;return R((function(s){return 1==s.g?(n=e.audio,r=e.video,i=function(e,t){var n,r,i;return R((function(a){return 1==a.g?e?_(a,e.createSegmentIndex(),2):a.return(null):(r=(n=e.segmentIndex.Cb(t))?n.next().value:null)?(i=r.startTime,a.return(i)):a.return(null)}))},_(s,i(n,t),2)):3!=s.g?(a=s.h,_(s,i(r,t),3)):null!=(o=s.h)&&null!=a?s.return(Math.max(o,a)):null!=o?s.return(o):null!=a?s.return(a):s.return(t)}))}(l,v),6);case 6:m=k.h,e.B.zd(m);case 5:Eu(e,null,wn(l));case 4:return e.B.yd(),e.Fb().find((function(e){return e.active}))||((b=Ln(e.i.textStreams,e.vb,e.cc,e.$b)[0]||null)&&Gl(e.o.h,b,!0),l&&(b?(l.audio&&function(e,t,n){if(0==e.h.autoShowText)return!1;if(1==e.h.autoShowText)return!0;var r=an(e.h.preferredTextLanguage);return n=an(n.language),2==e.h.autoShowText?tn(n,r):3==e.h.autoShowText?(e=an(t.language),tn(n,r)&&!tn(e,n)):(W("Invalid autoShowText setting!"),!1)}(e,l.audio,b)&&(e.ca=!0),e.ca&&e.G.m.setTextVisibility(!0),wu(e)):e.ca=!1),b&&(e.h.streaming.alwaysStreamText||e.Hd())&&Vs(e.j,b)),_(k,e.j.start(),7);case 7:e.h.abr.enabled&&(e.u.enable(),Su(e)),Tn(e.j?e.j.l:null,e.i),Lu(e.i),ku(e),yu(e),e.i.variants.some((function(e){return e.primary})),e.dc=!0,e.s.ma(r,"loadedmetadata",(function(){e.o.m=Date.now()/1e3-n.ne})),E(k)}}))}(r,e,t))})),i.set(this.de,(function(e,t){return gr(e=function(e,t,n){var r,i,a,o,s,l,u;return R((function(c){return 1==c.g?(r=tt,i=Date.now()/1e3,a=!0,e.m=Jl(e,{kb:e.D,onError:function(t){Cu(e,t)},cd:function(t){Pu(e,t)},onExpirationUpdated:function(t,n){Du(e,t,n)},onEvent:function(t){e.dispatchEvent(t),"drmsessionupdate"==t.type&&a&&(a=!1,e.o.j=Date.now()/1e3-i)}}),e.m.configure(e.h.drm),o=n.uri||"",s=Xi(o),"application/x-mpegurl"==(l=$u[s])&&ft()&&(l="application/vnd.apple.mpegurl"),l||(l="video/mp4"),u={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n.mimeType?n.mimeType.split(";")[0]:l,codecs:n.mimeType?Wt(n.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:r.va,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.m.V=!0,_(c,Ai(e.m,[u],[]),2)):_(c,e.m.Yb(t.mediaElement),0)}))}(r,e,t))})),i.set(this.yb,(function(e,t){return function(e,t,n){function r(){return gu(e)}t.uri=n.uri,t.startTime=n.startTime,e.Nb=t.uri;var i=t.mediaElement;e.B=new ys(i);var a=!1;e.Zb.push((function(){a=!0})),null!=t.startTime&&e.B.zd(t.startTime),e.H=new Ss({Tc:function(){return i.playbackRate},Pc:function(){return i.defaultPlaybackRate},le:function(e){i.playbackRate=e},Me:function(e){i.currentTime+=e}}),eu(e,e.h.streaming.rebufferingGoal),e.s.C(i,"playing",r),e.s.C(i,"pause",r),e.s.C(i,"ended",r),e.s.C(i,"ratechange",(function(){return hu(e)})),"none"!=i.preload&&e.s.ma(i,"loadedmetadata",(function(){e.o.m=Date.now()/1e3-n.ne})),i.audioTracks&&(e.s.C(i.audioTracks,"addtrack",(function(){return ku(e)})),e.s.C(i.audioTracks,"removetrack",(function(){return ku(e)})),e.s.C(i.audioTracks,"change",(function(){return ku(e)}))),i.textTracks&&(e.s.C(i.textTracks,"addtrack",(function(t){if(t.track)switch(t=t.track,t.kind){case"metadata":!function(e,t){if("metadata"==t.kind){t.mode="hidden",e.s.C(t,"cuechange",(function(){if(t.activeCues)for(var n=u(t.activeCues),r=n.next();!r.done;r=n.next())r=r.value,Ql(e,r.startTime,r.endTime,r.type,r.value),e.F&&e.F.onCueMetadataChange(r.value)}));var n=new ot((function(){for(var t=function(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"==e.kind}))}(e),n=(t=u(t)).next();!n.done;n=t.next())n.value.mode="hidden"})).Mb().N(.5);e.Zb.push((function(){n.stop()}))}}(e,t);break;case"chapters":Zl(e,t);break;default:ku(e)}})),e.s.C(i.textTracks,"removetrack",(function(){return ku(e)})),e.s.C(i.textTracks,"change",(function(){return ku(e)})));var o=Xi(t.uri);i.src=function(e,t,n){try{if(!e.g.enabled)return t;var r=vl(e);e:{switch(n){case"video/webm":case"video/mp4":var i=Al;break e;case"application/x-mpegurl":i=El;break e}i=void 0}return r.ot=i,r.su=!0,_l(t,bl(r))}catch(e){return Y("CMCD_SRC_ERROR","Could not generate src CMCD data.",e),t}}(e.V,t.uri,$u[o]),(pt()||yt("Web0S"))&&i.load(),e.l=zu,e.dispatchEvent(ql("streaming"));var s=new rt;return ss(i,HTMLMediaElement.HAVE_METADATA,e.s,(function(){e.B.yd(),s.resolve()})),ss(i,HTMLMediaElement.HAVE_CURRENT_DATA,e.s,(function(){var t;return R((function(n){return 1==n.g?(function(e){var t=e.h.preferredAudioLanguage;if(""!=t){e.ge(t);var n=e.h.preferredVariantRole;""!=n&&e.ge(t,n)}}(e),(t=ru(e)).find((function(e){return"disabled"!=e.mode}))?(0<t.length&&(e.ca=!0),n.A(2)):_(n,new Promise((function(t){e.s.ma(i.textTracks,"change",t),new ot(t).N(1)})),2)):a?n.return():(function(e){var t=e.h.preferredTextLanguage,n=e.h.preferForcedSubs;if(""!=t){e.he(t,"",n);var r=e.h.preferredTextRole;""!=r&&e.he(t,r,n)}}(e),void E(n))}))})),i.error?s.reject(Iu(e)):"none"==i.preload&&(W('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),s.resolve()),e.s.ma(i,"error",(function(){s.reject(Iu(e))})),new pr(s,(function(){return s.reject(new De(2,7,7001)),Promise.resolve()})).Y((function(){e.dc=!0}))}(r,e,t)})),this.Ga=new el(this.O,{Mf:function(e,t,n,i){var a=null;return e==r.O&&(a=n==r.O?r.O:r.W),e==r.W&&(a=n==r.O||t.mediaElement!=i.mediaElement?r.O:n==r.W?r.W:n==r.wb||n==r.ba?r.wb:n==r.yb?r.de:null),e==r.wb&&(a=n==r.ba&&t.mediaElement==i.mediaElement?r.Zd:r.ea),e==r.Zd&&(a=ju(r.ba,r.Xd,r.ea,n,t,i)),e==r.Xd&&(a=ju(r.ba,r.Qd,r.ea,n,t,i)),e==r.Qd&&(a=ju(r.ba,r.ba,r.ea,n,t,i)),e==r.de&&(a=n==r.yb&&t.mediaElement==i.mediaElement?r.yb:r.ea),e!=r.ba&&e!=r.yb||(a=r.ea),e==r.ea&&(a=i.mediaElement&&t.mediaElement==i.mediaElement?r.W:r.O),a},yf:function(e,t,n){return r.dispatchEvent(ql("onstatechange",(new Map).set("state",e.name))),i.get(e)(t,n)},handleError:function(e){return R((function(t){return 1==t.g?_(t,Xl(r,e),2):t.return(e.mediaElement?r.W:r.O)}))},eg:function(e){r.dispatchEvent(ql("onstateidle",(new Map).set("state",e.name)))}}),this.af=new ot((function(){yn(r.i.variants,r.h.restrictions,r.ec)&&vu(r)})),t&&this.Yb(t,!0)}function Yl(e){null!=e.L&&(e.L.release(),e.L=null)}function ql(e,t){return new vr(e,t)}function Xl(e,t){var n,r,i,a,o,s,l,c,p;return R((function(d){switch(d.g){case 1:return e.l!=Hu&&(e.l=Ku),n=e.Zb.map((function(e){return e()})),e.Zb=[],_(d,Promise.all(n),2);case 2:if(e.dispatchEvent(ql("unloading")),t.mimeType=null,t.startTime=null,t.uri=null,e.Fa&&(e.Fa.release(),e.Fa=null),t.mediaElement&&e.s.nb(),e.af.stop(),e.xb&&(e.xb.release(),e.xb=null),e.Vc&&(e.Vc.stop(),e.Vc=null),!e.J){d.A(3);break}return _(d,e.J.stop(),4);case 4:e.J=null,e.Yc=null;case 3:if(!e.u){d.A(5);break}return _(d,e.u.stop(),5);case 5:if(!e.j){d.A(7);break}return _(d,e.j.destroy(),8);case 8:e.j=null;case 7:if(e.H&&(e.H.release(),e.H=null),e.B&&(e.B.release(),e.B=null),!e.G){d.A(9);break}return _(d,e.G.destroy(),10);case 10:e.G=null;case 9:if(e.F&&e.F.onAssetUnload(),!t.mediaElement||!t.mediaElement.src){d.A(11);break}return _(d,new Promise((function(e){return new ot(e).N(.1)})),12);case 12:for(t.mediaElement.removeAttribute("src"),t.mediaElement.load();t.mediaElement.lastChild;)t.mediaElement.removeChild(t.mediaElement.firstChild);case 11:if(!e.m){d.A(13);break}return _(d,e.m.destroy(),14);case 14:e.m=null;case 13:if(e.Nb=null,e.M=null,e.i){for(r=u(e.i.variants),i=r.next();!i.done;i=r.next())for(a=i.value,o=u([a.audio,a.video]),s=o.next();!s.done;s=o.next())(l=s.value)&&l.segmentIndex&&l.segmentIndex.release();for(c=u(e.i.textStreams),s=c.next();!s.done;s=c.next())(p=s.value).segmentIndex&&p.segmentIndex.release()}e.i=null,e.o=new zl,e.Ud=null,fu(e),E(d)}}))}function $l(e,t,n,r){for(var i=(t=u(t)).next();!i.done;i=t.next())if((i=i.value).data&&i.cueTime&&i.frames){var a=i.cueTime+n,o=r;o&&a>o&&(o=a);for(var s=u(i.frames),l=s.next();!l.done;l=s.next())Ql(e,a,o,"org.id3",l.value);e.F&&e.F.onHlsTimedMetadata(i,a)}}function Ql(e,t,n,r,i){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",r).set("payload",i),e.dispatchEvent(ql("metadata",t))}function Zl(e,t){if(t&&"chapters"==t.kind){t.mode="hidden";var n=new ot((function(){t.mode="hidden"})).Mb().N(.5);e.Zb.push((function(){n.stop()}))}}function Jl(e,t){return new Ti(t,e.h.drm.updateExpirationTime)}function eu(e,t){e.M=new ar,e.M.g=sr,or(e.M,t,Math.min(.5,t/2)),fu(e),e.Vc=new ot((function(){tu(e)})).Ca(.25)}function tu(e){switch(e.l){case zu:if(e.g.ended)var t=!0;else{var n=bo(e.g.buffered);t=null!=n&&n>=e.g.duration-1}break;case Gu:e:if(e.g.ended||Uo(e.G))t=!0;else{if(e.i.presentationTimeline.U()){n=e.i.presentationTimeline.gb();var r=bo(e.g.buffered);if(null!=r&&r>=n){t=!0;break e}}t=!1}break;default:t=!1}r=Eo(e.g.buffered,e.g.currentTime);var i=t,a=(n=e.M).h.get(n.g);t=n.g,r=i||r>=a?lr:sr,n.g=r,t!=r&&fu(e)}function nu(e){if(e.J){var t=Er(e.h.manifest);e.g&&"AUDIO"===e.g.nodeName&&(t.disableVideo=!0),e.J.configure(t)}if(e.m&&e.m.configure(e.h.drm),e.j){e.j.configure(e.h.streaming);try{pu(e,e.i)}catch(t){Cu(e,t)}e.u&&yu(e),!(t=e.j.l)||t.allowedByApplication&&t.allowedByKeySystem||mu(e)}if(e.D&&e.D.je(e.h.streaming.forceHTTPS),e.G&&(e.G.configure(e.h.mediaSource),e.G.H=e.h.manifest.segmentRelativeVttTiming,t=e.h.textDisplayFactory,e.Ud!=t)){var n=t(),r=e.G,i=r.m;r.m=n,i&&(n.setTextVisibility(i.isTextVisible()),i.destroy()),r.g&&(r.g.i=n),e.Ud=t,e.j&&((n=(t=e.j).j.get(et))&&Hs(t,n.stream,!0,0,!0))}e.u&&(e.u.configure(e.h.abr),e.h.abr.enabled?e.u.enable():e.u.disable(),Su(e)),e.M&&(t=e.h.streaming.rebufferingGoal,e.i&&(t=Math.max(t,e.i.minBufferTime)),or(e.M,t,Math.min(.5,t/2))),e.i&&Ru(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd)}function ru(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label}))}function iu(e){return Array.from(e.g.textTracks).filter((function(e){return"chapters"==e.kind}))}function au(e,t){var n,r;return R((function(i){switch(i.g){case 1:return n=Xi(t),(r=Qu[n])?i.return(r):(k(i,2),_(i,qi(t,e.D,e.h.streaming.retryParameters),4));case 4:r=i.h,A(i,3);break;case 2:w(i);case 3:if(r)return i.return(r);throw new De(1,2,2011,n)}}))}function ou(e,t,n,r,i,a,o){var s,l,u,c;return R((function(p){if(1==p.g)return"text/vtt"!=i||o.length?_(p,su(e,t,e.D,e.h.streaming.retryParameters),3):p.A(2);2!=p.g&&(s=p.h,l=lu(e,s,i,o),u=new Blob([l],{type:"text/vtt"}),t=Zo(u),i="text/vtt"),c=document.createElement("track");var d=e.V,f=t;try{if(d.g.enabled){var h=vl(d);h.ot=Sl,h.su=!0;var g=_l(f,bl(h))}else g=f}catch(e){Y("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",e),g=f}return c.src=g,c.label=a,c.kind=r,c.srclang=n,e.g.getAttribute("crossorigin")||e.g.setAttribute("crossorigin","anonymous"),e.g.appendChild(c),p.return(c)}))}function su(e,t,n,r){var i,a,o;return R((function(s){if(1==s.g){i=Pr,(a=Cr([t],r)).method="GET";var l=e.V;try{l.g.enabled&&ml(l,a,{ot:Sl,su:!0})}catch(e){Y("CMCD_TEXT_ERROR","Could not generate text CMCD data.",e)}return _(s,n.request(i,a).promise,2)}return o=s.h,s.return(o.data)}))}function lu(e,t,n,r){var i=Jt[n];if(i)return n=i(),e={periodStart:0,segmentStart:0,segmentEnd:e.g.duration,vttOffset:0},t=xe(t),function(e,t){function n(e){for(var n=e,r=u(t),i=r.next();!i.done;i=r.next())(i=i.value).end&&i.start<e&&(n+=i.end-i.start);return(10>(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(r=Math.floor(n/60%60))?"0":"")+r+":"+(10>(i=Math.floor(n%60))?"0":"")+i+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}var r=il(e,[]);e="WEBVTT\n\n";for(var i=(r=u(r)).next();!i.done;i=r.next())e+=n((i=i.value).startTime)+" --\x3e "+n(i.endTime)+function(e){var t=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case se:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(i)+"\n",e+=i.payload+"\n\n";return e}(t=n.parseMedia(t,e),r);throw new De(2,2,2014,n)}function uu(e){var t=Fl();return t.streaming.failureCallback=function(t){if(e.U()){var n=null;1001==t.code||1002==t.code?n=1:1003==t.code&&(n=.1),null!=n&&(t.severity=1,e.ce(n))}},t.textDisplayFactory=function(){return e.Uc?new cl(e.g,e.Uc):new al(e.g)},t}function cu(e,t){return R((function(n){if(1==n.g)return _(n,function(e,t){return R((function(n){if(1==n.g)return _(n,vn(e.j?e.j.l:null,t),2);Lu(t),E(n)}))}(e,t),2);pu(e,t),E(n)}))}function pu(e,t){if(e.l!=Hu){yn(t.variants,e.h.restrictions,e.ec)&&e.j&&ku(e);var n=e.m?e.m.g:null;if(n&&e.m.u)for(var r=u(t.variants),i=r.next();!i.done;i=r.next())i=i.value,du(e,n.keySystem,i.video),du(e,n.keySystem,i.audio);Ou(e,t)}}function du(e,t,n){if(n)for(var r=(n=u(n.drmInfos)).next();!r.done;r=n.next())if((r=r.value).keySystem==t)for(var i=(r=u(r.initData||[])).next();!i.done;i=r.next())i=i.value,Ii(e.m,i.initDataType,i.initData)}function fu(e){var t=e.Fd();if(e.o&&e.M&&e.B){var n=e.H;n.j=t,Cs(n),e.V&&(n=e.V,t||n.i||(n.i=!0),n.i&&t&&(n.l=!0),n.m=t),gu(e)}t=(new Map).set("buffering",t),e.dispatchEvent(ql("buffering",t))}function hu(e){var t=e.g.playbackRate;0!=t&&(e.H&&e.H.set(t),t=ql("ratechange"),e.dispatchEvent(t))}function gu(e){if(e.o&&e.M){var t=e.o.g;e.M.g==sr?Vl(t,"buffering"):e.g.paused?Vl(t,"paused"):e.g.ended?Vl(t,"ended"):Vl(t,"playing")}}function yu(e){try{Ou(e,e.i)}catch(t){return Cu(e,t),!1}var t=e.i.variants.filter((function(e){return Rn(e)}));return t=e.ub.create(t),e.u.setVariants(Array.from(t.values())),!0}function vu(e){return yu(e)?e.u.chooseVariant():null}function mu(e){var t=vu(e);t&&bu(e,t,!0,!0,0)}function bu(e,t,n,r,i){var a=e.j.l;if(t==a)r&&Bs(e.j,t,r,i,!0);else{var o=e.o.h;o.h!=t&&(o.h=t,o.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),Bs(e.j,t,r,i,void 0,n),r=null,a&&(r=wn(a)),t=wn(t),n?Eu(e,r,t):Tu(e,r,t)}}function _u(e,t){var n=Array.from(e.g.audioTracks).find((function(e){return e.enabled}));t.enabled=!0,t.id!==n.id&&(n.enabled=!1),Tu(e,n=Pn(n),t=Pn(t))}function Eu(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),e.L&&Do(e.L,n),Mu(e,n=ql("adaptation",t))}function ku(e){Mu(e,ql("trackschanged"))}function Tu(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),e.L&&Do(e.L,n),Mu(e,n=ql("variantchanged",t))}function Au(e){Mu(e,ql("textchanged"))}function wu(e){Mu(e,ql("texttrackvisibility"))}function Su(e){Mu(e,ql("abrstatuschanged",(new Map).set("newStatus",e.h.abr.enabled)))}function Cu(e,t){if(e.l!=Hu)if(function(e,t){if(1002!=t.code&&1011!=t.code||1!=t.category||!navigator.onLine)return!1;var n=e.h.streaming.maxDisabledTime;if(0==n){if(1011!=t.code)return!1;n=1}t=e.Xa().find((function(e){return e.active}));for(var r=e.i,i=u(r.variants),a=i.next();!a.done;a=i.next())(a=a.value).id===t.id&&(a.disabledUntilTime=Date.now()/1e3+n);return yn(r.variants,e.h.restrictions,e.ec),!!(t=vu(e))&&(r=e.Na().video.reduce((function(e,t){return e+t.end-t.start}),0),bu(e,t,!1,!0,r),e.af.N(n),!0)}(e,t))t.handled=!0;else{var n=ql("error",(new Map).set("detail",t));e.dispatchEvent(n),n.defaultPrevented&&(t.handled=!0)}}function xu(e,t,n){n=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}),e.dispatchEvent(ql(t,n))}function Iu(e){if(!e.g.error)return null;var t=e.g.error.code;if(1==t)return null;var n=e.g.error.msExtendedCode;return n&&(0>n&&(n+=Math.pow(2,32)),n=n.toString(16)),new De(2,3,3016,t,n,e.g.error.message)}function Pu(e,t){if(e.j){var n=Object.keys(t),r=1==n.length&&"00"==n[0],i=!1;if(n.length)for(var a=(n=u(e.i.variants)).next();!a.done;a=n.next()){var o=[];(a=a.value).audio&&o.push(a.audio),a.video&&o.push(a.video);for(var s=(o=u(o)).next();!s.done;s=o.next()){var l=s.value;if(s=a.allowedByKeySystem,l.keyIds.size){a.allowedByKeySystem=!0;for(var c=(l=u(l.keyIds)).next();!c.done;c=l.next())c=c.value,c=t[r?"00":c],a.allowedByKeySystem=a.allowedByKeySystem&&!!c&&!Yu.includes(c)}s!=a.allowedByKeySystem&&(i=!0)}}i&&!yu(e)||((t=e.j.l)&&!t.allowedByKeySystem&&mu(e),i&&ku(e))}}function Du(e,t,n){e.J&&e.J.onExpirationUpdated&&e.J.onExpirationUpdated(t,n),t=ql("expirationupdated"),e.dispatchEvent(t)}function Ru(e,t,n){0<t&&(e.U()||e.Ze(t)),n<(t=e.getDuration())&&(e.U()||e.Aa(n))}function Ou(e,t){e=e.m?e.m.Qc():{};var n=Object.keys(e);n=n.length&&"00"==n[0];for(var r=!1,i=!1,a=new Set,o=new Set,s=(t=u(t.variants)).next();!s.done;s=t.next()){var l=[];(s=s.value).audio&&l.push(s.audio),s.video&&l.push(s.video);for(var c=(l=u(l)).next();!c.done;c=l.next())if((c=c.value).keyIds.size)for(var p=(c=u(c.keyIds)).next();!p.done;p=c.next()){p=p.value;var d=e[n?"00":p];d?Yu.includes(d)&&o.add(d):a.add(p)}s.allowedByApplication?s.allowedByKeySystem&&(r=!0):i=!0}if(!r)throw new De(2,4,4012,e={hasAppRestrictions:i,missingKeys:Array.from(a),restrictedKeyStatuses:Array.from(o)})}function Lu(e){if(!e.variants.some(Rn))throw new De(2,4,4032)}function Mu(e,t){R((function(n){if(1==n.g)return _(n,Promise.resolve(),2);e.l!=Hu&&e.dispatchEvent(t),E(n)}))}function Nu(e){for(var t=new Set,n=(e=u(e)).next();!n.done;n=e.next())(n=n.value).language?t.add(an(n.language)):t.add("und");return t}function Uu(e){for(var t=new Map,n=new Map,r=(e=u(e)).next();!r.done;r=e.next()){var i="und",a=[];(r=r.value).language&&(i=an(r.language)),(a="variant"==r.type?r.audioRoles:r.roles)&&a.length||(a=[""]),t.has(i)||t.set(i,new Set);for(var o=(a=u(a)).next();!o.done;o=a.next())o=o.value,t.get(i).add(o),r.label&&(n.has(i)||n.set(i,new Map),n.get(i).set(o,r.label))}var s=[];return t.forEach((function(e,t){for(var r=(e=u(e)).next();!r.done;r=e.next()){r=r.value;var i=null;n.has(t)&&n.get(t).has(r)&&(i=n.get(t).get(r)),s.push({language:t,role:r,label:i})}})),s}function Fu(){return new De(2,7,7e3)}function ju(e,t,n,r,i,a){return r==e&&i.mediaElement==a.mediaElement&&i.uri==a.uri&&i.mimeType==a.mimeType?t:n}function Bu(){return{mediaElement:null,mimeType:null,startTime:null,ne:NaN,uri:null}}function Vu(e){return new Promise((function(t,n){e.mb=function(){return n(Fu())},e.bd=function(){return t()},e.onError=function(e){return n(e)},e.dd=function(){return n(Fu())}}))}B("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",dh:"s",Yg:"o"}),B("shaka.util.ConfigUtils",Pl),Pl.convertToConfigObject=Rl,Pl.mergeConfigObjects=Dl,B("shaka.util.FairPlayUtils",Ll),Ll.commonFairPlayResponse=function(e,t){if(2===e){try{var n=Et(t.data)}catch(e){return}e=!1,"<ckc>"===(n=n.trim()).substr(0,5)&&"</ckc>"===n.substr(-6)&&(n=n.slice(5,-6),e=!0);try{var r=JSON.parse(n);r.ckc&&(n=r.ckc,e=!0),r.CkcMessage&&(n=r.CkcMessage,e=!0),r.License&&(n=r.License,e=!0)}catch(e){}e&&(t.data=Ce(Pt(n)))}},Ll.conaxFairPlayRequest=function(e,t){2===e&&(t.headers["Content-Type"]="application/octet-stream")},Ll.ezdrmFairPlayRequest=function(e,t){2===e&&(t.headers["Content-Type"]="application/octet-stream")},Ll.verimatrixFairPlayRequest=function(e,t){2===e&&(e=It(e=xe(t.body)),t.headers["Content-Type"]="application/x-www-form-urlencoded",t.body=At("spc="+e))},Ll.conaxInitDataTransform=function(t,n,r){if("skd"!==n)return t;n=r.serverCertificate,r=Tt(t).split("skd://").pop().split("?").shift(),r=e.atob(r);var i=new ArrayBuffer(2*r.length);i=new Uint16Array(i);for(var a=0,o=r.length;a<o;a++)i[a]=r.charCodeAt(a);return Nl(t,i,n)},Ll.ezdrmInitDataTransform=function(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,Nl(e,n=Tt(e).split(";").pop(),t))},Ll.verimatrixInitDataTransform=function(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,Nl(e,n=Tt(e).split("skd://").pop(),t))},Ll.initDataTransform=Nl,Ll.defaultGetContentId=Ml,Ll.isFairPlaySupported=function(){var e;return R((function(t){return 1==t.g?(e={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},k(t,2),_(t,navigator.requestMediaKeySystemAccess("com.apple.fps",[e]),4)):2!=t.g?t.return(!0):(w(t),t.return(!1))}))},B("shaka.util.PlayerConfiguration",Ul),Ul.mergeConfigObjects=jl,Ul.createDefault=Fl,y(Wl,_r),(r=Wl.prototype).destroy=function(){var e,t=this;return R((function(n){switch(n.g){case 1:return t.l==Hu?n.return():(Yl(t),t.l=Hu,e=tl(t.Ga,(function(){return{node:t.O,payload:Bu(),hb:!1}})),_(n,new Promise((function(t){e.Jb=function(){},e.bd=function(){t()},e.mb=function(){t()},e.onError=function(){t()},e.dd=function(){t()}})),2));case 2:return _(n,t.Ga.destroy(),3);case 3:if(t.Xc&&(t.Xc.release(),t.Xc=null),t.Xb&&(t.Xb.release(),t.Xb=null),t.s&&(t.s.release(),t.s=null),t.Nd=null,t.u=null,t.h=null,t.o=null,t.Uc=null,t.V=null,!t.D){n.A(4);break}return _(n,t.D.destroy(),5);case 5:t.D=null;case 4:_r.prototype.release.call(t),E(n)}}))},r.Yb=function(e,t){if(t=void 0===t||t,this.l==Hu)return Promise.reject(Fu());var n=Bu();n.mediaElement=e,st()||(t=!1);var r=t?this.wb:this.W;return(e=tl(this.Ga,(function(){return{node:r,payload:n,hb:!1}}))).Jb=function(){},Vu(e)},r.lf=function(e){this.cf=e},r.detach=function(){var e=this;if(this.l==Hu)return Promise.reject(Fu());var t=tl(this.Ga,(function(){return{node:e.O,payload:Bu(),hb:!1}}));return t.Jb=function(){},Vu(t)},r.re=function(e){var t=this;if(e=void 0===e||e,this.l==Hu)return Promise.reject(Fu());this.dc=!1,st()||(e=!1),Yl(this);var n=Bu(),r=tl(this.Ga,(function(r){var i=r.mediaElement&&e?t.wb:r.mediaElement?t.W:t.O;return n.mediaElement=r.mediaElement,{node:i,payload:n,hb:!1}}));return r.Jb=function(){},Vu(r)},r.Fg=function(e){this.fc=e},r.load=function(e,t,n){var r=this;if(this.fc=null,this.dc=!1,this.l==Hu)return Promise.reject(Fu());this.dispatchEvent(ql("loading"));var i=Bu();i.uri=e,i.ne=Date.now()/1e3,n&&(i.mimeType=n),void 0!==t&&(i.startTime=t);var a=function(e,t){if(!st())return!0;var n=t.mimeType,r=t.uri||"";if(n||(n=Xi(r),n=$u[n]),n){if(""==(t.mediaElement||vt()).canPlayType(n))return!1;if(!st()||!(n in $i)&&!(Xi(r)in Qi)||e.h.streaming.preferNativeHls)return!0;if(ft())return e.h.streaming.useNativeHlsOnSafari}return!1}(this,i)?this.yb:this.ba,o=tl(this.Ga,(function(e){return null==e.mediaElement?null:(i.mediaElement=e.mediaElement,{node:a,payload:i,hb:!0})}));return this.o=new zl,this.V=function(e){return new gl({getBandwidthEstimate:function(){return e.u?e.u.getBandwidthEstimate():NaN},Na:function(){return e.Na()},getCurrentTime:function(){return e.g?e.g.currentTime:0},Xa:function(){return e.Xa()},Rc:function(){return e.Rc()},U:function(){return e.U()}},e.h.cmcd)}(this),o.Jb=function(){},new Promise((function(e,t){o.dd=function(){return t(new De(2,7,7002))},o.bd=function(){e(),r.dispatchEvent(ql("loaded"))},o.mb=function(){return t(Fu())},o.onError=function(e){return t(e)}}))},r.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=Rl(e,t)),e.streaming&&"forceTransmuxTS"in e.streaming&&(Xn("streaming.forceTransmuxTS configuration","Please Use streaming.forceTransmux instead."),e.streaming.forceTransmux=e.streaming.forceTransmuxTS,delete e.streaming.forceTransmuxTS),e.streaming&&e.streaming.lowLatencyMode&&(null==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),null==e.streaming.rebufferingGoal&&(e.streaming.rebufferingGoal=.01));var n=jl(this.h,e,uu(this));return nu(this),n},r.getConfiguration=function(){var e=uu(this);return jl(e,this.h,uu(this)),e},r.Bf=function(){if(this.g){var e=this.g.buffered.length;e=e?this.g.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.g.currentTime+t,this.uc().end)))return 1;if(!(e<=this.g.currentTime)&&e<t)return(e-this.g.currentTime)/(t-this.g.currentTime)}return 0},r.rg=function(){for(var e in this.h)delete this.h[e];jl(this.h,uu(this),uu(this)),nu(this)},r.Hf=function(){return this.l},r.Lf=function(){return this.g},r.jc=function(){return this.D},r.Dd=function(){return this.Nb},r.Ge=function(){return this.F?this.F:null},r.U=function(){return this.i?this.i.presentationTimeline.U():!(!this.g||!this.g.src)&&1/0==this.g.duration},r.jb=function(){return!!this.i&&this.i.presentationTimeline.jb()},r.Zf=function(){if(this.i){var e=this.i.variants;return!!e.length&&!e[0].video}return!(!this.g||!this.g.src)&&(this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight)},r.uc=function(){if(!this.dc)return{start:0,end:0};if(this.i){var e=this.i.presentationTimeline;return{start:e.Db(),end:e.Oa()}}return this.g&&this.g.src&&(e=this.g.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}},r.Xf=function(){this.U()&&(this.g.currentTime=this.uc().end)},r.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},r.drmInfo=function(){return this.m?this.m.g:null},r.ic=function(){return this.m?this.m.ic():1/0},r.Qc=function(){return this.m?this.m.Qc():{}},r.Fd=function(){return!!this.M&&this.M.g==sr},r.Rc=function(){return this.g?this.H?this.H.i:1:0},r.Ag=function(e){0==e?W("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.H.set(e),this.l==Gu&&(this.u.playbackRateChanged(e),js(this.j,1<Math.abs(e))))},r.pf=function(){var e=this.H.Pc();this.l==zu&&this.H.set(e),this.l==Gu&&(this.H.set(e),this.u.playbackRateChanged(e),js(this.j,!1))},r.Xa=function(){if(this.i){for(var e=this.j?this.j.l:null,t=[],n=0,r=u(this.i.variants),i=r.next();!i.done;i=r.next())if(Rn(i=i.value)){var a=wn(i);a.active=i==e,a.active||1==n||null==e||i.video!=e.video||i.audio!=e.audio||(a.active=!0),a.active&&n++,t.push(a)}return t}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map((function(e){return Pn(e)})):[]},r.Fb=function(){if(this.i){for(var e=this.j?this.j.o:null,t=[],n=u(this.i.textStreams),r=n.next();!r.done;r=n.next()){var i=Sn(r=r.value);i.active=r==e,t.push(i)}return t}return this.g&&this.g.src&&this.g.textTracks?ru(this).map((function(e){return In(e)})):[]},r.Ff=function(){return this.i?this.i.imageStreams.map((function(e){return Cn(e)})):[]},r.Tf=function(e,t){var n,r,i,a,o,s,l,u,c,p,d,f,h,g,y,v,m,b,E,k,T=this;return R((function(A){return 1==A.g?T.i?(n=T.i.imageStreams.find((function(t){return t.id==e})))?n.segmentIndex?A.A(3):_(A,n.createSegmentIndex(),3):A.return(null):A.A(2):2!=A.g?null==(r=n.segmentIndex.find(t))?A.return(null):(i=n.segmentIndex.get(r),a=i.tilesLayout||n.tilesLayout,(o=/(\d+)x(\d+)/.exec(a))?(s=n.width||0,l=n.height||0,u=parseInt(o[1],10),c=parseInt(o[2],10),p=s/u,d=l/c,f=u*c,h=i.j-i.startTime,g=i.s||h/f,y=i.startTime,m=v=0,1<f&&(b=Math.floor((t-i.startTime)/g),y=i.startTime+b*g,v=b%u*p,m=Math.floor(b/u)*d),E=!1,(k=i.o)&&(E=!0,d=k.height,v=k.positionX,m=k.positionY,p=k.width),A.return({imageHeight:l,imageWidth:s,height:d,positionX:v,positionY:m,startTime:y,duration:g,uris:i.ya(),width:p,sprite:E})):A.return(null)):A.return(null)}))},r.Se=function(e){if(this.i&&this.j){var t=this.i.textStreams.find((function(t){return t.id==e.id}));t&&t!=this.j.o&&(Gl(this.o.h,t,!1),Vs(this.j,t),Au(this),this.vb=t.language)}else if(this.g&&this.g.src&&this.g.textTracks){for(var n=(t=u(t=ru(this))).next();!n.done;n=t.next())xn(n=n.value)==e.id?n.mode=this.ca?"showing":"hidden":n.mode="disabled";Au(this)}},r.Te=function(e,t,n){if(t=void 0!==t&&t,n=void 0===n?0:n,this.i&&this.j){this.h.abr.enabled&&W("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var r=this.i.variants.find((function(t){return t.id==e.id}));r&&Rn(r)&&(bu(this,r,!1,t,n),this.ub=new rr(r),yu(this))}else if(this.g&&this.g.audioTracks)for(n=(t=u(t=Array.from(this.g.audioTracks))).next();!n.done;n=t.next())if(xn(n=n.value)==e.id){_u(this,n);break}},r.Af=function(){return Uu(this.Xa())},r.Rf=function(){return Uu(this.Fb())},r.zf=function(){return Array.from(Nu(this.Xa()))},r.Qf=function(){return Array.from(Nu(this.Fb()))},r.ge=function(e,t,n){if(n=void 0===n?0:n,this.i&&this.B){this.ub=new ir(e,t||"",n,""),t=function(e,t){return e.video||t.video?e.video&&t.video?Math.abs((e.video.height||0)-(t.video.height||0))+Math.abs((e.video.width||0)-(t.video.width||0)):1/0:0},e=this.j.l;var r=this.ub.create(this.i.variants);n=null;for(var i=(r=u(r.values())).next();!i.done;i=r.next())i=i.value,(!n||t(n,e)>t(i,e))&&(n=i);n?(t=wn(n),this.Te(t,!0)):mu(this)}else if(this.g&&this.g.audioTracks){i=Array.from(this.g.audioTracks),e=an(e),r=n=null;for(var a=(i=u(i)).next();!a.done;a=i.next()){var o=Pn(a=a.value);an(o.language)==e&&(n=a,t?o.roles.includes(t)&&(r=a):0==o.roles.length&&(r=a))}r?_u(this,r):n&&_u(this,n)}},r.he=function(e,t,n){if(n=void 0!==n&&n,this.i&&this.B)this.vb=e,this.cc=t||"",this.$b=n,(e=Ln(this.i.textStreams,this.vb,this.cc,this.$b)[0]||null)&&e!=this.j.o&&(Gl(this.o.h,e,!1),this.h.streaming.alwaysStreamText||this.Hd())&&(Vs(this.j,e),Au(this));else{var r=an(e);(e=this.Fb().find((function(e){return an(e.language)==r&&(!t||e.roles.includes(t))&&e.forced==n})))&&this.Se(e)}},r.tg=function(e){if(this.i&&this.B){for(var t=null,n=u(this.i.variants),r=n.next();!r.done;r=n.next())if((r=r.value).audio.label==e){t=r;break}null!=t&&(this.ub=new ir(t.language,"",0,e),mu(this))}},r.Hd=function(){var e=this.ca;return this.G?this.G.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?ru(this).some((function(e){return"showing"==e.mode})):e},r.He=function(){return this.g&&this.g.src&&this.g.textTracks?iu(this).map((function(e){return In(e)})):[]},r.Cf=function(e){var t=an(e),n=iu(this).filter((function(e){return an(e.language)==t}));if(!n||!n.length)return[];e=[];for(var r=new Set,i=(n=u(n)).next();!i.done;i=n.next())if((i=i.value)&&i.cues)for(var a=(i=u(i.cues)).next();!a.done;a=i.next()){var o=a.value;(a=o.id)&&""!=a||(a=o.startTime+"-"+o.endTime+"-"+o.text),o={id:a,title:o.text,startTime:o.startTime,endTime:o.endTime},r.has(a)||(e.push(o),r.add(a))}return e},r.yg=function(e){if(e=!!e,this.ca!=e){if(this.ca=e,this.l==Gu)this.G.m.setTextVisibility(e),this.h.streaming.alwaysStreamText||(e?this.j.o||0<(e=Ln(this.i.textStreams,this.vb,this.cc,this.$b)).length&&(Vs(this.j,e[0]),Au(this)):function(e){var t=e.j.get(et);t&&(Qs(t),Zs(t).catch((function(){})),e.j.delete(et)),e.o=null}(this.j));else if(this.g&&this.g.src&&this.g.textTracks)for(var t=ru(this),n=(t=u(t)).next();!n.done;n=t.next())"disabled"!=(n=n.value).mode&&(n.mode=e?"showing":"hidden");wu(this)}},r.Of=function(){if(!this.U())return null;var e=this.Ga.l,t=0;if(this.B)t=this.B.Ic();else if(e){if(null==e.startTime)return new Date;t=e.startTime}return this.i?new Date(1e3*(this.i.presentationTimeline.i+t)):this.g&&this.g.getStartDate?(e=this.g.getStartDate(),isNaN(e.getTime())?null:new Date(e.getTime()+1e3*t)):null},r.Ie=function(){if(!this.U())return null;if(this.i)return new Date(1e3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var e=this.g.getStartDate();return isNaN(e.getTime())?null:e}return null},r.Na=function(){if(this.l==Gu)return this.G.Na();var e={total:[],audio:[],video:[],text:[]};return this.l==zu&&(e.total=ko(this.g.buffered)),e},r.getStats=function(){if(this.l!=Gu&&this.l!=zu)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};gu(this);var e=this.g,t=e.currentTime/e.duration;if(!isNaN(t)){var n=this.o;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}if(this.B&&(this.o.M=this.B.te(),this.o.O=this.B.ue()),e.getVideoPlaybackQuality){n=e.getVideoPlaybackQuality(),t=this.o;var r=Number(n.totalVideoFrames);t.L=Number(n.droppedVideoFrames),t.J=r,this.o.H=Number(n.corruptedVideoFrames)}this.m?n=(n=this.m).H?n.H:NaN:n=NaN,this.o.s=n,this.l==Gu&&((n=this.j.l)&&(this.o.B=(this.H?this.H.i:1)*n.bandwidth),n&&n.video&&(t=this.o,r=n.video.height||NaN,t.o=n.video.width||NaN,t.l=r),this.U()&&(n=this.Ie().valueOf()+1e3*this.uc().end,this.o.D=(Date.now()-n)/1e3),this.i&&this.i.presentationTimeline&&(this.o.G=this.i.presentationTimeline.g),n=this.u.getBandwidthEstimate(),this.o.u=n),this.l==zu&&(n=this.o,t=e.videoHeight||NaN,n.o=e.videoWidth||NaN,n.l=t);var i=this.o;e=i.o,n=i.l,t=i.B,r=i.J;for(var a=i.L,o=i.H,s=i.O,l=i.M,c=i.u,p=i.i,d=i.m,f=i.F,h=i.j,g=Hl(i.g,"playing"),y=Hl(i.g,"paused"),v=Hl(i.g,"buffering"),m=i.s,b=i.D,_=i.G,E=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],r=u(e.h),i=r.next();!i.done;i=r.next())n.push(t(i.value));return e.g&&n.push(t(e.g)),n}(i.g),k=[],T=(i=u(i.h.g)).next();!T.done;T=i.next())T=T.value,k.push({timestamp:T.timestamp,id:T.id,type:T.type,fromAdaptation:T.fromAdaptation,bandwidth:T.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:r,droppedFrames:a,corruptedFrames:o,stallsDetected:s,gapsJumped:l,estimatedBandwidth:c,completionPercent:p,loadLatency:d,manifestTimeSeconds:f,drmTimeSeconds:h,playTime:g,pauseTime:y,bufferingTime:v,licenseTime:m,liveLatency:b,maxSegmentDuration:_,stateHistory:E,switchHistory:k}},r.hf=function(e,t,n,r,i,a,o){o=void 0!==o&&o;var s,l,u,c,p,d,f,h,g,y,v=this;return R((function(m){switch(m.g){case 1:if(v.l!=Gu&&v.l!=zu)throw new De(1,7,7004);if(r){m.A(2);break}return _(m,au(v,e),3);case 3:r=m.h;case 2:if(s=[],v.F)try{s=v.F.getServerSideCuePoints()}catch(e){}if(v.l!=zu){m.A(4);break}return o&&(n="forced"),_(m,ou(v,e,t,n,r,a||"",s),5);case 5:if(l=v.Fb(),u=l.find((function(e){return e.language==t&&e.label==(a||"")&&e.kind==n})))return ku(v),m.return(u);throw new De(1,2,2012);case 4:if(c=tt,1/0==(p=v.i.presentationTimeline.getDuration()))throw new De(1,4,4033);if(!s.length){m.A(6);break}return _(m,su(v,e,v.D,v.h.streaming.retryParameters),7);case 7:d=m.h,f=lu(v,d,r,s),h=new Blob([f],{type:"text/vtt"}),e=Zo(h),r="text/vtt";case 6:if(g={id:v.Yd++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ts(0,p,[e]),mimeType:r||"",codecs:i||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:a||null,type:c.X,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},y=Kt(g.mimeType,g.codecs),!Xt(y))throw new De(2,2,2014,r);return v.i.textStreams.push(g),ku(v),m.return(Sn(g))}}))},r.jf=function(e,t){var n,r,i,a,o,s,l,c,p,d,f,h,g,y,v,m,b=this;return R((function(E){switch(E.g){case 1:if(b.l!=Gu&&b.l!=zu)throw new De(1,7,7004);if(b.l==zu)throw new De(1,2,2016);if(t){E.A(2);break}return _(E,au(b,e),3);case 3:t=E.h;case 2:if("text/vtt"!=t)throw new De(1,2,2017,e);if(n=tt,1/0==(r=b.i.presentationTimeline.getDuration()))throw new De(1,4,4045);return _(E,su(b,e,b.D,b.h.streaming.retryParameters),4);case 4:if(i=E.h,!(a=Jt[t]))throw new De(2,2,2014,t);for(o=a(),s={periodStart:0,segmentStart:0,segmentEnd:r,vttOffset:0},l=xe(i),c=o.parseMedia(l,s),p=[],d={},f=u(c),h=f.next();!h.done;d={Rb:d.Rb},h=f.next())g=h.value,d.Rb=$e([e],[g.payload])[0],y=new go(g.startTime,g.endTime,function(e){return function(){return[e.Rb]}}(d),0,null,null,0,0,1/0),d.Rb.includes("#xywh")&&(4===(v=d.Rb.split("#xywh=")[1].split(",")).length&&y.Ye({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)})),p.push(y);return m={id:b.Yd++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Es(p),mimeType:t||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",label:null,type:n.Wb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1"},b.i.imageStreams.push(m),ku(b),E.return(Cn(m))}}))},r.gf=function(e,t,n){var r,i,a,o,s=this;return R((function(l){switch(l.g){case 1:if(s.l!=Gu&&s.l!=zu)throw new De(1,7,7004);if(n){l.A(2);break}return _(l,au(s,e),3);case 3:n=l.h;case 2:if(r=[],s.F)try{r=s.F.getServerSideCuePoints()}catch(e){}return _(l,ou(s,e,t,"chapters",n,"",r),4);case 4:if(i=l.h,a=s.He(),!(o=a.find((function(e){return e.language==t})))){l.A(5);break}return _(l,new Promise((function(e,t){s.s.ma(i,"load",e),s.s.ma(i,"error",(function(){t(new De(1,2,2015))}))})),6);case 6:return l.return(o);case 5:throw new De(1,2,2012)}}))},r.ke=function(e,t){this.ec.width=e,this.ec.height=t},r.ce=function(e){if(this.l==Gu){var t=this.j;if(e=void 0===e?.1:e,t.h.g)t=!1;else if(t.s)t=!1;else{for(var n=u(t.j.values()),r=n.next();!r.done;r=n.next())!(r=r.value).nc||r.ra||r.Ka||(r.nc=!1,$s(t,r,e));t=!0}}else t=!1;return t},r.If=function(){return W("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees.  It may change at any time!  Please consider filing a feature request for whatever you use getManifest() for."),this.i},r.Jf=function(){return this.Yc},r.$e=function(e){this.Uc=e},B("shaka.Player",Wl),Wl.prototype.setVideoContainer=Wl.prototype.$e,Wl.prototype.getManifestParserFactory=Wl.prototype.Jf,Wl.prototype.getManifest=Wl.prototype.If,Wl.prototype.retryStreaming=Wl.prototype.ce,Wl.prototype.setMaxHardwareResolution=Wl.prototype.ke,Wl.prototype.addChaptersTrack=Wl.prototype.gf,Wl.prototype.addThumbnailsTrack=Wl.prototype.jf,Wl.prototype.addTextTrackAsync=Wl.prototype.hf,Wl.prototype.getStats=Wl.prototype.getStats,Wl.prototype.getBufferedInfo=Wl.prototype.Na,Wl.prototype.getPresentationStartTimeAsDate=Wl.prototype.Ie,Wl.prototype.getPlayheadTimeAsDate=Wl.prototype.Of,Wl.prototype.setTextTrackVisibility=Wl.prototype.yg,Wl.prototype.getChapters=Wl.prototype.Cf,Wl.prototype.getChaptersTracks=Wl.prototype.He,Wl.prototype.isTextTrackVisible=Wl.prototype.Hd,Wl.prototype.selectVariantsByLabel=Wl.prototype.tg,Wl.prototype.selectTextLanguage=Wl.prototype.he,Wl.prototype.selectAudioLanguage=Wl.prototype.ge,Wl.prototype.getTextLanguages=Wl.prototype.Qf,Wl.prototype.getAudioLanguages=Wl.prototype.zf,Wl.prototype.getTextLanguagesAndRoles=Wl.prototype.Rf,Wl.prototype.getAudioLanguagesAndRoles=Wl.prototype.Af,Wl.prototype.selectVariantTrack=Wl.prototype.Te,Wl.prototype.selectTextTrack=Wl.prototype.Se,Wl.prototype.getThumbnails=Wl.prototype.Tf,Wl.prototype.getImageTracks=Wl.prototype.Ff,Wl.prototype.getTextTracks=Wl.prototype.Fb,Wl.prototype.getVariantTracks=Wl.prototype.Xa,Wl.prototype.cancelTrickPlay=Wl.prototype.pf,Wl.prototype.trickPlay=Wl.prototype.Ag,Wl.prototype.getPlaybackRate=Wl.prototype.Rc,Wl.prototype.isBuffering=Wl.prototype.Fd,Wl.prototype.getKeyStatuses=Wl.prototype.Qc,Wl.prototype.getExpiration=Wl.prototype.ic,Wl.prototype.drmInfo=Wl.prototype.drmInfo,Wl.prototype.keySystem=Wl.prototype.keySystem,Wl.prototype.goToLive=Wl.prototype.Xf,Wl.prototype.seekRange=Wl.prototype.uc,Wl.prototype.isAudioOnly=Wl.prototype.Zf,Wl.prototype.isInProgress=Wl.prototype.jb,Wl.prototype.isLive=Wl.prototype.U,Wl.prototype.getAdManager=Wl.prototype.Ge,Wl.prototype.getAssetUri=Wl.prototype.Dd,Wl.prototype.getNetworkingEngine=Wl.prototype.jc,Wl.prototype.getMediaElement=Wl.prototype.Lf,Wl.prototype.getLoadMode=Wl.prototype.Hf,Wl.prototype.resetConfiguration=Wl.prototype.rg,Wl.prototype.getBufferFullness=Wl.prototype.Bf,Wl.prototype.getConfiguration=Wl.prototype.getConfiguration,Wl.prototype.configure=Wl.prototype.configure,Wl.prototype.load=Wl.prototype.load,Wl.prototype.updateStartTime=Wl.prototype.Fg,Wl.prototype.unload=Wl.prototype.re,Wl.prototype.detach=Wl.prototype.detach,Wl.prototype.attachCanvas=Wl.prototype.lf,Wl.prototype.attach=Wl.prototype.Yb,Wl.probeSupport=function(e){var t,n,r,i,a;return e=void 0===e||e,R((function(o){if(1==o.g)return t={},e?_(o,function(){var e,t,n,r,i,a;return R((function(o){return 1==o.g?(e="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),n=[{videoCapabilities:t=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],persistentState:"required",sessionTypes:["persistent-license"]},{initDataTypes:["cenc"],videoCapabilities:t}],r=new Map,i=function(e){var t,i,a;return R((function(o){switch(o.g){case 1:if(k(o,2),"org.w3.clearkey"===e&&gt())throw Error("Unsupported keySystem");return _(o,navigator.requestMediaKeySystemAccess(e,n),4);case 4:return t=o.h,a=!!(i=t.getConfiguration().sessionTypes)&&i.includes("persistent-license"),yt("Tizen 3")&&(a=!1),r.set(e,{persistentState:a}),_(o,t.createMediaKeys(),5);case 5:A(o,0);break;case 2:w(o),r.set(e,null),E(o)}}))},a=e.map((function(e){return i(e)})),_(o,Promise.all(a),2)):o.return(Br(r))}))}(),3):o.A(2);2!=o.g&&(t=o.h);var s={};if(st()){for(var l in $i)s[l]=!0;for(var p in Qi)s[p]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};for(var d=(p=u(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!d.done;d=p.next())s[d=d.value]=st()?!!$i[d]:lt(d);for(var f in l)s[f]=st()?!!Qi[f]:lt(l[f]);for(n=s,s={},l=(f=u(f='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(c(es)))).next();!l.done;l=f.next())s[l=l.value]=st()?!!Xt(l)||(Z(l)||Ft(l)):lt(l),s[p=l.split(";")[0]]=s[p]||s[l];for(a in r={manifest:n,media:s,drm:t},i=qu)r[a]=i[a]();return o.return(r)}))},Wl.isBrowserSupported=function(){if(e.Promise||W("A Promise implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&Array.prototype.forEach)||yt("Trident/"))return!1;var t=gt();return!(t&&13>t||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!st()||lt("application/x-mpegurl"))},Wl.setAdManagerFactory=function(e){Xu=e},Wl.registerSupportPlugin=function(e,t){qu[e]=t},Wl.prototype.destroy=Wl.prototype.destroy;var Hu=0,Ku=1,Gu=2,zu=3;Wl.LoadMode={DESTROYED:Hu,NOT_LOADED:Ku,MEDIA_SOURCE:Gu,SRC_EQUALS:zu},Wl.version="v4.3.5";var Wu=["4","3"];Zn=new function(e){this.g=e,this.i=$n,this.h=Qn}(new qn(Number(Wu[0]),Number(Wu[1])));var Yu=["output-restricted","internal-error"],qu={},Xu=null,$u={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Qu={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function Zu(){this.h=[],this.j=this.i=this.g=0}function Ju(e,t,n){var r=this;this.h=e,this.g=t,this.m=n,this.i=!1,this.l=this.g.getVolume(),this.j=new Mr,this.j.C(this.g,google.ima.AdEvent.Type.PAUSED,(function(){r.i=!0})),this.j.C(this.g,google.ima.AdEvent.Type.RESUMED,(function(){r.i=!1}))}function ec(t,n,r,i){var a=this;this.o=t,this.i=n,this.s=null,this.u=NaN,this.l=i,this.j=null,this.h=new Mr,google.ima.settings.setLocale(r),(t=new google.ima.AdDisplayContainer(this.o,this.i)).initialize(),this.m=new google.ima.AdsLoader(t),this.m.getSettings().setPlayerType("shaka-player"),this.m.getSettings().setPlayerVersion("v4.3.5"),this.g=null,this.h.ma(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){!function(t,n){t.l(new vr("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-t.u))),t.g=n.getAdsManager(t.i),t.l(new vr("ima-ad-manager-loaded",(new Map).set("imaAdManager",t.g)));var r=t.g.getCuePoints();if(r.length){n=[];for(var i=(r=u(r)).next();!i.done;i=r.next())n.push({start:i.value,end:null});t.l(new vr("ad-cue-points-changed",(new Map).set("cuepoints",n)))}!function(e){function t(t,n){t=(new Map).set("originalEvent",t),e.l(new vr(n,t))}e.h.C(e.g,google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){tc(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,(function(t){rc(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.STARTED,(function(t){rc(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.FIRST_QUARTILE,(function(e){t(e,"ad-first-quartile")})),e.h.C(e.g,google.ima.AdEvent.Type.MIDPOINT,(function(e){t(e,"ad-midpoint")})),e.h.C(e.g,google.ima.AdEvent.Type.THIRD_QUARTILE,(function(e){t(e,"ad-third-quartile")})),e.h.C(e.g,google.ima.AdEvent.Type.COMPLETE,(function(e){t(e,"ad-complete")})),e.h.C(e.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,(function(t){ic(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(t){ic(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.SKIPPED,(function(e){t(e,"ad-skipped")})),e.h.C(e.g,google.ima.AdEvent.Type.VOLUME_CHANGED,(function(e){t(e,"ad-volume-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.VOLUME_MUTED,(function(e){t(e,"ad-muted")})),e.h.C(e.g,google.ima.AdEvent.Type.PAUSED,(function(n){e.j&&(e.j.i=!0,t(n,"ad-paused"))})),e.h.C(e.g,google.ima.AdEvent.Type.RESUMED,(function(n){e.j&&(e.j.i=!1,t(n,"ad-resumed"))})),e.h.C(e.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,(function(n){e.j&&t(n,"ad-skip-state-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.CLICK,(function(e){t(e,"ad-clicked")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_PROGRESS,(function(e){t(e,"ad-progress")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_BUFFERING,(function(e){t(e,"ad-buffering")})),e.h.C(e.g,google.ima.AdEvent.Type.IMPRESSION,(function(e){t(e,"ad-impression")})),e.h.C(e.g,google.ima.AdEvent.Type.DURATION_CHANGE,(function(e){t(e,"ad-duration-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.USER_CLOSE,(function(e){t(e,"ad-closed")})),e.h.C(e.g,google.ima.AdEvent.Type.LOADED,(function(e){t(e,"ad-loaded")})),e.h.C(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(e){t(e,"all-ads-completed")})),e.h.C(e.g,google.ima.AdEvent.Type.LINEAR_CHANGED,(function(e){t(e,"ad-linear-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_METADATA,(function(e){t(e,"ad-metadata")})),e.h.C(e.g,google.ima.AdEvent.Type.LOG,(function(e){t(e,"ad-recoverable-error")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_BREAK_READY,(function(e){t(e,"ad-break-ready")})),e.h.C(e.g,google.ima.AdEvent.Type.INTERACTION,(function(e){t(e,"ad-interaction")}))}(t);try{t.g.init(t.i.offsetWidth,t.i.offsetHeight,nc(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),t.h.C(t.i,"loadeddata",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,nc(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),"ResizeObserver"in e?(t.s=new ResizeObserver((function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,nc(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.s.observe(t.i)):t.h.C(document,"fullscreenchange",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,nc(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.i.addEventListener("play",(function(){t.g.start()}),{once:!0})}catch(e){ic(t,null)}}(a,t)})),this.h.C(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){tc(a,e)})),this.h.C(this.i,"ended",(function(){a.m.contentComplete()}))}function tc(e,t){t.getError(),ic(e,null),e.l(new vr("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function nc(e){return document.fullscreenEnabled?!!document.fullscreenElement:!!(e=e.i).webkitSupportsFullscreen&&e.webkitDisplayingFullscreen}function rc(e,t){var n=t.getAd();n?(e.j=new Ju(n,e.g,e.i),t=(new Map).set("ad",e.j).set("sdkAdObject",n).set("originalEvent",t),e.l(new vr("ad-started",t)),e.j.isLinear()&&(e.o.setAttribute("ad-active","true"),e.i.pause(),e.j.setVolume(e.i.muted?0:e.i.volume))):W("The IMA SDK fired a "+t.type+" event with no associated ad. Unable to play ad!")}function ic(e,t){e.l(new vr("ad-stopped",(new Map).set("originalEvent",t))),e.j&&e.j.isLinear()&&(e.o.removeAttribute("ad-active"),e.i.ended||e.i.play())}function ac(e,t){this.i=e,this.h=null,this.g=t}function oc(e,t,n,r){var i=this;this.s=e,this.l=t,this.j=null,this.G=NaN,this.i=r,this.F=!1,this.u=this.m=this.o=null,this.B="",this.D=[],this.h=new Mr,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.g=new google.ima.dai.api.StreamManager(this.l,this.s,e),this.i(new vr("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g))),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,(function(e){!function(e,t){e.i(new vr("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-e.G))),t=t.getStreamData().url,e.j.resolve(t),e.j=null,e.F||e.h.C(e.l,"seeked",(function(){var t=e.l.currentTime;if(0!=t){e.g.streamTimeForContentTime(t);var n=e.g.previousCuePointForStreamTime(t);n&&!n.played&&(e.o=t,e.l.currentTime=n.start)}}))}(i,e)})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,(function(){i.B.length?i.j.resolve(i.B):i.j.reject("IMA Stream request returned an error and there was no backup asset uri provided."),i.j=null})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,(function(){})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,(function(e){e=e.getAd(),i.m=new ac(e,i.l),i.u&&(i.m.h=i.u),i.i(new vr("ad-started",(new Map).set("ad",i.m))),i.s.setAttribute("ad-active","true")})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,(function(){i.s.removeAttribute("ad-active");var e=i.l.currentTime;i.o&&i.o>e&&(i.l.currentTime=i.o,i.o=null)})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,(function(e){i.u=e.getStreamData().adProgressData,i.m&&(i.m.h=i.u)})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,(function(){i.i(new vr("ad-first-quartile"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,(function(){i.i(new vr("ad-midpoint"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,(function(){i.i(new vr("ad-third-quartile"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,(function(){i.i(new vr("ad-complete")),i.i(new vr("ad-stopped")),i.s.removeAttribute("ad-active"),i.m=null})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,(function(){i.i(new vr("ad-skipped")),i.i(new vr("ad-stopped"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,(function(e){var t=e.getStreamData();e=[];for(var n=(t=u(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push({start:n.start,end:n.end});i.D=e,i.i(new vr("ad-cue-points-changed",(new Map).set("cuepoints",e)))}))}function sc(){_r.call(this),this.g=this.i=null,this.h=new Zu,this.j=navigator.language}function lc(e){return JSON.stringify(e,(function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof vr){var n={};for(r in t)(e=t[r])&&"object"==typeof e?"detail"==r&&(n[r]=e):r in Event||(n[r]=e);return n}if(t instanceof Error){var r=new Set(["name","message","stack"]);for(n in t)r.add(n);for(n=(e=u(Object.getOwnPropertyNames(t))).next();!n.done;n=e.next())r.add(n.value);for(e={},n=(r=u(r)).next();!n.done;n=r.next())e[n=n.value]=t[n];t={__type__:"Error",contents:e}}else if(t instanceof TimeRanges){for(r={__type__:"TimeRanges",length:t.length,start:[],end:[]},n=(t=u(ko(t))).next();!n.done;n=t.next())e=(n=n.value).end,r.start.push(n.start),r.end.push(e);t=r}else t=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return t}}))}function uc(e){return JSON.parse(e,(function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n=function(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}(t);else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){for(n in e=t.contents,t=Error(e.message),e)t[n]=e[n];n=t}else n=t;return n}))}(r=Ju.prototype).getDuration=function(){return this.h.getDuration()},r.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()},r.getRemainingTime=function(){return this.g.getRemainingTime()},r.isPaused=function(){return this.i},r.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()},r.getTimeUntilSkippable=function(){var e=this.h.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},r.canSkipNow=function(){return this.g.getAdSkippableState()},r.skip=function(){return this.g.skip()},r.pause=function(){return this.g.pause()},r.play=function(){return this.g.resume()},r.getVolume=function(){return this.g.getVolume()},r.setVolume=function(e){return this.g.setVolume(e)},r.isMuted=function(){return 0==this.g.getVolume()},r.isLinear=function(){return this.h.isLinear()},r.resize=function(e,t){var n=!1,r=this.m;document.fullscreenEnabled?n=!!document.fullscreenElement:r.webkitSupportsFullscreen&&(n=r.webkitDisplayingFullscreen),this.g.resize(e,t,n?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},r.setMuted=function(e){e?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)},r.getSequenceLength=function(){var e=this.h.getAdPodInfo();return null==e?1:e.getTotalAds()},r.getPositionInSequence=function(){var e=this.h.getAdPodInfo();return null==e?1:e.getAdPosition()},r.getTitle=function(){return this.h.getTitle()},r.getDescription=function(){return this.h.getDescription()},r.release=function(){this.g=this.h=null},B("shaka.ads.ClientSideAd",Ju),Ju.prototype.release=Ju.prototype.release,Ju.prototype.getDescription=Ju.prototype.getDescription,Ju.prototype.getTitle=Ju.prototype.getTitle,Ju.prototype.getPositionInSequence=Ju.prototype.getPositionInSequence,Ju.prototype.getSequenceLength=Ju.prototype.getSequenceLength,Ju.prototype.setMuted=Ju.prototype.setMuted,Ju.prototype.resize=Ju.prototype.resize,Ju.prototype.isLinear=Ju.prototype.isLinear,Ju.prototype.isMuted=Ju.prototype.isMuted,Ju.prototype.setVolume=Ju.prototype.setVolume,Ju.prototype.getVolume=Ju.prototype.getVolume,Ju.prototype.play=Ju.prototype.play,Ju.prototype.pause=Ju.prototype.pause,Ju.prototype.skip=Ju.prototype.skip,Ju.prototype.canSkipNow=Ju.prototype.canSkipNow,Ju.prototype.getTimeUntilSkippable=Ju.prototype.getTimeUntilSkippable,Ju.prototype.isSkippable=Ju.prototype.isSkippable,Ju.prototype.isPaused=Ju.prototype.isPaused,Ju.prototype.getRemainingTime=Ju.prototype.getRemainingTime,Ju.prototype.getMinSuggestedDuration=Ju.prototype.getMinSuggestedDuration,Ju.prototype.getDuration=Ju.prototype.getDuration,ec.prototype.stop=function(){this.g&&this.g.stop(),this.o&&ul(this.o)},ec.prototype.release=function(){this.stop(),this.s&&this.s.disconnect(),this.h&&this.h.release(),this.g&&this.g.destroy(),this.m.destroy()},(r=ac.prototype).getDuration=function(){return this.h?this.h.duration:-1},r.getMinSuggestedDuration=function(){return this.getDuration()},r.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1},r.isPaused=function(){return this.g.paused},r.isSkippable=function(){return this.i.isSkippable()},r.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},r.skip=function(){this.g.currentTime+=this.getRemainingTime()},r.pause=function(){return this.g.pause()},r.play=function(){return this.g.play()},r.getVolume=function(){return this.g.volume},r.setVolume=function(e){this.g.volume=e},r.isMuted=function(){return this.g.muted},r.isLinear=function(){return!0},r.resize=function(){},r.setMuted=function(e){this.g.muted=e},r.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},r.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},r.getTitle=function(){return this.i.getTitle()},r.getDescription=function(){return this.i.getDescription()},r.release=function(){this.g=this.h=this.i=null},B("shaka.ads.ServerSideAd",ac),ac.prototype.release=ac.prototype.release,ac.prototype.getDescription=ac.prototype.getDescription,ac.prototype.getTitle=ac.prototype.getTitle,ac.prototype.getPositionInSequence=ac.prototype.getPositionInSequence,ac.prototype.getSequenceLength=ac.prototype.getSequenceLength,ac.prototype.setMuted=ac.prototype.setMuted,ac.prototype.resize=ac.prototype.resize,ac.prototype.isLinear=ac.prototype.isLinear,ac.prototype.isMuted=ac.prototype.isMuted,ac.prototype.setVolume=ac.prototype.setVolume,ac.prototype.getVolume=ac.prototype.getVolume,ac.prototype.play=ac.prototype.play,ac.prototype.pause=ac.prototype.pause,ac.prototype.skip=ac.prototype.skip,ac.prototype.canSkipNow=ac.prototype.canSkipNow,ac.prototype.getTimeUntilSkippable=ac.prototype.getTimeUntilSkippable,ac.prototype.isSkippable=ac.prototype.isSkippable,ac.prototype.isPaused=ac.prototype.isPaused,ac.prototype.getRemainingTime=ac.prototype.getRemainingTime,ac.prototype.getMinSuggestedDuration=ac.prototype.getMinSuggestedDuration,ac.prototype.getDuration=ac.prototype.getDuration,oc.prototype.stop=function(){this.B="",this.o=null,this.D=[]},oc.prototype.release=function(){this.stop(),this.h&&this.h.release()},oc.prototype.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.g.onTimedMetadata(t)}},y(sc,_r),(r=sc.prototype).setLocale=function(e){this.j=e},r.initClientSide=function(t,n){var r=this;if(!e.google||!google.ima||!google.ima.AdsLoader)throw new De(2,10,1e4);this.i&&this.i.release(),this.i=new ec(t,n,this.j,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":r.h.h.push(e.loadTime);break;case"ad-started":r.h.g++;break;case"ad-complete":r.h.i++;break;case"ad-skipped":r.h.j++}r.dispatchEvent(e)}))},r.release=function(){this.i&&(this.i.release(),this.i=null),this.g&&(this.g.release(),this.g=null),_r.prototype.release.call(this)},r.onAssetUnload=function(){this.i&&this.i.stop(),this.g&&this.g.stop(),this.dispatchEvent(new vr("ad-stopped")),this.h=new Zu},r.requestClientSideAds=function(e){if(!this.i)throw new De(1,10,10001);var t=this.i;t.u=Date.now()/1e3,t.m.requestAds(e)},r.initServerSide=function(t,n){var r=this;if(!e.google||!google.ima||!google.ima.dai)throw new De(2,10,10002);this.g&&this.g.release(),this.g=new oc(t,n,this.j,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":r.h.h.push(e.loadTime);break;case"ad-started":r.h.g++;break;case"ad-complete":r.h.i++;break;case"ad-skipped":r.h.j++}r.dispatchEvent(e)}))},r.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.g)throw new De(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;return(n.mpt||n.mpv)&&W('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v4.3.5",(n=this.g).j?e=Promise.reject(new De(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.F=!0),n.j=new rt,n.g.requestStream(e),n.B=t||"",n.G=Date.now()/1e3,e=n.j),e},r.replaceServerSideAdTagParameters=function(e){if(!this.g)throw new De(1,10,10003);(e.mpt||e.mpv)&&W('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.mpt="Shaka Player",e.mpv="v4.3.5",this.g.g.replaceAdTagParameters(e)},r.getServerSideCuePoints=function(){if(!this.g)throw new De(1,10,10003);return this.g.D},r.getStats=function(){var e=this.h;return{loadTimes:e.h,started:e.g,playedCompletely:e.i,skipped:e.j}},r.onDashTimedMetadata=function(e){if(this.g&&"urn:google:dai:2018"==e.schemeIdUri){var t=e.schemeIdUri,n=e.eventElement?e.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(t,n,e.startTime)}},r.onHlsTimedMetadata=function(e,t){this.g&&this.g.g.processMetadata("ID3",e.data,t)},r.onCueMetadataChange=function(e){this.g&&this.g.onCueMetadataChange(e)},B("shaka.ads.AdManager",sc),sc.prototype.onCueMetadataChange=sc.prototype.onCueMetadataChange,sc.prototype.onHlsTimedMetadata=sc.prototype.onHlsTimedMetadata,sc.prototype.onDashTimedMetadata=sc.prototype.onDashTimedMetadata,sc.prototype.getStats=sc.prototype.getStats,sc.prototype.getServerSideCuePoints=sc.prototype.getServerSideCuePoints,sc.prototype.replaceServerSideAdTagParameters=sc.prototype.replaceServerSideAdTagParameters,sc.prototype.requestServerSideStream=sc.prototype.requestServerSideStream,sc.prototype.initServerSide=sc.prototype.initServerSide,sc.prototype.requestClientSideAds=sc.prototype.requestClientSideAds,sc.prototype.onAssetUnload=sc.prototype.onAssetUnload,sc.prototype.release=sc.prototype.release,sc.prototype.initClientSide=sc.prototype.initClientSide,sc.prototype.setLocale=sc.prototype.setLocale,sc.ADS_LOADED="ads-loaded",sc.AD_STARTED="ad-started",sc.AD_FIRST_QUARTILE="ad-first-quartile",sc.AD_MIDPOINT="ad-midpoint",sc.AD_THIRD_QUARTILE="ad-third-quartile",sc.AD_COMPLETE="ad-complete",sc.AD_STOPPED="ad-stopped",sc.AD_SKIPPED="ad-skipped",sc.AD_VOLUME_CHANGED="ad-volume-changed",sc.AD_MUTED="ad-muted",sc.AD_PAUSED="ad-paused",sc.AD_RESUMED="ad-resumed",sc.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",sc.CUEPOINTS_CHANGED="ad-cue-points-changed",sc.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",sc.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",sc.AD_CLICKED="ad-clicked",sc.AD_PROGRESS="ad-progress",sc.AD_BUFFERING="ad-buffering",sc.AD_IMPRESSION="ad-impression",sc.AD_DURATION_CHANGED="ad-duration-changed",sc.AD_CLOSED="ad-closed",sc.AD_LOADED="ad-loaded",sc.ALL_ADS_COMPLETED="all-ads-completed",sc.AD_LINEAR_CHANGED="ad-linear-changed",sc.AD_METADATA="ad-metadata",sc.AD_RECOVERABLE_ERROR="ad-recoverable-error",sc.AD_BREAK_READY="ad-break-ready",sc.AD_INTERACTION="ad-interaction",Xu=function(){return new sc};var cc="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),pc="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),dc=["loop","playbackRate"],fc=["pause","play"],hc={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},gc={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},yc={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},vc=[["getConfiguration","configure"]],mc=[["isTextTrackVisible","setTextTrackVisibility"]],bc="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),_c=["attach","attachCanvas","detach","load","unload"];function Ec(e,t,n,r,i,a,o){var s=this;this.G=e,this.M=o,this.j=new ot(t),this.O=n,this.u=!1,this.s=r,this.F=i,this.J=a,this.h=this.m=!1,this.L="",this.o=null,this.B=function(){return Sc(s)},this.D=function(e,t){switch((e=uc(t)).type){case"event":var n=e.targetName,r=mr(e.event);s.s(n,r);break;case"update":for(r in n=e.update)for(var i in e=s.g[r]||{},n[r])e[i]=n[r][i];s.u&&(s.O(),s.u=!1);break;case"asyncComplete":if(r=e.id,i=e.error,e=s.i[r],delete s.i[r],e)if(i){for(n in r=new De(i.severity,i.category,i.code),i)r[n]=i[n];e.reject(r)}else e.resolve()}},this.g={video:{},player:{}},this.H=0,this.i={},this.l=null,Oc.add(this)}function kc(e,t,n){Dc=n,n.addUpdateListener(e.B),n.addMessageListener("urn:x-cast:com.google.shaka.v2",e.D),Sc(e),xc(e,{type:"init",initState:t,appData:e.o}),e.l.resolve()}function Tc(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.l.reject(new De(2,8,n,t))}function Ac(e,t){var n=e.J();e.l=new rt,e.u=!0,kc(e,n,t)}function wc(e){var t=Dc;t.removeUpdateListener(e.B),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.D)}function Sc(e){var t=!!Dc&&"connected"==Dc.status;if(e.h&&!t){for(var n in e.F(),e.g)e.g[n]={};Cc(e)}e.h=t,e.L=t?Dc.receiver.friendlyName:"",e.j.Mb()}function Cc(e){for(var t in e.i){var n=e.i[t];delete e.i[t],n.reject(new De(1,7,7e3))}}function xc(e,t){t=lc(t);var n=Dc;try{n.sendMessage("urn:x-cast:com.google.shaka.v2",t,(function(){}),q)}catch(r){throw t=new De(2,8,8005,r),n=new vr("error",(new Map).set("detail",t)),e.s("player",n),e.Ab(),t}}(r=Ec.prototype).destroy=function(){return Oc.delete(this),Cc(this),Dc&&wc(this),this.j&&(this.j.stop(),this.j=null),this.F=this.s=null,this.h=this.m=!1,this.D=this.B=this.l=this.i=this.g=this.o=null,Promise.resolve()},r.sa=function(){return this.h},r.ae=function(){return this.L},r.init=function(){if(this.G.length)if(e.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0,this.j.Mb();var t=new chrome.cast.SessionRequest(this.G,[],null,this.M,null);t=new chrome.cast.ApiConfig(t,(function(e){for(var t=u(Oc),n=t.next();!n.done;n=t.next())Ac(n.value,e)}),(function(e){for(var t=u(Oc),n=t.next();!n.done;n=t.next())n=n.value,Pc="available"==e,n.j.Mb()}),"origin_scoped"),chrome.cast.initialize(t,(function(){}),(function(){})),Pc&&this.j.N(Ic),(t=Dc)&&t.status!=chrome.cast.SessionStatus.STOPPED?Ac(this,t):Dc=null}else e.__onGCastApiAvailable!==Lc&&(Rc=e.__onGCastApiAvailable||null,e.__onGCastApiAvailable=Lc)},r.ie=function(e){this.o=e,this.h&&xc(this,{type:"appData",appData:this.o})},r.cast=function(e){var t=this;return R((function(n){if(!t.m)throw new De(1,8,8e3);if(!Pc)throw new De(1,8,8001);if(t.h)throw new De(1,8,8002);return t.l=new rt,chrome.cast.requestSession((function(n){return kc(t,e,n)}),(function(e){return Tc(t,e)})),_(n,t.l,0)}))},r.Ab=function(){if(this.h){if(Cc(this),Dc){wc(this);try{Dc.stop((function(){}),(function(){}))}catch(e){}Dc=null}Sc(this)}},r.get=function(e,t){var n=this;if("video"==e){if(fc.includes(t))return function(){return n.Qe.apply(n,[e,t].concat(c(O.apply(0,arguments))))}}else if("player"==e){if(yc[t]&&!this.get("player","isLive")())return function(){};if(bc.includes(t))return function(){return n.Qe.apply(n,[e,t].concat(c(O.apply(0,arguments))))};if(_c.includes(t))return function(){return n.og.apply(n,[e,t].concat(c(O.apply(0,arguments))))};if(hc[t]||gc[t])return function(){return n.g[e][t]}}return this.g[e][t]},r.set=function(e,t,n){this.g[e][t]=n,xc(this,{type:"set",targetName:e,property:t,value:n})},r.Qe=function(e,t){xc(this,{type:"call",targetName:e,methodName:t,args:O.apply(2,arguments)})},r.og=function(e,t){var n=O.apply(2,arguments),r=new rt,i=this.H.toString();this.H++,this.i[i]=r;try{xc(this,{type:"asyncCall",targetName:e,methodName:t,args:n,id:i})}catch(e){r.reject(e)}return r};var Ic=.02,Pc=!1,Dc=null,Rc=null,Oc=new Set;function Lc(t){if(Rc?e.__onGCastApiAvailable=Rc:delete e.__onGCastApiAvailable,Rc=null,t)for(var n=u(Oc),r=n.next();!r.done;r=n.next())r.value.init();"function"==typeof e.__onGCastApiAvailable&&e.__onGCastApiAvailable(t)}function Mc(e,t,n,r){r=void 0!==r&&r,_r.call(this);var i=this;this.i=e,this.h=t,this.m=this.o=this.j=this.s=this.l=null,this.D=n,this.B=r,this.u=new Map,this.g=new Ec(n,(function(){return Fc(i)}),(function(){return jc(i)}),(function(e,t){return Hc(i,e,t)}),(function(){return Bc(i)}),(function(){return Uc(i)}),r),function(e){e.g.init(),e.m=new Mr;for(var t=u(cc),n=t.next();!n.done;n=t.next())e.m.C(e.i,n.value,(function(t){e.g.sa()||(t=mr(t),e.j.dispatchEvent(t))}));for(var r in br)e.m.C(e.h,br[r],(function(t){e.g.sa()||e.o.dispatchEvent(t)}));for(var i in e.l={},t={},e.i)t.Sb=i,Object.defineProperty(e.l,t.Sb,{configurable:!1,enumerable:!0,get:function(t){return function(){return Vc(e,t.Sb)}}(t),set:function(t){return function(n){var r=t.Sb;e.g.sa()?e.g.set("video",r,n):e.i[r]=n}}(t)}),t={Sb:t.Sb};e.s={},Nc(e,(function(t){Object.defineProperty(e.s,t,{configurable:!1,enumerable:!0,get:function(){return function(e,t){if(e.u.has(t)&&(t=e.u.get(t)),"addEventListener"==t)return function(t,n,r){return e.o.addEventListener(t,n,r)};if("removeEventListener"==t)return function(t,n,r){return e.o.removeEventListener(t,n,r)};if("getMediaElement"==t)return function(){return e.l};if("getSharedConfiguration"==t)return e.g.get("player","getConfiguration");if("getNetworkingEngine"==t)return function(){return e.h.jc()};if("getDrmEngine"==t)return function(){return e.h.m};if("getAdManager"==t)return function(){return e.h.Ge()};if("setVideoContainer"==t)return function(t){return e.h.$e(t)};if(e.g.sa()){if("getManifest"==t||"drmInfo"==t)return function(){return W(t+"() does not work while casting!"),null};if("attach"==t||"detach"==t)return function(){return W(t+"() does not work while casting!"),Promise.resolve()}}return e.g.sa()&&0==Object.keys(e.g.g.video).length&&(hc[t]||gc[t])||!e.g.sa()?e.h[t].bind(e.h):e.g.get("player",t)}(e,t)}})})),function(e){var t=new Map;Nc(e,(function(n,r){t.has(r)?(r=t.get(r),n.length<r.length?e.u.set(n,r):e.u.set(r,n)):t.set(r,n)}))}(e),e.j=new _r,e.j.Wc=e.l,e.o=new _r,e.o.Wc=e.s}(this)}function Nc(e,t){function n(e){return"constructor"!=e&&"function"==typeof i[e]&&!a.has(e)}var r,i=e.h,a=new Set;for(r in i)n(r)&&(a.add(r),t(r,i[r]));for(e=Object.getPrototypeOf(i),r=Object.getPrototypeOf({});e&&e!=r;){for(var o=u(Object.getOwnPropertyNames(e)),s=o.next();!s.done;s=o.next())n(s=s.value)&&(a.add(s),t(s,i[s]));e=Object.getPrototypeOf(e)}}function Uc(e){var t={video:{},player:{},playerAfterLoad:{},manifest:e.h.Dd(),startTime:null};e.i.pause();for(var n=u(dc),r=n.next();!r.done;r=n.next())r=r.value,t.video[r]=e.i[r];for(e.i.ended||(t.startTime=e.i.currentTime),r=(n=u(vc)).next();!r.done;r=n.next()){var i=r.value;r=i[1],i=e.h[i[0]](),t.player[r]=i}for(r=(n=u(mc)).next();!r.done;r=n.next())r=(i=r.value)[1],i=e.h[i[0]](),t.playerAfterLoad[r]=i;return t}function Fc(e){var t=new vr("caststatuschanged");e.dispatchEvent(t)}function jc(e){var t=new vr(e.l.paused?"pause":"play");e.j.dispatchEvent(t)}function Bc(e){for(var t=u(vc),n=t.next();!n.done;n=t.next()){var r=n.value;n=r[1],r=e.g.get("player",r[0])(),e.h[n](r)}var i=e.g.get("player","getAssetUri")();n=e.g.get("video","ended"),t=Promise.resolve();var a=e.i.autoplay;r=null,n||(r=e.g.get("video","currentTime")),i&&(e.i.autoplay=!1,t=e.h.load(i,r));var o={};for(r=(n=u(dc)).next();!r.done;r=n.next())r=r.value,o[r]=e.g.get("video",r);t.then((function(){if(e.i){for(var t=u(dc),n=t.next();!n.done;n=t.next())n=n.value,e.i[n]=o[n];for(n=(t=u(mc)).next();!n.done;n=t.next()){var r=n.value;n=r[1],r=e.g.get("player",r[0])(),e.h[n](r)}e.i.autoplay=a,i&&e.i.play()}}),(function(t){t=new vr("error",t=(new Map).set("detail",t)),e.h.dispatchEvent(t)}))}function Vc(e,t){if("addEventListener"==t)return function(t,n,r){return e.j.addEventListener(t,n,r)};if("removeEventListener"==t)return function(t,n,r){return e.j.removeEventListener(t,n,r)};if(e.g.sa()&&0==Object.keys(e.g.g.video).length){var n=e.i[t];if("function"!=typeof n)return n}return e.g.sa()?e.g.get("video",t):("function"==typeof(t=e.i[t])&&(t=t.bind(e.i)),t)}function Hc(e,t,n){e.g.sa()&&("video"==t?e.j.dispatchEvent(n):"player"==t&&e.o.dispatchEvent(n))}function Kc(e,t,n,r){_r.call(this);var i=this;this.g=e,this.h=t,this.j=new Mr,this.H={video:e,player:t},this.D=n||function(){},this.J=r||function(e){return e},this.i=null,this.F=!1,this.o=!0,this.m=0,this.B=!1,this.u=!0,this.s=this.l=null,this.G=new ot((function(){Yc(i)})),function(e){var t=cast.receiver.CastReceiverManager.getInstance();t.onSenderConnected=function(){return Gc(e)},t.onSenderDisconnected=function(){return Gc(e)},t.onSystemVolumeChanged=function(){var t=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();t&&Qc(e,{type:"update",update:{video:{volume:t.level,muted:t.muted}}},e.l),Qc(e,{type:"event",targetName:"video",event:{type:"volumechange"}},e.l)},e.s=t.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.s.onMessage=function(t){return function(e,t){var n=uc(t.data);switch(n.type){case"PLAY":e.g.play(),Zc(e);break;case"PAUSE":e.g.pause(),Zc(e);break;case"SEEK":t=n.currentTime;var r=n.resumeState;null!=t&&(e.g.currentTime=Number(t)),r&&"PLAYBACK_START"==r?(e.g.play(),Zc(e)):r&&"PLAYBACK_PAUSE"==r&&(e.g.pause(),Zc(e));break;case"STOP":e.h.re().then((function(){e.h&&Zc(e)}));break;case"GET_STATUS":Xc(e,Number(n.requestId));break;case"VOLUME":r=n.volume,t=r.level,r=r.muted;var i=e.g.volume,a=e.g.muted;null!=t&&(e.g.volume=Number(t)),null!=r&&(e.g.muted=r),i==e.g.volume&&a==e.g.muted||Zc(e);break;case"LOAD":e.m=0,e.B=!1,e.u=!1,t=n.media,r=n.currentTime,i=e.J(t.contentId),a=n.autoplay||!0,e.D(t.customData),a&&(e.g.autoplay=!0),e.h.load(i,r).then((function(){e.h&&Xc(e)})).catch((function(t){var r="LOAD_FAILED";7==t.category&&7e3==t.code&&(r="LOAD_CANCELLED"),Qc(e,{requestId:Number(n.requestId),type:r},e.s)}));break;default:Qc(e,{requestId:Number(n.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},e.s)}}(e,t)},e.l=t.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.l.onMessage=function(t){return function(e,t){var n=uc(t.data);switch(n.type){case"init":e.m=0,e.B=!1,e.u=!0,function(e,t,n){var r,i,a,o,s,l,u,c,p,d;R((function(f){switch(f.g){case 1:for(r in t.player)i=t.player[r],e.h[r](i);return e.D(n),a=e.g.autoplay,t.manifest?(e.g.autoplay=!1,k(f,5),_(f,e.h.load(t.manifest,t.startTime),7)):_(f,Promise.resolve(),3);case 7:A(f,3);break;case 5:return o=w(f),s=(new Map).set("detail",o),l=new vr("error",s),e.h&&e.h.dispatchEvent(l),f.return();case 3:if(!e.h)return f.return();for(u in t.video)c=t.video[u],e.g[u]=c;for(p in t.playerAfterLoad)d=t.playerAfterLoad[p],e.h[p](d);e.g.autoplay=a,t.manifest&&(e.g.play(),Zc(e)),E(f)}}))}(e,n.initState,n.appData),Yc(e);break;case"appData":e.D(n.appData);break;case"set":var r=n.targetName,i=n.property;if(n=n.value,"video"==r){if(t=cast.receiver.CastReceiverManager.getInstance(),"volume"==i){t.setSystemVolumeLevel(n);break}if("muted"==i){t.setSystemVolumeMuted(n);break}}e.H[r][i]=n;break;case"call":(r=e.H[n.targetName])[n.methodName].apply(r,n.args);break;case"asyncCall":r=n.targetName,i=n.methodName,"player"==r&&"load"==i&&(e.m=0,e.B=!1);var a=n.id,o=t.senderId;t=e.H[r],n=t[i].apply(t,n.args),"player"==r&&"load"==i&&(n=n.then((function(){e.u=!0}))),n.then((function(){return $c(e,o,a,null)}),(function(t){return $c(e,o,a,t)}))}}(e,t)},t.start();for(var n=(t=u(cc)).next();!n.done;n=t.next())e.j.C(e.g,n.value,(function(t){return Wc(e,"video",t)}));for(var r in br)e.j.C(e.h,br[r],(function(t){return Wc(e,"player",t)}));cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?e.h.ke(3840,2160):e.h.ke(1920,1080),e.j.C(e.g,"loadeddata",(function(){e.B=!0})),e.j.C(e.h,"loading",(function(){e.o=!1,zc(e)})),e.j.C(e.g,"playing",(function(){e.o=!1,zc(e)})),e.j.C(e.g,"pause",(function(){zc(e)})),e.j.C(e.h,"unloading",(function(){e.o=!0,zc(e)})),e.j.C(e.g,"ended",(function(){new ot((function(){e.g&&e.g.ended&&(e.o=!0,zc(e))})).N(ep)}))}(this)}function Gc(e){e.m=0,e.u=!0,e.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length,zc(e)}function zc(e){var t;R((function(n){return 1==n.g?_(n,Promise.resolve(),2):e.h?(t=new vr("caststatuschanged"),e.dispatchEvent(t),qc(e)||Zc(e),void E(n)):n.return()}))}function Wc(e,t,n){e.h&&(Yc(e),Qc(e,{type:"event",targetName:t,event:n},e.l))}function Yc(e){e.G.N(Jc);for(var t={video:{},player:{}},n=u(pc),r=n.next();!r.done;r=n.next())r=r.value,t.video[r]=e.g[r];if(e.h.U())for(var i in yc)0==e.m%yc[i]&&(t.player[i]=e.h[i]());for(var a in hc)0==e.m%hc[a]&&(t.player[a]=e.h[a]());for(var o in(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(t.video.volume=n.level,t.video.muted=n.muted),Qc(e,{type:"update",update:t},e.l),gc)0==e.m%gc[o]&&((t={player:{}}).player[o]=e.h[o](),Qc(e,{type:"update",update:t},e.l));e.B&&(e.m+=1),qc(e)}function qc(e){return!(!e.u||!e.g.duration&&!e.h.U())&&(Xc(e),e.u=!1,!0)}function Xc(e,t){var n={contentId:e.h.Dd(),streamType:e.h.U()?"LIVE":"BUFFERED",contentType:""};e.h.U()||(n.duration=e.g.duration),e.i&&(n.metadata=e.i),Zc(e,void 0===t?0:t,n)}function $c(e,t,n,r){e.h&&Qc(e,{type:"asyncComplete",id:n,error:r},e.l,t)}function Qc(e,t,n,r){e.F&&(e=lc(t),r?n.getCastChannel(r).send(e):n.broadcast(e))}function Zc(e,t,n){n=void 0===n?null:n;var r={mediaSessionId:0,playbackRate:e.g.playbackRate,playerState:e.o?tp:e.h.Fd()?rp:e.g.paused?ip:np,currentTime:e.g.currentTime,supportedMediaCommands:63,volume:{level:e.g.volume,muted:e.g.muted}};n&&(r.media=n),Qc(e,{requestId:void 0===t?0:t,type:"MEDIA_STATUS",status:[r]},e.s)}y(Mc,_r),(r=Mc.prototype).destroy=function(e){return e&&this.g.Ab(),this.m&&(this.m.release(),this.m=null),e=[],this.h&&(e.push(this.h.destroy()),this.h=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.s=this.l=this.i=null,_r.prototype.release.call(this),Promise.all(e)},r.Wf=function(){return this.l},r.Nf=function(){return this.s},r.nf=function(){return this.g.m&&Pc},r.sa=function(){return this.g.sa()},r.ae=function(){return this.g.ae()},r.cast=function(){var e,t=this;return R((function(n){return 1==n.g?(e=Uc(t),_(n,t.g.cast(e),2)):t.h?_(n,t.h.re(),0):n.return()}))},r.ie=function(e){this.g.ie(e)},r.zg=function(){!function(e){if(e.h){var t=e.J();chrome.cast.requestSession((function(n){return kc(e,t,n)}),(function(t){return Tc(e,t)}))}}(this.g)},r.Ab=function(){this.g.Ab()},r.qf=function(e,t){t=void 0!==t&&t;var n=this;return R((function(r){if(1==r.g)return e==n.D&&t==n.B?r.return():(n.D=e,n.B=t,n.g.Ab(),_(r,n.g.destroy(),2));n.g=null,n.g=new Ec(e,(function(){return Fc(n)}),(function(){return jc(n)}),(function(e,t){return Hc(n,e,t)}),(function(){return Bc(n)}),(function(){return Uc(n)}),t),n.g.init(),E(r)}))},B("shaka.cast.CastProxy",Mc),Mc.prototype.changeReceiverId=Mc.prototype.qf,Mc.prototype.forceDisconnect=Mc.prototype.Ab,Mc.prototype.suggestDisconnect=Mc.prototype.zg,Mc.prototype.setAppData=Mc.prototype.ie,Mc.prototype.cast=Mc.prototype.cast,Mc.prototype.receiverName=Mc.prototype.ae,Mc.prototype.isCasting=Mc.prototype.sa,Mc.prototype.canCast=Mc.prototype.nf,Mc.prototype.getPlayer=Mc.prototype.Nf,Mc.prototype.getVideo=Mc.prototype.Wf,Mc.prototype.destroy=Mc.prototype.destroy,y(Kc,_r),(r=Kc.prototype).isConnected=function(){return this.F},r.$f=function(){return this.o},r.wg=function(e){this.i=e},r.uf=function(){this.i=null},r.xg=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.title=e},r.vg=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.images=[{url:e}]},r.ug=function(e){this.i||(this.i={}),this.i.artist=e,this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK},r.destroy=function(){var e,t=this;return R((function(n){if(1==n.g)return t.j&&(t.j.release(),t.j=null),e=[],t.h&&(e.push(t.h.destroy()),t.h=null),t.G&&(t.G.stop(),t.G=null),t.g=null,t.H=null,t.D=null,t.F=!1,t.o=!0,t.l=null,t.s=null,_r.prototype.release.call(t),_(n,Promise.all(e),2);cast.receiver.CastReceiverManager.getInstance().stop(),E(n)}))},B("shaka.cast.CastReceiver",Kc),Kc.prototype.destroy=Kc.prototype.destroy,Kc.prototype.setContentArtist=Kc.prototype.ug,Kc.prototype.setContentImage=Kc.prototype.vg,Kc.prototype.setContentTitle=Kc.prototype.xg,Kc.prototype.clearContentMetadata=Kc.prototype.uf,Kc.prototype.setContentMetadata=Kc.prototype.wg,Kc.prototype.isIdle=Kc.prototype.$f,Kc.prototype.isConnected=Kc.prototype.isConnected;var Jc=.5,ep=5,tp="IDLE",np="PLAYING",rp="BUFFERING",ip="PAUSED";function ap(e,t,n){var r=function(e){for(var t=[],n=(e=u(e)).next();!n.done;n=e.next())(n=sp(n.value))&&t.push(n);return t}(e),i=null;e=[];var a=[],o=new Set(r.map((function(e){return e.keyId})));if(o.delete(null),1<o.size)throw new De(2,4,4010);if(t||(a=r.filter((function(e){return"urn:mpeg:dash:mp4protection:2011"!=e.fe||(i=e.init||i,!1)}))).length&&(0==(e=function(e,t,n,r){for(var i=[],a=(t=u(t)).next();!a.done;a=t.next()){a=a.value;var o=n[a.fe];if(o){var s;if(s=ii(a.node,"urn:microsoft:playready","pro")){s=Pt(s.textContent);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);s=[{initData:ni(s,l,new Set,0),initDataType:"cenc",keyId:a.keyId}]}else s=null;if(l=null,"urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===a.fe)if(0==(l=r).size)l=null;else{var c=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75]),p=new Uint8Array([]);l=[{initData:ni(p,c,l,1),initDataType:"cenc",keyId:a.keyId}]}s=Qe(o,a.init||e||s||l),(o=up.get(o))&&(s.licenseServerUri=o(a)),i.push(s)}}return i}(i,a,n,o)).length&&(e=[Qe("",i)])),r.length&&(t||!a.length))for(e=[],n=(t=u(Object.values(n))).next();!n.done;n=t.next())"org.w3.clearkey"!=(n=n.value)&&e.push(Qe(n,i));if(o=Array.from(o)[0]||null)for(n=(t=u(e)).next();!n.done;n=t.next())for(r=(n=u(n.value.initData)).next();!r.done;r=n.next())r.value.keyId=o;return{Be:o,sh:i,drmInfos:e,Fe:!0}}function op(e){return(e=ii(e.node,"urn:microsoft:playready","pro"))&&(e=function(e){var t=0,n=Ie(e),r=n.getUint32(t,!0);if(r!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){r=n.getUint16(e,!0),e+=2;var i=n.getUint16(e,!0);if(e+=2,0!=(1&i)||i+e>n.byteLength){n=[];break e}var a=xe(n,e,i);t.push({type:r,value:a}),e+=i}n=t}return n}(e=Pt(e.textContent)).filter((function(e){return e.type===lp}))[0])&&(e=_i(e=kt(e.value,!0),"WRMHEADER"))?function(e){for(var t=(e=u(e.getElementsByTagName("DATA"))).next();!t.done;t=e.next())for(var n=(t=u(t.value.childNodes)).next();!n.done;n=t.next())if((n=n.value)instanceof Element&&"LA_URL"==n.tagName)return n.textContent;return""}(e):""}function sp(e){var t=e.getAttribute("schemeIdUri"),n=si(e,"urn:mpeg:cenc:2013","default_KID"),r=oi(e,"urn:mpeg:cenc:2013","pssh").map(ui);if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new De(2,4,4009);var i=[];try{i=r.map((function(e){return{initDataType:"cenc",initData:Pt(e),keyId:null}}))}catch(e){throw new De(2,4,4007)}return{node:e,fe:t,keyId:n,init:0<i.length?i:null}}var lp=1,up=(new Map).set("com.widevine.alpha",(function(e){return(e=ii(e.node,"urn:microsoft","laurl"))&&e.getAttribute("licenseUrl")||""})).set("com.microsoft.playready",op).set("com.microsoft.playready.recommendation",op).set("com.microsoft.playready.software",op).set("com.microsoft.playready.hardware",op).set("org.w3.clearkey",(function(e){return(e=ii(e.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===e.getAttribute("Lic_type")&&e.textContent?e.textContent:""}));function cp(t,n,r,i,a){var o={RepresentationID:n,Number:r,Bandwidth:i,Time:a};return t.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,(function(t,n,r,i){if("$$"==t)return"$";var a=o[n];if(null==a)return t;switch("RepresentationID"==n&&r&&(r=void 0),"Time"==n&&(a=Math.round(a)),i){case void 0:case"d":case"i":case"u":t=a.toString();break;case"o":t=a.toString(8);break;case"x":t=a.toString(16);break;case"X":t=a.toString(16).toUpperCase();break;default:t=a.toString()}return r=e.parseInt(r,10)||1,Array(Math.max(0,r-t.length)+1).join("0")+t}))}function pp(e,t){var n=dp(e,t,"timescale"),r=1;n&&(r=yi(n)||1);var i=dp(e,t,"duration");n=yi(i||""),"image"==e.I.contentType&&(n=mi(i||"")),n&&(n/=r);var a=dp(e,t,"startNumber");i=Number(dp(e,t,"presentationTimeOffset"))||0;var o=vi(a||"");if(null!=a&&null!=o||(o=1),a=fp(e,t,"SegmentTimeline"),t=null,a){t=r,e=e.T.duration||1/0,a=ai(a,"S");for(var s=[],l=-i,u=0;u<a.length;++u){var c=a[u],p=a[u+1],d=pi(c,"t",vi),f=pi(c,"d",vi);if(c=pi(c,"r",gi),null!=d&&(d-=i),!f)break;if(d=null!=d?d:l,0>(c=c||0))if(p){if(null==(p=pi(p,"t",vi)))break;if(d>=p)break;c=Math.ceil((p-d)/f)-1}else{if(1/0==e)break;if(d/t>=e)break;c=Math.ceil((e*t-d)/f)-1}for(0<s.length&&d!=l&&(s[s.length-1].end=d/t),p=0;p<=c;++p)l=d+f,s.push({start:d/t,end:l/t,Dg:d}),d=l}t=s}return{timescale:r,ia:n,Lb:o,Sa:i/r||0,se:i,timeline:t}}function dp(e,t,n){return[t(e.I),t(e.fa),t(e.$)].filter(Xe).map((function(e){return e.getAttribute(n)})).reduce((function(e,t){return e||t}))}function fp(e,t,n){return[t(e.I),t(e.fa),t(e.$)].filter(Xe).map((function(e){return ri(e,n)})).reduce((function(e,t){return e||t}))}function hp(e,t,n,r,i,a){if(a=void 0===a?0:a,si(e,"http://www.w3.org/1999/xlink","href")){var o=function(e,t,n,r,i,a){for(var o=si(e,"http://www.w3.org/1999/xlink","href"),s=si(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",l=u(Array.from(e.attributes)),c=l.next();!c.done;c=l.next())"http://www.w3.org/1999/xlink"==(c=c.value).namespaceURI&&e.removeAttributeNS(c.namespaceURI,c.localName);if(5<=a)return dr(new De(2,4,4028));if("onLoad"!=s)return dr(new De(2,4,4027));var p=$e([r],[o]);return i.request(0,Cr(p,t)).Y((function(r){if(!(r=Ei(r.data,e.tagName)))return dr(new De(2,4,4001,o));for(;e.childNodes.length;)e.removeChild(e.childNodes[0]);for(;r.childNodes.length;){var s=r.childNodes[0];r.removeChild(s),e.appendChild(s)}for(s=(r=u(Array.from(r.attributes))).next();!s.done;s=r.next())e.setAttributeNode(s.value.cloneNode(!1));return hp(e,t,n,p[0],i,a+1)}))}(e,t,n,r,i,a);return n&&(o=o.Y(void 0,(function(){return hp(e,t,n,r,i,a)}))),o}o=[];for(var s=u(Array.from(e.childNodes)),l=s.next();!l.done;l=s.next())(l=l.value)instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==si(l,"http://www.w3.org/1999/xlink","href")?e.removeChild(l):"SegmentTimeline"!=l.tagName&&o.push(hp(l,t,n,r,i,a)));return yr(o).Y((function(){return e}))}function gp(e,t,n,r,i,a,o){var s,l=(new zr).P("sidx",(function(e){s=function(e,t,n,r,i,a,o){var s=[];o.reader.skip(4);var l=o.reader.K();if(0==l)throw new De(2,3,3005);if(0==o.version)var u=o.reader.K(),c=o.reader.K();else u=o.reader.$a(),c=o.reader.$a();o.reader.skip(2);var p=o.reader.$d();for(e=e+o.size+c,c=0;c<p;c++){var d=o.reader.K(),f=(2147483648&d)>>>31;d&=2147483647;var h=o.reader.K();if(o.reader.skip(4),1==f)throw new De(2,3,3006);s.push(new go(u/l+n,(u+h)/l+n,(function(){return a}),e,e+d-1,t,n,r,i)),u+=h,e+=d}return o.parser.stop(),s}(t,r,i,a,o,n,e)}));if(e&&l.parse(e),s)return s;throw new De(2,3,3004)}function yp(e){this.h=Ie(e),this.g=new Hr(this.h,0)}function vp(e){var t=mp(e);if(7<t.length)throw new De(2,3,3002);for(var n=0,r=(t=u(t)).next();!r.done;r=t.next())n=256*n+r.value;t=mp(e);e:{for(var i=(r=u(bp)).next();!i.done;i=r.next())if(we(t,new Uint8Array(i.value))){r=!0;break e}r=!1}if(r)t=e.h.byteLength-e.g.Z();else{if(8==t.length&&224&t[1])throw new De(2,3,3001);for(i=r=0;i<t.length;i++){var a=t[i];r=0==i?a&(1<<8-t.length)-1:256*r+a}t=r}return t=e.g.Z()+t<=e.h.byteLength?t:e.h.byteLength-e.g.Z(),r=Ie(e.h,e.g.Z(),t),e.g.skip(t),new _p(n,r)}function mp(e){var t=e.g.Z(),n=e.g.Ra();if(0==n)throw new De(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),xe(e.h,t,n)}yp.prototype.ha=function(){return this.g.ha()};var bp=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function _p(e,t){this.id=e,this.g=t}function Ep(e){if(8<e.g.byteLength)throw new De(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new De(2,3,3001);for(var t=0,n=0;n<e.g.byteLength;n++){t=256*t+e.g.getUint8(n)}return t}function kp(e){var t=new yp(e.g);if(179!=(e=vp(t)).id)throw new De(2,3,3013);if(e=Ep(e),183!=(t=vp(t)).id)throw new De(2,3,3012);t=new yp(t.g);for(var n=0;t.ha();){var r=vp(t);if(241==r.id){n=Ep(r);break}}return{Eg:e,ng:n}}function Tp(e,t){if(!(t=fp(e,t,"Initialization")))return null;var n=e.I.wa,r=t.getAttribute("sourceURL");r&&(n=$e(e.I.wa,[r])),r=0;var i=null;return(t=pi(t,"range",hi))&&(r=t.start,i=t.end),new ho((function(){return n}),r,i,Ip(e))}function Ap(e,t){var n=Number(dp(e,Sp,"presentationTimeOffset"))||0,r=dp(e,Sp,"timescale"),i=1;r&&(i=yi(r)||1);var a=n/i||0,o=Tp(e,Sp);!function(e,t){if(xp(e,t),!Cp(e))throw new De(2,4,4002)}(e,o);var s=kr(e);return{Bb:function(){var e=fp(s,Sp,"RepresentationIndex"),n=s.I.wa;return e&&(e=e.getAttribute("sourceURL"))&&(n=$e(s.I.wa,[e])),e=Cp(s),wp(s,t,o,n,e.start,e.end,a)}}}function wp(e,t,n,r,i,a,o){var s,l,u,c,p,d,f,h,g,y,v,m,b,E,k;return R((function(T){if(1==T.g)return s=e.presentationTimeline,l=!e.Ma||!e.T.Gd,u=e.T.start,c=e.T.duration,p=e.I.mimeType.split("/")[1],f=null,h=[(d=t)(r,i,a),"webm"==p?d(n.ya(),n.Ba,n.ka):null],d=null,_(T,Promise.all(h),2);if(g=T.h,y=g[0],v=g[1]||null,null,b=u-o,E=u,k=c?u+c:1/0,"mp4"==p)var A=gp(y,i,r,n,b,E,k);else{if(440786851!=vp(A=new yp(v)).id)throw new De(2,3,3008);var w=vp(A);if(408125543!=w.id)throw new De(2,3,3009);A=w.g.byteOffset,w=new yp(w.g);for(var S=null;w.ha();){var C=vp(w);if(357149030==C.id){S=C;break}}if(!S)throw new De(2,3,3010);for(S=new yp(S.g),C=1e6,w=null;S.ha();){var x=vp(S);if(2807729==x.id)C=Ep(x);else if(17545==x.id)if(4==x.g.byteLength)w=x.g.getFloat32(0);else{if(8!=x.g.byteLength)throw new De(2,3,3003);w=x.g.getFloat64(0)}}if(null==w)throw new De(2,3,3011);if(w*=S=C/1e9,475249515!=(C=vp(new yp(y))).id)throw new De(2,3,3007);A=function(e,t,n,r,i,a,o,s,l){function u(){return i}var c=[];e=new yp(e.g);for(var p=null,d=null;e.ha();){var f=vp(e);if(187==f.id){var h=kp(f);h&&(f=n*h.Eg,h=t+h.ng,null!=p&&c.push(new go(p+o,f+o,u,d,h-1,a,o,s,l)),p=f,d=h)}}return null!=p&&c.push(new go(p+o,r+o,u,d,null,a,o,s,l)),c}(C,A,S,w,r,n,b,E,k)}return m=A,s.Ib(m),f=new Es(m),l&&f.Wa(E,k,!0),T.return(f)}))}function Sp(e){return e.wc}function Cp(e){var t=fp(e,Sp,"RepresentationIndex");return e=hi((e=dp(e,Sp,"indexRange"))||""),t&&(e=pi(t,"range",hi,e)),e}function xp(e,t){var n=e.I.mimeType.split("/")[1];if(e.I.contentType!=et&&"mp4"!=n&&"webm"!=n)throw new De(2,4,4006);if("webm"==n&&!t)throw new De(2,4,4005)}function Ip(e){var t=e.I;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.ad,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null}}function Pp(e,t){var n=Tp(e,Dp),r=function(e){var t=function(e){return[e.I.ab,e.fa.ab,e.$.ab].filter(Xe).map((function(e){return ai(e,"SegmentURL")})).reduce((function(e,t){return 0<e.length?e:t})).map((function(t){return t.getAttribute("indexRange")&&!e.Ke&&(e.Ke=!0),{dg:t.getAttribute("media"),start:(t=pi(t,"mediaRange",hi,{start:0,end:null})).start,end:t.end}}))}(e),n=(e=pp(e,Dp)).Lb;0==n&&(n=1);var r=0;return e.ia?r=e.ia*(n-1):e.timeline&&0<e.timeline.length&&(r=e.timeline[0].start),{ia:e.ia,startTime:r,Lb:n,Sa:e.Sa,timeline:e.timeline,Gb:t}}(e);if(!r.ia&&!r.timeline&&1<r.Gb.length)throw new De(2,4,4002);if(!r.ia&&!e.T.duration&&!r.timeline&&1==r.Gb.length)throw new De(2,4,4002);if(r.timeline&&0==r.timeline.length)throw new De(2,4,4002);var i=null,a=null;e.$.id&&e.I.id&&(a=t[e.$.id+","+e.I.id])&&(i=a.segmentIndex);var o=function(e,t,n,r,i){var a=r.Gb.length;r.timeline&&r.timeline.length!=r.Gb.length&&(a=Math.min(r.timeline.length,r.Gb.length));for(var o=e-r.Sa,s=t?e+t:1/0,l=[],u=r.startTime,c={},p=0;p<a;c={od:c.od},p++){var d=r.Gb[p];c.od=$e(n,[d.dg]);var f;f=null!=r.ia?u+r.ia:r.timeline?r.timeline[p].end:u+t,l.push(new go(e+u,e+f,function(e){return function(){return e.od}}(c),d.start,d.end,i,o,e,s)),u=f}return l}(e.T.start,e.T.duration,e.I.wa,r,n);return t=!i,i?i.Hb(o,e.presentationTimeline.Pa()):i=new Es(o),e.presentationTimeline.Ib(o),e.Ma&&e.T.Gd||i.Wa(e.T.start,e.T.duration?e.T.start+e.T.duration:1/0,t),a&&(a.segmentIndex=i),{Bb:function(){return i&&0!=i.g.length||i.pc(o),Promise.resolve(i)}}}function Dp(e){return e.ab}function Rp(e,t,n,r,i,a){var o=function(e){var t=dp(e,Op,"initialization");if(!t)return null;var n=e.I.id,r=e.bandwidth||null,i=e.I.wa;return new ho((function(){var e=cp(t,n,null,r,null);return $e(i,[e])}),0,null,Ip(e))}(e),s=function(e){var t=pp(e,Op),n=dp(e,Op,"media");return e=dp(e,Op,"index"),{ia:t.ia,timescale:t.timescale,Lb:t.Lb,Sa:t.Sa,se:t.se,timeline:t.timeline,Pd:n,oc:e}}(e);!function(e){var t=e.oc?1:0;if(t+=e.timeline?1:0,0==(t+=e.ia?1:0))throw new De(2,4,4002);if(1!=t&&(e.oc&&(e.timeline=null),e.ia=null),!e.oc&&!e.Pd)throw new De(2,4,4002)}(s);var l=kr(e);if(s.oc)return xp(e,o),{Bb:function(){var e=cp(s.oc,l.I.id,null,l.bandwidth||null,null);return e=$e(l.I.wa,[e]),wp(l,t,o,e,0,null,s.Sa)}};if(s.ia)return r||"image"===e.fa.contentType||(e.presentationTimeline.Sd(s.ia),e.presentationTimeline.Td(e.T.start)),{Bb:function(){return function(e,t,n,r,i){function a(e){var n=(e-h)*f,i=n+t.Sa,a=n+c;return n=a+f,(a=new go(a,Math.min(n,s()),(function(){var t=cp(y,m,e,v,i*g);return $e(b,[t])}),0,null,r,_,c,s())).j=n,a}function o(){var e=[Math.max(l.Pa(),c),Math.min(l.gb(),s())].map((function(e){return e-c}));return[Math.ceil(e[0]/f),Math.ceil(e[1]/f)-1].map((function(e){return e+h}))}function s(){var e=null!=p&&i[p]||d;return e?c+e:1/0}var l=e.presentationTimeline,c=e.T.start,p=e.$.id,d=e.T.duration,f=t.ia,h=t.Lb,g=t.timescale,y=t.Pd,v=e.bandwidth||null,m=e.I.id,b=e.I.wa,_=c-t.Sa,E=o();e=e.Ma?Math.max(E[0],E[1]-n+1):E[0],E=E[1],n=[];for(var k=e;k<=E;++k){var T=a(k);n.push(T)}var A=new Es(n);if(n=l.gb()<s(),k=l.U(),n||k){var w=Math.max(e,E+1);A.fd(f,(function(){var e=l.Pa();A.eb(e);var t=u(o());t.next(),t=t.next().value;for(var n=[];w<=t;){var r=a(w);n.push(r),w++}return e>s()&&!n.length?null:n}))}return Promise.resolve(A)}(l,s,i,o,a)}};var c=null;r=r=null,e.$.id&&e.I.id&&(r=n[r=e.$.id+","+e.I.id])&&(c=r.segmentIndex);var p=function(e,t,n){var r=e.T.start,i=e.T.duration,a=r-t.Sa;i=i?r+i:1/0;for(var o=[],s={},l=0;l<t.timeline.length;s={nd:s.nd,rd:s.rd,ud:s.ud,kd:s.kd,wd:s.wd,ld:s.ld},l++){var u=t.timeline[l],c=u.start,p=u.Dg;u=u.end,s.ud=l+t.Lb,s.wd=p+t.se,s.rd=e.I.id,s.kd=e.bandwidth||null,s.nd=t.Pd,s.ld=e.I.wa,o.push(new go(r+c,r+u,function(e){return function(){var t=cp(e.nd,e.rd,e.ud,e.kd||null,e.wd);return $e(e.ld,[t]).map((function(e){return e.toString()}))}}(s),0,null,n,a,r,i))}return o}(l,s,o);n=e.T.start;var d=e.T.duration?e.T.start+e.T.duration:1/0,f=!(e.Ma&&e.T.Gd);return c?(f&&new Es(p).Wa(n,d,!0),c.Hb(p,e.presentationTimeline.Pa())):c=new Es(p),e.presentationTimeline.Ib(p),f&&c.Wa(n,d),r&&e.Ma&&(r.segmentIndex=c),{Bb:function(){return c&&0!=c.g.length||c.pc(p),Promise.resolve(c)}}}function Op(e){return e.xc}function Lp(){this.l=[],this.g=[],this.h=[],this.j=[],this.i=[],this.m=new Set}function Mp(e,t,n){var r,i,a,o,s,l,c,p,d,f,h,g,y,v,m,b,k,T,A,w,S,C,x,I,P,D,O,L;return R((function(R){switch(R.g){case 1:if(r=tt,function(e){for(var t=(e=u(e)).next();!t.done;t=e.next()){t=t.value;for(var n=[],r=u(t.Kc),i=r.next();!i.done;i=r.next()){i=i.value;for(var a=!1,o=u(n),s=o.next();!s.done;s=o.next())s=s.value,i.id!=s.id&&i.channelsCount==s.channelsCount&&i.language==s.language&&i.bandwidth==s.bandwidth&&i.label==s.label&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&ne(i.roles,s.roles)&&i.audioSamplingRate==s.audioSamplingRate&&i.primary==s.primary&&(a=!0);a||n.push(i)}t.Kc=n}}(t),function(e){for(var t=(e=u(e)).next();!t.done;t=e.next()){t=t.value;for(var n=[],r=u(t.gd),i=r.next();!i.done;i=r.next()){i=i.value;for(var a=!1,o=u(n),s=o.next();!s.done;s=o.next())s=s.value,i.id!=s.id&&i.width==s.width&&i.frameRate==s.frameRate&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&i.label==s.label&&ne(i.roles,s.roles)&&Vr(i.closedCaptions,s.closedCaptions)&&i.bandwidth==s.bandwidth&&(a=!0);a||n.push(i)}t.gd=n}}(t),function(e){for(var t=(e=u(e)).next();!t.done;t=e.next()){t=t.value;for(var n=[],r=u(t.textStreams),i=r.next();!i.done;i=r.next()){i=i.value;for(var a=!1,o=u(n),s=o.next();!s.done;s=o.next())s=s.value,i.id!=s.id&&i.language==s.language&&i.label==s.label&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&i.bandwidth==s.bandwidth&&ne(i.roles,s.roles)&&(a=!0);a||n.push(i)}t.textStreams=n}}(t),function(e){for(var t=(e=u(e)).next();!t.done;t=e.next()){t=t.value;for(var n=[],r=u(t.imageStreams),i=r.next();!i.done;i=r.next()){i=i.value;for(var a=!1,o=u(n),s=o.next();!s.done;s=o.next())s=s.value,i.id!=s.id&&i.width==s.width&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&(a=!0);a||n.push(i)}t.imageStreams=n}}(t),!n&&1==t.length){i=t[0],e.g=i.Kc,e.h=i.gd,e.j=i.textStreams,e.i=i.imageStreams,R.A(2);break}for(a=-1,o=0;o<t.length;o++)s=t[o],e.m.has(s.id)||(e.m.add(s.id),-1==a&&(a=o));if(-1==a)return R.return();for(l=t.map((function(e){return e.Kc})),c=t.map((function(e){return e.gd})),p=t.map((function(e){return e.textStreams})),d=t.map((function(e){return e.imageStreams})),f=u(p),h=f.next();!h.done;h=f.next())h.value.push(ed(r.X));for(g=u(d),y=g.next();!y.done;y=g.next())y.value.push(ed(r.Wb));return _(R,Up(e.g,l,a,Vp,Kp),3);case 3:return _(R,Up(e.h,c,a,Vp,Kp),4);case 4:return _(R,Up(e.j,p,a,Vp,Kp),5);case 5:return _(R,Up(e.i,d,a,Vp,Kp),2);case 2:if(v=0,m=[],e.h.length&&e.g.length)for(S=u(e.g),C=S.next();!C.done;C=S.next())for(x=C.value,I=u(e.h),P=I.next();!P.done;P=I.next())D=P.value,O=Ui(x.drmInfos,D.drmInfos),x.drmInfos.length&&D.drmInfos.length&&!O.length||(L=v++,m.push({id:L,language:x.language,primary:x.primary,audio:x,video:D,bandwidth:(x.bandwidth||0)+(D.bandwidth||0),drmInfos:O,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(b=e.h.concat(e.g),k=u(b),T=k.next();!T.done;T=k.next())A=T.value,w=v++,m.push({id:w,language:A.language,primary:A.primary,audio:A.type==r.Hc?A:null,video:A.type==r.va?A:null,bandwidth:A.bandwidth||0,drmInfos:A.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});e.l=m,E(R)}}))}function Np(e){var t,n,r,i,a,o,s,l,c,p,d,f,h,g,y,v,m,b,E,k,T,A,w,S;return R((function(C){switch(C.g){case 1:if(t=tt,1==e.length)return C.return(e[0]);for(n=e.map((function(e){return e.filter((function(e){return e.type==t.Hc}))})),r=e.map((function(e){return e.filter((function(e){return e.type==t.va}))})),i=e.map((function(e){return e.filter((function(e){return e.type==t.X}))})),a=e.map((function(e){return e.filter((function(e){return e.type==t.Wb}))})),o=u(i),s=o.next();!s.done;s=o.next())s.value.push(Jp(t.X));for(l=u(a),c=l.next();!c.done;c=l.next())c.value.push(Jp(t.Wb));return _(C,Up([],n,0,Hp,Gp),2);case 2:return p=C.h,_(C,Up([],r,0,Hp,Gp),3);case 3:return d=C.h,_(C,Up([],i,0,Hp,Gp),4);case 4:return f=C.h,_(C,Up([],a,0,Hp,Gp),5);case 5:if(h=C.h,g=0,d.length&&p.length)for(b=u(p),E=b.next();!E.done;E=b.next())for(k=E.value,T=u(d),A=T.next();!A.done;A=T.next())w=A.value,S=g++,w.variantIds.push(S),k.variantIds.push(S);else for(y=d.concat(p),v=u(y),m=v.next();!m.done;m=v.next())m.value.variantIds=[g++];return C.return(d.concat(p).concat(f).concat(h))}}))}function Up(e,t,n,r,i){var a,o,s,l,c,p,d,f,h,g,y,v,m,b,E,k,T,A;return R((function(w){switch(w.g){case 1:for(a=tt,o=[],s=0;s<t.length;s++)s>=n?o.push(new Set(t[s])):o.push(new Set);l=u(e),c=l.next();case 2:if(c.done){w.A(4);break}return _(w,function(e,t,n,r,i){return R((function(a){return 1==a.g?(zp(t,e),e.matchedStreams?e.segmentIndex?_(a,Fp(e,n),2):a.A(2):a.return(!1)):(Bp(e,n,r,i),a.return(!0))}))}(c.value,t,n,i,o),5);case 5:if(!w.h)throw new De(2,4,4037);c=l.next(),w.A(2);break;case 4:for(p=u(o),d=p.next();!d.done;d=p.next())for(f=d.value,h=u(f),g=h.next();!g.done;g=h.next())y=g.value,(v=jp(y,t,r,i,o))&&e.push(v);for(m=u(o),d=m.next();!d.done;d=m.next())for(b=d.value,E={},k=u(b),g=k.next();!g.done;E={Va:E.Va},g=k.next())if(E.Va=g.value,T=E.Va.type==a.X&&!E.Va.language,A=E.Va.type==a.Wb&&!E.Va.tilesLayout,!T&&!A&&e.some(function(e){return function(t){return t.mimeType==e.Va.mimeType&&zt(t.codecs)==zt(e.Va.codecs)}}(E)))throw new De(2,4,4037);return w.return(e)}}))}function Fp(e,t){var n,r,i,a,o,s,l;return R((function(c){if(1==c.g){for(n=[],r=e.matchedStreams,i=u(r),a=i.next();!a.done;a=i.next())o=a.value,n.push(o.createSegmentIndex()),o.trickModeVideo&&!o.trickModeVideo.segmentIndex&&n.push(o.trickModeVideo.createSegmentIndex());return _(c,Promise.all(n),2)}if(e.segmentIndex instanceof ws)for(s=0;s<r.length;s++)(l=r[s]).segmentIndex&&s>=t&&e.segmentIndex.l.push(l.segmentIndex);E(c)}))}function jp(e,t,n,r,i){var a=n(e);return zp(t,a),a.createSegmentIndex&&(a.createSegmentIndex=function(){return R((function(e){return a.segmentIndex?e.A(0):(a.segmentIndex=new ws,_(e,Fp(a,0),0))}))}),a.matchedStreams?(Bp(a,0,r,i),a):null}function Bp(e,t,n,r){for(var i=e.matchedStreams,a=0;a<i.length;a++)if(a>=t){var o=i[a];n(e,o);var s=!0;"audio"==e.type&&0==on(e.language,o.language)&&(s=!1),s&&r[a].delete(o)}}function Vp(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var e=u(t.matchedStreams),n=e.next();!n.done;n=e.next())(n=n.value).segmentIndex&&(n.segmentIndex.release(),n.segmentIndex=null)},t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set,t.closedCaptions=null,t.trickModeVideo=null,t}function Hp(e){return(e=Object.assign({},e)).keyIds=new Set,e.segments=[],e.variantIds=[],e.closedCaptions=null,e}function Kp(e,t){var n,r;e.roles=Array.from(new Set(e.roles.concat(t.roles))),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=Array.from(new Set(e.emsgSchemeIdUris.concat(t.emsgSchemeIdUris)))),e.keyIds=(n=e.keyIds,r=t.keyIds,new Set([].concat(c(n),c(r)))),null==e.originalId?e.originalId=t.originalId:e.originalId+=","+(t.originalId||"");var i=Ui(e.drmInfos,t.drmInfos);if(t.drmInfos.length&&e.drmInfos.length&&!i.length)throw new De(2,4,4038);if(e.drmInfos=i,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var a=(i=u(t.closedCaptions)).next();!a.done;a=i.next()){var o=u(a.value);a=o.next().value,o=o.next().value,e.closedCaptions.set(a,o)}}t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=Vp(t.trickModeVideo),e.trickModeVideo.createSegmentIndex=function(){return e.trickModeVideo.segmentIndex=e.segmentIndex.clone(),Promise.resolve()}),Kp(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&Kp(e.trickModeVideo,t)}function Gp(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles)));var n=t.keyIds;if(n=new Set([].concat(c(e.keyIds),c(n))),e.keyIds=n,e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,c(t.segments)),t.closedCaptions)for(e.closedCaptions||(e.closedCaptions=new Map),n=(t=u(t.closedCaptions)).next();!n.done;n=t.next()){var r=u(n.value);n=r.next().value,r=r.next().value,e.closedCaptions.set(n,r)}}function zp(e,t){for(var n=[],r=(e=u(e)).next();!r.done;r=e.next()){for(var i=t,a={audio:Wp,video:Wp,text:Yp,image:qp}[i.type],o={audio:Xp,video:$p,text:Qp,image:Zp}[i.type],s=null,l=(r=u(r.value)).next();!l.done;l=r.next())!a(i,l=l.value)||s&&!o(i,s,l)||(s=l);if(!(i=s))return;n.push(i)}t.matchedStreams=n}function Wp(e,t){var n;return!(n=t.mimeType!=e.mimeType||zt(t.codecs)!=zt(e.codecs))&&(n=e.drmInfos)&&(e=e.drmInfos,t=t.drmInfos,n=!(!e.length||!t.length||0<Ui(e,t).length)),!n}function Yp(e,t){return!!e.language&&(!t.language||0!=on(e.language,t.language)&&t.kind==e.kind)}function qp(e){return!!e.tilesLayout}function Xp(e,t,n){if(e.id==n.id)return!0;var r=on(e.language,t.language),i=on(e.language,n.language);return i>r||!(i<r)&&(e.roles.length?(r=t.roles.filter((function(t){return e.roles.includes(t)})),(i=n.roles.filter((function(t){return e.roles.includes(t)}))).length>r.length||!(i.length<r.length)&&n.roles.length<t.roles.length):!(n.roles.length||!t.roles.length)||!(n.roles.length&&!t.roles.length)&&(!(t.primary||!n.primary)||!(t.primary&&!n.primary)&&((r=td(e.channelsCount,t.channelsCount,n.channelsCount))==rd||r!=ad&&((r=td(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==rd||r!=ad&&!(!e.bandwidth||nd(e.bandwidth,t.bandwidth,n.bandwidth)!=rd)))))}function $p(e,t,n){if(e.id==n.id)return!0;var r=td(e.width*e.height,t.width*t.height,n.width*n.height);if(r==rd)return!0;if(r==ad)return!1;if(e.frameRate){if((r=td(e.frameRate,t.frameRate,n.frameRate))==rd)return!0;if(r==ad)return!1}return!(!e.bandwidth||nd(e.bandwidth,t.bandwidth,n.bandwidth)!=rd)}function Qp(e,t,n){if(e.id==n.id)return!0;var r=on(e.language,t.language),i=on(e.language,n.language);if(i>r)return!0;if(i<r)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(e.roles.length){if(r=t.roles.filter((function(t){return e.roles.includes(t)})),(i=n.roles.filter((function(t){return e.roles.includes(t)}))).length>r.length)return!0;if(i.length<r.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return n.mimeType==e.mimeType&&n.codecs==e.codecs&&(t.mimeType!=e.mimeType||t.codecs!=e.codecs)}function Zp(e,t,n){return e.id==n.id||td(e.width*e.height,t.width*t.height,n.width*n.height)==rd}function Jp(e){return{id:0,originalId:"",primary:!1,type:e,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function ed(e){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Es([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:e,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function td(e,t,n){if(t==e&&e!=n)return ad;if(n==e&&e!=t)return rd;if(t>e){if(n<=e||n-e<t-e)return rd;if(n-e>t-e)return ad}else{if(n>e)return ad;if(e-n<e-t)return rd;if(e-n>e-t)return ad}return id}function nd(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?rd:t<e?ad:id}Lp.prototype.release=function(){for(var e=u(this.g.concat(this.h,this.j,this.i)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();this.g=[],this.h=[],this.j=[],this.i=[],this.l=[]};var rd=1,id=0,ad=-1;function od(){var e=this;this.h=this.g=null,this.m=[],this.i=null,this.G=1,this.l={},this.L={},this.j=new Lp,this.F=0,this.H=new V(5),this.D=new ot((function(){!function(e){var t,n;R((function(r){switch(r.g){case 1:return t=0,k(r,2),_(r,sd(e),4);case 4:t=r.h,A(r,3);break;case 2:n=w(r),e.h&&(n.severity=1,e.h.onError(n));case 3:if(!e.h)return r.return();pd(e,t),E(r)}}))}(e)})),this.o=new Tr,this.s=null,this.J=[],this.u=1/0,this.B=!1}function sd(e){var t,n,r,i,a,o,s;return R((function(l){return 1==l.g?(t=Cr(e.m,e.g.retryParameters),n=e.h.networkingEngine,e.h.modifyManifestRequest(t,{format:"d"}),r=Date.now(),i=n.request(0,t),Ar(e.o,i),_(l,i.promise,2)):3!=l.g?(a=l.h,e.h?(a.uri&&!e.m.includes(a.uri)&&e.m.unshift(a.uri),_(l,function(e,t,n){var r,i,a,o;return R((function(s){if(1==s.g){if(!(r=Ei(t,"MPD")))throw new De(2,4,4001,n);return e.g.dash.disableXlinkProcessing?s.return(ld(e,r,n)):(i=e.g.dash.xlinkFailGracefully,a=hp(r,e.g.retryParameters,i,n,e.h.networkingEngine),Ar(e.o,a),_(s,a.promise,2))}return o=s.h,s.return(ld(e,o,n))}))}(e,a.data,a.uri),3)):l.return(0)):(o=Date.now(),s=(o-r)/1e3,e.H.sample(1,s),l.return(s))}))}function ld(e,t,n){var r,i,a,o,s,l,c,p,d,f,h,g,y,v,m,b,T,S,C,x,I,P,D,O,L,M,N,U,F;return R((function(j){switch(j.g){case 1:if((r=e.g.dash.manifestPreprocessor)&&r(t),i=[n],0<(a=ai(t,"Location").map(ui).filter(Xe)).length&&(o=$e(i,a),i=e.m=o),s=ai(t,"BaseURL"),l=s.map(ui),c=$e(i,l),p=0,s&&s.length&&(p=pi(s[0],"availabilityTimeOffset",mi)||0),d=e.g.dash.ignoreMinBufferTime,f=0,d||(f=pi(t,"minBufferTime",fi)||0),e.F=pi(t,"minimumUpdatePeriod",fi,-1),h=pi(t,"availabilityStartTime",di),g=pi(t,"timeShiftBufferDepth",fi),y=e.g.dash.ignoreSuggestedPresentationDelay,v=null,y||(v=pi(t,"suggestedPresentationDelay",fi)),m=e.g.dash.ignoreMaxSegmentDuration,b=null,m||(b=pi(t,"maxSegmentDuration",fi)),T=t.getAttribute("type")||"static",e.i)for(S=e.i.presentationTimeline,C=u(Object.values(e.l)),x=C.next();!x.done;x=C.next())(I=x.value).segmentIndex&&I.segmentIndex.eb(S.Pa());else P=e.g.defaultPresentationDelay||1.5*f,S=new ts(h,null!=v?v:P,e.g.dash.autoCorrectDrift);return S.yc("static"==T),S.U()&&!isNaN(e.g.availabilityWindowOverride)&&(g=e.g.availabilityWindowOverride),null==g&&(g=1/0),S.me(g),D=t.getAttribute("profiles")||"",O={Ma:"static"!=T,presentationTimeline:S,$:null,T:null,fa:null,I:null,bandwidth:0,Ke:!1,zb:p,profiles:D.split(",")},L=function(e,t,n,r){var i=pi(r,"mediaPresentationDuration",fi),a=[],o=0;r=ai(r,"Period");for(var s=0;s<r.length;s++){var l=r[s],u=r[s+1],c=pi(l,"start",fi,o),p=l.id,d=pi(l,"duration",fi),f=null;if(u){var h=pi(u,"start",fi);null!=h&&(f=h-c)}else null!=i&&(f=i-c);if(null==f&&(f=d),!(null!==e.s&&null!==p&&null!==c&&c<e.s)||e.J.includes(p)||s+1==r.length){if(null!==c&&(null===e.s||c>e.s)&&(e.s=c),o=ud(e,t,n,{start:c,duration:f,node:l,Gd:null==f||!u}),a.push(o),t.$.id&&f&&(e.L[t.$.id]=f),null==f){o=null;break}o=c+f}}return e.J=a.map((function(e){return e.id})),null!=i?{periods:a,duration:i,De:!1}:{periods:a,duration:o,De:!0}}(e,O,c,t),M=L.duration,N=L.periods,"static"!=T&&L.De||S.Aa(M||1/0),e.u&&!e.B&&e.h.isAutoLowLatencyMode()&&(e.h.enableLowLatencyMode(),e.B=e.h.isLowLatencyMode()),e.B?S.Ue(e.u):e.u&&W("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),S.Sd(b||1),_(j,Mp(e.j,N,O.Ma),2);case 2:if(e.i){e.i.variants=e.j.l,e.i.textStreams=e.j.j.slice(),e.i.imageStreams=e.j.i,e.h.filter(e.i),j.A(3);break}if(e.i={presentationTimeline:S,variants:e.j.l,textStreams:e.j.j.slice(),imageStreams:e.j.i,offlineSessionIds:[],minBufferTime:f||0,sequenceMode:e.g.dash.sequenceMode},!S.df()){j.A(4);break}return U=ai(t,"UTCTiming"),_(j,function(e,t,n){var r,i,a,o,s,l,c,p;return R((function(d){switch(d.g){case 1:r=n.map((function(e){return{scheme:e.getAttribute("schemeIdUri"),value:e.getAttribute("value")}})),i=e.g.dash.clockSyncUri,!r.length&&i&&r.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:i}),a=u(r),o=a.next();case 2:if(o.done){d.A(4);break}switch(s=o.value,k(d,5),l=s.scheme,c=s.value,l){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return d.A(7);case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":return d.A(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return p=Date.parse(c),d.return(isNaN(p)?0:p-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":W("NTP UTCTiming scheme is not supported");break;default:W("Unrecognized scheme in UTCTiming element",l)}d.A(9);break;case 7:return _(d,fd(e,t,c,"HEAD"),10);case 10:return d.return(d.h);case 8:return _(d,fd(e,t,c,"GET"),11);case 11:return d.return(d.h);case 9:A(d,3);break;case 5:w(d);case 3:o=a.next(),d.A(2);break;case 4:return W("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),d.return(0)}}))}(e,c,U),5);case 5:if(F=j.h,!e.h)return j.return();S.Ve(F);case 4:S.Md();case 3:e.h.makeTextStreamsForClosedCaptions(e.i),E(j)}}))}function ud(e,t,n,r){t.$=dd(r.node,null,n),t.T=r,t.$.zb=t.zb,t.$.id||(t.$.id="__shaka_period_"+r.start);var i=ai(r.node,"EventStream");n=t.presentationTimeline.Pa();for(var a=(i=u(i)).next();!a.done;a=i.next())hd(e,r.start,r.duration,a.value,n);if(n=ai(r.node,"AdaptationSet").map((function(n){return function(e,t,n){function r(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}t.fa=dd(n,t.$,null);var i,a=!1,o=ai(n,"Role"),s=o.map((function(e){return e.getAttribute("value")})).filter(Xe),l=void 0,p=t.fa.contentType==et;p&&(l="subtitle");for(var d=(o=u(o)).next();!d.done;d=o.next()){var f=(d=d.value).getAttribute("schemeIdUri");if(null==f||"urn:mpeg:dash:role:2011"==f)switch(d=d.getAttribute("value"),d){case"main":a=!0;break;case"caption":case"subtitle":l=d}}f=ai(n,"EssentialProperty"),o=null,d=!1;for(var h=(f=u(f)).next();!h.done;h=f.next()){var g=(h=h.value).getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==g?o=h.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==g?i=r(parseInt(h.getAttribute("value"),10)):d=!0}for(f=u(f=ai(n,"SupplementalProperty")),h=f.next();!h.done;h=f.next())"urn:mpeg:mpegB:cicp:TransferCharacteristics"==(h=h.value).getAttribute("schemeIdUri")&&(i=r(parseInt(h.getAttribute("value"),10)));f=ai(n,"Accessibility");var y=new Map;for(f=u(f),h=f.next();!h.done;h=f.next())if(g=h.value,h=g.getAttribute("schemeIdUri"),g=g.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==h)if(h=1,null!=g)for(var v=u(g=g.split(";")),m=v.next();!m.done;m=v.next()){var b=m.value,k=m=void 0;b.includes("=")?(b=b.split("="),m=b[0].startsWith("CC")?b[0]:"CC"+b[0],k=b[1]||"und"):(m="CC"+h,2==g.length?h+=2:h++,k=b),y.set(m,an(k))}else y.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==h)if(h=1,null!=g)for(g=u(g.split(";")),m=g.next();!m.done;m=g.next())m=m.value,b=v=void 0,m.includes("=")?(m=m.split("="),v="svc"+m[0],b=m[1].split(",")[0].split(":").pop()):(v="svc"+h,h++,b=m),y.set(v,an(b));else y.set("svc1","und");else"urn:mpeg:dash:role:2011"==h&&null!=g&&(s.push(g),"captions"==g&&(l="caption"));if(d)return null;var T=ap(d=ai(n,"ContentProtection"),e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),A=an(n.getAttribute("lang")||"und"),w=n.getAttribute("label");if((d=ai(n,"Label"))&&d.length&&((d=d[0]).textContent&&(w=d.textContent)),d=ai(n,"Representation"),0==(n=d.map((function(n){return(n=function(e,t,n,r,i,a,o,s,l,u){if(t.I=dd(u,t.fa,null),e.u=Math.min(e.u,t.I.zb),!function(e){var t=e.wc?1:0;return t+=e.ab?1:0,0==(t+=e.xc?1:0)?e.contentType==et||"application"==e.contentType:(1!=t&&(e.wc&&(e.ab=null),e.xc=null),!0)}(t.I))return null;var c=t.T.start;t.bandwidth=pi(u,"bandwidth",yi)||0;var p=t.I.contentType,d=p==et||"application"==p;p="image"==p;try{var f=function(t,n,r){return function(e,t,n,r){var i,a,o,s,l;return R((function(u){return 1==u.g?(i=Pr,a=Us(t,n,r,e.g.retryParameters),o=e.h.networkingEngine,s=o.request(i,a),Ar(e.o,s),_(u,s.promise,2)):(l=u.h,u.return(l.data))}))}(e,t,n,r)};if(t.I.wc)var h=Ap(t,f);else if(t.I.ab)h=Pp(t,e.l);else if(t.I.xc)h=Rp(t,f,e.l,!!e.i,e.g.dash.initialSegmentLimit,e.L);else{var g=t.I.wa,y=t.T.duration||0;h={Bb:function(){return Promise.resolve(Ts(c,y,g))}}}}catch(e){if((d||p)&&4002==e.code)return null;throw e}f=function(e,t,n,r){var i=ap(e,n,r);if(t.Fe)e=1==t.drmInfos.length&&!t.drmInfos[0].keySystem,n=0==i.drmInfos.length,(0==t.drmInfos.length||e&&!n)&&(t.drmInfos=i.drmInfos),t.Fe=!1;else if(0<i.drmInfos.length&&(t.drmInfos=t.drmInfos.filter((function(e){return i.drmInfos.some((function(t){return t.keySystem==e.keySystem}))})),0==t.drmInfos.length))throw new De(2,4,4008);return i.Be||t.Be}(f=ai(u,"ContentProtection"),n,e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),f=new Set(f?[f]:[]);var v=!1;ai(u,"SupplementalProperty").some((function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.getAttribute("schemeIdUri")&&"JOC"==e.getAttribute("value")}))&&(v=!0);var m,b,k=!1;if(d&&(k=s.includes("forced_subtitle")||s.includes("forced-subtitle")),p&&((u=ai(u,"EssentialProperty").find((function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.getAttribute("schemeIdUri"))})))&&(m=u.getAttribute("value")),!m))return null;u=t.I.codecs,t.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(u.includes("hvc1.2.4.L153.B0")||u.includes("hev1.2.4.L153.B0"))&&(b="PQ");var T=t.I.id?t.$.id+","+t.I.id:"",A={id:e.G++,originalId:t.I.id,createSegmentIndex:function(){var n,r;return R((function(i){if(1==i.g)return(n=T&&t.Ma&&e.l[T]?e.l[T]:A).segmentIndex?i.A(0):(r=n,_(i,h.Bb(),3));r.segmentIndex=i.h,E(i)}))},closeSegmentIndex:function(){A.segmentIndex&&(A.segmentIndex.release(),A.segmentIndex=null)},segmentIndex:null,mimeType:t.I.mimeType,codecs:t.I.codecs,frameRate:t.I.frameRate,pixelAspectRatio:t.I.pixelAspectRatio,bandwidth:t.bandwidth,width:t.I.width,height:t.I.height,kind:r,encrypted:0<n.drmInfos.length,drmInfos:n.drmInfos,keyIds:f,language:i,label:a,type:t.fa.contentType,primary:o,trickModeVideo:null,emsgSchemeIdUris:t.I.emsgSchemeIdUris,roles:s,forced:k,channelsCount:t.I.ad,audioSamplingRate:t.I.audioSamplingRate,spatialAudio:v,closedCaptions:l,hdr:b,tilesLayout:m,matchedStreams:[]};return T&&t.Ma&&!e.l[T]&&(e.l[T]=A),A}(e,t,T,l,A,w,a,s,y,n))&&(n.hdr=n.hdr||i),n})).filter((function(e){return!!e}))).length){if(o="image"==t.fa.contentType,e.g.dash.ignoreEmptyAdaptationSet||p||o)return null;throw new De(2,4,4003)}if(!t.fa.contentType||"application"==t.fa.contentType)for(t.fa.contentType=gd(n[0].mimeType,n[0].codecs),p=u(n),f=p.next();!f.done;f=p.next())f.value.type=t.fa.contentType;for(p=u(n),f=p.next();!f.done;f=p.next())for(f=f.value,h=u(T.drmInfos),g=h.next();!g.done;g=h.next())(g=g.value).keyIds=g.keyIds&&f.keyIds?new Set([].concat(c(g.keyIds),c(f.keyIds))):g.keyIds||f.keyIds;return p=d.map((function(e){return e.getAttribute("id")})).filter(Xe),{id:t.fa.id||"__fake__"+e.G++,contentType:t.fa.contentType,language:A,th:a,streams:n,drmInfos:T.drmInfos,qe:o,qg:p}}(e,t,n)})).filter(Xe),t.Ma){for(r=[],a=(i=u(n)).next();!a.done;a=i.next())for(var o=(a=u(a.value.qg)).next();!o.done;o=a.next())r.push(o.value);if(r.length!=new Set(r).size)throw new De(2,4,4018)}for(r=n.filter((function(e){return!e.qe})),i=(n=u(n=n.filter((function(e){return e.qe})))).next();!i.done;i=n.next()){a=(i=i.value).qe.split(" ");for(var s=(o=u(r)).next();!s.done;s=o.next()){var l=s.value;if(a.includes(l.id)){s={};for(var p=(l=u(l.streams)).next();!p.done;s={Gc:s.Gc},p=l.next())s.Gc=p.value,s.Gc.trickModeVideo=i.streams.find(function(e){return function(t){return zt(e.Gc.codecs)==zt(t.codecs)}}(s))}}}if(i=e.g.disableAudio?[]:cd(r,"audio"),o=e.g.disableVideo?[]:cd(r,"video"),a=e.g.disableText?[]:cd(r,et),n=e.g.disableThumbnails?[]:cd(r,"image"),!o.length&&!i.length)throw new De(2,4,4004);for(r=[],s=(i=u(i)).next();!s.done;s=i.next())r.push.apply(r,c(s.value.streams));for(i=[],s=(o=u(o)).next();!s.done;s=o.next())i.push.apply(i,c(s.value.streams));for(o=[],s=(a=u(a)).next();!s.done;s=a.next())o.push.apply(o,c(s.value.streams));for(a=[],s=(n=u(n)).next();!s.done;s=n.next())a.push.apply(a,c(s.value.streams));return{id:t.$.id,Kc:r,gd:i,textStreams:o,imageStreams:a}}function cd(e,t){return e.filter((function(e){return e.contentType==t}))}function pd(e,t){0>e.F||e.D.N(Math.max(3,e.F-t,H(e.H)))}function dd(e,t,n){t=t||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ad:null,audioSamplingRate:null,zb:0},n=n||t.wa;for(var r=ai(e,"BaseURL"),i=r.map(ui),a=e.getAttribute("contentType")||t.contentType,o=e.getAttribute("mimeType")||t.mimeType,s=e.getAttribute("codecs")||t.codecs,l=pi(e,"frameRate",bi)||t.frameRate,c=e.getAttribute("sar")||t.pixelAspectRatio,p=ai(e,"InbandEventStream"),d=t.emsgSchemeIdUris.slice(),f=(p=u(p)).next();!f.done;f=p.next())f=f.value.getAttribute("schemeIdUri"),d.includes(f)||d.push(f);p=function(e){for(var t=(e=u(e)).next();!t.done;t=e.next()){var n=t.value;if((t=n.getAttribute("schemeIdUri"))&&(n=n.getAttribute("value")))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(!(t=parseInt(n,16)))continue;for(e=0;t;)1&t&&++e,t>>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0<n&&n<t.length)return t[n]}}return null}(p=ai(e,"AudioChannelConfiguration"))||t.ad,f=pi(e,"audioSamplingRate",vi)||t.audioSamplingRate,a||(a=gd(o,s));var h=ri(e,"SegmentBase"),g=ri(e,"SegmentTemplate"),y=h&&pi(h,"availabilityTimeOffset",mi)||0,v=g&&pi(g,"availabilityTimeOffset",mi)||0;return r=r&&r.length&&pi(r[0],"availabilityTimeOffset",mi)||0,r=t.zb+r+y+v,{wa:$e(n,i),wc:h||t.wc,ab:ri(e,"SegmentList")||t.ab,xc:g||t.xc,width:pi(e,"width",vi)||t.width,height:pi(e,"height",vi)||t.height,contentType:a,mimeType:o,codecs:s,frameRate:l,pixelAspectRatio:c,emsgSchemeIdUris:d,id:e.getAttribute("id"),ad:p,audioSamplingRate:f,zb:r}}function fd(e,t,n,r){var i,a,o,s,l,u;return R((function(c){if(1==c.g)return i=$e(t,[n]),(a=Cr(i,e.g.retryParameters)).method=r,o=e.h.networkingEngine.request(4,a),Ar(e.o,o),_(c,o.promise,2);if(s=c.h,"HEAD"==r){if(!s.headers||!s.headers.date)return c.return(0);l=s.headers.date}else l=Et(s.data);return u=Date.parse(l),isNaN(u)?c.return(0):c.return(u-Date.now())}))}function hd(e,t,n,r,i){for(var a=r.getAttribute("schemeIdUri")||"",o=r.getAttribute("value")||"",s=pi(r,"timescale",vi)||1,l=(r=u(ai(r,"Event"))).next();!l.done;l=r.next()){var c=pi(l=l.value,"presentationTime",vi)||0,p=pi(l,"duration",vi)||0;p=(c=c/s+t)+p/s,null!=n&&(c=Math.min(c,t+n),p=Math.min(p,t+n)),p<i||(l={schemeIdUri:a,value:o,startTime:c,endTime:p,id:l.getAttribute("id")||"",eventElement:l},e.h.onTimelineRegionAdded(l))}}function gd(e,t){return Xt(Kt(e,t))?et:e.split("/")[0]}function yd(e,t,n,r){this.h=e,this.type=t,this.g=n,this.segments=r||null}function vd(e,t,n,r){this.id=e,this.name=t,this.g=n,this.value=void 0===r?null:r}function md(e,t,n){return(e=e.getAttribute(t))?e.value:n||null}function bd(e,t){if(!(e=e.getAttribute(t)))throw new De(2,4,4023,t);return e.value}function _d(e,t,n){n=void 0===n?[]:n,this.g=t,this.i=e,this.h=n}function Ed(e,t){this.name=e,this.value=t}function kd(e,t){return e.filter((function(e){return e.name==t}))}function Td(e,t){return e.filter((function(e){return bd(e,"TYPE")==t}))}function Ad(e,t){return(e=kd(e,t)).length?e[0]:null}function wd(e,t){var n=0;return n=void 0===n?0:n,(e=Ad(e,t))?Number(e.value):n}function Sd(e,t){return $e([e],[t])[0]}function Cd(e){this.h=e,this.g=0}function xd(e){Id(e,/[ \t]+/gm)}function Id(e,t){return t.lastIndex=e.g,t=null==(t=t.exec(e.h))?null:{position:t.index,length:t[0].length,results:t},e.g==e.h.length||null==t||t.position!=e.g?null:(e.g+=t.length,t.results)}function Pd(e){return e.g==e.h.length?null:(e=Id(e,/[^ \t\n]*/gm))?e[0]:null}function Dd(){this.g=0}function Rd(e,t,n){var r=(t=(t=Et(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(r[0]))throw new De(2,4,4015);t=0;for(var i=!0,a=u(r),o=a.next();!o.done;o=a.next())if(o=o.value,/^#(?!EXT)/m.test(o)||i)i=!1;else{if(o=Od(e,o),--e.g,Ld.includes(o.name)){t=1;break}"EXT-X-STREAM-INF"==o.name&&(i=!0)}for(a=[],i=!0,o=0;o<r.length;o++){var s=r[o],l=r[o+1];if(/^#(?!EXT)/m.test(s)||i)i=!1;else{if(s=Od(e,s),Md.includes(s.name)){if(1!=t)throw new De(2,4,4017);var c=r.splice(o,r.length-o);r=n,i=[],o=[],l=[],s=null;for(var p=(c=u(c)).next();!p.done;p=c.next())p=p.value,/^(#EXT)/.test(p)?(p=Od(e,p),Ld.includes(p.name)?a.push(p):"EXT-X-MAP"==p.name?s=p:"EXT-X-PART"==p.name?l.push(p):"EXT-X-PRELOAD-HINT"==p.name?"PART"==md(p,"TYPE")?l.push(p):"MAP"==md(p,"TYPE")&&(p.name="EXT-X-MAP",s=p):o.push(p)):/^#(?!EXT)/m.test(p)||(p=Sd(r,p.trim()),s&&o.push(s),i.push(new _d(p,o,l)),o=[],l=[]);return l.length&&(s&&o.push(s),i.push(new _d("",o,l))),new yd(n,t,a,i)}a.push(s),"EXT-X-STREAM-INF"==s.name&&(s.g.push(new Ed("URI",l)),i=!0)}}return new yd(n,t,a)}function Od(e,t){e=e.g++;var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new De(2,4,4016,t);t=n[1];var r,i=n[2];if(n=[],i){var a;(a=Id(i=new Cd(i),/^([^,=]+)(?:,|$)/g))&&(r=a[1]);for(var o=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;a=Id(i,o);)n.push(new Ed(a[1],a[2]||a[3])),xd(i)}return new vd(e,t,n,r)}(r=od.prototype).configure=function(e){this.g=e},r.start=function(e,t){var n,r=this;return R((function(i){if(1==i.g)return r.B=t.isLowLatencyMode(),r.m=[e],r.h=t,_(i,sd(r),2);if(n=i.h,r.h&&pd(r,n),!r.h)throw new De(2,7,7001);return i.return(r.i)}))},r.stop=function(){for(var e=u(Object.values(this.l)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();return this.j&&this.j.release(),this.g=this.h=null,this.m=[],this.i=null,this.l={},this.j=null,null!=this.D&&(this.D.stop(),this.D=null),this.o.destroy()},r.update=function(){var e,t=this;return R((function(n){return 1==n.g?(k(n,2),_(n,sd(t),4)):2!=n.g?A(n,0):(e=w(n),t.h&&e?(t.h.onError(e),void E(n)):n.return())}))},r.onExpirationUpdated=function(){},B("shaka.dash.DashParser",od),Qi.mpd=function(){return new od},$i["application/dash+xml"]=function(){return new od},$i["video/vnd.mpeg.dash.mpd"]=function(){return new od},vd.prototype.toString=function(){var e="#"+this.name,t=this.g?this.g.map((function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)})):[];return this.value&&t.unshift(this.value),0<t.length&&(e+=":"+t.join(",")),e},vd.prototype.getAttribute=function(e){var t=this.g.filter((function(t){return t.name==e}));return t.length?t[0]:null};var Ld="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP".split(" "),Md="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Nd(){}function Ud(e){try{var t=Fd(e);return hr({uri:e,Oe:e,data:t.data,headers:{"content-type":t.contentType}})}catch(e){return dr(e)}}function Fd(t){var n=t.split(":");if(2>n.length||"data"!=n[0])throw new De(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new De(2,1,1004,t);var r=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=r.split(";"),r=n[0];var i=!1;return 1<n.length&&"base64"==n[n.length-1]&&(i=!0,n.pop()),{data:i?Pt(t):At(t),contentType:r}}function jd(){var e=this;this.g=this.i=null,this.Fa=1,this.o=new Map,this.u=new Map,this.F=new Map,this.F.set("video",new Map),this.F.set("audio",new Map),this.F.set(et,new Map),this.F.set("image",new Map),this.ua=new Set,this.h=new Map,this.j=null,this.M="",this.W=new Dd,this.O=0,this.B=-1,this.H=1/0,this.Ga=!1,this.m=new ot((function(){!function(e){var t,n;R((function(r){return 1==r.g?e.i?(k(r,2),_(r,e.update(),4)):r.return():2!=r.g?(ff(e)&&(t=e.O,e.m.N(t)),A(r,0)):(n=w(r),e.i?(n.severity=1,e.i.onError(n),e.m.N(.1),void E(r)):r.return())}))}(e)})),this.ea=Ef,this.D=null,this.ca=0,this.J=1/0,this.V=this.da=0,this.G=new Tr,this.L=new Map,this.s=new Map,this.ba=new Map,this.l=!1}function Bd(e,t){return ff(e)?e.F.get(t.type):t.$c}function Vd(e,t){var n,r,i,a,o,s,l,u,p,d,f,h,g,y,v;return R((function(m){if(1==m.g)return n=t.Jc,r=new Oe(n),e.l&&t.Mc&&Ne(r,new ze("_HLS_skip=YES")),_(m,df(e,r.toString()),2);if(i=m.h,!t.stream.segmentIndex)return m.return();if(1!=(a=Rd(e.W,i.data,i.uri)).type)throw new De(2,4,4017);o=kd(a.g,"EXT-X-DEFINE"),s=Gd(e,o),l=t.stream,u=Bd(e,t),p=ef(a,l.mimeType),d=p.keyIds,f=p.drmInfos,function(e,t){return e.size===t.size&&[].concat(c(e)).every((function(e){return t.has(e)}))}(l.keyIds,d)||(l.keyIds=d,l.drmInfos=f,e.i.newDrmInfo(l)),h=lf(e,a,l.type,u,s),l.segmentIndex.Hb(h,e.j.Pa()),h.length&&(g=wd(a.g,"EXT-X-MEDIA-SEQUENCE"),y=u.get(g),l.segmentIndex.eb(y)),v=h[h.length-1],Ad(a.g,"EXT-X-ENDLIST")&&(t.mc=!0,t.Ya=v.endTime),E(m)}))}function Hd(e,t,n){t.Ya+=n;for(var r=(t=u(e=Bd(e,t))).next();!r.done;r=t.next()){var i=u(r.value);r=i.next().value,i=i.next().value,e.set(r,i+n)}}function Kd(e){if(ff(e)){if(e.O=e.J,e.ea==Tf){var t=Xd(e);e.g.hls.useSafariBehaviorForLive&&(t=e.j.m),isNaN(e.g.availabilityWindowOverride)||(t=e.g.availabilityWindowOverride),e.j.me(t)}}else e.j.Aa(Xd(e));e.j.Md()}function Gd(e,t){for(var n=new Map,r=(t=u(t)).next();!r.done;r=t.next()){var i=r.value;r=md(i,"NAME");var a=md(i,"VALUE");i=md(i,"IMPORT"),r&&a&&n.set(r,a),i&&(r=e.o.get(i))&&n.set(i,r)}return n}function zd(e,t){var n=[];e.g.disableVideo||n.push(e.g.hls.defaultVideoCodec),e.g.disableAudio||n.push(e.g.hls.defaultAudioCodec),n=md(t,"CODECS",n.join(",")).split(/\s*,\s*/),e=new Set,t=[];for(var r=(n=u(n)).next();!r.done;r=n.next()){var i=Yt(r=r.value)[0];e.has(i)||(t.push(r),e.add(i))}return t}function Wd(e){return an(e=md(e,"LANGUAGE")||"und")}function Yd(e,t){var n=bd(t,"GROUP-ID"),r="",i=bd(t,"TYPE").toLowerCase();"subtitles"==i&&(i=et);var a=i;if(a!=et&&n&&e.s.has(n)&&(r=e.s.get(n)),i=uf(bd(t,"URI"),e.o),e.h.has(i))return e.h.get(i);var o=Wd(t),s=md(t,"NAME"),l="YES"==md(t,"DEFAULT"),u="audio"==a&&(u=md(t,"CHANNELS"))?parseInt(u.split("/")[0],10):null,c="audio"==a&&(!!(c=md(t,"CHANNELS"))&&c.includes("/JOC"));return r=qd(e,i,r,a,o,l,s,u,null,md(t,"CHARACTERISTICS"),t="YES"==md(t,"FORCED"),c),e.u.has(n)?e.u.get(n).push(r):e.u.set(n,[r]),e.h.has(i)?e.h.get(i):(e.h.set(i,r),r)}function qd(e,t,n,r,i,a,o,s,l,c,p,d){function f(f){var h,v,m,b,k,T,A,w,S,C,x,I,P;return R((function(D){if(1==D.g)return _(D,df(e,y.Jc),2);if(3!=D.g)return h=D.h,f.aborted?D.return():(v=h.uri,m=Rd(e.W,h.data,v),b=ff(e),_(D,Zd(e,m,t,v,n,r,i,a,o,s,l,c,p,d),3));if(k=D.h,f.aborted)return D.return();if(T=k.stream,ff(e)&&!b&&rf(e),y.Jc=v,y.Ya=k.Ya,y.Mc=k.Mc,y.mc=k.mc,y.$c=k.$c,y.Ld=!0,g.segmentIndex=T.segmentIndex,g.encrypted=T.encrypted,g.drmInfos=T.drmInfos,g.keyIds=T.keyIds,g.mimeType=T.mimeType,es.includes(g.mimeType)&&(g.codecs=""),g.drmInfos.length&&e.i.newDrmInfo(g),r==(A=tt).va||r==A.Hc)for(w=u(e.h.values()),S=w.next();!S.done;S=w.next())(C=S.value).Ld||C.type!=r||(C.stream.mimeType=T.mimeType,es.includes(C.stream.mimeType)&&(C.stream.codecs=""));(function(e){if(!e.D)return!1;for(var t=[],n=[],r=(e=u(e.D.variants)).next();!r.done;r=e.next())(r=r.value).video&&t.push(r.video),r.audio&&n.push(r.audio);return!(0<t.length&&!t.some((function(e){return e.segmentIndex}))||0<n.length&&!n.some((function(e){return e.segmentIndex})))})(e)&&(e.Ga?Qd(e,[y]):(e.Ga=!0,x=Array.from(e.h.values()),I=x.filter((function(e){return e.stream.segmentIndex})),Qd(e,I),Kd(e),0<(P=e.O)&&e.m.N(P))),E(D)}))}var h=Sd(e.M,t),g=Jd(e,n,r,i,a,o,s,l,c,p,d);es.includes(g.mimeType)&&(g.codecs="");var y={stream:g,type:r,Ac:t,Jc:h,Ya:0,$c:new Map,Mc:!1,mc:!1,Cd:-1,Ld:!1},v=null,m=new AbortController;return g.createSegmentIndex=function(){return v||(m=new AbortController,v=new Promise((function(e){e(f(m.signal))})))},g.closeSegmentIndex=function(){v&&!g.segmentIndex&&m.abort(),g.segmentIndex&&(g.segmentIndex.release(),g.segmentIndex=null),v=null},y}function Xd(e){for(var t=1/0,n=(e=u(e.h.values())).next();!n.done;n=e.next())(n=n.value).stream.segmentIndex&&"text"!=n.stream.type&&(t=Math.min(t,n.Ya));return t}function $d(e,t){for(var n=[],r=(t=u(t)).next();!r.done;r=t.next())(r=r.value).segmentIndex&&ks(r.segmentIndex,(function(e){n.push(e)}));e.j.Ib(n)}function Qd(e,t){if(!ff(e))for(var n=Xd(e),r=u(t),i=r.next();!i.done;i=r.next())i.value.stream.segmentIndex.Wa(0,n);for(i=(n=u(t)).next();!i.done;i=n.next())i=i.value.stream,es.includes(i.mimeType)&&(i.codecs="");$d(e,t.map((function(e){return e.stream}))),e.g.hls.ignoreManifestProgramDateTime?function(e,t){for(var n=-1==e.B,r=u(t),i=r.next();!i.done;i=r.next()){var a=(i=i.value).stream.segmentIndex,o=Bd(e,i);if(a=a.g[0]||null)for(var s=(o=u(o)).next();!s.done;s=o.next()){var l=(s=u(s.value)).next().value;if(s.next().value==a.startTime){n&&(e.B=Math.max(e.B,l)),i.Cd=l;break}}}if(!(0>e.B))for(i=(t=u(t)).next();!i.done;i=t.next())(r=(n=i.value).stream.segmentIndex)&&(r.g.splice(0,e.B-n.Cd),(r=r.g[0]||null)&&(r=-r.startTime,n.stream.segmentIndex.offset(r),Hd(e,n,r)))}(e,t):function(e,t){if(1/0==e.H)for(var n=(t=u(t)).next();!n.done;n=t.next()){var r=n.value.stream.segmentIndex.g[0]||null;null!=r&&null!=r.g&&(e.H=Math.min(e.H,r.g))}if(1/0!=(t=e.H))for(n=(r=u(e.h.values())).next();!n.done;n=r.next()){var i=(n=n.value).stream.segmentIndex;if(null!=i){var a=i.g[0]||null;if(null==a.g)z("Missing EXT-X-PROGRAM-DATE-TIME for stream",n.Ac,"Expect AV sync issues!");else for(Hd(e,n,a.g-t-a.startTime),i=(n=u(i)).next();!i.done;i=n.next())i.value.oe(t)}}}(e,t)}function Zd(e,t,n,r,i,a,o,s,l,u,c,p,d,f,h){var g,y,v,m,b,E,k,T,A,w,S,C,x,I,P;return R((function(D){if(1==D.g){if(1!=t.type)throw new De(2,4,4017);return g=kd(t.g,"EXT-X-DEFINE"),y=Gd(e,g),nf(e,t),h?D.A(2):_(D,function(e,t,n,r,i){var a,o,s,l,u,c,p,d,f,h;return R((function(g){return 1==g.g?(a=Pr,o=Math.trunc((r.segments.length-1)/2),s=uf(r.segments[o].i,i),l=new Oe(s),u=l.qa.split(".").pop(),c=bf[t],(p=c[u])||(p=yf[u])||(p=cf(t,n))?g.return(p):((d=Cr([s],e.g.retryParameters)).method="HEAD",_(g,gf(e,d,a),2))):(f=g.h,(h=f.headers["content-type"])?g.return(h.split(";")[0]):g.return(pf(t)))}))}(e,a,i,t,y),3)}if(2!=D.g&&(h=D.h),v=ef(t,h),m=v.drmInfos,b=v.keyIds,E=v.encrypted,k=v.kf,E&&!m.length&&!k)throw new De(2,4,4026);return T=ff(e)?e.F.get(a):new Map,A=e.l,w=lf(e,t,a,T,y),A!=e.l&&nf(e,t),S=w[w.length-1].endTime,C=new Es(w),I=!!(x=Ad(t.g,"EXT-X-SERVER-CONTROL"))&&null!=x.getAttribute("CAN-SKIP-UNTIL"),(P=Jd(e,i,a,o,s,l,u,c,p,d,f)).segmentIndex=C,P.encrypted=E,P.drmInfos=m,P.keyIds=b,P.mimeType=h,D.return({stream:P,type:a,Ac:n,Jc:r,Ya:S,Mc:I,mc:!1,Cd:-1,$c:T,Ld:!1})}))}function Jd(e,t,n,r,i,a,o,s,l,u,c){var p=cf(n,t)||pf(n);return{id:e.Fa++,originalId:a,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:p,codecs:t,kind:n==et?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:r,label:a,type:n,primary:i,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:l?l.split(","):[],forced:u,channelsCount:o,audioSamplingRate:null,spatialAudio:c,closedCaptions:s,hdr:void 0,tilesLayout:void 0}}function ef(e,t){var n=[];if(e.segments)for(var r=(e=u(e.segments)).next();!r.done;r=e.next())r=kd(r.value.g,"EXT-X-KEY"),n.push.apply(n,c(r));r=e=!1;for(var i=[],a=new Set,o=(n=u(n)).next();!o.done;o=n.next()){var s=bd(o=o.value,"METHOD");if("NONE"!=s)if(e=!0,"AES-128"==s)r=!0;else if(s=md(o,"KEYFORMAT")||"identity",o=(s=_f[s])?s(o,t):null){if(o.keyIds)for(var l=(s=u(o.keyIds)).next();!l.done;l=s.next())a.add(l.value);i.push(o)}}return{drmInfos:i,keyIds:a,encrypted:e,kf:r}}function tf(t,n,r){if(!e.crypto||!e.crypto.subtle)throw W("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new De(2,4,4042);var i=0,a=md(n,"IV","");if(a){var o=Dt(a.substr(2));if(16!=o.byteLength)throw new De(2,4,4043)}else i=wd(r.g,"EXT-X-MEDIA-SEQUENCE");var s=Cr([n=Sd(r.h,bd(n,"URI"))],t.g.retryParameters),l={method:"AES-128",iv:o,firstMediaSequenceNumber:i,fetchKey:function(){var n,r,i;return R((function(a){if(1==a.g)return _(a,gf(t,s,6),2);if(3!=a.g){if(!(n=a.h).data||16!=n.data.byteLength)throw new De(2,4,4044);return r={name:"AES-CBC"},i=l,_(a,e.crypto.subtle.importKey("raw",n.data,r,!0,["decrypt"]),3)}i.cryptoKey=a.h,l.fetchKey=void 0,E(a)}))}};return l}function nf(e,t){var n=Ad(t.g,"EXT-X-PLAYLIST-TYPE"),r=Ad(t.g,"EXT-X-ENDLIST");if(r=n&&"VOD"==n.value||r,n=n&&"EVENT"==n.value&&!r,n=!r&&!n,r)hf(e,Ef);else{if(hf(e,n?Tf:kf),!(r=Ad(t.g,"EXT-X-TARGETDURATION")))throw new De(2,4,4024,"EXT-X-TARGETDURATION");r=Number(r.value),n=Ad(t.g,"EXT-X-PART-INF"),e.l&&n?(e.da=Number(bd(n,"PART-TARGET")),e.J=Math.min(e.da,e.J),t=Ad(t.g,"EXT-X-SERVER-CONTROL"),e.V=t?Number(bd(t,"PART-HOLD-BACK")):0):e.J=Math.min(r,e.J),e.ca=Math.max(r,e.ca)}}function rf(e){var t=e.g.defaultPresentationDelay?e.g.defaultPresentationDelay:e.V?e.V:e.ca*e.g.hls.liveSegmentsDelay;e.j.Xe(0),e.j.We(t),e.j.yc(!1)}function af(e,t,n,r){return(n=Ad(n,"EXT-X-MAP"))?(t=[r=uf(Sd(t,bd(n,"URI")),r),md(n,"BYTERANGE","")].join("-"),e.ba.has(t)||(n=function(e,t){var n=0,r=null;(t=md(t,"BYTERANGE"))&&(n=t.split("@"),r=Number(n[0]),n=Number(n[1]),r=n+r-1);return new ho((function(){return[e]}),n,r)}(r,n),e.ba.set(t,n)),e.ba.get(t)):null}function of(e,t,n,r,i,a,o,s,l){var c=r.g,p=uf(r.i,a),d=Ad(c,"EXTINF"),f=a=0,h=null;r.h.length&&!e.l&&W("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var g=null;if(!e.g.hls.ignoreManifestProgramDateTime){var y=Ad(c,"EXT-X-PROGRAM-DATE-TIME");y&&y.value&&(g=di(y.value))}if(y=yo,Ad(c,"EXT-X-GAP")&&(y=2),!d){if(0==r.h.length)throw new De(2,4,4024,"EXTINF");if(!e.l)return null}var v=[];if(e.l)for(var m={},b=0;b<r.h.length;m={pd:m.pd},b++){var _=r.h[b],E=0==b?n:v[v.length-1],k=0==b?i:E.endTime,T=Number(md(_,"DURATION"))||e.da;if(T){T=k+T;var A=0,w=null;"EXT-X-PRELOAD-HINT"==_.name?A=(A=md(_,"BYTERANGE-START"))?Number(A):0:(A=(w=u(sf(E,A=md(_,"BYTERANGE")))).next().value,w=w.next().value),(E=md(_,"URI"))&&(m.pd=Sd(o,E),E=yo,"YES"==md(_,"GAP")&&(E=2),v.push(new go(k,T,function(e){return function(){return[e.pd]}}(m),A,w,t,0,0,1/0,[],"",null,null,E)))}}return a=d?i+Number(d.value.split(",")[0]):v[v.length-1].endTime,(e=Ad(c,"EXT-X-BYTERANGE"))?(f=(h=u(sf(n,e.value))).next().value,h=h.next().value):v.length&&(f=v[0].Ba,h=v[v.length-1].ka),n="",e=null,"image"==s&&(n="1x1",s=Ad(c,"EXT-X-TILES"))&&(n=bd(s,"LAYOUT"),(s=md(s,"DURATION"))&&(e=Number(s))),new go(i,a,(function(){return p.length?[p]:[]}),f,h,t,0,0,1/0,v,n,e,g,y,l)}function sf(e,t){var n=0,r=null;return t&&(n=t.split("@"),t=Number(n[0]),r=(n=n[1]?Number(n[1]):e.ka+1)+t-1),[n,r]}function lf(e,t,n,r,i){var a=t.segments,o=void 0,s=wd(t.g,"EXT-X-DISCONTINUITY-SEQUENCE"),l=wd(t.g,"EXT-X-MEDIA-SEQUENCE"),c=Ad(t.g,"EXT-X-SKIP"),p=l+(c=c?Number(md(c,"SKIPPED-SEGMENTS")):0),d=0;ff(e)&&r.has(p)&&(d=r.get(p));for(var f=[],h=null,g=0;g<a.length;g++){var y=a[g],v=0==g?d:h.endTime;p=l+c+g,Ad(y.g,"EXT-X-DISCONTINUITY")&&s++;for(var m=u(y.g),b=m.next();!b.done;b=m.next())"EXT-X-KEY"==(b=b.value).name&&(o="AES-128"==bd(b,"METHOD")?tf(e,b,t):void 0);r.set(p,v),m=af(e,t.h,y.g,i),!e.l&&e.i.isAutoLowLatencyMode()&&(e.i.enableLowLatencyMode(),e.l=e.i.isLowLatencyMode()),(h=y=of(e,m,h,y,v,i,t.h,n,o))&&(y.m=s,e.g.hls.ignoreManifestProgramDateTime&&null!=e.B&&p<e.B||f.push(y))}if(t=f.some((function(e){return null!=e.g})))for(n={},r=0;r<f.length;n={Qb:n.Qb,Pb:n.Pb,Bc:n.Bc,Ta:n.Ta,Ob:n.Ob},r++)if(n.Ta=f[r],null==n.Ta.g)for(n.Pb=0,n.Qb=r,i=function(e){return function(){var t=f[e.Qb];if(t){if(null!=t.g)return t.g+e.Pb;e.Pb-=t.endTime-t.startTime,e.Qb+=1}return null}}(n),n.Ob=0,n.Bc=r,a=function(e){return function(){var t=f[e.Bc];if(t){if(t!=e.Ta&&(e.Ob+=t.endTime-t.startTime),null!=t.g)return t.g+e.Ob;--e.Bc}return null}}(n);null==n.Ta.g;)n.Ta.g=a(),null==n.Ta.g&&(n.Ta.g=i());if(t)for(r=(n=u(f)).next();!r.done;r=n.next())for(r=(i=r.value).g,a=(i=u(i.i)).next();!a.done;a=i.next())(a=a.value).g=r,r+=a.endTime-a.startTime;if(e=e.H,t&&1/0!=e)for(r=(t=u(f)).next();!r.done;r=t.next())r.value.oe(e);return f}function uf(e,t){var n=(e=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}")).match(/{\$\w*}/g);if(n)for(var r=(n=u(n)).next();!r.done;r=n.next()){var i=(r=r.value).slice(2,r.length-1),a=t.get(i);if(!a)throw new De(2,4,4039,i);e=e.replace(r,a)}return e}function cf(e,t){if(e==et){if("vtt"==t||"wvtt"==t)return"text/vtt";if(t&&""!==t)return"application/mp4"}return"image"!=e||t&&"jpeg"!=t?"audio"==e&&"mp4a.40.34"==t?"audio/mpeg":null:"image/jpeg"}function pf(e){return e==et?"text/vtt":bf[e].mp4}function df(e,t){return t=Cr([t],e.g.retryParameters),e.i.modifyManifestRequest(t,{format:"h"}),gf(e,t,0)}function ff(e){return e.ea!=Ef}function hf(e,t){e.ea=t,e.j&&e.j.yc(!ff(e)),ff(e)||e.m.stop()}function gf(e,t,n){if(!e.G)throw new De(2,7,7001);return t=e.i.networkingEngine.request(n,t),Ar(e.G,t),t.promise}B("shaka.net.DataUriPlugin",Nd),Nd.parse=Ud,Sr("data",Ud),(r=jd.prototype).configure=function(e){this.g=e},r.start=function(e,t){var n,r=this;return R((function(i){return 1==i.g?(r.i=t,r.l=t.isLowLatencyMode(),_(i,df(r,e),2)):3!=i.g?(n=i.h,r.M=n.uri,_(i,function(e,t,n){var r,i,a,o,s,l,c,p,d,f,h,g,y,v,m,b,T,A,S,C,x,I,P,D,O,L,M,N,U,F,j;return R((function(B){switch(B.g){case 1:r=Rd(e.W,t,e.M);for(var V=u(kd(r.g,"EXT-X-DEFINE")),H=V.next();!H.done;H=V.next()){var K=H.value;H=md(K,"NAME"),K=md(K,"VALUE"),H&&K&&(e.o.has(H)||e.o.set(H,K))}if(i=[],a=[],o=[],1==r.type)return S=e.g.hls.mediaPlaylistFullMimeType,r.segments.length&&(C=new Oe(r.segments[0].i),x=C.qa.split(".").pop(),(I=yf[x])?S=I:"ts"!==x&&"mp4"!==x&&(vf[x]?(I=vf[x],P=e.g.hls.defaultAudioCodec,S=I+'; codecs="'+P+'"'):mf[x]&&(I=mf[x],D=e.g.hls.defaultVideoCodec,S=I+'; codecs="'+D+'"'))),O=S.split(";")[0],L=O.split("/")[0],M=Wt(S),N=new Map,_(B,Zd(e,r,n,n,M,L,"",!0,"Media Playlist",null,N,null,!1,!1,O),5);for(s=kd(r.g,"EXT-X-MEDIA"),l=kd(r.g,"EXT-X-STREAM-INF"),c=kd(r.g,"EXT-X-IMAGE-STREAM-INF"),p=kd(r.g,"EXT-X-SESSION-KEY"),H=(V=u(l)).next();!H.done;H=V.next()){var G=H.value;K=md(G,"AUDIO"),H=md(G,"VIDEO");var z=md(G,"SUBTITLES");if(G=zd(e,G),z){var W=Je(et,G);e.s.set(z,W),te(G,W)}K&&((z=Je("audio",G))||(z=e.g.hls.defaultAudioCodec),e.s.set(K,z)),H&&((K=Je("video",G))||(K=e.g.hls.defaultVideoCodec),e.s.set(H,K))}for(d=kd(r.g,"EXT-X-SESSION-DATA"),f=u(d),h=f.next();!h.done;h=f.next())g=h.value,y=md(g,"DATA-ID"),v=md(g,"URI"),m=md(g,"LANGUAGE"),b=md(g,"VALUE"),T=(new Map).set("id",y),v&&T.set("uri",Sd(e.M,v)),m&&T.set("language",m),b&&T.set("value",b),A=new vr("sessiondata",T),e.i&&e.i.onEvent(A);for(function(e,t){for(var n=(t=u(t=t.filter((function(e){var t=md(e,"URI")||"";return"SUBTITLES"!=md(e,"TYPE")&&""!=t})))).next();!n.done;n=t.next())Yd(e,n.value)}(e,s),H=(V=u(V=Td(s,"CLOSED-CAPTIONS"))).next();!H.done;H=V.next())H=Wd(z=H.value),K=bd(z,"GROUP-ID"),z=bd(z,"INSTREAM-ID"),e.L.get(K)||e.L.set(K,new Map),e.L.get(K).set(z,H);return i=function(e,t,n){var r=[],i=new Set;if(0<n.length)for(var a=(n=u(n)).next();!a.done;a=n.next()){var o=bd(a=a.value,"METHOD");if("NONE"!=o&&"AES-128"!=o&&(o=md(a,"KEYFORMAT")||"identity",a=(o=_f[o])?o(a,""):null)){if(a.keyIds)for(var s=(o=u(a.keyIds)).next();!s.done;s=o.next())i.add(s.value);r.push(a)}}return t=(t=t.map((function(t){var n=md(t,"FRAME-RATE"),a=Number(md(t,"AVERAGE-BANDWIDTH"))||Number(bd(t,"BANDWIDTH")),o=md(t,"RESOLUTION"),s=(o=u(o?o.split("x"):[null,null])).next().value,l=o.next().value,c=md(t,"VIDEO-RANGE");o=(t=function(e,t){var n=zd(e,t),r=md(t,"AUDIO"),i=md(t,"VIDEO"),a=r||i;a=a&&e.u.has(a)?e.u.get(a):[],r={audio:r?a:[],video:i?a:[]},i=!1;var o=bd(t,"URI"),s=r.audio.find((function(e){return e&&e.Ac==o})),l=Je("video",n),u=Je("audio",n);return u&&!l?a="audio":!a.length&&u&&l?(a="video",n=[[l,u].join()]):r.audio.length&&s?(a="audio",i=!0):a=r.video.length&&!r.audio.length?"audio":"video",i||(e=function(e,t,n,r){var i=uf(bd(t,"URI"),e.o);return e.h.has(i)?e.h.get(i):(t=md(t,"CLOSED-CAPTIONS"),t="video"==r&&t&&"NONE"!=t?e.L.get(t):null,n=Ze(r,n),r=qd(e,i,n,r,"und",!1,null,null,t,null,!1,!1),e.h.has(i)?e.h.get(i):(e.h.set(i,r),r))}(e,t,n,a),r[e.stream.type]=[e]),r}(e,t)).audio;for(var p=u(t=t.video),d=p.next();!d.done;d=p.next())(d=d.value.stream)&&(d.width=Number(s)||void 0,d.height=Number(l)||void 0,d.frameRate=Number(n)||void 0,d.hdr=c||void 0);for(n=e.g.disableAudio,o.length&&!n||(o=[null]),n=e.g.disableVideo,t.length&&!n||(t=[null]),n=[],s=(o=u(o)).next();!s.done;s=o.next())for(s=s.value,c=(l=u(t)).next();!c.done;c=l.next()){var f=c.value;(c=s?s.stream:null)&&(c.drmInfos=r,c.keyIds=i),(p=f?f.stream:null)&&(p.drmInfos=r,p.keyIds=i),d=s?s.stream.drmInfos:null;var h=f?f.stream.drmInfos:null;f=(f?f.Ac:"")+" - "+(s?s.Ac:""),c&&p&&d.length&&h.length&&!(0<Ui(d,h).length)||e.ua.has(f)||(c={id:e.Fa++,language:c?c.language:"und",primary:!!c&&c.primary||!!p&&p.primary,audio:c,video:p,bandwidth:a,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},n.push(c),e.ua.add(f))}return n})).reduce(Ye,[])).filter((function(e){return null!=e}))}(e,l,p),a=function(e,t){var n=Td(t,"SUBTITLES");t=n.map((function(t){if(e.g.disableText)return null;try{return Yd(e,t).stream}catch(t){if(e.g.hls.ignoreTextStreamFailures)return null;throw t}}));for(var r=(n=u(n)).next();!r.done;r=n.next()){var i=bd(r.value,"GROUP-ID");if((r=e.s.get(i))&&(i=e.u.get(i)))for(var a=(i=u(i)).next();!a.done;a=i.next())(a=a.value).stream.codecs=r,a.stream.mimeType=cf(et,r)||pf(et)}return t.filter((function(e){return e}))}(e,s),_(B,function(e,t){var n,r;return R((function(i){return 1==i.g?(n=t.map((function(t){var n,r;return R((function(i){if(1==i.g)return e.g.disableThumbnails?i.return(null):(k(i,2),_(i,function(e,t){var n,r,i,a,o,s,l,u,c,p;return R((function(d){return 1==d.g?(n=uf(bd(t,"URI"),e.o),r=md(t,"CODECS","jpeg")||"",e.h.has(n)?d.return(e.h.get(n)):(i=Wd(t),a=md(t,"NAME"),o=md(t,"CHARACTERISTICS"),s=qd(e,n,r,"image",i,!1,a,null,null,o,!1,!1),e.h.has(n)?d.return(e.h.get(n)):(l=md(t,"RESOLUTION"))?_(d,s.stream.createSegmentIndex(),3):d.A(2))):(2!=d.g&&(u=s.stream.segmentIndex.get(0),c=u.tilesLayout)&&(s.stream.width=Number(l.split("x")[0])*Number(c.split("x")[0]),s.stream.height=Number(l.split("x")[1])*Number(c.split("x")[1])),(p=md(t,"BANDWIDTH"))&&(s.stream.bandwidth=Number(p)),e.h.set(n,s),d.return(s))}))}(e,t),4));if(2!=i.g)return n=i.h,i.return(n.stream);if(r=w(i),e.g.hls.ignoreImageStreamFailures)return i.return(null);throw r}))})),_(i,Promise.all(n),2)):(r=i.h,i.return(r.filter((function(e){return e}))))}))}(e,c),4);case 4:o=B.h,B.A(3);break;case 5:U=B.h,e.h.set(n,U),i.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==L?U.stream:null,video:"video"==L?U.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!e.i)throw new De(2,7,7001);e.j=new ts(null,0),e.j.yc(!0),1==r.type&&(ff(e)&&(rf(e),F=e.O,e.m.N(F)),j=Array.from(e.h.values()),Qd(e,j),Kd(e)),e.D={presentationTimeline:e.j,variants:i,textStreams:a,imageStreams:o,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0},e.i.makeTextStreamsForClosedCaptions(e.D),E(B)}}))}(r,n.data,e),3)):i.return(r.D)}))},r.stop=function(){this.m&&(this.m.stop(),this.m=null);var e=[];return this.G&&(e.push(this.G.destroy()),this.G=null),this.g=this.i=null,this.ua.clear(),this.D=null,this.h.clear(),this.u.clear(),this.s.clear(),this.o.clear(),Promise.all(e)},r.update=function(){var e,t,n,r,i,a,o,s,l=this;return R((function(p){if(1==p.g){if(!ff(l))return p.return();for(e=[],t=Array.from(l.h.values()),n=t.filter((function(e){return e.stream.segmentIndex})),r=u(n),i=r.next();!i.done;i=r.next())a=i.value,e.push(Vd(l,a));return _(p,Promise.all(e),2)}$d(l,n.map((function(e){return e.stream}))),o=n.some((function(e){return 0==e.mc})),n.length&&!o&&(hf(l,Af.ff),s=n.map((function(e){return e.Ya})),l.j.Aa(Math.min.apply(Math,c(s))),l.i.updateDuration()),E(p)}))},r.onExpirationUpdated=function(){},B("shaka.hls.HlsParser",jd);var yf={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},vf={mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},mf={mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},bf={audio:vf,video:mf,text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},_f={"com.apple.streamingkeydelivery":function(t,n){if("video/mp2t"==n)throw new De(2,4,4040);if(e.shakaMediaKeysPolyfill)throw new De(2,4,4041);return Qe("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(e){var t=bd(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?(t=Qe("com.widevine.alpha",[{initDataType:"cenc",initData:t=xe((t=Fd(t=bd(e,"URI"))).data)}]),(e=md(e,"KEYID"))&&(t.keyIds=new Set([e.toLowerCase().substr(2)])),t):null},"com.microsoft.playready":function(e){var t=bd(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?Qe("com.microsoft.playready",[{initDataType:"cenc",initData:e=ni(e=xe((e=Fd(e=bd(e,"URI"))).data),t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),new Set,0)}]):null},identity:function(e){return e=bd(e,"METHOD"),["SAMPLE-AES","SAMPLE-AES-CTR"].includes(e)?Qe("org.w3.clearkey",null):null}},Ef="VOD",kf="EVENT",Tf="LIVE",Af={ff:Ef,Og:kf,Sg:Tf};function wf(e,t,n,r,i,a){if(200<=n&&299>=n&&202!=n)return{uri:i||r,Oe:r,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};i=null;try{i=Tt(t)}catch(e){}throw new De(401==n||403==n?2:1,1,1001,r,n,i,e,a)}function Sf(){}function Cf(e,t,n,r,i){var a=new Of;jr(t.headers).forEach((function(e,t){a.append(t,e)}));var o=new Df,s={ye:!1,bf:!1};if(e=new pr(e=function(e,t,n,r,i,a,o){var s,l,u,c,p,d,f,h,g,y,v,m;return R((function(b){switch(b.g){case 1:return s=Pf,l=Rf,d=p=0,f=Date.now(),k(b,2),_(b,s(e,n),4);case 4:return u=b.h,a(xf(u.headers)),h=u.clone().body.getReader(),y=(g=u.headers.get("Content-Length"))?parseInt(g,10):0,new l({start:function(e){!function t(){var n,r;return R((function(a){switch(a.g){case 1:return k(a,2),_(a,h.read(),4);case 4:n=a.h,A(a,3);break;case 2:return w(a),a.return();case 3:if(n.done){a.A(5);break}if(p+=n.value.byteLength,!o){a.A(5);break}return _(a,o(n.value),5);case 5:(100<(r=Date.now())-f||n.done)&&(i(r-f,p-d,y-p),d=p,f=r),n.done?e.close():(e.enqueue(n.value),t()),E(a)}}))}()}}),_(b,u.arrayBuffer(),5);case 5:c=b.h,A(b,3);break;case 2:if(v=w(b),r.ye)throw new De(1,1,7001,e,t);if(r.bf)throw new De(1,1,1003,e,t);throw new De(1,1,1002,e,v,t);case 3:return m=xf(u.headers),b.return(wf(m,c,u.status,e,u.url,t))}}))}(e,n,{body:t.body||void 0,headers:a,method:t.method,signal:o.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},s,r,i,t.streamDataCallback),(function(){return s.ye=!0,o.abort(),Promise.resolve()})),t=t.retryParameters.timeout){var l=new ot((function(){s.bf=!0,o.abort()}));l.N(t/1e3),e.finally((function(){l.stop()}))}return e}function xf(e){var t={};return e.forEach((function(e,n){t[n.trim()]=e})),t}function If(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!(!e.fetch||!e.AbortController)}yt("Tizen 3")||yt("Tizen 2")||dt()||(Qi.m3u8=function(){return new jd},$i["application/x-mpegurl"]=function(){return new jd},$i["application/vnd.apple.mpegurl"]=function(){return new jd}),B("shaka.net.HttpFetchPlugin",Sf),Sf.isSupported=If,Sf.parse=Cf;var Pf=e.fetch,Df=e.AbortController,Rf=e.ReadableStream,Of=e.Headers;function Lf(){}function Mf(e,t,n,r,i){var a=new Uf,o=Date.now(),s=0;return new pr(new Promise((function(l,u){a.open(t.method,e,!0),a.responseType="arraybuffer",a.timeout=t.retryParameters.timeout,a.withCredentials=t.allowCrossSiteCredentials,a.onabort=function(){u(new De(1,1,7001,e,n))};var c=!1;for(var p in a.onreadystatechange=function(){if(2==a.readyState&&!c){var e=Nf(a);i(e),c=!0}},a.onload=function(){var t=Nf(a),r=a.response;try{var i=wf(t,r,a.status,e,a.responseURL,n);l(i)}catch(e){u(e)}},a.onerror=function(t){u(new De(1,1,1002,e,t,n))},a.ontimeout=function(){u(new De(1,1,1003,e,n))},a.onprogress=function(e){var t=Date.now();(100<t-o||e.lengthComputable&&e.loaded==e.total)&&(r(t-o,e.loaded-s,e.total-e.loaded),s=e.loaded,o=t)},t.headers)a.setRequestHeader(p.toLowerCase(),t.headers[p]);a.send(t.body)})),(function(){return a.abort(),Promise.resolve()}))}function Nf(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={};for(var n=(t=u(t)).next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}If()&&(Sr("http",Cf,2,!0),Sr("https",Cf,2,!0),Sr("blob",Cf,2,!0)),B("shaka.net.HttpXHRPlugin",Lf),Lf.parse=Mf;var Uf=e.XMLHttpRequest;function Ff(e,t,n,r){this.g=e,this.i=t,this.groupId=n,this.h=r}function jf(e){return e.ya().map((function(e){return"{"+encodeURI(e)+"}"})).join("")+":"+e.Ba+":"+e.ka}function Bf(e,t){return Us(e.g.ya(),e.g.Ba,e.g.ka,t.streaming.retryParameters)}function Vf(){this.h=this.j=this.i=0,this.g=new Map,this.l=0}function Hf(e,t){e.i+=t;var n=e.l;return e.l++,e.g.set(n,t),n}function Kf(e){var t=this;this.o=e,this.j=new Map,this.i=new Or((function(){return Gf(t).catch((function(){}))})),this.h=[],this.m=function(){},this.l=function(){},this.g=new Vf}function Gf(e){var t=e.h.map((function(e){return e()}));return e.h=[],Promise.all(t)}function zf(e,t,n,r,i,a){Lr(e.i);var o=(e.j.get(t)||Promise.resolve()).then((function(){var t,o,s,l,u,c,p;return R((function(d){if(1==d.g)return _(d,function(e,t){var n,r,i,a;return R((function(o){return 1==o.g?(n=Pr,r=e.o.request(n,t),i=function(){return r.abort()},e.h.push(i),_(o,r.promise,2)):(a=o.h,te(e.h,i),o.return(a.data))}))}(e,n),2);if(t=d.h,e.i.g)throw new De(2,9,7001);if(i)for(l in o=xe(t),(s=new ti(o)).data)u=Number(l),c=s.data[u],p=s.g[u],e.l(c,p);e.g.close(r,t.byteLength);var f=e.g;return e.m(0==f.i?0:f.j/f.i,e.g.h),d.return(a(t))}))}));e.j.set(t,o)}function Wf(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new rt,e.onabort=function(e){e.preventDefault(),n.g.reject()},e.onerror=function(e){e.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}function Yf(e,t){return new Promise((function(n,r){var i=e.h.openCursor();i.onerror=r,i.onsuccess=function(){var e;return R((function(r){if(1==r.g)return null==i.result?(n(),r.return()):(e=i.result,_(r,t(e.key,e.value,e),2));e.continue(),E(r)}))}}))}function qf(e){this.h=e,this.g=[]}function Xf(e,t){return $f(e,t,"readwrite")}function $f(e,t,n){var r=new Wf(n=e.h.transaction([t],n),t);return e.g.push(r),r.promise().then((function(){te(e.g,r)}),(function(){te(e.g,r)})),r}function Qf(e,t,n){this.h=new qf(e),this.i=t,this.g=n}function Zf(e){return Promise.reject(new De(2,9,9011,"Cannot add new value to "+e))}function Jf(e,t,n,r){t=(e=Xf(e.h,t)).store();for(var i={},a=(n=u(n)).next();!a.done;i={Ec:i.Ec},a=n.next())i.Ec=a.value,t.delete(i.Ec).onsuccess=function(e){return function(){return r(e.Ec)}}(i);return e.promise()}function eh(e,t,n){var r,i,a,o,s,l,c;return R((function(p){if(1==p.g){for(r=$f(e.h,t,"readonly"),i=r.store(),a={},o=[],s={},l=u(n),c=l.next();!c.done;s={Vb:s.Vb,Tb:s.Tb},c=l.next())s.Tb=c.value,s.Vb=i.get(s.Tb),s.Vb.onsuccess=function(e){return function(){null==e.Vb.result&&o.push(e.Tb),a[e.Tb]=e.Vb.result}}(s);return _(p,r.promise(),2)}if(o.length)throw new De(2,9,9012,"Could not find values for "+o);return p.return(n.map((function(e){return a[e]})))}))}function th(e){this.g=new qf(e)}function nh(){this.g=new Map}function rh(e){var t=null;if(e.g.forEach((function(e,n){e.getCells().forEach((function(e,r){e.hasFixedKeySpace()||t||(t={path:{za:n,ja:r},ja:e})}))})),t)return t;throw new De(2,9,9013,"Could not find a cell that supports add-operations")}function ih(e,t,n){if(!(e=e.g.get(t)))throw new De(2,9,9013,"Could not find mechanism with name "+t);if(!(t=e.getCells().get(n)))throw new De(2,9,9013,"Could not find cell with name "+n);return t}function ah(e,t){oh.set(e,t)}Sr("http",Mf,1,!0),Sr("https",Mf,1,!0),Sr("blob",Mf,1,!0),Vf.prototype.close=function(e,t){if(this.g.has(e)){var n=this.g.get(e);this.g.delete(e),this.j+=n,this.h+=t}},Kf.prototype.destroy=function(){return this.i.destroy()},Wf.prototype.abort=function(){var e=this;return R((function(t){if(1==t.g){try{e.i.abort()}catch(e){}return k(t,2),_(t,e.g,4)}if(2!=t.g)return A(t,0);w(t),E(t)}))},Wf.prototype.store=function(){return this.h},Wf.prototype.promise=function(){return this.g},qf.prototype.destroy=function(){return Promise.all(this.g.map((function(e){return e.abort()})))},(r=Qf.prototype).destroy=function(){return this.h.destroy()},r.hasFixedKeySpace=function(){return!0},r.addSegments=function(){return Zf(this.i)},r.removeSegments=function(e,t){return Jf(this,this.i,e,t)},r.getSegments=function(e){var t,n=this;return R((function(r){return 1==r.g?_(r,eh(n,n.i,e),2):(t=r.h,r.return(t.map((function(e){return n.ze(e)}))))}))},r.addManifests=function(){return Zf(this.g)},r.updateManifest=function(){return Promise.reject(new De(2,9,9016,"Cannot modify values in "+this.g))},r.updateManifestExpiration=function(e,t){var n=Xf(this.h,this.g),r=n.store();return r.get(e).onsuccess=function(n){(n=n.target.result)&&(n.expiration=t,r.put(n,e))},n.promise()},r.removeManifests=function(e,t){return Jf(this,this.g,e,t)},r.getManifests=function(e){var t,n=this;return R((function(r){return 1==r.g?_(r,eh(n,n.g,e),2):(t=r.h,r.return(Promise.all(t.map((function(e){return n.bc(e)})))))}))},r.getAllManifests=function(){var e,t,n=this;return R((function(r){return 1==r.g?(e=$f(n.h,n.g,"readonly"),t=new Map,_(r,Yf(e,(function(e,r){var i;return R((function(a){if(1==a.g)return _(a,n.bc(r),2);i=a.h,t.set(e,i),E(a)}))})),2)):3!=r.g?_(r,e.promise(),3):r.return(t)}))},r.ze=function(e){return e},r.bc=function(e){return Promise.resolve(e)},r.add=function(e,t){var n,r,i,a,o,s,l,c=this;return R((function(p){if(1==p.g){for(n=Xf(c.h,e),r=n.store(),i=[],a={},o=u(t),s=o.next();!s.done;a={Fc:a.Fc},s=o.next())l=s.value,a.Fc=r.add(l),a.Fc.onsuccess=function(e){return function(){i.push(e.Fc.result)}}(a);return _(p,n.promise(),2)}return p.return(i)}))},th.prototype.destroy=function(){return this.g.destroy()},th.prototype.getAll=function(){var e,t,n=this;return R((function(r){return 1==r.g?(e=$f(n.g,"session-ids","readonly"),t=[],_(r,Yf(e,(function(e,n){t.push(n)})),2)):3!=r.g?_(r,e.promise(),3):r.return(t)}))},th.prototype.add=function(e){for(var t=Xf(this.g,"session-ids"),n=t.store(),r=(e=u(e)).next();!r.done;r=e.next())n.add(r.value);return t.promise()},th.prototype.remove=function(e){var t,n=this;return R((function(r){return 1==r.g?_(r,Yf(t=Xf(n.g,"session-ids"),(function(t,n,r){e.includes(n.sessionId)&&r.delete()})),2):_(r,t.promise(),0)}))},nh.prototype.destroy=function(){for(var e=[],t=u(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},nh.prototype.init=function(){var e=this;oh.forEach((function(t,n){(t=t())&&e.g.set(n,t)}));for(var t=[],n=u(this.g.values()),r=n.next();!r.done;r=n.next())t.push(r.value.init());return Promise.all(t)},B("shaka.offline.StorageMuxer",nh),nh.unregister=function(e){oh.delete(e)},nh.register=ah,nh.prototype.destroy=nh.prototype.destroy;var oh=new Map;function sh(){Qf.apply(this,arguments)}function lh(e,t){!function(e){var t=e.streams.filter((function(e){return"audio"==e.contentType}));if(e=e.streams.filter((function(e){return"video"==e.contentType})),!t.every((function(e){return e.variantIds}))||!e.every((function(e){return e.variantIds}))){for(var n=u(t),r=n.next();!r.done;r=n.next())r.value.variantIds=[];for(n=u(e),r=n.next();!r.done;r=n.next())r.value.variantIds=[];if(n=0,e.length&&!t.length){var i=n++,a=u(e);for(r=a.next();!r.done;r=a.next())r.value.variantIds.push(i)}if(!e.length&&t.length)for(i=n++,a=u(t),r=a.next();!r.done;r=a.next())r.value.variantIds.push(i);if(e.length&&t.length)for(t=u(t),r=t.next();!r.done;r=t.next())for(r=r.value,i=u(e),a=i.next();!a.done;a=i.next()){a=a.value;var o=n++;r.variantIds.push(o),a.variantIds.push(o)}}}(e);for(var n=u(e.streams),r=n.next();!r.done;r=n.next());return e.streams.map((function(n){return function(e,t,n){var r=e.initSegmentUri?uh(e.initSegmentUri):null,i=t+e.presentationTimeOffset,a=t+n;return{id:e.id,originalId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,initSegmentKey:r,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(e){var n=uh(e.uri);return{startTime:t+e.startTime,endTime:t+e.endTime,dataKey:n,initSegmentKey:r,appendWindowStart:t,appendWindowEnd:a,timestampOffset:i,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}(n,e.startTime,t)}))}function uh(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new De(2,9,9004,"Could not parse uri "+e)}function ch(){Qf.apply(this,arguments)}function ph(e,t,n){return{id:e.id,originalId:e.originalId,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(r){return{startTime:t+r.startTime,endTime:t+r.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:r.dataKey,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}function dh(){Qf.apply(this,arguments)}function fh(){this.m=this.j=this.i=this.h=this.g=this.l=null}function hh(e,t,n,r){this.g=e,this.i=t,this.h=n,this.l=r,this.j=["offline:",e,"/",t,"/",n,"/",r].join("")}function gh(e){if(null==(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e)))return null;var t=e[1];if("manifest"!=t&&"segment"!=t)return null;var n=e[2];if(!n)return null;var r=e[3];return r&&null!=t?new hh(t,n,r,Number(e[4])):null}function yh(e,t){this.h=e,this.g=t}function vh(e,t){var n=new ts(null,0);n.Aa(t.duration);var r=t.streams.filter((function(e){return"audio"==e.type})),i=t.streams.filter((function(e){return"video"==e.type}));r=function(e,t,n,r){for(var i=new Set,a=u(t),o=a.next();!o.done;o=a.next()){var s=u(o.value.variantIds);for(o=s.next();!o.done;o=s.next())i.add(o.value)}for(a=u(n),o=a.next();!o.done;o=a.next())for(s=u(o.value.variantIds),o=s.next();!o.done;o=s.next())i.add(o.value);for(a=new Map,i=u(i),o=i.next();!o.done;o=i.next())o=o.value,a.set(o,{id:o,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(t=u(t),i=t.next();!i.done;i=t.next())for(i=i.value,o=mh(e,i,r),s=u(i.variantIds),i=s.next();!i.done;i=s.next())(i=a.get(i.value)).language=o.language,i.primary=i.primary||o.primary,i.audio=o;for(n=u(n),t=n.next();!t.done;t=n.next())for(i=t.value,t=mh(e,i,r),o=u(i.variantIds),i=o.next();!i.done;i=o.next())(i=a.get(i.value)).primary=i.primary||t.primary,i.video=t;return a}(e,r,i,n),i=t.streams.filter((function(e){return e.type==et})).map((function(t){return mh(e,t,n)}));var a=t.streams.filter((function(e){return"image"==e.type})).map((function(t){return mh(e,t,n)})),o=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var s=u(r.values()),l=s.next();!l.done;l=s.next())(l=l.value).audio&&l.audio.encrypted&&(l.audio.drmInfos=o),l.video&&l.video.encrypted&&(l.video.drmInfos=o);return{presentationTimeline:n,minBufferTime:2,offlineSessionIds:t.sessionIds,variants:Array.from(r.values()),textStreams:i,imageStreams:a,sequenceMode:t.sequenceMode||!1}}function mh(e,t,n){var r=t.segments.map((function(t){return function(e,t){var n=new hh("segment",e.h,e.g,t.dataKey);return new go(t.startTime,t.endTime,(function(){return[n.toString()]}),0,null,null!=t.initSegmentKey?function(e,t){var n=new hh("segment",e.h,e.g,t);return new ho((function(){return[n.toString()]}),0,null)}(e,t.initSegmentKey):null,t.timestampOffset,t.appendWindowStart,t.appendWindowEnd,[],t.tilesLayout||"")}(e,t)}));return n.Ib(r),{id:t.id,originalId:t.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Es(r),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout}}function bh(){this.g=null}function _h(){}function Eh(e){var t=gh(e);return t&&"manifest"==t.g?e=hr(e={uri:e,Oe:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}}):e=t&&"segment"==t.g?function(e,t){var n=new nh;return hr(void 0).Y((function(){return n.init()})).Y((function(){return ih(n,t.za(),t.ja())})).Y((function(e){return e.getSegments([t.key()])})).Y((function(e){return{uri:t,data:e[0].data,headers:{}}})).finally((function(){return n.destroy()}))}(t.key(),t):dr(new De(2,1,9004,e)),e}function kh(e,t,n){var r,i,a,o,s,l;return R((function(c){switch(c.g){case 1:r=[];for(var p=[],d=u(n),f=d.next();!f.done;f=d.next()){f=f.value;for(var h=!1,g=u(p),y=g.next();!y.done;y=g.next())if(Th((y=y.value).info,f)){y.sessionIds.push(f.sessionId),h=!0;break}h||p.push({info:f,sessionIds:[f.sessionId]})}i=u(p),a=i.next();case 2:if(a.done){c.A(4);break}return o=a.value,s=function(e,t,n){var r,i;return R((function(a){switch(a.g){case 1:return r=new Ti({kb:t,onError:function(){},cd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),k(a,2),r.configure(e),_(a,function(e,t,n,r,i,a){var o=new Map;return(i={audioCapabilities:i,videoCapabilities:a,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:t}).drmInfos=[{keySystem:t,licenseServerUri:n,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:r,serverCertificateUri:"",initData:null,keyIds:null}],o.set(t,i),Ri(e,o,[])}(r,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:A(a,3);break;case 2:return w(a),_(a,r.destroy(),5);case 5:return a.return([]);case 3:return k(a,6),_(a,Ci(r),8);case 8:A(a,7);break;case 6:return w(a),_(a,r.destroy(),9);case 9:return a.return([]);case 7:return i=[],_(a,Promise.all(n.sessionIds.map((function(e){return R((function(t){return 1==t.g?(k(t,2),_(t,function(e,t){var n,r,i;return R((function(a){return 1==a.g?_(a,Oi(e,t),2):3!=a.g?(n=a.h)?(r=[],(i=e.i.get(n))&&(i.Ja=new rt,r.push(i.Ja)),r.push(n.remove()),_(a,Promise.all(r),3)):a.return():(e.i.delete(n),void E(a))}))}(r,e),4)):2!=t.g?(i.push(e),A(t,0)):(w(t),void E(t))}))}))),10);case 10:return _(a,r.destroy(),11);case 11:return a.return(i)}}))}(e,t,o),_(c,s,5);case 5:l=c.h,r=r.concat(l),a=i.next(),c.A(2);break;case 4:return c.return(r)}}))}function Th(e,t){function n(e,t){return e.robustness==t.robustness&&e.contentType==t.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&ne(e.audioCapabilities,t.audioCapabilities,n)&&ne(e.videoCapabilities,t.videoCapabilities,n)}function Ah(e,t){var n=vh(new yh(e.za(),e.ja()),t),r=t.appMetadata||{};return n=wh(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:r,isIncomplete:t.isIncomplete||!1}}function wh(e){for(var t=[],n=function(e){return e.filter((function(e){return Rn(e)}))}(e.variants),r=(n=u(n)).next();!r.done;r=n.next())t.push(wn(r.value));for(n=(e=u(e.textStreams)).next();!n.done;n=e.next())t.push(Sn(n.value));return t}function Sh(){this.g={}}function Ch(e,t){var n=t.audio,r=t.video;if(n&&!r&&(e.g[n.id]=n.bandwidth||t.bandwidth),!n&&r&&(e.g[r.id]=r.bandwidth||t.bandwidth),n&&r){var i=n.bandwidth||393216,a=r.bandwidth||t.bandwidth-i;0>=a&&(a=t.bandwidth),e.g[n.id]=i,e.g[r.id]=a}}function xh(e,t){e.g[t.id]=t.bandwidth||2048}function Ih(e,t){return null==(e=e.g[t])&&(e=0),e}function Ph(e){var t=this;if(e&&e.constructor!=Wl)throw new De(2,9,9008);this.g=this.h=null,e?(this.h=e.h,this.g=e.jc()):(this.h=Fl(),this.g=new wr),this.i=[],this.j=[];var n=!e;this.l=new Or((function(){var e,r,i,a,o;return R((function(s){switch(s.g){case 1:return _(s,Promise.all(t.j.map((function(e){return Gf(e)}))),2);case 2:for(e=function(){},r=[],i=u(t.i),a=i.next();!a.done;a=i.next())o=a.value,r.push(o.then(e,e));return _(s,Promise.all(r),3);case 3:if(!n){s.A(4);break}return _(s,t.g.destroy(),4);case 4:t.h=null,t.g=null,E(s)}}))}))}function Dh(){if(st())e:{for(var e=u(oh.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function Rh(e){var t,n,r;return R((function(i){switch(i.g){case 1:return _(i,(t=new nh).init(),2);case 2:return _(i,rh(t),3);case 3:return n=i.h,r=new hh("manifest",n.path.za,n.path.ja,e),_(i,t.destroy(),4);case 4:return _(i,(new Ph).remove(r.toString()),0)}}))}function Oh(e,t,n,r,i,a){var o,s,l,c,p,d,f,h,g,y,v;return R((function(m){switch(m.g){case 1:for(o=!1,k(m,2),s=!0,l=u(n.streams),c=l.next();!c.done;c=l.next())for(p=c.value,d=u(p.segments),f=d.next();!f.done;f=d.next())h=f.value,null!=(g=h.pendingSegmentRefId?r[h.pendingSegmentRefId]:null)&&(h.dataKey=g,h.pendingSegmentRefId=void 0),null!=(g=h.pendingInitSegmentRefId?r[h.pendingInitSegmentRefId]:null)&&(h.initSegmentKey=g,h.pendingInitSegmentRefId=void 0),h.pendingSegmentRefId&&(s=!1),h.pendingInitSegmentRefId&&(s=!1);return n.size+=i,s&&(n.isIncomplete=!1),_(m,e.updateManifest(t,n),4);case 4:o=!0,a(),A(m,0);break;case 2:return y=w(m),_(m,Rh(t),5);case 5:if(o){m.A(6);break}return v=Object.values(r),_(m,e.removeSegments(v,(function(){})),6);case 6:throw y}}))}function Lh(e){return e.variants.some((function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t}))}function Mh(e){return e.variants.some((function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some((function(e){return e.initData&&e.initData.length}))}))}function Nh(e,t){for(var n=[],r=u(e.streams),i=r.next();!i.done;i=r.next())i=i.value,t&&"video"==i.type?n.push({contentType:Kt(i.mimeType,i.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=i.type||n.push({contentType:Kt(i.mimeType,i.codecs),robustness:e.drmInfo.audioRobustness});return n}function Uh(e,t,n){return R((function(r){return _(r,function(e,t,n,r){var i,a,o;return R((function(s){return 1==s.g?r.drmInfo?(i=function(e){var t=Array.from(e.g.keys());if(!t.length)throw new De(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}(n),a=r.sessionIds.map((function(e){return{sessionId:e,keySystem:r.drmInfo.keySystem,licenseUri:r.drmInfo.licenseServerUri,serverCertificate:r.drmInfo.serverCertificate,audioCapabilities:Nh(r,!1),videoCapabilities:Nh(r,!0)}})),_(s,kh(t,e,a),2)):s.return():3!=s.g?(o=s.h,_(s,i.remove(o),3)):_(s,i.add(a.filter((function(e){return!o.includes(e.sessionId)}))),0)}))}(e.g,e.h.drm,n,t),0)}))}function Fh(e,t,n){function r(){}var i=function(e){for(var t=new Set,n=(e=u(e.streams)).next();!n.done;n=e.next())for(var r=(n=u(n.value.segments)).next();!r.done;r=n.next())null!=(r=r.value).initSegmentKey&&t.add(r.initSegmentKey),t.add(r.dataKey);return Array.from(t)}(n);return Ah(t,n),Promise.all([e.removeSegments(i,r),e.removeManifests([t.key()],r)])}function jh(e,t,n,r,i,a){var o={id:r.id,originalId:r.originalId,primary:r.primary,type:r.type,mimeType:r.mimeType,codecs:r.codecs,frameRate:r.frameRate,pixelAspectRatio:r.pixelAspectRatio,hdr:r.hdr,kind:r.kind,language:r.language,label:r.label,width:r.width||null,height:r.height||null,encrypted:r.encrypted,keyIds:r.keyIds,segments:[],variantIds:[],roles:r.roles,forced:r.forced,channelsCount:r.channelsCount,audioSamplingRate:r.audioSamplingRate,spatialAudio:r.spatialAudio,closedCaptions:r.closedCaptions,tilesLayout:r.tilesLayout},s=i.offline.numberOfParallelDownloads,l=0;return function(e,t,n){if(null!=(t=e.segmentIndex.find(t)))for(var r=e.segmentIndex.get(t);r;)n(r),r=e.segmentIndex.get(++t)}(r,n.presentationTimeline.Pa(),(function(n){var i=jf(n),u=void 0;if(!a.has(i)){var c=n.endTime-n.startTime;c=Ih(t,r.id)*c,c=Hf(e.g,c),a.set(i,new Ff(n,c,l,!1))}n.h&&(u=jf(n.h),a.has(u)||(c=.5*Ih(t,r.id),c=Hf(e.g,c),a.set(u,new Ff(n.h,c,l,!0)))),o.segments.push({pendingInitSegmentRefId:u,initSegmentKey:u?0:null,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,pendingSegmentRefId:i,dataKey:0}),l=(l+1)%s})),o}function Bh(e){if(e.l.g)throw new De(2,9,7001)}function Vh(){if(!Dh())throw new De(2,9,9e3)}function Hh(e,t){return R((function(n){return 1==n.g?(e.i.push(t),T(n),_(n,t,4)):2!=n.g?n.return(n.h):(S(n),te(e.i,t),C(n,0))}))}function Kh(e){for(var t=new Set,n=u(e.textStreams),r=n.next();!r.done;r=n.next())t.add(r.value);for(r=(n=u(e.imageStreams)).next();!r.done;r=n.next())t.add(r.value);for(n=(e=u(e.variants)).next();!n.done;n=e.next())(n=n.value).audio&&t.add(n.audio),n.video&&t.add(n.video);return t}y(sh,Qf),sh.prototype.updateManifestExpiration=function(e,t){var n,r,i,a=this;return R((function(o){return n=Xf(a.h,a.g),r=n.store(),i=new rt,r.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,r.put(n),i.resolve()):i.reject(new De(2,9,9012,"Could not find values for "+e))},_(o,Promise.all([n.promise(),i]),0)}))},sh.prototype.bc=function(e){var t,n,r,i,a,o;return R((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n)r=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,i=r-e.periods[n].startTime,a=lh(e.periods[n],i),t.push(a);return _(s,Np(t),2)}return o=s.h,s.return({creationTime:0,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:null==e.expiration?1/0:e.expiration,streams:o,sessionIds:e.sessionIds,drmInfo:e.drmInfo,appMetadata:e.appMetadata,sequenceMode:!1})}))},sh.prototype.ze=function(e){return{data:e.data}},y(ch,Qf),ch.prototype.bc=function(e){var t,n,r,i,a,o;return R((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n){r=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,i=r-e.periods[n].startTime;for(var l=e.periods[n],c=[],p=u(l.streams),d=p.next();!d.done;d=p.next())0!=(d=d.value).variantIds.length&&c.push(ph(d,l.startTime,l.startTime+i));a=c,t.push(a)}return _(s,Np(t),2)}return o=s.h,s.return({appMetadata:e.appMetadata,creationTime:0,drmInfo:e.drmInfo,duration:e.duration,expiration:null==e.expiration?1/0:e.expiration,originalManifestUri:e.originalManifestUri,sessionIds:e.sessionIds,size:e.size,streams:o,sequenceMode:!1})}))},y(dh,Qf),(r=dh.prototype).hasFixedKeySpace=function(){return!1},r.addSegments=function(e){return this.add(this.i,e)},r.addManifests=function(e){return this.add(this.g,e)},r.updateManifest=function(e,t){return function(e,t,n){var r=(e=Xf(e.h,e.g)).store();return r.get(t).onsuccess=function(){r.put(n,t)},e.promise()}(this,e,t)},r.bc=function(e){return null==e.expiration&&(e.expiration=1/0),Promise.resolve(e)},(r=fh.prototype).init=function(){var t=this,n=new rt,r=!1,i=new ot((function(){r=!0,n.reject(new De(2,9,9017))}));i.N(5);var a=e.indexedDB.open("shaka_offline_db",5);return a.onsuccess=function(){if(!r){var e=a.result;t.l=e;var o=e.objectStoreNames;o=o.contains("manifest")&&o.contains("segment")?new sh(e,"segment","manifest"):null,t.g=o,o=(o=e.objectStoreNames).contains("manifest-v2")&&o.contains("segment-v2")?new ch(e,"segment-v2","manifest-v2"):null,t.h=o,o=(o=e.objectStoreNames).contains("manifest-v3")&&o.contains("segment-v3")?new ch(e,"segment-v3","manifest-v3"):null,t.i=o,o=(o=e.objectStoreNames).contains("manifest-v5")&&o.contains("segment-v5")?new dh(e,"segment-v5","manifest-v5"):null,t.j=o,e=e.objectStoreNames.contains("session-ids")?new th(e):null,t.m=e,i.stop(),n.resolve()}},a.onupgradeneeded=function(){for(var e=a.result,t=u(["segment-v5","manifest-v5","session-ids"]),n=t.next();!n.done;n=t.next())n=n.value,e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},a.onerror=function(e){r||(n.reject(new De(2,9,9001,a.error)),i.stop(),e.preventDefault())},n},r.destroy=function(){var e=this;return R((function(t){switch(t.g){case 1:if(!e.g){t.A(2);break}return _(t,e.g.destroy(),2);case 2:if(!e.h){t.A(4);break}return _(t,e.h.destroy(),4);case 4:if(!e.i){t.A(6);break}return _(t,e.i.destroy(),6);case 6:if(!e.j){t.A(8);break}return _(t,e.j.destroy(),8);case 8:if(!e.m){t.A(10);break}return _(t,e.m.destroy(),10);case 10:e.l&&e.l.close(),E(t)}}))},r.getCells=function(){var e=new Map;return this.g&&e.set("v1",this.g),this.h&&e.set("v2",this.h),this.i&&e.set("v3",this.i),this.j&&e.set("v5",this.j),e},r.getEmeSessionCell=function(){return this.m},r.erase=function(){var t=this;return R((function(n){switch(n.g){case 1:if(!t.g){n.A(2);break}return _(n,t.g.destroy(),2);case 2:if(!t.h){n.A(4);break}return _(n,t.h.destroy(),4);case 4:if(!t.i){n.A(6);break}return _(n,t.i.destroy(),6);case 6:if(!t.j){n.A(8);break}return _(n,t.j.destroy(),8);case 8:return t.l&&t.l.close(),_(n,function(){var t=new rt,n=e.indexedDB.deleteDatabase("shaka_offline_db");return n.onblocked=function(){},n.onsuccess=function(){t.resolve()},n.onerror=function(e){t.reject(new De(2,9,9001,n.error)),e.preventDefault()},t}(),10);case 10:return t.l=null,t.g=null,t.h=null,t.i=null,t.j=null,_(n,t.init(),0)}}))},ah("idb",(function(){return yt("CrKey")||ct()||!e.indexedDB?null:new fh})),hh.prototype.za=function(){return this.i},hh.prototype.ja=function(){return this.h},hh.prototype.key=function(){return this.l},hh.prototype.toString=function(){return this.j},(r=bh.prototype).configure=function(){},r.start=function(e,t){var n,r,i,a,o,s,l=this;return R((function(u){switch(u.g){case 1:if(n=gh(e),l.g=n,null==n||"manifest"!=n.g)throw new De(2,1,9004,e);return r=new nh,T(u),_(u,r.init(),4);case 4:return _(u,ih(r,n.za(),n.ja()),5);case 5:return _(u,u.h.getManifests([n.key()]),6);case 6:return i=u.h,a=i[0],o=new yh(n.za(),n.ja()),s=vh(o,a),t.makeTextStreamsForClosedCaptions(s),u.return(s);case 2:return S(u),_(u,r.destroy(),7);case 7:C(u,0)}}))},r.stop=function(){return Promise.resolve()},r.update=function(){},r.onExpirationUpdated=function(e,t){var n,r,i,a,o,s,l,u=this;return R((function(c){switch(c.g){case 1:return n=u.g,r=new nh,k(c,2,3),_(c,r.init(),5);case 5:return _(c,ih(r,n.za(),n.ja()),6);case 6:return _(c,(i=c.h).getManifests([n.key()]),7);case 7:if(a=c.h,o=a[0],s=o.sessionIds.includes(e),l=null==o.expiration||o.expiration>t,!s||!l){c.A(3);break}return _(c,i.updateManifestExpiration(n.key(),t),3);case 3:return S(c),_(c,r.destroy(),10);case 10:C(c,0);break;case 2:w(c),c.A(3)}}))},$i["application/x-offline-manifest"]=function(){return new bh},B("shaka.offline.OfflineScheme",_h),_h.plugin=Eh,Sr("offline",Eh),(r=Ph.prototype).destroy=function(){return this.l.destroy()},r.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=Rl(e,t)),jl(this.h,e)},r.getConfiguration=function(){var e=Fl();return jl(e,this.h,Fl()),e},r.jc=function(){return this.g},r.store=function(e,t,n){var r=this,i=this.getConfiguration(),a=new Kf(this.g);return this.j.push(a),(t=new pr(t=function(e,t,n,r,i,a){var o,s,l,c,p,d,f,h,g,y,v,m,b;return R((function(T){switch(T.g){case 1:return Vh(),s=o=null,l=new nh,d=p=c=null,k(T,2,3),_(T,r(),5);case 5:return o=T.h,_(T,function(e,t,n,r){var i,a,o,s,l;return R((function(u){if(1==u.g)return i=null,a=e.g,o={networkingEngine:a,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){i=e},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){}},n.configure(r.manifest),Bh(e),_(u,n.start(t,o),2);if(3!=u.g)return s=u.h,Bh(e),l=Kh(s),_(u,Promise.all(Fr(l,(function(e){return e.createSegmentIndex()}))),3);if(Bh(e),i)throw i;return u.return(s)}))}(e,t,o,i),6);case 6:if(f=T.h,Bh(e),!(!f.presentationTimeline.U()&&!f.presentationTimeline.jb()))throw new De(2,9,9005,t);return _(T,function(e,t,n,r){var i;return R((function(a){switch(a.g){case 1:return(i=new Ti({kb:e.g,onError:n,cd:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(r.drm),_(a,function(e,t,n){return e.da=!0,e.B=[],e.L=n,wi(e,t)}(i,t.variants,r.offline.usePersistentLicense),2);case 2:return _(a,Ci(i),3);case 3:return _(a,xi(i),4);case 4:return a.return(i)}}))}(e,f,(function(e){d=d||e}),i),7);case 7:if(s=T.h,Bh(e),d)throw d;return _(T,function(e,t){var n,r,i,a,o,s,l,c,p,d,f,h,g,y,v,m,b,T,S,C,x,I,P,D,O,L,M,N;return R((function(R){switch(R.g){case 1:return n={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter((function(e){return gn(e,t,n)}))}(e,t.restrictions,n),_(R,mn(e,t.offline.usePersistentLicense),2);case 2:for(r=[],i=t.preferredAudioChannelCount,a=t.preferredDecodingAttributes,o=t.preferredVideoCodecs,s=t.preferredAudioCodecs,dn(e,o,s,i,a),l=u(e.variants),c=l.next();!c.done;c=l.next())p=c.value,r.push(wn(p));for(d=u(e.textStreams),f=d.next();!f.done;f=d.next())h=f.value,r.push(Sn(h));for(g=u(e.imageStreams),y=g.next();!y.done;y=g.next())v=y.value,r.push(Cn(v));return _(R,t.offline.trackSelectionCallback(r),3);case 3:for(m=R.h,b=e.presentationTimeline.getDuration(),T=0,S=u(m),C=S.next();!C.done;C=S.next())x=C.value,I=x.bandwidth*b/8,T+=I;return k(R,4),_(R,t.offline.downloadSizeCallback(T),6);case 6:if(!R.h)throw new De(2,9,9014);A(R,5);break;case 4:if((P=w(R))instanceof De)throw P;throw new De(2,9,9015);case 5:for(D=new Set,O=new Set,L=new Set,M=u(m),C=M.next();!C.done;C=M.next())"variant"==(N=C.value).type&&D.add(N.id),"text"==N.type&&O.add(N.id),"image"==N.type&&L.add(N.id);e.variants=e.variants.filter((function(e){return D.has(e.id)})),e.textStreams=e.textStreams.filter((function(e){return O.has(e.id)})),e.imageStreams=e.imageStreams.filter((function(e){return L.has(e.id)})),function(e){e.variants.map((function(e){return e.video}));var t=new Set(e.variants.map((function(e){return e.audio})));e=e.textStreams;for(var n=u(t),r=n.next();!r.done;r=n.next())for(var i=(r=u(t)).next();!i.done;i=r.next());for(t=u(e),n=t.next();!n.done;n=t.next())for(n=u(e),r=n.next();!r.done;r=n.next());}(e),E(R)}}))}(f,i),8);case 8:return _(T,l.init(),9);case 9:return Bh(e),_(T,rh(l),10);case 10:return c=T.h,Bh(e),h=function(e,t,n,r,i,a){var o=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=wh(t),appMetadata:n,isIncomplete:!1}}(n,t,r),s=i.offline.progressCallback;!function(e,t,n){e.m=t,e.l=n}(a,(function(e,t){o.size=t,s(o,e)}),(function(t,n){l&&i.offline.usePersistentLicense&&c==n&&Ii(e,"cenc",t)}));var l=Lh(t)&&!Mh(t),c=null;l&&(c=Gh.get(e.g.keySystem));for(var p=new Sh,d=u(t.textStreams),f=d.next();!f.done;f=d.next())p.g[f.value.id]=52;for(d=u(t.imageStreams),f=d.next();!f.done;f=d.next())xh(p,f.value);for(f=u(t.variants),d=f.next();!d.done;d=f.next())Ch(p,d.value);return p=function(e,t,n,r){for(var i=new Map,a=Kh(n),o=new Map,s=(a=u(a)).next();!s.done;s=a.next()){s=s.value;var l=jh(e,t,n,s,r,i);o.set(s.id,l)}for(e=u(n.variants),t=e.next();!t.done;t=e.next())(t=t.value).audio&&o.get(t.audio.id).variantIds.push(t.id),t.video&&o.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(o.values()),pe:Array.from(i.values())}}(a,p,t,i),a=p.streams,p=p.pe,f=e.g,d=i.offline.usePersistentLicense,f&&d&&(f.initData=[]),{ag:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.ic(),streams:a,sessionIds:d?Di(e):[],drmInfo:f,appMetadata:r,isIncomplete:!0,sequenceMode:t.sequenceMode},pe:p}}(s,f,t,n,i,a),g=h.ag,y=h.pe,_(T,c.ja.addManifests([g]),11);case 11:if(v=T.h,Bh(e),p=v[0],Bh(e),d)throw d;return _(T,function(e,t,n,r,i,a,o,s,l){var c,p,d,f,h,g,y,v,m,b;return R((function(T){switch(T.g){case 1:if(c={},p=0,d=function(t,d){var f,h,g,y,v,m,b;return R((function(k){if(1==k.g){for(f={},h=u(t),g=h.next();!g.done;f={cb:f.cb},g=h.next())f.cb=g.value,y=Bf(f.cb,a),v=f.cb.i,m=f.cb.h,b=function(t){return function(n){var r,i,a;return R((function(s){if(1==s.g)return _(s,o.addSegments([{data:n}]),2);r=s.h,Bh(e),i=t.cb.g,a=jf(i),c[a]=r[0],p+=n.byteLength,E(s)}))}}(f),zf(i,f.cb.groupId,y,v,m,b);return _(k,function(e){return R((function(t){return 1==t.g?_(t,Promise.all(e.j.values()),2):t.return(e.g.h)}))}(i),2)}return d?(Bh(e),function(e,t,n,r){if(t.expiration=n.ic(),n=Di(n),t.sessionIds=r.offline.usePersistentLicense?n:[],Lh(e)&&r.offline.usePersistentLicense&&!n.length)throw new De(2,9,9007)}(s,r,l,a),_(k,o.updateManifest(n,r),0)):k.A(0)}))},f=!1,k(T,2),!Lh(s)||!f||Mh(s)){T.A(4);break}return _(T,d(t.filter((function(e){return e.h})),!0),5);case 5:return Bh(e),t=t.filter((function(e){return!e.h})),h=c,g=p,c={},p=0,_(T,Oh(o,n,r,h,g,(function(){return Bh(e)})),6);case 6:Bh(e);case 4:if(f){T.A(7);break}return _(T,d(t,!1),8);case 8:return Bh(e),y=c,v=p,c={},p=0,_(T,Oh(o,n,r,y,v,(function(){return Bh(e)})),9);case 9:Bh(e);case 7:A(T,0);break;case 2:return m=w(T),b=Object.values(c),_(T,o.removeSegments(b,(function(){})),10);case 10:throw m}}))}(e,y,p,g,a,i,c.ja,f,s),12);case 12:return Bh(e),m=new hh("manifest",c.path.za,c.path.ja,p),T.return(Ah(m,g));case 3:return S(T),_(T,l.destroy(),13);case 13:if(!o){T.A(14);break}return _(T,o.stop(),14);case 14:if(!s){T.A(16);break}return _(T,s.destroy(),16);case 16:C(T,0);break;case 2:if(b=w(T),null==p){T.A(18);break}return _(T,Rh(p),18);case 18:throw d||b}}))}(this,e,t||{},(function(){var t;return R((function(a){return 1==a.g?_(a,Yi(e,r.g,i.manifest.retryParameters,n||null),2):(t=a.h,a.return(t()))}))}),i,a),(function(){return Gf(a)}))).finally((function(){te(r.j,a)})),function(e,t){var n=t.promise;return e.i.push(n),t.finally((function(){te(e.i,n)}))}(this,t)},r.remove=function(e){return Hh(this,function(e,t){var n,r,i,a,o,s;return R((function(l){switch(l.g){case 1:if(Vh(),null==(n=gh(t))||"manifest"!=n.g)throw new De(2,9,9004,t);return r=n,i=new nh,T(l),_(l,i.init(),4);case 4:return _(l,ih(i,r.za(),r.ja()),5);case 5:return _(l,(a=l.h).getManifests([r.key()]),6);case 6:return o=l.h,s=o[0],_(l,Promise.all([Uh(e,s,i),Fh(a,r,s)]),2);case 2:return S(l),_(l,i.destroy(),8);case 8:C(l,0)}}))}(this,e))},r.pg=function(){return Hh(this,function(e){var t,n,r,i,a,o,s,l,c,p;return R((function(d){switch(d.g){case 1:return Vh(),t=e.g,n=e.h.drm,r=new nh,i=!1,T(d),_(d,r.init(),4);case 4:a=[],function(e,t){e.g.forEach((function(e){t(e.getEmeSessionCell())}))}(r,(function(e){return a.push(e)})),o=u(a),s=o.next();case 5:if(s.done){d.A(2);break}return _(d,(l=s.value).getAll(),8);case 8:return c=d.h,_(d,kh(n,t,c),9);case 9:return p=d.h,_(d,l.remove(p),10);case 10:p.length!=c.length&&(i=!0),s=o.next(),d.A(5);break;case 2:return S(d),_(d,r.destroy(),11);case 11:C(d,3);break;case 3:return d.return(!i)}}))}(this))},r.list=function(){return Hh(this,R((function(r){switch(r.g){case 1:return Vh(),e=[],t=new nh,T(r),_(r,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.g.forEach((function(e,n){e.getCells().forEach((function(e,r){t({za:n,ja:r},e)}))}))}(t,(function(t,r){n=n.then((function(){return R((function(n){if(1==n.g)return _(n,r.getAllManifests(),2);n.h.forEach((function(n,r){n=Ah(new hh("manifest",t.za,t.ja,r),n),e.push(n)})),E(n)}))}))})),_(r,n,2);case 2:return S(r),_(r,t.destroy(),6);case 6:C(r,3);break;case 3:return r.return(e)}})));var e,t,n},B("shaka.offline.Storage",Ph),Ph.deleteAll=function(){var e;return R((function(t){return 1==t.g?(e=new nh,T(t),_(t,function(e){var t,n;return R((function(r){return 1==r.g?(t=Array.from(e.g.values()),(n=0<t.length)||oh.forEach((function(e){(e=e())&&t.push(e)})),_(r,Promise.all(t.map((function(e){return e.erase()}))),2)):n?r.A(0):_(r,Promise.all(t.map((function(e){return e.destroy()}))),0)}))}(e),2)):5!=t.g?(S(t),_(t,e.destroy(),5)):C(t,0)}))},Ph.prototype.list=Ph.prototype.list,Ph.prototype.removeEmeSessions=Ph.prototype.pg,Ph.prototype.remove=Ph.prototype.remove,Ph.prototype.store=Ph.prototype.store,Ph.prototype.getNetworkingEngine=Ph.prototype.jc,Ph.prototype.getConfiguration=Ph.prototype.getConfiguration,Ph.prototype.configure=Ph.prototype.configure,Ph.prototype.destroy=Ph.prototype.destroy,Ph.support=Dh;var Gh=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");function zh(){}function Wh(e,t){for(e={priority:t||0,mf:e},t=0;t<Yh.length;t++)if(Yh[t].priority<e.priority)return void Yh.splice(t,0,e);Yh.push(e)}qu.offline=Dh,B("shaka.polyfill",zh),zh.register=Wh,zh.installAll=function(){for(var e=u(Yh),t=e.next();!t.done;t=e.next()){t=t.value;try{t.mf()}catch(e){W("Error installing polyfill!",e)}}};var Yh=[];function qh(){this.g=new $h}function Xh(){e.AbortController||(e.AbortController=qh,e.AbortSignal=$h)}function $h(){_r.call(this),this.h=!1,this.g=void 0,this.onabort=null}function Qh(){}function Zh(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var e=u(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),t=e.next();!t.done;t=e.next())Jh(t.value)}function Jh(e){var t="aria-"+e.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,e,{get:function(){return this.getAttribute(t)},set:function(e){null==e||null==e?this.removeAttribute(t):this.setAttribute(t,e)}})}function eg(){}function tg(){Fv()}function ng(){}function rg(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",ig),document.addEventListener("webkitfullscreenerror",ig),document.addEventListener("mozfullscreenchange",ig),document.addEventListener("mozfullscreenerror",ig),document.addEventListener("MSFullscreenChange",ig),document.addEventListener("MSFullscreenError",ig)}}function ig(e){var t=e.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),n=document.createEvent("Event");n.initEvent(t,e.bubbles,e.cancelable),e.target.dispatchEvent(n)}function ag(){}function og(){var e=!0;(ft()||yt("PlayStation 5")||ht()||yt("Web0S")||pt()||yt("CrKey")||yt("PC=EOS")||yt("Hisense")||yt("VIDAA"))&&(e=!1),e&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),hg=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=sg)}function sg(t){var n,r,i,a,o,s,l,u,c,p,d,f,h;return R((function(g){switch(g.g){case 1:if(n={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:t},!t)return g.return(n);if(r=t.video,i=t.audio,"media-source"==t.type){if(!st())return g.return(n);if(r){if(yt("CrKey"))if(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var y=r.contentType;r.width&&r.height&&(y+="; width="+r.width+"; height="+r.height),r.framerate&&(y+="; framerate="+r.framerate),"pq"===r.transferFunction&&(y+="; eotf=smpte2084"),y=cast.__platform__.canDisplayType(y)}else y=Z(r.contentType);else y=Z(r.contentType);if(!y)return g.return(n)}if(i&&(a=i.contentType,!Z(a)))return g.return(n)}else{if("file"!=t.type)return g.return(n);if(r&&(o=r.contentType,!lt(o))||i&&(s=i.contentType,!lt(s)))return g.return(n)}return t.keySystemConfiguration?(l=t.keySystemConfiguration,u=[],c=[],l.audio&&(p={robustness:l.audio.robustness||"",contentType:t.audio.contentType},u.push(p)),l.video&&(d={robustness:l.video.robustness||"",contentType:t.video.contentType},c.push(d)),f={initDataTypes:[l.initDataType],distinctiveIdentifier:l.distinctiveIdentifier,persistentState:l.persistentState,sessionTypes:l.sessionTypes},u.length&&(f.audioCapabilities=u),c.length&&(f.videoCapabilities=c),k(g,3),_(g,navigator.requestMediaKeySystemAccess(l.keySystem,[f]),5)):(n.supported=!0,g.return(Promise.resolve(n)));case 5:h=g.h,A(g,4);break;case 3:w(g);case 4:h&&(n.supported=!0,n.keySystemAccess=h);case 2:return g.return(n)}}))}qh.prototype.abort=function(e){var t=this.g;t.h||(t.h=!0,t.g=e,void 0===t.g&&(t.g=new DOMException("signal is aborted without reason","AbortError")),e=new vr("abort"),t.onabort&&t.onabort(e),t.dispatchEvent(e))},o.Object.defineProperties(qh.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}}),zh.AbortController=qh,qh.install=Xh,y($h,_r),o.Object.defineProperties($h.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}}),Wh(Xh),zh.Aria=Qh,Qh.install=Zh,Wh(Zh),zh.EncryptionScheme=eg,eg.install=tg,Wh(tg,-2),zh.Fullscreen=ng,ng.install=rg,Wh(rg),zh.MediaCapabilities=ag,ag.install=og;var lg,ug,cg,pg,dg,fg,hg=null;function gg(){}function yg(){var t=gt();e.MediaSource&&(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */);return n.shift(),n.some((function(e){return e.startsWith("codecs=")}))?cast.__platform__.canDisplayType(t):e(t)}}():t?12>=t?(vg(),function(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}()):15>=t&&vg():ut()?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"mp2t"!=t.split(";")[0].split("/")[1]&&e(t)}}():(yt("Tizen 2")||yt("Tizen 3")||yt("Tizen 4"))&&function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"opus"!=Yt(t)[0]&&e(t)}}()),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&function(){var e=MediaSource.isTypeSupported;yt("Web0S")||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),r=n.findIndex((function(e){return e.startsWith("codecs=")}));if(0>r)return e(t);var i=n[r].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),a=i.findIndex((function(e){return e.startsWith("vp09")}));return 0<=a&&(i[a]="vp9",n[r]='codecs="'+i.join(",")+'"',t=n.join("; ")),e(t)})}()}function vg(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,O.apply(0,arguments));return t.abort=function(){},t}}function mg(){}function bg(){screen.orientation||null!=e.orientation&&function(){function t(){switch(e.orientation){case-90:n.type="landscape-secondary",n.angle=270;break;case 0:n.type="portrait-primary",n.angle=0;break;case 90:n.type="landscape-primary",n.angle=90;break;case 180:n.type="portrait-secondary",n.angle=180}}var n=new _g;screen.orientation=n,t(),e.addEventListener("orientationchange",(function(){t();var e=new vr("change");n.dispatchEvent(e)}))}()}function _g(){_r.call(this),this.type="",this.angle=0}function Eg(){}function kg(e,t){try{var n=new wg(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function Tg(e){var t=this.mediaKeys;return t&&t!=e&&Cg(t,null),delete this.mediaKeys,(this.mediaKeys=e)?Cg(e,this):Promise.resolve()}function Ag(e){if(Ie(e=xe(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=At(e=kt(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=Ce(e),this.dispatchEvent(t)}function wg(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(t=(e=u(t)).next();!t.done;t=e.next()){var n=t.value;if("required"==n.persistentState)t=null;else{t={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:n.initDataTypes,sessionTypes:["temporary"],label:n.label};var r=!1,i=!1;if(n.audioCapabilities)for(var a=u(n.audioCapabilities),o=a.next();!o.done;o=a.next())(o=o.value).contentType&&(r=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,o.contentType.split(";")[0])&&(t.audioCapabilities.push(o),i=!0));if(n.videoCapabilities)for(o=(n=u(n.videoCapabilities)).next();!o.done;o=n.next())(a=o.value).contentType&&(r=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,a.contentType.split(";")[0])&&(t.videoCapabilities.push(a),i=!0));r||(i=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),t=i?t:null}if(t)return void(this.g=t)}throw(e=Error("Unsupported keySystem")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function Sg(e){this.h=new WebKitMediaKeys(e),this.g=new Mr}function Cg(e,t){if(e.g.nb(),!t)return Promise.resolve();e.g.C(t,"webkitneedkey",Ag);try{return ss(t,HTMLMediaElement.HAVE_METADATA,e.g,(function(){t.webkitSetMediaKeys(e.h)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function xg(e){_r.call(this),this.i=null,this.l=e,this.g=this.h=null,this.j=new Mr,this.sessionId="",this.expiration=NaN,this.closed=new rt,this.keyStatuses=new Pg}function Ig(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,t=new vr("keystatuseschange"),e.dispatchEvent(t)}function Pg(){this.size=0,this.g=void 0}function Dg(){}function Rg(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Og,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Lg,e.MediaKeys=Mg,e.MediaKeySystemAccess=Ng,e.shakaMediaKeysPolyfill=!0)}function Og(){return Promise.reject(Error("The key system specified is not supported."))}function Lg(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function Mg(){throw new TypeError("Illegal constructor.")}function Ng(){throw this.keySystem="",new TypeError("Illegal constructor.")}function Ug(){}function Fg(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)$g="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Bg,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Vg,e.MediaKeys=Kg,e.MediaKeySystemAccess=Hg,e.shakaMediaKeysPolyfill=!0}}function jg(e){return $g?$g+e.charAt(0).toUpperCase()+e.slice(1):e}function Bg(e,t){try{var n=new Hg(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function Vg(e){var t=this.mediaKeys;return t&&t!=e&&Gg(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&Gg(e,this),Promise.resolve()}function Hg(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var r=!1,i=document.getElementsByTagName("video");i=i.length?i[0]:document.createElement("video");for(var a=(t=u(t)).next();!a.done;a=t.next()){var o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(a=a.value).initDataTypes,sessionTypes:["temporary"],label:a.label},s=!1;if(a.audioCapabilities)for(var l=u(a.audioCapabilities),c=l.next();!c.done;c=l.next())(c=c.value).contentType&&(s=!0,i.canPlayType(c.contentType.split(";")[0],this.g)&&(o.audioCapabilities.push(c),r=!0));if(a.videoCapabilities)for(c=(l=u(a.videoCapabilities)).next();!c.done;c=l.next())(c=c.value).contentType&&(s=!0,i.canPlayType(c.contentType,this.g)&&(o.videoCapabilities.push(c),r=!0));if(s||(r=i.canPlayType("video/mp4",this.g)||i.canPlayType("video/webm",this.g)),"required"==a.persistentState&&(n?(o.persistentState="required",o.sessionTypes=["persistent-license"]):r=!1),r)return void(this.h=o)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(e=Error(n)).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function Kg(e){this.l=e,this.h=null,this.g=new Mr,this.i=[],this.j=new Map}function Gg(e,t){e.h=t,e.g.nb();var n=$g;t&&(e.g.C(t,n+"needkey",(function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=Ce(t.initData),e.h.dispatchEvent(n)})),e.g.C(t,n+"keymessage",(function(t){var n=zg(e,t.sessionId);n&&(t=new vr("message",t=(new Map).set("messageType",null==n.keyStatuses.Eb()?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))})),e.g.C(t,n+"keyadded",(function(t){(t=zg(e,t.sessionId))&&(qg(t,"usable"),t.g&&t.g.resolve(),t.g=null)})),e.g.C(t,n+"keyerror",(function(t){var n=zg(e,t.sessionId);n&&n.handleError(t)})))}function zg(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function Wg(e,t,n){_r.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new rt,this.keyStatuses=new Xg}function Yg(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if("persistent-license"==e.l)if(n)var r=xe(At("LOAD_SESSION|"+n));else{var i=At("PERSISTENT|");r=Ot(i,t)}else r=xe(t)}catch(e){return Promise.reject(e)}e.h=new rt;var a=jg("generateKeyRequest");try{e.j[a](e.i,r)}catch(t){if("InvalidStateError"!=t.name)return e.h=null,Promise.reject(t);new ot((function(){try{e.j[a](e.i,r)}catch(t){e.h.reject(t),e.h=null}})).N(.01)}return e.h}function qg(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,t=new vr("keystatuseschange"),e.dispatchEvent(t)}function Xg(){this.size=0,this.g=void 0}ag.originalMcap=hg,Wh(og,-1),zh.MediaSource=gg,gg.install=yg,Wh(yg),zh.Orientation=mg,mg.install=bg,y(_g,_r),_g.prototype.lock=function(e){function t(e){return screen.lockOrientation?screen.lockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):!!screen.msLockOrientation&&screen.msLockOrientation(e)}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():((e=Error("screen.orientation.lock() is not available on this device")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},_g.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},Wh(bg),zh.PatchedMediaKeysApple=Eg,Eg.uninstall=function(){lg&&(lg=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",ug),HTMLMediaElement.prototype.setMediaKeys=cg,e.MediaKeys=pg,e.MediaKeySystemAccess=dg,navigator.requestMediaKeySystemAccess=fg,ug=fg=cg=dg=pg=null,e.shakaMediaKeysPolyfill=!1)},Eg.install=function(t){e.HTMLVideoElement&&e.WebKitMediaKeys&&(void 0!==t&&t&&(lg=!0,ug=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),cg=HTMLMediaElement.prototype.setMediaKeys,pg=e.MediaKeys,dg=e.MediaKeySystemAccess,fg=navigator.requestMediaKeySystemAccess),delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Tg,e.MediaKeys=Sg,e.MediaKeySystemAccess=wg,navigator.requestMediaKeySystemAccess=kg,e.shakaMediaKeysPolyfill=!0)},wg.prototype.createMediaKeys=function(){var e=new Sg(this.keySystem);return Promise.resolve(e)},wg.prototype.getConfiguration=function(){return this.g},Sg.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new xg(this.h,e)},Sg.prototype.setServerCertificate=function(){return Promise.resolve(!1)},y(xg,_r),(r=xg.prototype).generateRequest=function(e,t){var n=this;this.h=new rt;try{var r=this.l.createSession("video/mp4",xe(t));this.i=r,this.sessionId=r.sessionId||"",this.j.C(this.i,"webkitkeymessage",(function(e){n.h&&(n.h.resolve(),n.h=null),e=new vr("message",e=(new Map).set("messageType",null==n.keyStatuses.Eb()?"license-request":"license-renewal").set("message",Ce(e.message))),n.dispatchEvent(e)})),this.j.C(r,"webkitkeyadded",(function(){n.g&&(Ig(n,"usable"),n.g.resolve(),n.g=null)})),this.j.C(r,"webkitkeyerror",(function(){var e=Error("EME PatchedMediaKeysApple key error");if(e.errorCode=n.i.error,null!=n.h)n.h.reject(e),n.h=null;else if(null!=n.g)n.g.reject(e),n.g=null;else switch(n.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Ig(n,"output-not-allowed");break;default:Ig(n,"internal-error")}})),Ig(this,"status-pending")}catch(e){this.h.reject(e)}return this.h},r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},r.update=function(e){this.g=new rt;try{this.i.update(xe(e))}catch(e){this.g.reject(e)}return this.g},r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.nb()}catch(e){this.closed.reject(e)}return this.closed},r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(r=Pg.prototype).Eb=function(){return this.g},r.forEach=function(e){this.g&&e(this.g,zi.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=zi.value();return!(!this.g||!we(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){},zh.PatchedMediaKeysNop=Dg,Dg.install=Rg,Mg.prototype.createSession=function(){},Mg.prototype.setServerCertificate=function(){},Ng.prototype.getConfiguration=function(){},Ng.prototype.createMediaKeys=function(){},Wh(Rg,-10),zh.PatchedMediaKeysWebkit=Ug,Ug.install=Fg,Hg.prototype.createMediaKeys=function(){var e=new Kg(this.g);return Promise.resolve(e)},Hg.prototype.getConfiguration=function(){return this.h},Kg.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="about:blank"),e=new Wg(t,this.l,e),this.i.push(e),e},Kg.prototype.setServerCertificate=function(){return Promise.resolve(!1)},y(Wg,_r),(r=Wg.prototype).handleError=function(e){var t=Error("EME v0.1b key error"),n=e.errorCode;n.systemCode=e.systemCode,t.errorCode=n,!e.sessionId&&this.h?(45==e.systemCode&&(t.message="Unsupported session type."),this.h.reject(t),this.h=null):e.sessionId&&this.g?(this.g.reject(t),this.g=null):(t=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?qg(this,"output-restricted"):qg(this,1==t?"expired":"internal-error"))},r.generateRequest=function(e,t){return Yg(this,t,null)},r.load=function(e){return"persistent-license"==this.l?Yg(this,null,e):Promise.reject(Error("Not a persistent session."))},r.update=function(e){var t=new rt;return function e(t,n,r){if(t.g)t.g.then((function(){return e(t,n,r)})).catch((function(){return e(t,n,r)}));else{if(t.g=n,"webkit-org.w3.clearkey"==t.i){var i=Et(r),a=JSON.parse(i);"oct"!=a.keys[0].kty&&(t.g.reject(Error("Response is not a valid JSON Web Key Set.")),t.g=null),i=Pt(a.keys[0].k),a=Pt(a.keys[0].kid)}else i=xe(r),a=null;var o=jg("addKey");try{t.j[o](t.i,i,a,t.sessionId)}catch(e){t.g.reject(e),t.g=null}}}(this,t,e),t},r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=jg("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(r=Xg.prototype).Eb=function(){return this.g},r.forEach=function(e){this.g&&e(this.g,zi.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=zi.value();return!(!this.g||!we(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){};var $g="";function Qg(){}function Zg(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=ey,Object.defineProperty(t,"disablePictureInPicture",{get:ny,set:ry,enumerable:!0,configurable:!0}),document.exitPictureInPicture=ty,document.addEventListener("webkitpresentationmodechanged",Jg,!0))}}function Jg(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function ey(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function ty(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function ny(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function ry(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function iy(){}function ay(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=oy))}function oy(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function sy(){}function ly(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=uy)}function uy(){return new Promise((function(e,t){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,n){e({usage:t,quota:n})}),t)}))}function cy(){}function py(){var e=Symbol.prototype;"description"in e||Object.defineProperty(e,"description",{get:dy})}function dy(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}function fy(){}function hy(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch((function(){})),e}}}function gy(){}function yy(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in t||dt())&&(t.getVideoPlaybackQuality=vy)}}function vy(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function my(){}function by(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=_y;else if(6==n)t=Ey;else{try{var r=!!_y(1,2,"")}catch(e){r=!1}r&&(t=_y)}t&&(e.VTTCue=function(e,n,r){return t(e,n,r)})}}function _y(t,n,r){return new e.TextTrackCue(t,n,r)}function Ey(t,n,r){return new e.TextTrackCue(t+"-"+n+"-"+r,t,n,r)}function ky(){}Wh(Fg),zh.PiPWebkit=Qg,Qg.install=Zg,Wh(Zg),zh.RandomUUID=iy,iy.install=ay,Wh(ay),zh.StorageEstimate=sy,sy.install=ly,Wh(ly),zh.Symbol=cy,cy.install=py,Wh(py),zh.VideoPlayPromise=fy,fy.install=hy,Wh(hy),zh.VideoPlaybackQuality=gy,gy.install=yy,Wh(yy),zh.VTTCue=my,my.install=by,Wh(by),ky.prototype.parseInit=function(){},ky.prototype.setSequenceMode=function(){},ky.prototype.parseMedia=function(e,t){for(var n=null,r=[],i=(e=u(e=Et(e).split(/\r?\n/))).next();!i.done;i=e.next())if((i=i.value)&&!/^\s+$/.test(i)&&(i=Ty.exec(i))){var a=Ay.exec(i[1]);i=new ie(a=60*parseInt(a[1],10)+parseFloat(a[2].replace(",",".")),t.segmentEnd?t.segmentEnd:a+2,i[2]),n&&(n.endTime=a,r.push(n)),n=i}return n&&r.push(n),r},B("shaka.text.LrcTextParser",ky),ky.prototype.parseMedia=ky.prototype.parseMedia,ky.prototype.setSequenceMode=ky.prototype.setSequenceMode,ky.prototype.parseInit=ky.prototype.parseInit;var Ty=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Ay=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;function wy(){}function Sy(e,t){for(var n=(t=u(t.split(" "))).next();!n.done;n=t.next())switch(n.value){case"underline":e.textDecoration.includes("underline")||e.textDecoration.push("underline");break;case"noUnderline":e.textDecoration.includes("underline")&&te(e.textDecoration,"underline");break;case"lineThrough":e.textDecoration.includes("lineThrough")||e.textDecoration.push("lineThrough");break;case"noLineThrough":e.textDecoration.includes("lineThrough")&&te(e.textDecoration,"lineThrough");break;case"overline":e.textDecoration.includes("overline")||e.textDecoration.push("overline");break;case"noOverline":e.textDecoration.includes("overline")&&te(e.textDecoration,"overline")}}function Cy(e,t,n,r,i){return i=void 0===i||i,(e=Iy(e,n,r))?e:i?xy(t,n,r):null}function xy(e,t,n){if(!e)return null;var r=li(e,$y,n);return r||Py(e,t,n)}function Iy(e,t,n){var r=li(e,$y,n);return r||Py(e,t,n)}function Py(e,t,n){e=Dy(e,"style",t,"");for(var r=null,i=0;i<e.length;i++){var a=si(e[i],"urn:ebu:tt:style",n);a||(a=li(e[i],$y,n)),a||(a=Iy(e[i],t,n)),a&&(r=a)}return r}function Dy(e,t,n,r,i){var a=[];if(!e||1>n.length)return a;var o=e;for(e=null;o&&!(e=i?si(o,i,t):o.getAttribute(t))&&(o=o.parentNode)instanceof Element;);if(t=e)for(i=(t=u(t.split(" "))).next();!i.done;i=t.next())for(i=i.value,o=(e=u(n)).next();!o.done;o=e.next())if(r+(o=o.value).getAttribute("xml:id")==i){a.push(o);break}return a}function Ry(e,t,n,r){return e=Oy(e,t),null==n?n=e.start:null!=e.start&&(n+=e.start),null==r?r=e.end:null!=e.start&&(r+=e.start),{start:n,end:r}}function Oy(e,t){var n=Ly(e.getAttribute("begin"),t),r=Ly(e.getAttribute("end"),t);return e=Ly(e.getAttribute("dur"),t),null==r&&null!=e&&(r=n+e),{start:n,end:r}}function Ly(e,t){var n=null;if(Vy.test(e)){e=Vy.exec(e),n=Number(e[1]);var r=Number(e[2]),i=Number(e[3]),a=Number(e[4]);n=(i+=(a+=(Number(e[5])||0)/t.h)/t.frameRate)+60*r+3600*n}else if(Hy.test(e))n=My(Hy,e);else if(Ky.test(e))n=My(Ky,e);else if(Gy.test(e))e=Gy.exec(e),n=Number(e[1])/t.frameRate;else if(zy.test(e))e=zy.exec(e),n=Number(e[1])/t.g;else if(Wy.test(e))n=My(Wy,e);else if(e)throw new De(2,2,2001,"Could not parse cue time range in TTML");return n}function My(e,t){return null==(e=e.exec(t))||""==e[0]?null:(Number(e[4])||0)/1e3+(Number(e[3])||0)+60*(Number(e[2])||0)+3600*(Number(e[1])||0)}function Ny(e,t,n,r){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(r),0==this.g&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}Jt["application/x-subtitle-lrc"]=function(){return new ky},wy.prototype.parseInit=function(){},wy.prototype.setSequenceMode=function(){},wy.prototype.parseMedia=function(e,t){var n=Et(e);if(e=[],""==n)return e;var r=_i(n,"tt");if(!r)throw new De(2,2,2005,"Failed to parse TTML.");if(!(n=r.getElementsByTagName("body")[0]))return[];var i=li(r,Xy,"frameRate"),a=li(r,Xy,"subFrameRate"),o=li(r,Xy,"frameRateMultiplier"),s=li(r,Xy,"tickRate"),l=li(r,Xy,"cellResolution"),c=r.getAttribute("xml:space")||"default",p=li(r,$y,"extent");if("default"!=c&&"preserve"!=c)throw new De(2,2,2005,"Invalid xml:space value: "+c);c="default"==c,i=new Ny(i,a,o,s),l=l&&(l=/^(\d+) (\d+)$/.exec(l))?{columns:parseInt(l[1],10),rows:parseInt(l[2],10)}:null,a=(a=r.getElementsByTagName("metadata")[0])?function(e){return Array.from(e.childNodes).filter((function(e){return e instanceof Element}))}(a):[],o=Array.from(r.getElementsByTagName("style")),s=[];for(var d=u(r=Array.from(r.getElementsByTagName("region"))),f=d.next();!f.done;f=d.next()){var h=f.value;f=new Ee;var g=h.getAttribute("xml:id");if(g){f.id=g;var y,v,m=null;p&&(m=Uy.exec(p)||By.exec(p)),g=m?Number(m[1]):null,m=m?Number(m[2]):null,(y=xy(h,o,"extent"))&&(null!=(y=(v=Uy.exec(y))||By.exec(y))&&(f.width=Number(y[1]),f.height=Number(y[2]),v||(null!=g&&(f.width=100*f.width/g),null!=m&&(f.height=100*f.height/m)),f.widthUnits=v||null!=g?ke:0,f.heightUnits=v||null!=m?ke:0)),(h=xy(h,o,"origin"))&&(null!=(y=(v=Uy.exec(h))||By.exec(h))&&(f.viewportAnchorX=Number(y[1]),f.viewportAnchorY=Number(y[2]),v||(null!=m&&(f.viewportAnchorY=100*f.viewportAnchorY/m),null!=g&&(f.viewportAnchorX=100*f.viewportAnchorX/g)),f.viewportAnchorUnits=v||null!=g?ke:0))}else f=null;f&&s.push(f)}if(ai(n,"p").length)throw new De(2,2,2001,"<p> can only be inside <div> in TTML");for(d=(p=u(ai(n,"div"))).next();!d.done;d=p.next())if(ai(d.value,"span").length)throw new De(2,2,2001,"<span> can only be inside <p> in TTML");return(t=function e(t,n,r,i,a,o,s,l,c,p,d){var f=t.parentNode;if(t.nodeType==Node.COMMENT_NODE)return null;if(t.nodeType==Node.TEXT_NODE){if(!d)return null;var h=document.createElement("span");h.textContent=t.textContent}else h=t;for(var g=null,y=u(Qy),v=y.next();!v.done&&!(g=Dy(h,"backgroundImage",i,"#",v.value)[0]);v=y.next());y=d,("p"==t.nodeName||g)&&(d=!0);if(l="default"==(h.getAttribute("xml:space")||(l?"default":"preserve")),v=Array.from(h.childNodes).every((function(e){return e.nodeType==Node.TEXT_NODE})),t=[],!v)for(var m=u(h.childNodes),b=m.next();!b.done;b=m.next())(b=e(b.value,n,r,i,a,o,s,l,c,h,d))&&t.push(b);i=null!=p,m=/\S/.test(h.textContent);var _=h.hasAttribute("begin")||h.hasAttribute("end")||h.hasAttribute("dur");if(!(_||m||"br"==h.tagName||0!=t.length||i&&!l))return null;for(b=Oy(h,r),m=b.start,b=b.end;f&&f.nodeType==Node.ELEMENT_NODE&&"tt"!=f.tagName;)b=Ry(f,r,m,b),m=b.start,b=b.end,f=f.parentNode;if(null==m&&(m=0),m+=n.periodStart,b=null==b?1/0:b+n.periodStart,m=Math.max(m,n.segmentStart),b=Math.min(b,n.segmentEnd),!_&&0<t.length)for(m=1/0,b=0,n=u(t),r=n.next();!r.done;r=n.next())r=r.value,m=Math.min(m,r.startTime),b=Math.max(b,r.endTime);if("br"==h.tagName)return(a=new ie(m,b,"")).lineBreak=!0,a;if(n="",v&&(n=h.textContent,l&&(n=(n=n.trim()).replace(/\s+/g," "))),(n=new ie(m,b,n)).nestedCues=t,d||(n.isContainer=!0),c&&(n.cellResolution=c),c=Dy(h,"region",o,"")[0],h.hasAttribute("region")&&c&&c.getAttribute("xml:id")){var E=c.getAttribute("xml:id");n.region=s.filter((function(e){return e.id==E}))[0]}return s=c,p&&i&&!h.getAttribute("region")&&!h.getAttribute("style")&&(s=Dy(p,"region",o,"")[0]),function(e,t,n,r,i,a,o){"rtl"==Cy(t,n,i,"direction",a=a||o)&&(e.direction="rtl"),"tb"==(o=Cy(t,n,i,"writingMode",a))||"tblr"==o?e.writingMode="vertical-lr":"tbrl"==o?e.writingMode="vertical-rl":"rltb"==o||"rl"==o?e.direction="rtl":o&&(e.direction=pe),(o=Cy(t,n,i,"textAlign",!0))?(e.positionAlign=qy[o],e.lineAlign=Yy[o],e.textAlign=le[o.toUpperCase()]):e.textAlign=se,(o=Cy(t,n,i,"displayAlign",!0))&&(e.displayAlign=ce[o.toUpperCase()]);(o=Cy(t,n,i,"color",a))&&(e.color=o);(o=Cy(t,n,i,"backgroundColor",a))&&(e.backgroundColor=o);(o=Cy(t,n,i,"border",a))&&(e.border=o);if(o=Cy(t,n,i,"fontFamily",a))switch(o){case"monospaceSerif":e.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":e.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":e.fontFamily="sans-serif";break;case"monospaceSansSerif":e.fontFamily="Consolas,monospace";break;case"proportionalSerif":e.fontFamily="serif";break;default:e.fontFamily=o}(o=Cy(t,n,i,"fontWeight",a))&&"bold"==o&&(e.fontWeight=700),o=Cy(t,n,i,"wrapOption",a),e.wrapLine=!o||"noWrap"!=o,(o=Cy(t,n,i,"lineHeight",a))&&o.match(jy)&&(e.lineHeight=o),(o=Cy(t,n,i,"fontSize",a))&&(o.match(jy)||o.match(Fy))&&(e.fontSize=o),(o=Cy(t,n,i,"fontStyle",a))&&(e.fontStyle=_e[o.toUpperCase()]);if(r){o=r.getAttribute("imageType")||r.getAttribute("imagetype");var s=r.getAttribute("encoding");r=r.textContent.trim(),"PNG"==o&&"Base64"==s&&r&&(e.backgroundImage="data:image/png;base64,"+r)}(r=Cy(t,n,i,"textOutline",a))&&((r=r.split(" "))[0].match(jy)?e.textStrokeColor=e.color:(e.textStrokeColor=r[0],r.shift()),r[0]&&r[0].match(jy)?e.textStrokeWidth=r[0]:e.textStrokeColor="");(r=Cy(t,n,i,"letterSpacing",a))&&r.match(jy)&&(e.letterSpacing=r),(r=Cy(t,n,i,"linePadding",a))&&r.match(jy)&&(e.linePadding=r),(a=Cy(t,n,i,"opacity",a))&&(e.opacity=parseFloat(a));(n=xy(n,i,"textDecoration"))&&Sy(e,n),(t=Iy(t,i,"textDecoration"))&&Sy(e,t)}(n,h,s,g,a,y,0==t.length),n}(n,t,i,a,o,r,s,c,l,null,!1))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e},B("shaka.text.TtmlTextParser",wy),wy.prototype.parseMedia=wy.prototype.parseMedia,wy.prototype.setSequenceMode=wy.prototype.setSequenceMode,wy.prototype.parseInit=wy.prototype.parseInit;var Uy=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Fy=/^(\d{1,2}(?:\.\d+)?|100)%$/,jy=/^(\d+px|\d+em|\d*\.?\d+c)$/,By=/^(\d+)px (\d+)px$/,Vy=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Hy=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Ky=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Gy=/^(\d*(?:\.\d*)?)f$/,zy=/^(\d*(?:\.\d*)?)t$/,Wy=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),Yy={left:he,center:"center",right:"end",start:he,end:"end"},qy={left:"line-left",center:"center",right:"line-right"},Xy=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],$y=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Qy=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function Zy(){this.g=new wy}function Jy(){this.g=!1}function ev(e){for(var t=u(Object.entries(ye)),n=t.next();!n.done;n=t.next()){var r=u(n.value);n=r.next().value,r=r.next().value;var i=new ie(0,0,"");i.color=r,e.set("."+n,i)}for(n=(t=u(Object.entries(ve))).next();!n.done;n=t.next())n=(r=u(n.value)).next().value,r=r.next().value,(i=new ie(0,0,"")).backgroundColor=r,e.set("."+n,i)}function tv(e,t,n){0===n.size&&ev(n);e:{var r=e;e=[];for(var i=-1,a="",o=0;o<r.length;o++)if("/"===r[o]&&0<o&&"<"===r[o-1]){var s=r.indexOf(">",o);if(s<=o){e=r;break e}if((s=r.substring(o+1,s))&&"c"===s){var l=e.pop();l?l===s?(a+="/"+s+">",o+=s.length+1):l.startsWith("c.")?(o+=s.length+1,a+="/"+l+">"):a+=r[o]:a+=r[o]}else a+=r[o]}else"<"===r[o]?"c"!=r[i=o+1]&&(i=-1):">"===r[o]&&0<i&&(e.push(r.substr(i,o-i)),i=-1),a+=r[o];e=a}for(r=[],a=-1,i=0;i<e.length;i++)"<"===e[i]?a=i+1:">"===e[i]&&0<a&&((a=e.substr(a,i-a)).match(sv)&&r.push(a),a=-1);for(i=(r=u(r)).next();!i.done;i=r.next())i=i.value,e=e.replace("<"+i+">",'<div time="'+i+'">'),e+="</div>";e:{for(i=e,a=[],o=-1,r="",e=!1,s=0;s<i.length;s++)if("/"===i[s]){if(-1===(l=i.indexOf(">",s))){e=i;break e}if((l=i.substring(s+1,l))&&"v"==l){e=!0;var c=null;if(a.length&&(c=a[a.length-1]),c){if(c===l)r+="/"+l+">";else{if(!c.startsWith("v")){r+=i[s];continue}r+="/"+c+">"}s+=l.length+1}else r+=i[s]}else r+=i[s]}else"<"===i[s]?"v"!=i[o=s+1]&&(o=-1):">"===i[s]&&0<o&&(a.push(i.substr(o,s-o)),o=-1),r+=i[s];for(a=(i=u(a)).next();!a.done;a=i.next())o=(a=a.value).replace(" ",".voice-"),r=(r=r.replace("<"+a+">","<"+o+">")).replace("</"+a+">","</"+o+">"),e||(r+="</"+o+">");e=r}if(i=_i("<span>"+e+"</span>","span")){if(r=[],1==(i=i.childNodes).length&&((a=i[0]).nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE))return void(t.payload=ov(e));for(i=(e=u(i)).next();!i.done;i=e.next())rv(i.value,t,r,n);t.nestedCues=r}else t.payload=ov(e)}function nv(e,t){return e&&0<e.length?e:t}function rv(e,t,n,r){var i=t.clone();if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName)for(var a=u(e.nodeName.split(/(?=[ .])+/g)),o=a.next();!o.done;o=a.next()){var s=o=o.value;if(s.startsWith(".voice-")){var l=s.split("-").pop();s='v[voice="'+l+'"]',r.has(s)||(s="v[voice="+l+"]")}switch(r.has(s)&&(s=r.get(s))&&(i.backgroundColor=nv(s.backgroundColor,i.backgroundColor),i.color=nv(s.color,i.color),i.fontFamily=nv(s.fontFamily,i.fontFamily),i.fontSize=nv(s.fontSize,i.fontSize),i.fontWeight=s.fontWeight,i.fontStyle=s.fontStyle,i.opacity=s.opacity,i.wrapLine=s.wrapLine),o){case"br":(o=t.clone()).lineBreak=!0,n.push(o);break;case"b":i.fontWeight=700;break;case"i":i.fontStyle="italic";break;case"u":i.textDecoration.push("underline");break;case"div":(o=e.getAttribute("time"))&&(o=av(new Cd(o)))&&(i.startTime=o)}}if(ci(e))for(a=!0,r=u(e.textContent.split("\n")),e=r.next();!e.done;e=r.next())e=e.value,a||((a=t.clone()).lineBreak=!0,n.push(a)),0<e.length&&((a=i.clone()).payload=ov(e),n.push(a)),a=!1;else for(e=(t=u(e.childNodes)).next();!e.done;e=t.next())rv(e.value,i,n,r)}function iv(e,t,n){var r;(r=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=r[1],e.textAlign="middle"==t?se:le[t.toUpperCase()]):(r=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==r[1]?"vertical-lr":"vertical-rl":(r=/^size:([\d.]+)%$/.exec(t))?e.size=Number(r[1]):(r=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(t))?(e.position=Number(r[1]),r[2]&&(t=r[2],e.positionAlign="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center")):(r=/^region:(.*)$/.exec(t))?(t=function(e,t){return(e=e.filter((function(e){return e.id==t}))).length?e[0]:null}(n,r[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=ge[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=fe,e.line=Number(n[1]),n[2]&&(e.lineAlign=ge[n[2].toUpperCase()]))}function av(e){if(null==(e=Id(e,sv)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function ov(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&lrm;":"‎","&rlm;":"‏"},n=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,r=RegExp(n.source);return e&&r.test(e)?e.replace(n,(function(e){return t[e]||"'"})):e||""}Jt["application/ttml+xml"]=function(){return new wy},Zy.prototype.parseInit=function(e){var t=!1;if((new zr).box("moov",Wr).box("trak",Wr).box("mdia",Wr).box("minf",Wr).box("stbl",Wr).P("stsd",Yr).box("stpp",(function(e){t=!0,e.parser.stop()})).parse(e),!t)throw new De(2,2,2007)},Zy.prototype.setSequenceMode=function(){},Zy.prototype.parseMedia=function(e,t){var n=this,r=!1,i=[];if((new zr).box("mdat",Xr((function(e){r=!0,i=i.concat(n.g.parseMedia(e,t))}))).parse(e,!1),!r)throw new De(2,2,2007);return i},B("shaka.text.Mp4TtmlParser",Zy),Zy.prototype.parseMedia=Zy.prototype.parseMedia,Zy.prototype.setSequenceMode=Zy.prototype.setSequenceMode,Zy.prototype.parseInit=Zy.prototype.parseInit,Jt['application/mp4; codecs="stpp"']=function(){return new Zy},Jt['application/mp4; codecs="stpp.ttml"']=function(){return new Zy},Jt['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Zy},Jt['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Zy},Jy.prototype.parseInit=function(){},Jy.prototype.setSequenceMode=function(e){this.g=e},Jy.prototype.parseMedia=function(e,t){var n=(e=(e=Et(e)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new De(2,2,2e3);if(e=t.vttOffset,n[0].includes("X-TIMESTAMP-MAP")&&this.g){var r=n[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),i=n[0].match(/MPEGTS:(\d+)/m);if(r&&i){if(null==(e=av(new Cd(r[1]))))throw new De(2,2,2e3);for(i=Number(i[1]),r=t.segmentStart-t.periodStart;95443.7176888889<=r;)r-=95443.7176888889,i+=8589934592;e=t.periodStart+i/9e4-e}}for(t=[],r=(i=u(n[0].split("\n"))).next();!r.done;r=i.next())if(r=r.value,/^Region:/.test(r)){r=new Cd(r);var a=new Ee;Pd(r),xd(r);for(var o=Pd(r);o;){var s=a,l=o;(o=/^id=(.*)$/.exec(l))?s.id=o[1]:(o=/^width=(\d{1,2}|100)%$/.exec(l))?s.width=Number(o[1]):(o=/^lines=(\d+)$/.exec(l))?(s.height=Number(o[1]),s.heightUnits=2):(o=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(l))?(s.regionAnchorX=Number(o[1]),s.regionAnchorY=Number(o[2])):(o=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(l))?(s.viewportAnchorX=Number(o[1]),s.viewportAnchorY=Number(o[2])):/^scroll=up$/.exec(l)&&(s.scroll="up"),xd(r),o=Pd(r)}t.push(a)}for(ev(i=new Map),r=[],a=(n=u(n.slice(1))).next();!a.done;a=n.next()){if((1!=(a=a.value.split("\n")).length||a[0])&&!/^NOTE($|[ \t])/.test(a[0])&&"STYLE"==a[0]){for(s=[],o=-1,l=1;l<a.length;l++)a[l].includes("::cue")&&(s.push([]),o=s.length-1),-1!=o&&(s[o].push(a[l]),a[l].includes("}")&&(o=-1));for(o=(s=u(s)).next();!o.done;o=s.next()){var c=o.value;o="global",(l=c[0].match(/\((.*)\)/))&&(o=l.pop()),l=c.slice(1,-1),c[0].includes("}")&&(c=/\{(.*?)\}/.exec(c[0]))&&(l=c[1].split(";")),(c=i.get(o))||(c=new ie(0,0,""));for(var p=!1,d=0;d<l.length;d++){var f=/^\s*([^:]+):\s*(.*)/.exec(l[d]);if(f){var h=f[2].trim().replace(";","");switch(f[1].trim()){case"background-color":case"background":p=!0,c.backgroundColor=h;break;case"color":p=!0,c.color=h;break;case"font-family":p=!0,c.fontFamily=h;break;case"font-size":p=!0,c.fontSize=h;break;case"font-weight":(700<=parseInt(h,10)||"bold"==h)&&(p=!0,c.fontWeight=700);break;case"font-style":switch(h){case"normal":p=!0,c.fontStyle=be;break;case"italic":p=!0,c.fontStyle="italic";break;case"oblique":p=!0,c.fontStyle="oblique"}break;case"opacity":p=!0,c.opacity=parseFloat(h);break;case"text-shadow":p=!0,c.textShadow=h;break;case"white-space":p=!0,c.wrapLine="noWrap"!=h}}}p&&i.set(o,c)}}if(p=e,1==a.length&&!a[0]||/^NOTE($|[ \t])/.test(a[0])||"STYLE"==a[0]||"REGION"==a[0])a=null;else{if(s=null,a[0].includes("--\x3e")||(s=a[0],a.splice(0,1)),l=av(o=new Cd(a[0])),d=Id(o,/[ \t]+--\x3e[ \t]+/g),c=av(o),null==l||null==d||null==c)throw new De(2,2,2001,"Could not parse cue time range in WebVTT");for(l+=p,c+=p,p=a.slice(1).join("\n").trim(),i.has("global")?((a=i.get("global").clone()).startTime=l,a.endTime=c,a.payload=""):a=new ie(l,c,""),tv(p,a,i),xd(o),l=Pd(o);l;)iv(a,l,t),xd(o),l=Pd(o);null!=s&&(a.id=s)}a&&r.push(a)}return r},B("shaka.text.VttTextParser",Jy),Jy.prototype.parseMedia=Jy.prototype.parseMedia,Jy.prototype.setSequenceMode=Jy.prototype.setSequenceMode,Jy.prototype.parseInit=Jy.prototype.parseInit;var sv=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function lv(){this.g=null}function uv(e,t,n){var r,i,a;return(new zr).box("payl",Xr((function(e){r=Et(e)}))).box("iden",Xr((function(e){i=Et(e)}))).box("sttg",Xr((function(e){a=Et(e)}))).parse(e),r?function(e,t,n,r,i){if(r=new ie(r,i,""),tv(e,r,new Map),t&&(r.id=t),n)for(e=new Cd(n),t=Pd(e);t;)iv(r,t,[]),xd(e),t=Pd(e);return r}(r,i,a,t,n):null}function cv(){}function pv(e){if(null==(e=Id(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function dv(){this.g=new Jy}function fv(e){var t="WEBVTT\n\n";if(""==e)return t;for(var n=(e=u((e=(e=e.replace(/\r+/g,"")).trim()).split("\n\n"))).next();!n.done;n=e.next())(n=n.value.split(/\n/))[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join("\n")+"\n\n";return t}function hv(){}function gv(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=yv(n))&&(e.color=n),(n=t.BackColour)&&(n=yv(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=700),t.Italic&&(e.fontStyle="italic"),t.Underline&&e.textDecoration.push("underline"),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=ue,e.textAlign="start";break;case 2:e.displayAlign=ue,e.textAlign=se;break;case 3:e.displayAlign=ue,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=se;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=se;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}function yv(e){return 0<=(e=parseInt(e.replace("&H",""),16))?"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function vv(e){return 3600*((e=Tv.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Jt["text/vtt"]=function(){return new Jy},Jt['text/vtt; codecs="vtt"']=function(){return new Jy},Jt['text/vtt; codecs="wvtt"']=function(){return new Jy},lv.prototype.parseInit=function(e){var t=this,n=!1;if((new zr).box("moov",Wr).box("trak",Wr).box("mdia",Wr).P("mdhd",(function(e){e=io(e.reader,e.version),t.g=e.timescale})).box("minf",Wr).box("stbl",Wr).P("stsd",Yr).box("wvtt",(function(){n=!0})).parse(e),!this.g)throw new De(2,2,2008);if(!n)throw new De(2,2,2008)},lv.prototype.setSequenceMode=function(){},lv.prototype.parseMedia=function(e,t){if(!this.g)throw new De(2,2,2008);var n,r=0,i=[],a=[],o=!1,s=!1,l=!1,c=null;if((new zr).box("moof",Wr).box("traf",Wr).P("tfdt",(function(e){o=!0,r=ro(e.reader,e.version).we})).P("tfhd",(function(e){c=no(e.reader,e.flags).Ce})).P("trun",(function(e){s=!0,i=ao(e.reader,e.version,e.flags).Re})).box("mdat",Xr((function(e){l=!0,n=e}))).parse(e,!1),!l&&!o&&!s)throw new De(2,2,2008);e=r;for(var p=new Hr(n,0),d=u(i),f=d.next();!f.done;f=d.next()){var h=(f=f.value).ee||c,g=f.ed?r+f.ed:e;e=g+(h||0);var y=0;do{var v=p.K();y+=v;var m=null;"vttc"==Qr(p.K())?8<v&&(m=p.Za(v-8)):p.skip(v-8),h&&m&&(v=uv(m,t.periodStart+g/this.g,t.periodStart+e/this.g),a.push(v))}while(f.sampleSize&&y<f.sampleSize)}return a.filter(Xe)},B("shaka.text.Mp4VttParser",lv),lv.prototype.parseMedia=lv.prototype.parseMedia,lv.prototype.setSequenceMode=lv.prototype.setSequenceMode,lv.prototype.parseInit=lv.prototype.parseInit,Jt['application/mp4; codecs="wvtt"']=function(){return new lv},cv.prototype.parseInit=function(){},cv.prototype.setSequenceMode=function(){},cv.prototype.parseMedia=function(e){var t=Et(e).replace(/\r+/g,"");if(e=[],""==(t=t.trim()))return e;for(var n=(t=u(t.split("\n\n"))).next();!n.done;n=t.next()){var r=new Cd((n=n.value.split("\n"))[0]),i=pv(r),a=Id(r,/,/g);if(r=pv(r),null==i||null==a||null==r)throw new De(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new ie(i,r,n.slice(1).join("\n").trim()))}return e},B("shaka.text.SbvTextParser",cv),cv.prototype.parseMedia=cv.prototype.parseMedia,cv.prototype.setSequenceMode=cv.prototype.setSequenceMode,cv.prototype.parseInit=cv.prototype.parseInit,Jt["text/x-subviewer"]=function(){return new cv},dv.prototype.parseInit=function(){},dv.prototype.setSequenceMode=function(){},dv.prototype.parseMedia=function(e,t){return e=xe(At(e=fv(e=Et(e)))),this.g.parseMedia(e,t)},B("shaka.text.SrtTextParser",dv),dv.srt2webvtt=fv,dv.prototype.parseMedia=dv.prototype.parseMedia,dv.prototype.setSequenceMode=dv.prototype.setSequenceMode,dv.prototype.parseInit=dv.prototype.parseInit,Jt["text/srt"]=function(){return new dv},hv.prototype.parseInit=function(){},hv.prototype.setSequenceMode=function(){},hv.prototype.parseMedia=function(e){for(var t="",n="",r=(e=u(e=Et(e).split(/\r?\n\s*\r?\n/))).next();!r.done;r=e.next()){var i=_v.exec(r.value);i&&(r=i[1],i=i[2],"V4 Styles"==r||"V4+ Styles"==r?t=i:"Events"==r&&(n=i))}e=[],r=null;for(var a=(t=u(t.split(/\r?\n/))).next();!a.done;a=t.next())if(i=a.value,!/^\s*;/.test(i)&&(a=Ev.exec(i)))if(i=a[1].trim(),a=a[2].trim(),"Format"==i)r=a.split(kv);else if("Style"==i){i=a.split(kv),a={};for(var o=0;o<r.length&&o<i.length;o++)a[r[o]]=i[o];e.push(a)}for(r=[],t=null,i={},a=(n=u(n.split(/\r?\n/))).next();!a.done;i={vd:i.vd},a=n.next())if(a=a.value,!/^\s*;/.test(a)&&(o=Ev.exec(a)))if(a=o[1].trim(),o=o[2].trim(),"Format"==a)t=o.split(kv);else if("Dialogue"==a){o=o.split(kv),a={};for(var s=0;s<t.length&&s<o.length;s++)a[t[s]]=o[s];o=new ie(s=vv(a.Start),vv(a.End),o.slice(t.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,"")),i.vd=a.Style,(a=e.find(function(e){return function(t){return t.Name==e.vd}}(i)))&&gv(o,a),r.push(o)}return r},B("shaka.text.SsaTextParser",hv),hv.prototype.parseMedia=hv.prototype.parseMedia,hv.prototype.setSequenceMode=hv.prototype.setSequenceMode,hv.prototype.parseInit=hv.prototype.parseInit;var mv,bv,_v=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Ev=/^\s*([^:]+):\s*(.*)/,kv=/\s*,\s*/,Tv=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;
/*
 @license
 EME Encryption Scheme Polyfill
 Copyright 2019 Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
function Av(){}function wv(){mv?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(mv=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Sv):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function Sv(e,t){var n,r=this;return R((function(i){return 1==i.g?(console.assert(r==navigator,'bad "this" for requestMediaKeySystemAccess'),_(i,mv.call(r,e,t),2)):Nv(n=i.h)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=mv,i.return(n)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=Cv,i.return(Cv.call(r,e,t)))}))}function Cv(e,t){var n,r,i,a,o,s,l,c,p,d,f=this;return R((function(h){if(1==h.g){for(console.assert(f==navigator,'bad "this" for requestMediaKeySystemAccess'),n=Mv(e),r=[],i=u(t),a=i.next();!a.done;a=i.next())o=a.value,s=xv(o.videoCapabilities,n),l=xv(o.audioCapabilities,n),o.videoCapabilities&&o.videoCapabilities.length&&!s.length||o.audioCapabilities&&o.audioCapabilities.length&&!l.length||((c=Object.assign({},o)).videoCapabilities=s,c.audioCapabilities=l,r.push(c));if(!r.length)throw(p=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",p.code=DOMException.NOT_SUPPORTED_ERR,p;return _(h,mv.call(f,e,r),2)}return d=h.h,h.return(new Lv(d,n))}))}function xv(e,t){return e?e.filter((function(e){return!e.encryptionScheme||e.encryptionScheme==t})):e}function Iv(){}function Pv(){bv?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(bv=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Dv):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function Dv(e){var t,n,r,i=this;return R((function(a){switch(a.g){case 1:return console.assert(i==navigator.mediaCapabilities,'bad "this" for decodingInfo'),_(a,bv.call(i,e),2);case 2:if(t=a.h,!e.keySystemConfiguration)return a.return(t);if((n=t.keySystemAccess)&&Nv(n))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=bv,a.return(t);if(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Rv,n){a.A(3);break}return r=t,_(a,Ov(e),4);case 4:return r.keySystemAccess=a.h,a.return(t);case 3:return a.return(Rv.call(i,e))}}))}function Rv(e){var t,n,r,i,a,o,s,l,u=this;return R((function(c){switch(c.g){case 1:return console.assert(u==navigator.mediaCapabilities,'bad "this" for decodingInfo'),t=null,e.keySystemConfiguration&&(n=e.keySystemConfiguration,r=n.keySystem,i=n.audio&&n.audio.encryptionScheme,a=n.video&&n.video.encryptionScheme,t=Mv(r),o={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},i&&i!=t||a&&a!=t)?c.return(o):_(c,bv.call(u,e),2);case 2:if((s=c.h).keySystemAccess){s.keySystemAccess=new Lv(s.keySystemAccess,t),c.A(3);break}if(!e.keySystemConfiguration){c.A(3);break}return l=s,_(c,Ov(e),5);case 5:l.keySystemAccess=c.h;case 3:return c.return(s)}}))}function Ov(e){var t,n;return R((function(r){if(1==r.g){var i=e.keySystemConfiguration,a=[],o=[];return i.audio&&a.push({robustness:i.audio.robustness||"",contentType:e.audio.contentType}),i.video&&o.push({robustness:i.video.robustness||"",contentType:e.video.contentType}),i={initDataTypes:i.initDataType?[i.initDataType]:[],distinctiveIdentifier:i.distinctiveIdentifier,persistentState:i.persistentState,sessionTypes:i.sessionTypes},a.length&&(i.audioCapabilities=a),o.length&&(i.videoCapabilities=o),t=i,_(r,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[t]),2)}return n=r.h,r.return(n)}))}function Lv(e,t){this.h=e,this.g=t,this.keySystem=e.keySystem}function Mv(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.chromecast")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs-1-9":(console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",e,"Please contribute!"),null)}function Nv(e){var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!(!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)||void 0===e.encryptionScheme)}function Uv(){}function Fv(){wv(),Pv()}Jt["text/x-ssa"]=function(){return new hv},B("EmeEncryptionSchemePolyfill",Av),Av.install=wv,B("McEncryptionSchemePolyfill",Iv),Iv.install=Pv,Lv.prototype.getConfiguration=function(){var e=this.h.getConfiguration();if(e.videoCapabilities)for(var t=u(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.g;if(e.audioCapabilities)for(n=(t=u(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.g;return e},Lv.prototype.createMediaKeys=function(){return this.h.createMediaKeys()},B("EncryptionSchemePolyfills",Uv),Uv.install=Fv,void 0!==n&&n.exports&&(n.exports=Uv)}.call(r,n,n,void 0),r.shaka)t[i]=r.shaka[i]}()}).call(this,n(92))},function(e,t){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?p(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},o._resetCrossOriginUpdater=function(){n=null,r=null},o.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},o.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,o=null;this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(o=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),l(e,"resize",r,!0)),l(t,"scroll",r,!0),o&&o.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=u){var c=i(t);c&&this._monitorIntersections(c.ownerDocument)}}},o.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var a=i(n);if((n=a&&a.ownerDocument)==t)return!0}return!1}))){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var o=i(t);o&&this._unmonitorIntersections(o.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},o.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,o=u(i),s=this._rootContainsTarget(i),l=r.entry,c=e&&s&&this._computeTargetAndRootIntersection(i,o,t),p=null;this._rootContainsTarget(i)?n&&!this.root||(p=t):p={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new a({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:o,rootBounds:p,intersectionRect:c});l?e&&s?this._hasCrossedThreshold(l,d)&&this._queuedEntries.push(d):l&&l.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(t,i,a){if("none"!=window.getComputedStyle(t).display){for(var o,s,l,c,d,h,g,y,v=i,m=f(t),b=!1;!b&&m;){var _=null,E=1==m.nodeType?window.getComputedStyle(m):{};if("none"==E.display)return null;if(m==this.root||9==m.nodeType)if(b=!0,m==this.root||m==e)n&&!this.root?!r||0==r.width&&0==r.height?(m=null,_=null,v=null):_=r:_=a;else{var k=f(m),T=k&&u(k),A=k&&this._computeTargetAndRootIntersection(k,T,a);T&&A?(m=k,_=p(T,A)):(m=null,v=null)}else{var w=m.ownerDocument;m!=w.body&&m!=w.documentElement&&"visible"!=E.overflow&&(_=u(m))}if(_&&(o=_,s=v,l=void 0,c=void 0,d=void 0,h=void 0,g=void 0,y=void 0,l=Math.max(o.top,s.top),c=Math.min(o.bottom,s.bottom),d=Math.max(o.left,s.left),h=Math.min(o.right,s.right),y=c-l,v=(g=h-d)>=0&&y>=0&&{top:l,bottom:c,left:d,right:h,width:g,height:y}||null),!v)break;m=m&&f(m)}return v}},o.prototype._getRootRect=function(){var t;if(this.root&&!h(this.root))t=u(this.root);else{var n=h(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var a=this.thresholds[i];if(a==n||a==r||a<n!=a<r)return!0}},o.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},o.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return d(n,t)&&(!this.root||n==t.ownerDocument)},o.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},o.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=o,window.IntersectionObserverEntry=a}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function a(e){this.time=e.time,this.target=e.target,this.rootBounds=c(e.rootBounds),this.boundingClientRect=c(e.boundingClientRect),this.intersectionRect=c(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function o(e,t){var n,r,i,a=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(a.root&&1!=a.root.nodeType&&9!=a.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){n(),i=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(a.rootMargin),this.thresholds=this._initThresholds(a.threshold),this.root=a.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function u(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function p(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function d(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function h(e){return e&&9===e.nodeType}}()},function(e,t,n){var r=n(321),i=n(322);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var a={insert:"head",singleton:!1};r(i,a);e.exports=i.locals||{}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var a=e[i],l=t.base?a[0]+t.base:a[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var p=s(c),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==p?(o[p].references++,o[p].updater(d)):o.push({identifier:c,updater:y(d,t),references:1}),r.push(c)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=a(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var c,p=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=p(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function f(e,t,n){var r=n.css,i=n.media,a=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,g=0;function y(e,t){var n,r,i;if(t.singleton){var a=g++;n=h||(h=u(t)),r=d.bind(null,n,a,!1),i=d.bind(null,n,a,!0)}else n=u(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);o[i].references--}for(var a=l(e,t),u=0;u<n.length;u++){var c=s(n[u]);0===o[c].references&&(o[c].updater(),o.splice(c,1))}n=a}}}},function(e,t,n){(t=n(323)(!1)).push([e.i,".kaltura-player-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n  background-color: #000;\n  outline: none;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  -webkit-tap-highlight-color: transparent;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(o=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([i]).join("\n")}var o,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";n.r(t),n.d(t,"getPlayers",(function(){return yn})),n.d(t,"getPlayer",(function(){return vn})),n.d(t,"core",(function(){return l})),n.d(t,"ui",(function(){return u})),n.d(t,"providers",(function(){return c})),n.d(t,"setup",(function(){return _n})),n.d(t,"cast",(function(){return xn})),n.d(t,"playlist",(function(){return In})),n.d(t,"Ad",(function(){return At})),n.d(t,"AdBreak",(function(){return Et})),n.d(t,"BasePlugin",(function(){return Z})),n.d(t,"registerPlugin",(function(){return te})),n.d(t,"PLAYER_TYPE",(function(){return Dn})),n.d(t,"VERSION",(function(){return Rn})),n.d(t,"PLAYER_NAME",(function(){return Pn}));var r=n(46);n(312);var i,a,o,s=function(){function e(){}return e.install=function(){[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(e){Object.prototype.hasOwnProperty.call(e,"prepend")||Object.defineProperty(e,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){var n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))})),this.insertBefore(t,this.firstChild)}})}))},e}();i=s,o="prepend",(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a="id"))in i?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o,r.a.register(s);n(313);var l=n(0),u=n(14),c=n(63);n(315),n(317);function p(e,t){var n=function(e){var t=document.createElement("a");return t.href=e,t.hostname},r=n(t),i=!1,a="",o="";return e&&(e.flavors&&Array.isArray(e.flavors)?(a=(i=1===e.flavors.length)&&n(e.flavors[0].url),o=e.flavors[0].url):e.result&&(i=!0,a=n(e.result.url),o=e.result.url)),i&&r!==a?o:t}function d(e,t){void 0===t&&(t={});var n={};if(t.sources&&t.sources.type===l.MediaType.LIVE&&("IE"===l.Env.browser.name||"Chromecast"===l.Env.device.model)){var r=l.Utils.Object.getPropertyPath(e,"sources.options.forceRedirectExternalStreams"),i=l.Utils.Object.getPropertyPath(t,"sources.options.forceRedirectExternalStreams");"boolean"!=typeof r&&"boolean"!=typeof i&&l.Utils.Object.mergeDeep(n,{sources:{options:{forceRedirectExternalStreams:!0}}})}return l.Utils.Object.mergeDeep(n,function(e,t){void 0===t&&(t={});var n={},r=l.Utils.Object.getPropertyPath(e,"sources.options.redirectExternalStreamsHandler"),i=l.Utils.Object.getPropertyPath(t,"sources.options.redirectExternalStreamsHandler");return"function"!=typeof r&&"function"!=typeof i&&l.Utils.Object.mergeDeep(n,{sources:{options:{redirectExternalStreamsHandler:p}}}),n}(e,t))}var f="Must provide initial providers config",h="Must provide target id",g="Must provide DOM element with id of: ",y="The target id provided is already in use. Id: ";function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var b="@playkit-js/kaltura-player-js_",_=function(){function e(){}var t,n,r;return e.isLocalStorageAvailable=function(){if("undefined"==typeof Storage)return!1;try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return!1}},e.setItem=function(t,n){e._validateKey(t);try{e._logger.debug("Sets item for key: "+t,n),localStorage.setItem(b+t,n)}catch(t){e._isQuotaExceeded(t)?e._logger.error("Quota exceeded: "+t.message):e._logger.error(t.message)}},e.getItem=function(t){e._validateKey(t);var n=null;try{return"string"==typeof(n=localStorage.getItem(b+t))?JSON.parse(n):null}catch(e){return n}},e._isQuotaExceeded=function(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t},e._validateKey=function(e){if("string"!=typeof e||0===e.length)throw new Error("Invalid key")},t=e,r=[{key:"size",get:function(){return Object.keys(localStorage).filter((function(e){return e.startsWith(b)})).length}}],(n=null)&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,t,n){(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(_,"_logger",Object(l.getLogger)("StorageWrapper"));var k=function(){function e(){}return e.isLocalStorageAvailable=function(){return _.isLocalStorageAvailable()},e.attach=function(t){e._logger.debug("Attach local storage");var n=new l.EventManager;n.listen(t,t.Event.UI.USER_CLICKED_MUTE,(function(){t.isCasting()||_.setItem(e.StorageKeys.MUTED,t.muted)})),n.listen(t,t.Event.UI.USER_CLICKED_UNMUTE,(function(){t.isCasting()||_.setItem(e.StorageKeys.MUTED,t.muted)})),n.listen(t,t.Event.UI.USER_CHANGED_VOLUME,(function(){t.isCasting()||(t.volume>0?_.setItem(e.StorageKeys.MUTED,!1):_.setItem(e.StorageKeys.MUTED,!0),_.setItem(e.StorageKeys.VOLUME,t.volume))})),n.listen(t,t.Event.UI.USER_SELECTED_AUDIO_TRACK,(function(t){var n=t.payload.audioTrack;_.setItem(e.StorageKeys.AUDIO_LANG,n.language)})),n.listen(t,t.Event.UI.USER_SELECTED_CAPTION_TRACK,(function(t){var n=t.payload.captionTrack;_.setItem(e.StorageKeys.TEXT_LANG,n.language)}));var r=function(){n.listenOnce(t,t.Event.TEXT_TRACK_CHANGED,(function(t){var n=t.payload.selectedTextTrack;_.setItem(e.StorageKeys.TEXT_LANG,n.language)}))};n.listen(t,t.Event.UI.USER_SHOWED_CAPTIONS,r),n.listen(t,t.Event.UI.USER_HID_CAPTIONS,r),n.listen(t,t.Event.UI.USER_SELECTED_CAPTIONS_STYLE,(function(t){try{var n=JSON.stringify(t.payload.captionsStyle);_.setItem(e.StorageKeys.TEXT_STYLE,n)}catch(t){e._logger.error(t.message)}})),n.listen(t,t.Event.PLAYER_DESTROY,(function(){return n.destroy()}))},e.getPlayerTextStyle=function(){return _.getItem(e.StorageKeys.TEXT_STYLE)},e.hasStorage=function(){var t=_.size,n=0!==t;return n?e._logger.debug("Storage found with size of ",t):e._logger.debug("No storage found"),n},e.getStorageConfig=function(){var t=e._getExistingValues(),n=e._buildStorageConfig(t);return e._logger.debug("Gets storage config",n),n},e._getExistingValues=function(){var t={};return Object.keys(e.StorageKeys).forEach((function(n){var r=e.StorageKeys[n],i=_.getItem(r);null!=i&&(t[r]=i)})),t},e._buildStorageConfig=function(e){var t=l.Utils.Object.mergeDeep({},e);return delete t.textStyle,{playback:t}},e}();E(k,"StorageKeys",{MUTED:"muted",VOLUME:"volume",AUDIO_LANG:"audioLanguage",TEXT_LANG:"textLanguage",TEXT_STYLE:"textStyle"}),E(k,"_logger",Object(l.getLogger)("StorageManager"));var T="kaltura.com",A="custom_data=",w="signature=";function S(e,t){e.config.session&&e.config.session.id?function(e,t){var n=/:((?:[a-z0-9]|-)*)/i.exec(e.config.session.id);n&&n[1]&&C(t,e.config.session.id.replace(n[1],l.Utils.Generator.guid()))}(e,t):function(e){var t=l.Utils.Generator.guid(),n=l.Utils.Generator.guid();C(e,t+":"+n)}(t)}function C(e,t){e.session=e.session||{},e.session.id=t}function x(e,t,n){if(void 0===n&&(n="playSessionId="),t){var r=new RegExp(n+"((?:[a-z0-9]|-)*:(?:[a-z0-9]|-)*)","i").exec(e);r&&r[1]?e=e.replace(r[1],t):e+=D(e)+n+t}return e}function I(){var e;try{e=window.parent.document.URL}catch(t){e=document.referrer}return e}function P(e){if(-1===e.indexOf("referrer=")){var t=btoa(I().substr(0,1e3));e+=D(e)+"referrer="+t}return e}function D(e){return-1===e.indexOf("?")?"?":"&"}function R(e,t){return-1===e.indexOf("clientTag=html5:v")&&(e+=D(e)+"clientTag=html5:v"+(t||"3.14.4")),e}function O(e,t){var n;S(e,t);var r=t.sources,i=t.session&&t.session.id,a=null==(n=K())?void 0:n.productVersion;Object.values(l.StreamType).forEach((function(e){r[e]&&r[e].forEach((function(e){"string"==typeof e.url&&e.url.toLowerCase().indexOf("playmanifest/")>-1&&!e.localSource&&(e.url=x(e.url,i),e.url=P(e.url),e.url=R(e.url,a)),e.drmData&&e.drmData.length&&e.drmData.forEach((function(e){"string"==typeof e.licenseUrl&&[T,A,w].every((function(t){return e.licenseUrl.includes(t)}))&&(e.licenseUrl=x(e.licenseUrl,i,"sessionId="),e.licenseUrl=R(e.licenseUrl,a),e.licenseUrl=P(e.licenseUrl),e.licenseUrl=function(e,t){var n=l.Utils.Object.getPropertyPath(t,"provider.uiConfId");return-1===e.indexOf("uiConfId=")&&"number"==typeof n&&(e+=D(e)+"uiConfId="+n),e}(e.licenseUrl,t))}))}))}))}n(319);var L=function(){function e(e){void 0===e&&(e={}),e.observedThresholds=e.observedThresholds||U,e.playerThreshold="number"==typeof e.playerThreshold?e.playerThreshold:F,this._config=e,this._eventManager=new l.EventManager,this._targetsObserved=new l.Utils.MultiMap;var t={threshold:e.observedThresholds.map((function(e){return e/100}))};this._observer=new window.IntersectionObserver(this._intersectionChangedHandler.bind(this),t),this._initTabVisibility()}var t=e.prototype;return t._intersectionChangedHandler=function(e){var t=this;e.forEach((function(e){t._targetsObserved.get(e.target).forEach((function(t){var n=e.intersectionRatio>=t.threshold;t.lastIntersectionRatio=e.intersectionRatio,n!==t.lastVisible&&(t.lastVisible=n,t.listener(n,M.VIEWPORT))}))}))},t._handleTabVisibilityChange=function(){var e=this;this._isTabVisible=!document[this._visibilityTabHiddenAttr],this._targetsObserved.getAll().forEach((function(t){t.lastVisible&&t.listener(e._isTabVisible,M.TAB)}))},t._initTabVisibility=function(){void 0!==document.hidden?(this._visibilityTabHiddenAttr="hidden",this._visibilityTabChangeEventName="visibilitychange"):void 0!==document.msHidden?(this._visibilityTabHiddenAttr="msHidden",this._visibilityTabChangeEventName="msvisibilitychange"):void 0!==document.webkitHidden&&(this._visibilityTabHiddenAttr="webkitHidden",this._visibilityTabChangeEventName="webkitvisibilitychange"),this._visibilityTabHiddenAttr&&this._visibilityTabChangeEventName&&(this._eventManager.listen(document,this._visibilityTabChangeEventName,this._handleTabVisibilityChange.bind(this)),this._isTabVisible=!document[this._visibilityTabHiddenAttr])},t.observe=function(e,t,n){if(this._observer){var r="number"==typeof n?n:this._config.playerThreshold,i=new N(r/100,t);if(this._targetsObserved.has(e)){var a=this._targetsObserved.get(e)[0].lastIntersectionRatio;void 0!==a&&(i.lastIntersectionRatio=a,i.listener(this._isTabVisible&&a>=i.threshold,M.VIEWPORT))}else this._observer.observe(e);this._targetsObserved.push(e,i)}},t.unObserve=function(e,t){this._observer&&(this._targetsObserved.remove(e,t),this._targetsObserved.has(e)||this._observer.unobserve(e))},t.destroy=function(){this._observer&&(this._eventManager.destroy(),this._observer.disconnect(),this._targetsObserved.clear())},e}(),M={VIEWPORT:"viewport",TAB:"tab"},N=function(e,t){this.threshold=e,this.listener=t},U=[0,10,20,30,40,50,60,70,80,90,100],F=50,j=[];function B(e){if(!e)throw new Error(f);!function(e){if(!e)throw new Error(h);var t=document.getElementById(e);if(!t)throw new Error(g+e);if(t.getElementsByClassName("kaltura-player-container").length>0)throw new Error(y+e)}(e.targetId)}function V(e){l.Utils.Object.getPropertyPath(e,"ui.log")||l.Utils.Object.createPropertyPath(e,"ui.log",{}),l.Utils.Object.getPropertyPath(e,"provider.log")||l.Utils.Object.createPropertyPath(e,"provider.log",{}),l.Utils.Object.getPropertyPath(e,"log")||l.Utils.Object.createPropertyPath(e,"log",{}),e.log&&"function"==typeof e.log.handler&&(Object(l.setLogHandler)(e.log.handler),e.ui.log.handler=e.provider.log.handler=e.log.handler);var t=l.LogLevel.ERROR;!e.log||!0!==window.DEBUG_KALTURA_PLAYER&&""!==H("debugKalturaPlayer")?e.log&&e.log.level&&l.LogLevel[e.log.level]&&(t=l.LogLevel[e.log.level]):(t=l.LogLevel.DEBUG,e.log.level=l.LogLevel.DEBUG.name),e.ui.log.level=e.provider.log.level=t.name,Object(l.setLogLevel)(t)}function H(e){var t;window.URLSearchParams?t=new URLSearchParams(window.location.search).get(e):t=function(e){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search),n=location.search.indexOf(e)>-1;return null===t?n?"":null:decodeURIComponent(t[1].replace(/\+/g," "))}(e);return t}function K(){return window.__kalturaplayerdata||{}}function G(e){var t=function(e){var t=document.createElement("div");t.id=l.Utils.Generator.uniqueId(5),t.className="kaltura-player-container",t.setAttribute("tabindex","-1");var n=document.getElementById(e);return n&&t&&n.appendChild(t),t.id}(e.targetId),n={targetId:e.targetId,provider:{partnerId:e.provider.partnerId},ui:{targetId:t},plugins:{},advertising:{adBreaks:[]},viewability:{observedThresholds:U,playerThreshold:F}};if(l.Utils.Object.mergeDeep(n,e),!e.provider.ignoreServerConfig){var r=l.Utils.Object.copyDeep(K());delete r.productVersion,n=l.Utils.Object.mergeDeep({},z(r),n)}return function(e){if(l.Env.isMacOS&&l.Env.isSafari||l.Env.isIOS){"boolean"!=typeof l.Utils.Object.getPropertyPath(e,"playback.preferNative.hls")&&l.Utils.Object.mergeDeep(e,{playback:{preferNative:{hls:!0}}})}}(n),function(e){if(l.Env.isMacOS&&l.Env.isSafari||l.Env.isIOS){"boolean"!=typeof l.Utils.Object.getPropertyPath(e,"text.useNativeTextTrack")&&l.Utils.Object.mergeDeep(e,{text:{useNativeTextTrack:!0}})}}(n),function(e){var t=l.Utils.Object.getPropertyPath(e,"plugins.kava");t||(t=l.Utils.Object.mergeDeep(e,{plugins:{kava:{}}}))}(n),function(e){if(l.Env.isSmartTV){if(Object(l.setCapabilities)(l.EngineType.HTML5,{autoplay:!0}),function(e){"boolean"!=typeof l.Utils.Object.getPropertyPath(e,"playback.playAdsWithMSE")&&(e=l.Utils.Object.createPropertyPath(e,"playback.playAdsWithMSE",!0));var t=l.Utils.Object.getPropertyPath(e,"plugins.ima.disableMediaPreload"),n=l.Utils.Object.getPropertyPath(e,"plugins.bumper.disableMediaPreload");e.plugins&&e.plugins.ima&&"boolean"!=typeof t&&(e=l.Utils.Object.createPropertyPath(e,"plugins.ima.disableMediaPreload",!0));e.plugins&&e.plugins.bumper&&"boolean"!=typeof n&&(e=l.Utils.Object.createPropertyPath(e,"plugins.bumper.disableMediaPreload",!0))}(e),function(e){"boolean"!=typeof l.Utils.Object.getPropertyPath(e,"playback.options.html5.hls.liveSyncDurationCount")&&l.Env.isSafari&&(e=l.Utils.Object.createPropertyPath(e,"playback.options.html5.hls.liveSyncDurationCount",2))}(e),e.plugins&&e.plugins.ima){var t=l.Utils.Object.getPropertyPath(e,"plugins.ima.forceReloadMediaAfterAds"),n=l.Utils.Object.getPropertyPath(e,"plugins.ima.delayInitUntilSourceSelected");"boolean"!=typeof t&&(e=l.Utils.Object.createPropertyPath(e,"plugins.ima.forceReloadMediaAfterAds",!0)),"boolean"!=typeof n&&(e=l.Utils.Object.createPropertyPath(e,"plugins.ima.delayInitUntilSourceSelected",!0))}if(e.plugins&&e.plugins.youbora)"number"!=typeof l.Utils.Object.getPropertyPath(e,"plugins.youbora.playheadMonitorInterval")&&(e=l.Utils.Object.createPropertyPath(e,"plugins.youbora.playheadMonitorInterval",2e3));"boolean"!=typeof l.Utils.Object.getPropertyPath(e,"streaming.lowLatencyMode")&&(e=l.Utils.Object.createPropertyPath(e,"streaming.lowLatencyMode",!1))}}(n),function(e){if("Edge"===l.Env.browser.name){l.Utils.Object.getPropertyPath(e,"drm.keySystem")||(e="Windows"===l.Env.os.name?l.Utils.Object.createPropertyPath(e,"drm.keySystem",l.DrmScheme.PLAYREADY):l.Utils.Object.createPropertyPath(e,"drm.keySystem",l.DrmScheme.WIDEVINE))}}(n),function(e){if(l.Env.isIOS&&e.plugins&&e.plugins.ima&&!e.plugins.ima.disable){var t=l.Utils.Object.getPropertyPath(e,"playback.playsinline"),n=l.Utils.Object.getPropertyPath(e,"plugins.ima.disableMediaPreload");!1===t&&"boolean"!=typeof n&&l.Utils.Object.createPropertyPath(e,"plugins.ima.disableMediaPreload",!0)}}(n),function(e){if(e.plugins&&e.plugins.imadai&&!e.plugins.imadai.disable){"boolean"!=typeof l.Utils.Object.getPropertyPath(e,"playback.options.html5.hls.autoStartLoad")&&l.Utils.Object.mergeDeep(e,{playback:{options:{html5:{hls:{autoStartLoad:!1}}}}})}}(n),function(e){var t=l.Utils.Object.getPropertyPath(e,"plugins.bumper"),n=l.Utils.Object.getPropertyPath(e,"plugins.imadai");if(t){var r={};"boolean"!=typeof t.playOnMainVideoTag&&(l.Env.isSmartTV||l.Env.isIOS&&e.playback&&!1===e.playback.playsinline)&&(r.playOnMainVideoTag=!0),n&&!n.disable&&(Array.isArray(t.position)||(r.position=[0]),"boolean"!=typeof t.disableMediaPreload&&(r.disableMediaPreload=!0)),l.Utils.Object.mergeDeep(e,{plugins:{bumper:r}})}}(n),function(e){var t=l.Utils.Object.getPropertyPath(e,"plugins.vr");if(t&&!t.disable){"boolean"!=typeof l.Utils.Object.getPropertyPath(e,"playback.inBrowserFullscreen")&&l.Utils.Object.mergeDeep(e,{playback:{inBrowserFullscreen:!0}})}}(n),function(e){if(l.Env.isIOS){var t=l.Utils.Object.getPropertyPath(e,"playback.playsinline"),n=l.Utils.Object.hasPropertyPath(e,"plugins.airplay"),r=!1!==t;n?Object(l.setCapabilities)(l.EngineType.HTML5,{autoplay:!1,mutedAutoPlay:r}):"iPhone"!==l.Env.device.model||r||Object(l.setCapabilities)(l.EngineType.HTML5,{autoplay:!1,mutedAutoPlay:!1})}}(n),n}function z(e){return function(){if(e.player){j.push({level:"warn",msg:"Path config.player will be deprecated soon. Please update your config structure as describe here: https://github.com/kaltura/kaltura-player-js/blob/master/docs/configuration.md"});var t=l.Utils.Object.copyDeep(e.player);delete e.player,l.Utils.Object.mergeDeep(e,t)}}(),[["duration","sources.duration"],["type","sources.type"],["dvr","sources.dvr"],["id","sources.id"],["name","metadata.name"],["metadata.poster","sources.poster"],["metadata","sources.metadata"],["logLevel","log.level"],["ui.components.fullscreen.inBrowserFullscreenForIOS","playback.inBrowserFullscreen"],["playback.enableCEA708Captions","text.enableCEA708Captions"],["playback.useNativeTextTrack","text.useNativeTextTrack"],["playback.options.html5.dash.useShakaTextTrackDisplay","text.useShakaTextTrackDisplay"],["playback.captionsTextTrack1Label","text.captionsTextTrack1Label"],["playback.captionsTextTrack1LanguageCode","text.captionsTextTrack1LanguageCode"],["playback.captionsTextTrack2Label","text.captionsTextTrack2Label"],["playback.captionsTextTrack2LanguageCode","text.captionsTextTrack2LanguageCode"],["plugins.visibility.threshold","viewability.playerThreshold"],["plugins.visibility.floating","plugins.floating"],["playback.startTime","sources.startTime"]].forEach((function(t){return function(t,n){if(l.Utils.Object.hasPropertyPath(e,t))if(j.push({level:"warn",msg:"Path config.player."+t+" will be deprecated soon. Please update your config structure as describe here: https://github.com/kaltura/kaltura-player-js/blob/master/docs/configuration.md"}),l.Utils.Object.hasPropertyPath(e,n))l.Utils.Object.deletePropertyPath(e,t);else{var r=l.Utils.Object.getPropertyPath(e,t),i=l.Utils.Object.createPropertyPath({},n,r);l.Utils.Object.mergeDeep(e,i),l.Utils.Object.deletePropertyPath(e,t)}}(t[0],t[1])})),e}function W(e,t,n){var r=e.config.playback,i=!1;return r.streamPriority.forEach((function(e){e.engine===t&&(i=!0)})),i||r.streamPriority.push({engine:t,format:n}),r}function Y(e){var t=e&&e.progressive;return!(!t||!t[0]||"video/youtube"!==t[0].mimetype)}function q(e){var t=e&&e.image;return!(!t||!t[0])}function X(e,t){var n={},r={};return l.Utils.Object.isObject(e)&&Object.entries(e).forEach((function(e){var i=e[0],a=e[1];n[i]={},r[i]={},Object.entries(a).forEach((function(e){var a=e[0],o=e[1],s=l.Utils.Object.getPropertyPath(t[i],a);n[i][a]=s||o,r[i][a]=s}))})),[n,r]}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Q(r.key),r)}}function Q(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Z=function(){function e(e,t,n){this.name=e,this.player=t,this.eventManager=new l.EventManager,this.logger=Object(l.getLogger)(l.Utils.String.capitlize(this.name)),this.config={},l.Utils.Object.mergeDeep(this.config,this.constructor.defaultConfig,n)}e.createPlugin=function(e,t,n){return void 0===n&&(n={}),new this(e,t,n)},e.isValid=function(){throw new l.Error(l.Error.Severity.CRITICAL,l.Error.Category.PLAYER,l.Error.Code.RUNTIME_ERROR_METHOD_NOT_IMPLEMENTED,"isValid()")};var t,n,r,i=e.prototype;return i.getConfig=function(e){return e?l.Utils.Object.copyDeep(this.config[e]):l.Utils.Object.copyDeep(this.config)},i.updateConfig=function(e){l.Utils.Object.mergeDeep(this.config,e)},i.loadMedia=function(){},i.destroy=function(){this.eventManager.destroy()},i.reset=function(){},i.getName=function(){return this.name},i.dispatchEvent=function(e,t){this.logger.debug("Fire event: "+e,t),this.player.dispatchEvent(new l.FakeEvent(e,t))},t=e,(n=[{key:"ready",get:function(){return Promise.resolve()}}])&&$(t.prototype,n),r&&$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,t,n){(t=Q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Z,"defaultConfig",{});var ee=function(){function e(){J(this,"_plugins",{}),J(this,"_isDisabledPluginMap",new Map)}e.register=function(t,n){return"function"!=typeof n||n.prototype instanceof Z==!1?(e._logger.error("Plugin <"+t+"> registration failed, either plugin is not an instance of BasePlugin or plugin handler is not a function"),!1):e._registry.has(t)?(e._logger.debug("Plugin <"+t+"> is already registered, do not register again"),!1):(e._registry.set(t,n),e._logger.debug("Plugin <"+t+"> has been registered successfully"),!0)},e.unRegister=function(t){e._registry.has(t)&&(e._registry.delete(t),e._logger.debug("Unregistered <"+t+"> plugin."))};var t=e.prototype;return t.load=function(t,n,r){if(void 0===r&&(r={}),!e._registry.has(t))throw e._logger.warn("Plugin <"+t+"> loading failed, plugin is not registered"),new l.Error(l.Error.Severity.RECOVERABLE,l.Error.Category.PLAYER,l.Error.Code.RUNTIME_ERROR_NOT_REGISTERED_PLUGIN,t);var i=e._registry.get(t);"boolean"==typeof r.disable&&this._isDisabledPluginMap.set(t,r.disable);var a=!!this._isDisabledPluginMap.get(t),o=!!i&&i.isValid();if(i&&o&&!a){try{this._plugins[t]=i.createPlugin(t,n,r)}catch(e){throw new l.Error(l.Error.Severity.RECOVERABLE,l.Error.Category.PLAYER,l.Error.Code.PLUGIN_LOAD_FAILED,e)}return this._isDisabledPluginMap.set(t,!1),e._logger.debug("Plugin <"+t+"> has been loaded"),!0}return e._logger.debug("Plugin <"+t+"> isn't loaded, isValid()="+o.toString()+", disabled="+a.toString()),!1},t.loadMedia=function(){var e=this;Object.keys(this._plugins).forEach((function(t){return e._plugins[t].loadMedia()}))},t.destroy=function(){var e=this;Object.keys(this._plugins).forEach((function(t){e._plugins[t].destroy(),delete e._plugins[t]}))},t.reset=function(){var e=this;Object.keys(this._plugins).forEach((function(t){return e._plugins[t].reset()}))},t.get=function(e){return this._plugins[e]},t.getAll=function(){return this._plugins},e}();J(ee,"_logger",Object(l.getLogger)("PluginManager")),J(ee,"_registry",new Map);var te=ee.register,ne={youbora:{playerVersion:"{{pVersion}}",playerName:"{{pName}}",entryId:"{{entryId}}",entryName:"{{entryName}}",entryType:"{{entryType}}",sessionId:"{{sessionId}}",uiConfId:"{{uiConfId}}"},googleAnalytics:{entryId:"{{entryId}}",entryName:"{{entryName}}",uiConfId:"{{uiConfId}}",partnerId:"{{partnerId}}"},ottAnalytics:{entryId:"{{entryId}}",ks:"{{ks}}",isAnonymous:"{{isAnonymous}}",partnerId:"{{partnerId}}",serviceUrl:"{{serviceUrl}}"},ima:{playerVersion:"{{pVersion}}",playerName:"{{pName}}"},kava:{playerVersion:"{{pVersion}}",playerName:"{{pName}}",partnerId:"{{partnerId}}",playlistId:"{{playlistId}}",entryId:"{{entryId}}",entryType:"{{entryType}}",sessionId:"{{sessionId}}",ks:"{{ks}}",uiConfId:"{{uiConfId}}",referrer:"{{referrer}}",encodedReferrer:"{{encodedReferrer}}",serviceUrl:"{{analyticsServiceUrl}}"},comscore:{playerVersion:"{{pVersion}}"},vr:{rootElement:"{{domRootElementId}}"},share:{partnerId:"{{partnerId}}",uiConfId:"{{uiConfId}}",entryId:"{{entryId}}",embedBaseUrl:"{{embedBaseUrl}}"}},re=new RegExp("{{.*}}");function ie(e,t){return(ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=function(e){var t,n;function r(){var t;return ae(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call(this)||this),"_ovpPluginsConfig",{ottAnalytics:{}}),t._config=l.Utils.Object.mergeDeep({},t._basePluginsConfig,t._ovpPluginsConfig),t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ie(t,n),r}(function(){function e(){this._basePluginsConfig=l.Utils.Object.copyDeep(ne)}var t=e.prototype;return t.get=function(){return this._config},t.set=function(e){if(e){var t=function e(t){return void 0===t&&(t={}),Object.entries(t).reduce((function(t,n){var r=n[0],i=n[1];return l.Utils.Object.isObject(i)?t[r]=e(i):"string"==typeof i&&re.test(i)?t[r]=i:t[r]=void 0,t}),{})}(e);this._config=function e(t){return void 0===t&&(t={}),Object.entries(t).reduce((function(t,n){var r=n[0],i=n[1];return l.Utils.Object.isObject(i)?t[r]=e(i):i&&(t[r]=i),t}),{})}(l.Utils.Object.mergeDeep(this._config,t))}},t.reset=function(){this._config=l.Utils.Object.copyDeep(ne)},e}());var se=function(e,t){void 0===t&&(t={});try{var n,r=e;for(var i in t){var a=void 0!==t[i]&&null!==t[i]?t[i]:"";"string"==typeof a&&a.indexOf('"')>-1&&(a=a.replace(/"/g,'\\"')),n=new RegExp("{{"+i+"}}","g"),r=r.replace(n,a)}return r}catch(e){return""}},le=Object(l.getLogger)("PluginsConfig"),ue=function(e){return("number"==typeof e||"function"==typeof e||"string"==typeof e||"boolean"==typeof e||l.Utils.Object.isClassInstance(e))&&!re.test(e.toString())},ce=function(e){return l.Utils.Object.isObject(e)&&"function"!=typeof e&&!l.Utils.Object.isClassInstance(e)},pe=function(e){return e.map((function(e){if(ce(e)){var t=de(e);return l.Utils.Object.isEmptyObject(t)?null:t}return ue(e)?e:null})).filter((function(e){return null!==e}))},de=function e(t){return void 0===t&&(t={}),Object.entries(t).reduce((function(t,n){var r=n[0],i=n[1];return ce(i)?t[r]=e(i):Array.isArray(i)?t[r]=pe(i):ue(i)&&(t[r]=i),t}),{})};var fe=function(){function e(){this._pluginConfigStore=new oe}return e.prototype.evaluatePluginsConfig=function(e,t){if(e){this._pluginConfigStore.set(e);var n=function(e){var t,n={pVersion:(null==(t=K())?void 0:t.productVersion)||"3.14.4",pName:"@playkit-js/kaltura-player-js"};if(e.targetId&&(n.domRootElementId=e.targetId),e.provider&&e.provider.env){n.serviceUrl=e.provider.env.serviceUrl;var r=l.Utils.Object.getPropertyPath(e,"provider.env.analyticsServiceUrl");r&&(n.analyticsServiceUrl=r+"/api_v3/index.php"),n.serviceUrl&&(n.embedBaseUrl=n.serviceUrl.replace("api_v3",""))}var i,a={referrer:I(),encodedReferrer:(i=I(),encodeURIComponent(i))};return e.provider&&l.Utils.Object.mergeDeep(a,{ks:e.provider.ks,uiConfId:e.provider.uiConfId,partnerId:e.provider.partnerId}),e.session&&l.Utils.Object.mergeDeep(a,{sessionId:e.session.id,ks:e.session.ks,isAnonymous:e.session.isAnonymous,uiConfId:e.session.uiConfId,partnerId:e.session.partnerId}),e.sources&&l.Utils.Object.mergeDeep(a,{entryId:e.sources.id,entryName:e.sources.metadata&&e.sources.metadata.name,entryType:e.sources.type}),e.playlist&&l.Utils.Object.mergeDeep(a,{playlistId:e.playlist.id}),Object.keys(a).forEach((function(e){void 0===a[e]&&delete a[e]})),l.Utils.Object.mergeDeep(n,a),n}(t),r=l.Utils.Object.mergeDeep({},this._pluginConfigStore.get(),e);!function(e,t){var n=de(t),r=de(e);r&&n&&Object.keys(e).forEach((function(t){e&&e[t]&&(e[t]=l.Utils.Object.mergeDeep({},n[t],r[t]))}))}(e,function(e){var t,n;e=(n=e)?n.replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f").replace(/[\u0000-\u0019]+/g,""):"";try{t=JSON.parse(e,(function(e){try{return JSON.parse(this[e])}catch(t){return this[e]}}))}catch(e){le.error("An error occurred while formatting config string.",e),t={}}return t}(se(JSON.stringify(r),n)))}},e}();function he(){return(he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ge(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye={thumbsWidth:164,thumbsHeight:92,thumbsSlices:100},ve=/.*\/p\/\d+\/(?:[a-zA-Z]+\/\d+\/)*thumbnail\/entry_id\/\w+\/.*\d+/,me=function(){function e(e,t,n){var r=this;if(ge(this,"_isUsingKalturaThumbnail",(function(){return!(!r._thumbnailConfig||!r._thumbnailConfig.thumbsSprite)})),ge(this,"_convertKalturaThumbnailToThumbnailInfo",(function(e){if(r._thumbnailConfig){var t=r._thumbnailConfig,n=t.thumbsSprite,i=t.thumbsWidth,a=t.thumbsSlices,o=r._player.duration/a,s={x:Math.floor(e/o)*i,y:0,url:n,height:r._thumbsHeight,width:i};return new l.ThumbnailInfo(s)}})),ge(this,"_buildKalturaThumbnailConfig",(function(e,t){var n,i=l.Utils.Object.getPropertyPath(e,"components.seekbar"),a=t.sources&&t.sources.poster,o=t.sources&&t.sources.type===l.MediaType.VOD,s=r._player.shouldAddKs(t)?null==(n=t.session)?void 0:n.ks:"",u=l.Utils.Object.mergeDeep(ye,i);return he({thumbsSprite:o?r._getThumbSlicesUrl(a,s,u):""},u)})),ge(this,"_getThumbSlicesUrl",(function(e,t,n){if("string"==typeof e&&ve.test(e))try{var r=he({thumbnailUrl:e},n),i=se("{{thumbnailUrl}}/width/{{thumbsWidth}}/vid_slices/{{thumbsSlices}}",r);return t?i+"/ks/"+t:i}catch(e){return""}return""})),this._player=e,this._thumbnailConfig=this._buildKalturaThumbnailConfig(t,n),this._eventManager=new l.EventManager,this._isUsingKalturaThumbnail()){var i,a=new Image;this._eventManager.listenOnce(a,"load",(function(){r._thumbsHeight=a.naturalHeight})),a.src=(null==(i=this._thumbnailConfig)?void 0:i.thumbsSprite)||""}}var t=e.prototype;return t.destroy=function(){this._eventManager.destroy()},t.getThumbnail=function(e){return this._isUsingKalturaThumbnail()?this._convertKalturaThumbnailToThumbnailInfo(e):this._player._localPlayer.getThumbnail(e)},t.getKalturaThumbnailConfig=function(){return this._thumbnailConfig},e}();n(320);function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ee(r.key),r)}}function _e(e,t,n){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var ke=function(){function e(e,t){var n=this;_e(this,"_disabled",!1),this._player=e;var r=t.ui;if(r.disable){this._disabled=!0;var i=document.getElementById(r.targetId);i&&i.appendChild(e.getView())}else this._uiManager=new u.UIManager(e,r),r.customPreset?this._uiManager.buildCustomUI(r.customPreset):this._uiManager.buildDefaultUI(),this._handleVr(t.plugins),this._handleExternalCSS(r);return new Proxy(this,{get:function(e,t){return n._disabled?function(){}:e[t]}})}var t,n,r,i=e.prototype;return i.destroy=function(){this._uiManager.destroy()},i.reset=function(){this._resetErrorState()},i.setConfig=function(e,t){this._uiManager.setConfig(e,t)},i.addComponent=function(e){return this._uiManager.addComponent(e)},i.removeComponent=function(e){var t={label:"Remove_"+e.removeComponent,get:u.Components.Remove,presets:e.presets,area:e.area||e.container,replaceComponent:e.removeComponent};return this._uiManager.addComponent(t)},i.registerManager=function(e,t){this._player.registerService(e,t)},i.getManager=function(e){return this._player.getService(e)},i.hasManager=function(e){return this._player.hasService(e)},i.setLoadingSpinnerState=function(e){this.setConfig({show:e},"loading")},i._resetErrorState=function(){this.setConfig({hasError:!1},"engine")},i._handleExternalCSS=function(t){t.css&&l.Utils.Dom.loadStyleSheetAsync(t.css).then((function(){e._logger.debug("external css was loaded successfully")}),(function(){e._logger.error("external css failed to load")}))},i._handleVr=function(e){void 0===e&&(e={}),e.vr&&!e.vr.disable&&this._setStereoConfig(e.vr)},i._setStereoConfig=function(e){(e.toggleStereo||(l.Env.isMobile||l.Env.isTablet)&&!1!==e.toggleStereo)&&this.setConfig(l.Utils.Object.mergeDeep({},{vrStereoMode:!!e.startInStereo}),"vrStereo")},t=e,(n=[{key:"store",get:function(){return this._uiManager.store}}])&&be(t.prototype,n),r&&be(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();_e(ke,"_logger",Object(l.getLogger)("UIWrapper"));var Te={PLAYLIST_LOADED:"kaltura-player-playlistloaded",PLAYLIST_ITEM_CHANGED:"kaltura-player-playlistitemchanged",PLAYLIST_ENDED:"kaltura-player-playlistended"};function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,we(r.key),r)}}function we(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Se=["hls","dash","progressive","image"],Ce=function(){function e(e,t,n){this._sources=e,this._config=t,this._index=n}var t,n,r,i=e.prototype;return i.updateSources=function(e){this._sources=l.Utils.Object.mergeDeep({},e)},i.updatePlugins=function(e){this._plugins=l.Utils.Object.copyDeep(e)},i.isPlayable=function(){var e=this;return!!Se.find((function(t){return e._sources&&e._sources[t]&&e._sources[t].length}))},t=e,(n=[{key:"sources",get:function(){var e=this;return Se.forEach((function(t){e._sources&&e._sources[t]&&0===e._sources[t].length&&delete e._sources[t]})),this._sources}},{key:"config",get:function(){return this._config}},{key:"plugins",get:function(){return this._plugins||{}}},{key:"index",get:function(){return this._index}}])&&Ae(t.prototype,n),r&&Ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ie(r.key),r)}}function Ie(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Pe=function(){function e(){this._id="",this._metadata={name:"",description:""},this._poster="",this._items=[],this._activeItemIndex=-1}var t,n,r,i=e.prototype;return i.configure=function(e,t){var n=this;this._id=e.id?e.id:this._id,this._poster=e.poster?e.poster:this._poster,this._metadata=e.metadata?e.metadata:this._metadata,e.items&&(this._items=[],e.items.forEach((function(e,r){if(e.sources){var i=l.Utils.Object.mergeDeep({},t),a=e.sources.options||{};e.sources.options=l.Utils.Object.mergeDeep(i,a)}n._items.push(new Ce(e.sources,e.config,r))})))},i.updateItemSources=function(e,t){this._items[e].updateSources(t)},i.updateItemPlugins=function(e,t){this._items[e].updatePlugins(t)},i.getNext=function(e){var t=e?(this._activeItemIndex+1)%this._items.length:this._activeItemIndex+1;return this._items[t]||null},t=e,(n=[{key:"id",get:function(){return this._id}},{key:"items",get:function(){return this._items}},{key:"metadata",get:function(){return this._metadata}},{key:"poster",get:function(){return this._poster}},{key:"current",get:function(){return this._items[this._activeItemIndex]||null}},{key:"prev",get:function(){return this._items[this._activeItemIndex-1]||null}},{key:"activeItemIndex",set:function(e){this._activeItemIndex=e}}])&&xe(t.prototype,n),r&&xe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Re(r.key),r)}}function Re(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Oe=function(){function e(e,t){this._player=e,this._eventManager=new l.EventManager,this._playlist=new Pe,this._options={autoContinue:!0,loop:!1,imageDuration:5},this._countdown={duration:10,showing:!0},this._mediaInfoList=[],this._playerOptions=t,this._appPluginConfig={}}var t,n,r,i=e.prototype;return i.configure=function(e,t){e&&(this._playlist.configure(e,l.Utils.Object.getPropertyPath(this._player.sources,"options")),l.Utils.Object.mergeDeep(this._options,e.options),l.Utils.Object.mergeDeep(this._countdown,e.countdown),e.items&&e.items.find((function(e){return!!e.sources}))&&(this._mediaInfoList=e.items.map((function(e,n){return t&&t.entries&&"object"==typeof t.entries[n]?t.entries[n]:{entryId:e.sources.id}})),this._player.dispatchEvent(new l.FakeEvent(Te.PLAYLIST_LOADED,{playlist:this})),this._addBindings(),this.playNext()))},i.load=function(e,t,n){var r=this._getMergedPlaylistData(e,t);this.configure(r,n)},i.reset=function(){this._eventManager.removeAll(),this._playlist=new Pe,this._mediaInfoList=[]},i.playNext=function(){e._logger.debug("playNext");var t=this._playlist.getNext(!0);t&&this._setItem(t)},i.playPrev=function(){e._logger.debug("playPrev");var t=this._playlist.prev;t&&this._setItem(t)},i.playItem=function(t){e._logger.debug("playItem("+t+")");var n=this._playlist.items[t];n&&this._setItem(n)},i._getMergedPlaylistData=function(e,t){var n=this;return{id:e.id,metadata:e.metadata,poster:e.poster,options:t?t.options:this._options,countdown:t?t.countdown:this.countdown,items:e.items.map((function(e,r){var i=l.Utils.Object.copyDeep(e);return l.Utils.Object.mergeDeep(i.sources,t&&t.items&&t.items[r]&&t.items[r].sources),Array.isArray(i.sources.poster)&&n._player.updateKalturaPoster(i.sources,e.sources,n._player.dimensions),{sources:i.sources,config:t&&t.items&&t.items[r]&&t.items[r].config}}))}},i._addBindings=function(){var e=this;this._eventManager.listen(this._player,this._player.Event.Core.PLAYBACK_ENDED,(function(){return e._onPlaybackEnded()})),this._eventManager.listen(this._player,this._player.Event.Core.CHANGE_SOURCE_STARTED,(function(){return e._onChangeSourceStarted()}))},i._onPlaybackEnded=function(){var e=this._playlist.getNext(!1);e||this._player.dispatchEvent(new l.FakeEvent(Te.PLAYLIST_ENDED)),!this._playerOptions.ui.disable&&this.countdown.showing||(e&&this._options.autoContinue||this._options.loop)&&this.playNext()},i._onChangeSourceStarted=function(){var e;"Image"===(null==(e=this._playlist.items[this._playlist._activeItemIndex].sources)?void 0:e.type)&&this._player.configure({sources:{duration:this._options.imageDuration}})},i._setItem=function(t){var n=this,r=t.index;e._logger.debug("Playing item number "+r,t);var i={loop:!1};if(this._playlist.current&&(i.autoplay=!0),this._player.configure({playback:i}),this._playlist.activeItemIndex=r,t.isPlayable()){this._resetProviderPluginsConfig();var a=X(t.plugins,this._player.config.plugins),o=a[0];this._appPluginConfig=a[1];var s={session:this._player.config.session,plugins:o,sources:t.sources};return this._player.setMedia(s),this._player.dispatchEvent(new l.FakeEvent(Te.PLAYLIST_ITEM_CHANGED,{index:r,activeItem:t})),Promise.resolve()}if(this._mediaInfoList[r]){this._resetProviderPluginsConfig();var u={sources:t.sources};return this._player.setMedia(u),this._player.loadMedia(this._mediaInfoList[r]).then((function(e){n._playlist.updateItemSources(r,e.sources),n._playlist.updateItemPlugins(r,e.plugins),n._player.dispatchEvent(new l.FakeEvent(Te.PLAYLIST_ITEM_CHANGED,{index:r,activeItem:t}))}))}return Promise.reject()},i._resetProviderPluginsConfig=function(){this._player.configure({plugins:this._appPluginConfig}),this._appPluginConfig={}},i.destroy=function(){this._eventManager.destroy()},t=e,(n=[{key:"items",get:function(){return this._playlist.items}},{key:"current",get:function(){return this._playlist.current}},{key:"next",get:function(){return this._playlist.getNext(this._options.loop)}},{key:"prev",get:function(){return this._playlist.prev}},{key:"id",get:function(){return this._playlist.id}},{key:"metadata",get:function(){return this._playlist.metadata}},{key:"poster",get:function(){return this._playlist.poster}},{key:"countdown",get:function(){if(this._playlist.current&&this._playlist.current.config){var e={duration:10,showing:!0};return l.Utils.Object.mergeDeep(e,this._countdown,this._playlist.current.config.countdown),e}return this._countdown}},{key:"options",get:function(){return this._options}}])&&De(t.prototype,n),r&&De(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();!function(e,t,n){(t=Re(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Oe,"_logger",Object(l.getLogger)("PlaylistManager"));var Le={CAST_SESSION_START_FAILED:"kaltura-player-castsessionstartfailed",CAST_SESSION_STARTING:"kaltura-player-castsessionstarting",CAST_SESSION_STARTED:"kaltura-player-castsessionstarted",CAST_SESSION_ENDING:"kaltura-player-castsessionending",CAST_SESSION_ENDED:"kaltura-player-castsessionended",CAST_AVAILABLE:"kaltura-player-castavailable"},Me=function(e){this.textStyle=e.textStyle,this.mediaInfo=e.getMediaInfo(),this.mediaConfig=e.getMediaConfig(),this.advertising=e.config.plugins&&e.config.plugins.ima,this.config=l.Utils.Object.mergeDeep({},e.config,{sources:{startTime:Ne(e)},playback:{autoplay:0===e.currentTime||!e.paused,audioLanguage:Ue(l.TrackType.AUDIO,e),textLanguage:Ue(l.TrackType.TEXT,e)}})};function Ne(e){return e.isLive()?e.isDvr()?e.duration-e.currentTime<e.config.cast.dvrThreshold||!e.currentTime?-1:e.currentTime:-1:!e.isCasting()&&!e.currentTime&&e.config.sources.startTime>-1?e.config.sources.startTime:e.currentTime}function Ue(e,t){var n=t.getActiveTracks();if(n[e])return n[e].language;try{return t.config.playback[e+"Language"]}catch(e){return null}}function Fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,je(r.key),r)}}function je(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Be=function(){function e(e,t,n){this._id=e,this._friendlyName=t,this._resuming=n}var t,n,r;return t=e,(n=[{key:"deviceFriendlyName",get:function(){return this._friendlyName}},{key:"id",get:function(){return this._id}},{key:"resuming",get:function(){return this._resuming}}])&&Fe(t.prototype,n),r&&Fe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ge(r.key),r)}}function He(e,t){return(He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e,t,n){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var ze=function(e){var t,n;function r(t,n,i){var a;return Ke(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a=e.call(this)||this),"_isCastInitiator",!1),a._playerConfig={},r._logger=Object(l.getLogger)(t),a._remoteControl=i,a._castConfig=l.Utils.Object.mergeDeep({},a.constructor.defaultConfig,n),a._eventManager=new l.EventManager,r._logger.debug("Initialized"),a}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,He(t,n),r.isSupported=function(){return!0};var i,a,o,s=r.prototype;return s.loadMedia=function(e){return Promise.resolve()},s.setMedia=function(e){},s.getMediaInfo=function(){},s.getMediaConfig=function(){},s.configure=function(e){void 0===e&&(e={})},s.ready=function(){return Promise.resolve()},s.load=function(){},s.play=function(){},s.pause=function(){},s.reset=function(){},s.destroy=function(){},s.isLive=function(){return!1},s.isDvr=function(){return!1},s.seekToLiveEdge=function(){},s.getStartTimeOfDvrWindow=function(){return 0},s.getTracks=function(e){return[]},s.getActiveTracks=function(){return{audio:void 0,video:void 0,text:void 0}},s.selectTrack=function(e){},s.hideTextTrack=function(){},s.enableAdaptiveBitrate=function(){},s.isAdaptiveBitrateEnabled=function(){return!0},s.setTextDisplaySettings=function(e){},s.startCasting=function(){},s.stopCasting=function(){},s.isCasting=function(){return!0},s.isCastAvailable=function(){return!0},s.getCastSession=function(){return new Be("","")},s.isVr=function(){return!1},s.toggleVrStereoMode=function(){},s.isInVrStereoMode=function(){return!1},i=r,(a=[{key:"ads",get:function(){return null}},{key:"textStyle",get:function(){return new l.TextStyle},set:function(e){}},{key:"buffered",get:function(){return[]}},{key:"currentTime",get:function(){return 0},set:function(e){}},{key:"duration",get:function(){return 0}},{key:"liveDuration",get:function(){return NaN}},{key:"volume",get:function(){return 1},set:function(e){}},{key:"paused",get:function(){return!1}},{key:"ended",get:function(){return!1}},{key:"seeking",get:function(){return!1}},{key:"muted",get:function(){return!1},set:function(e){}},{key:"src",get:function(){return""}},{key:"poster",get:function(){return""}},{key:"playbackRate",get:function(){return 1},set:function(e){}},{key:"engineType",get:function(){return""}},{key:"streamType",get:function(){return""}},{key:"type",get:function(){return r.Type}},{key:"config",get:function(){return this._playerConfig}},{key:"isCastInitiator",get:function(){return this._isCastInitiator},set:function(e){this._isCastInitiator=e}}])&&Ve(i.prototype,a),o&&Ve(i,o),Object.defineProperty(i,"prototype",{writable:!1}),r}(l.FakeEventTarget);function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ye(r.key),r)}}function Ye(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}Ke(ze,"defaultConfig",{}),Ke(ze,"Type","BaseRemotePlayer");var qe=function(){function e(){var e=this;!function(e,t,n){(t=Ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uis",[{template:function(t){return e.idleUI(t)},condition:function(e){return e.engine.isIdle}},{template:function(t){return e.errorUI(t)},condition:function(e){return e.engine.hasError}},{template:function(t){return e.adsUI(t)},condition:function(e){return e.engine.adBreak}},{template:function(t){return e.liveUI(t)},condition:function(e){return e.engine.isLive}},{template:function(t){return e.playbackUI(t)}}])}var t,n,r,i=e.prototype;return i.playbackUI=function(e){return u.Presets.playbackUI(e)},i.idleUI=function(e){return u.Presets.idleUI(e)},i.adsUI=function(e){return u.Presets.adsUI(e)},i.liveUI=function(e){return u.Presets.liveUI(e)},i.errorUI=function(e){return u.Presets.errorUI(e)},t=e,(n=[{key:"uis",get:function(){return this._uis}}])&&We(t.prototype,n),r&&We(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Xe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$e(e,t)}function $e(e,t){return($e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Je(r.key),r)}}function Ze(e,t,n){return t&&Qe(e.prototype,t),n&&Qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Je(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var et=function(){function e(e){this._player=e}return Ze(e,[{key:"player",get:function(){return this._player}}]),e}(),tt=function(e){function t(t,n,r){var i;return(i=e.call(this,t)||this)._session=n,r&&(i._ui=r),i}return Xe(t,e),Ze(t,[{key:"ui",get:function(){return this._ui}},{key:"session",get:function(){return this._session}}]),t}(et),nt=function(e){function t(t,n){var r;return(r=e.call(this,t)||this)._snapshot=n,r}return Xe(t,e),Ze(t,[{key:"snapshot",get:function(){return this._snapshot}}]),t}(et),rt=function(e){function t(t,n){var r;return(r=e.call(this,t)||this)._available=n,r}return Xe(t,e),Ze(t,[{key:"available",get:function(){return this._available}}]),t}(et);var it=function(e){this.getPlayerSnapshot=pt.bind(e),this.getUIWrapper=dt.bind(e),this.onRemoteDeviceAvailable=ut.bind(e),this.onRemoteDeviceConnected=ot.bind(e),this.onRemoteDeviceDisconnected=lt.bind(e),this.onRemoteDeviceConnecting=at.bind(e),this.onRemoteDeviceDisconnecting=st.bind(e),this.onRemoteDeviceConnectFailed=ct.bind(e)};function at(){it._logger.debug("onRemoteDeviceConnecting"),this.dispatchEvent(new l.FakeEvent(Le.CAST_SESSION_STARTING))}function ot(e){var t=this;it._logger.debug("onRemoteDeviceConnected",e);var n=e.player,r=e.ui,i=e.session;this._eventManager.removeAll(),Object.values(l.EventType).forEach((function(e){return t._eventManager.listen(n,e,(function(e){return t.dispatchEvent(e)}))}));var a=this.config;r&&l.Utils.Object.mergeDeep(a,{ui:{customPreset:r.uis}}),this.configure({playback:{muted:this.muted,volume:this.volume}}),this._localPlayer.reset(),this._uiWrapper.destroy(),this._remotePlayer=n,this._uiWrapper=new ke(this,a),this.dispatchEvent(new l.FakeEvent(Le.CAST_SESSION_STARTED,{session:i}))}function st(){it._logger.debug("onRemoteDeviceDisconnecting"),this.dispatchEvent(new l.FakeEvent(Le.CAST_SESSION_ENDING))}function lt(e){var t=this;it._logger.debug("onRemoteDeviceDisconnected",e);var n=e.player,r=e.snapshot;if(this._remotePlayer&&this._remotePlayer===n&&(this._eventManager.removeAll(),ft.call(this,r),r)){this.dispatchEvent(new l.FakeEvent(Le.CAST_SESSION_ENDED));var i,a=this.config,o=!r.config.playback.autoplay,s=r.mediaInfo,u=r.mediaConfig;r.config.playback.autoplay=!0,ht.call(this,r.config),this._eventManager.listenOnce(this,this.Event.Core.CHANGE_SOURCE_ENDED,(function(){gt.call(t,r.config.sources)})),s?i=this.loadMedia(s):u&&(i=Promise.resolve(),this.setMedia(u)),i&&i.then((function(){t._eventManager.listenOnce(t,t.Event.Core.FIRST_PLAYING,(function(){t.textStyle=r.textStyle,ht.call(t,a),yt.call(t,r.config.playback),o&&t.pause()}))}))}}function ut(e){it._logger.debug("onRemoteDeviceAvailable",e);var t=e.player,n=e.available;this.dispatchEvent(new l.FakeEvent(Le.CAST_AVAILABLE,{type:t.type,available:n}))}function ct(){it._logger.debug("onRemoteDeviceConnectFailed"),this.dispatchEvent(new l.FakeEvent(Le.CAST_SESSION_START_FAILED))}function pt(){var e=new Me(this);return it._logger.debug("getPlayerSnapshot",e),e}function dt(){return it._logger.debug("getUIWrapper"),this._uiWrapper}function ft(e){var t=this;this._uiWrapper.destroy();var n=this._localPlayer.config;if(n.plugins&&n.plugins.ima){var r={};if(n.cast.advertising&&n.cast.advertising.vast){if(e.config.sources.startTime>0){var i=n.plugins.ima.adTagUrl;r={adTagUrl:""},this._eventManager.listen(this,l.EventType.FIRST_PLAYING,(function(){return t.configure({plugins:{ima:{adTagUrl:i}}})}))}}else r={delayInitUntilSourceSelected:!0};l.Utils.Object.mergeDeep(n,{plugins:{ima:r}}),this._localPlayer.destroy(),this._remotePlayer=null,this._localPlayer=Object(l.loadPlayer)(n)}else this._remotePlayer=null;Object.values(l.EventType).forEach((function(e){return t._eventManager.listen(t._localPlayer,e,(function(e){return t.dispatchEvent(e)}))})),this._uiWrapper=new ke(this,this.config),this._uiWrapper.setConfig({isCastAvailable:this.isCastAvailable()},"engine")}function ht(e){var t=e.sources.startTime,n=e.playback.autoplay;this.configure({sources:{startTime:t},playback:{autoplay:n}})}function gt(e){if(e.captions.length){var t=e.captions;this.configure({sources:{captions:t}})}}function yt(e){if(e.audioLanguage){var t=this.getTracks(l.TrackType.AUDIO).find((function(t){return t.language===e.audioLanguage}));this.selectTrack(t)}if(e.textLanguage){var n=this.getTracks(l.TrackType.TEXT).find((function(t){return t.language===e.textLanguage}));this.selectTrack(n)}}function vt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(it,"_logger",Object(l.getLogger)("RemoteControl"));var mt=function(){function e(){vt(this,"_remotePlayers",new Map)}e.register=function(t,n){"function"==typeof n?e._registry.has(t)?e._logger.debug("Remote player of type "+t+" is already registered"):(e._logger.debug("Register remote player of type "+t),e._registry.set(t,n)):e._logger.debug("remote player must be instance of BaseRemotePlayer")};var t=e.prototype;return t.load=function(t,n){var r=this;e._registry.forEach((function(i,a){e._logger.debug("Load remote player of type "+a);var o=new i(t,new it(n),n.config.targetId);r._remotePlayers.set(a,o)}))},t.startCasting=function(t){e._logger.debug("Start casting");var n=this._getRemotePlayer(t);return n?n.startCasting():Promise.reject()},t.isCastAvailable=function(t){var n=this._getRemotePlayer(t);return!!n&&(e._logger.debug("isCastAvailable: "+n.isCastAvailable()),n.isCastAvailable())},t.destroy=function(){var e=this._remotePlayers;Array.from(e.values()).forEach((function(e){return e.destroy()}))},t.setIsCastInitiator=function(e,t){var n=this._getRemotePlayer(e);n&&(n.isCastInitiator=t)},t._getRemotePlayer=function(e){var t=this._remotePlayers;return e&&t.get(e)?t.get(e):t.size>0?Array.from(t.values())[0]:void 0},e}();function bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_t(r.key),r)}}function _t(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}vt(mt,"_registry",new Map),vt(mt,"_logger",Object(l.getLogger)("RemotePlayerManager"));var Et=function(){function e(e){this._type=e.type,this._position=e.position,this._numAds=e.numAds}var t,n,r;return e.prototype.toJSON=function(){return{type:this.type,position:this.position,numAds:this.numAds}},t=e,(n=[{key:"type",get:function(){return this._type}},{key:"position",get:function(){return this._position}},{key:"numAds",get:function(){return this._numAds}}])&&bt(t.prototype,n),r&&bt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tt(r.key),r)}}function Tt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var At=function(){function e(e,t){this._id=e,this._system=t.system,this._url=t.url,this._contentType=t.contentType,this._title=t.title,this._position=t.position,this._duration=t.duration,this._clickThroughUrl=t.clickThroughUrl,this._posterUrl=t.posterUrl,this._skipOffset=t.skipOffset,this._linear=t.linear,this._width=t.width||0,this._height=t.height||0,this._bitrate=t.bitrate||0,this._bumper=t.bumper,this._inStream=t.inStream||!1,this._vpaid=t.vpaid||!1,this._streamId=t.streamId||"",this._wrapperAdIds=t.wrapperAdIds,this._wrapperCreativeIds=t.wrapperCreativeIds,this._wrapperAdSystems=t.wrapperAdSystems}var t,n,r;return e.prototype.toJSON=function(){return{id:this.id,system:this.system,url:this.url,contentType:this.contentType,title:this.title,position:this.position,duration:this.duration,clickThroughUrl:this.clickThroughUrl,posterUrl:this.posterUrl,skipOffset:this.skipOffset,linear:this.linear,skippable:this.skippable,width:this.width,height:this.height,bitrate:this.bitrate,bumper:this.bumper,inStream:this.inStream,vpaid:this.vpaid}},t=e,(n=[{key:"id",get:function(){return this._id}},{key:"system",get:function(){return this._system}},{key:"contentType",get:function(){return this._contentType}},{key:"url",get:function(){return this._url}},{key:"title",get:function(){return this._title}},{key:"position",get:function(){return this._position}},{key:"duration",get:function(){return this._duration}},{key:"clickThroughUrl",get:function(){return this._clickThroughUrl}},{key:"posterUrl",get:function(){return this._posterUrl}},{key:"skipOffset",get:function(){return this._skipOffset}},{key:"linear",get:function(){return this._linear}},{key:"width",get:function(){return this._width}},{key:"height",get:function(){return this._height}},{key:"bitrate",get:function(){return this._bitrate}},{key:"bumper",get:function(){return this._bumper}},{key:"inStream",get:function(){return this._inStream}},{key:"skippable",get:function(){return!!(this.skipOffset&&this.skipOffset>0)}},{key:"vpaid",get:function(){return this._vpaid}},{key:"streamId",get:function(){return this._streamId}},{key:"wrapperAdIds",get:function(){return this._wrapperAdIds}},{key:"wrapperCreativeIds",get:function(){return this._wrapperCreativeIds}},{key:"wrapperAdSystems",get:function(){return this._wrapperAdSystems}}])&&kt(t.prototype,n),r&&kt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function wt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var St=function(){function e(t){var n=this;wt(this,"_prebid",null),this._loadPromise=l.Utils.Object.defer(),this._loadPromise.catch((function(){return e._logger.warn("Prebid SDK failed to load")})),t?(this._config=t,this._loadPrebidSDKLib(this._config.libUrl).then((function(){n._isPrebidSDKLibLoaded()?(n._prebid=window.pbjs,n._loadPromise.resolve()):n._loadPromise.reject()})).catch((function(){n._loadPromise.reject()}))):this._loadPromise.reject()}var t=e.prototype;return t._isPrebidSDKLibLoaded=function(){return window.pbjs&&window.pbjs.que},t._loadPrebidSDKLib=function(e){return this._isPrebidSDKLibLoaded()?Promise.resolve():l.Utils.Dom.loadScriptAsync(e)},t._load=function(t){var n=this;return new Promise((function(r,i){n._loadPromise.then((function(){var a=setTimeout(i,t.timeout||4e3);n._prebid.que.push((function(){n._prebid.addAdUnits(t.adUnit),t.options&&n._prebid.setConfig(t.options),n._prebid.requestBids({bidsBackHandler:function(o){if(e._logger.debug("returned bids",o),clearTimeout(a),t.params){var s={};t.adUnit&&(s.adUnit=t.adUnit),s.params=t.params;var l=n._prebid.adServers.dfp.buildVideoUrl(s);r([{vastUrl:l}])}else try{var u=o[t.adUnit.code||Object.keys(o)[0]].bids;r(u)}catch(e){i()}}})}))})).catch(i)}))},t.load=function(e){return this._load(e||this._config)},e}();function Ct(e,t){return(Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wt(St,"_logger",Object(l.getLogger)("PrebidManager"));var It=function(e){var t,n;function r(t){var n;return xt(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call(this)||this),"id","AdLayoutMiddleware"),n._context=t,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Ct(t,n);var i=r.prototype;return i.load=function(e){var t=this;this._context.prerollReady.then((function(){return t.callNext(e)}))},i.play=function(e){var t=this;this._context.prerollReady.then((function(){return t.callNext(e)}))},r}(l.BaseMiddleware);function Pt(){return(Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ot(r.key),r)}}function Rt(e,t){return(Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ot(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Lt=function(e){var t,n;function r(t,n){var r;return(r=e.call(this)||this)._player=t,r._eventManager=new l.EventManager,r._liveEventManager=new l.EventManager,r._adsPluginControllers=n,r._prebidManager=new St(r._player.config.advertising&&r._player.config.advertising.prebid),r._init(),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Rt(t,n);var i,a,o,s=r.prototype;return s.isAdPlaying=function(){return this.isAdBreak()&&this._isAdPlaying},s.isAdBreak=function(){return!!this._adBreak},s.getAdBreaksLayout=function(){return this._adBreaksLayout},s.getAdBreak=function(){return this._adBreak},s.getAd=function(){return this._ad},s.skipAd=function(){var e=this._adsPluginControllers.find((function(e){return e.active}));e&&e.skipAd()},s.playAdNow=function(e){var t=this;if(this.isAdBreak())r._logger.warn("Tried to call playAdNow during an ad break");else{var n=Promise.all(e.map((function(e){return t._getPrebidAds(e)})));this._playAdBreak({position:this._player.currentTime||0,ads:e,played:!1,loadedPromise:n})}},s.getMiddleware=function(){return this._middleware?this._middleware:this._middleware=new It(this)},s._init=function(){this._initMembers(),this._addBindings()},s._initMembers=function(){this._allAdsCompleted=!0,this._adBreaksLayout=[],this._adBreak=null,this._ad=null,this._adPlayed=!1,this._snapback=0,this._adIsLoading=!1,this._isAdPlaying=!1,this._liveSeeking=!1},s._addBindings=function(){var e=this;this._eventManager.listen(this._player,l.CustomEventType.SOURCE_SELECTED,(function(){return e._handleConfiguredAdBreaks()})),this._eventManager.listen(this._player,l.AdEventType.AD_MANIFEST_LOADED,(function(t){return e._onAdManifestLoaded(t)})),this._eventManager.listen(this._player,l.AdEventType.AD_BREAK_START,(function(t){return e._onAdBreakStart(t)})),this._eventManager.listen(this._player,l.AdEventType.AD_LOADED,(function(){return e._onAdLoaded()})),this._eventManager.listen(this._player,l.AdEventType.AD_STARTED,(function(t){return e._onAdStarted(t)})),this._eventManager.listen(this._player,l.AdEventType.AD_COMPLETED,(function(){return e._isAdPlaying=!1})),this._eventManager.listen(this._player,l.AdEventType.AD_BREAK_END,(function(){return e._onAdBreakEnd()})),this._eventManager.listen(this._player,l.AdEventType.ADS_COMPLETED,(function(){return e._onAdsCompleted()})),this._eventManager.listen(this._player,l.AdEventType.AD_ERROR,(function(t){return e._onAdError(t)})),this._eventManager.listen(this._player,l.CustomEventType.PLAYER_RESET,(function(){return e._reset()})),this._eventManager.listen(this._player,l.CustomEventType.PLAYER_DESTROY,(function(){return e._destroy()})),this._eventManager.listenOnce(this._player,l.Html5EventType.ENDED,(function(){return e._onEnded()})),this._eventManager.listenOnce(this._player,l.CustomEventType.PLAYBACK_ENDED,(function(){return e._onPlaybackEnded()})),this._eventManager.listen(this._player,l.AdEventType.AD_RESUMED,(function(){return e._isAdPlaying=!0})),this._eventManager.listen(this._player,l.AdEventType.AD_PAUSED,(function(){return e._isAdPlaying=!1}))},s._handleConfiguredAdBreaks=function(){var e=this,t=this._player.config.advertising.playAdsAfterTime||this._player.config.sources.startTime;this._configAdBreaks=this._player.config.advertising.adBreaks.filter((function(e){return("number"==typeof e.every||"number"==typeof e.position||"number"==typeof e.percentage)&&e.ads.length})).map((function(n){e._validateOneTimeConfig(n);var r=n.position;0===n.percentage&&(r=0),100===n.percentage&&(r=-1),n.every&&(r=n.every);var i=e._player.isLive()?r<t:r<=t;return{position:r,percentage:n.percentage,every:n.every,ads:n.ads.slice(),played:-1<r&&i}})),this._configAdBreaks.length?(this._dispatchAdManifestLoaded(),this._handlePrebidAdConfig(),this._handleConfiguredPreroll(),this._eventManager.listenOnce(this._player,l.Html5EventType.DURATION_CHANGE,(function(){e._player.isLive()?e._eventManager.listenOnce(e._player,l.Html5EventType.SEEKING,(function(){e._pushNextAdsForLive(e._configAdBreaks,(function(t){return e._player.currentTime+t.every})),e._attachLiveSeekedHandler()})):e._handleEveryAndPercentage(),e._configAdBreaks.sort((function(e,t){return e.position-t.position})),e._configAdBreaks.some((function(e){return e.position>0}))&&e._handleConfiguredMidrolls()}))):this.prerollReady=Promise.resolve()},s._validateOneTimeConfig=function(e){"number"==typeof e.position&&("number"==typeof e.percentage&&(r._logger.warn("Validate ad break - ignore percentage "+e.percentage+" as position "+e.position+" configured"),delete e.percentage),"number"==typeof e.every&&(r._logger.warn("Validate ad break - ignore every "+e.every+" as position "+e.position+" configured"),delete e.every)),"number"==typeof e.percentage&&"number"==typeof e.every&&(r._logger.warn("Validate ad break - ignore every "+e.every+" as percentage "+e.percentage+" configured"),delete e.every)},s._dispatchAdManifestLoaded=function(){var e=this,t=Array.from(new Set(this._configAdBreaks.map((function(e){return e.every&&e.every+"s"||"number"==typeof e.percentage&&e.percentage+"%"||e.position}))));r._logger.debug(l.AdEventType.AD_MANIFEST_LOADED,t),this._player.dispatchEvent(new l.FakeEvent(l.AdEventType.AD_MANIFEST_LOADED,{adBreaksPosition:t})),this._player.hasService("timeline")&&this._player.config.advertising.showAdBreakCuePoint&&t.forEach((function(t){e._player.getService("timeline").addCuePoint(Pt({time:-1!==t?t:1/0},e._player.config.advertising.adBreakCuePointStyle))}))},s._handlePrebidAdConfig=function(){var e=this;this._prebidManager&&this._configAdBreaks.filter((function(e){return!e.played})).map((function(t){var n=Promise.all(t.ads.map((function(t){return e._getPrebidAds(t)})));t.loadedPromise=n,n.then((function(e){return t.ads=e}))}))},s._getPrebidAds=function(e){var t=this;return new Promise((function(n){if(e.prebid&&t._prebidManager){var r=l.Utils.Object.mergeDeep({},e.prebid,t._player.config.advertising.prebid);t._prebidManager.load(r).then((function(t){var r=t.map((function(e){return e&&e.vastUrl}));e.url=r.concat(e.url),n(e)})).catch((function(){n(e)}))}else n(e)}))},s._handleConfiguredPreroll=function(){var e=this._configAdBreaks.filter((function(e){return 0===e.position&&!e.played})),t=this._mergeAdBreaks(e);this.prerollReady=t&&t.loadedPromise?t.loadedPromise:Promise.resolve(),t&&this._playAdBreak(t)},s._handleEveryAndPercentage=function(){var e=this;this._configAdBreaks.forEach((function(t){if(e._player.duration&&t.every)for(var n=2*t.every;n<=e._player.duration;)e._configAdBreaks.push({position:n,ads:t.ads,played:!1,loadedPromise:Promise.resolve()}),n+=t.every;else e._player.duration&&t.percentage&&!t.position&&(t.position=Math.floor(e._player.duration*t.percentage/100))}))},s._attachLiveSeekedHandler=function(){var e=this;this._eventManager.listenOnce(this._player,l.CustomEventType.FIRST_PLAYING,(function(){e._eventManager.listen(e._player,l.Html5EventType.SEEKING,(function(){e._liveSeeking=!0})),e._eventManager.listen(e._player,l.Html5EventType.SEEKED,(function(){e._liveSeeking=!1,e._pushNextAdsForLive(e._configAdBreaks,(function(t){return e._player.currentTime+t.every}))}))}))},s._pushNextAdsForLive=function(e,t){this._liveEventManager.removeAll();var n=[];e.forEach((function(e){if(![-1,0].includes(e.position)){var i=e.every,a=e.ads,o={every:i,position:t(e),ads:a,played:!1,loadedPromise:Promise.resolve()};r._logger.debug("Pushing next ad for live",o),n.push(o)}})),n.length&&(this._configAdBreaks=[].concat(n,this._configAdBreaks.filter((function(e){return-1===e.position}))))},s._handleConfiguredMidrolls=function(){var e=this;this._eventManager.listen(this._player,l.Html5EventType.TIME_UPDATE,(function(){if(!e._player.paused&&!e._liveSeeking){var t=e._configAdBreaks.filter((function(t){return!t.played&&e._player.currentTime&&t.position<=e._player.currentTime&&t.position>e._snapback}));if(t.length){var n=t[t.length-1].position,i=t.filter((function(e){return e.position===n}));if(e._player.isLive())!e._player.isDvr()||e._player.isOnLiveEdge()&&e._player.config.advertising.returnToLive?e._handleReturnToLive(i):e._pushNextAdsForLive(i,(function(t){return(e._player.isOnLiveEdge()?e._player.currentTime:t.position)+t.every}));else e._snapback=n,r._logger.debug("Set snapback value "+e._snapback),e._eventManager.listen(e._player,l.Html5EventType.SEEKED,(function(){var t=e._configAdBreaks.findIndex((function(t){return t.played&&"number"==typeof e._player.currentTime&&e._player.currentTime<t.position}));t>0&&!e._configAdBreaks[t-1].played&&(e._snapback=0,r._logger.debug("Reset snapback value"))}));var a=e._mergeAdBreaks(i);a&&e._playAdBreak(a)}}}))},s._handleReturnToLive=function(e){var t=this;this._liveEventManager.listenOnce(this._player,l.AdEventType.AD_ERROR,(function(){t._pushNextAdsForLive(e,(function(e){return(t._player.isOnLiveEdge()?t._player.currentTime:e.position)+e.every}))})),this._liveEventManager.listenOnce(this._player,l.AdEventType.AD_BREAK_END,(function(){t._player.seekToLiveEdge()}))},s._playAdBreak=function(e){var t=this._adsPluginControllers.find((function(e){return"function"==typeof e.playAdNow}));t?(e.played=!0,this._adIsLoading=!0,r._logger.debug("Playing ad break positioned in "+e.position),e.loadedPromise.then((function(){return t.playAdNow(e.ads)}))):r._logger.warn("No ads plugin registered")},s._onAdManifestLoaded=function(e){this._adBreaksLayout=Array.from(new Set(this._adBreaksLayout.concat(e.payload.adBreaksPosition))).sort(),this._allAdsCompleted=!1},s._onAdBreakStart=function(e){this._adBreak=e.payload.adBreak},s._onAdLoaded=function(){this._adIsLoading=!1},s._onAdStarted=function(e){this._ad=e.payload.ad,this._adPlayed=!0,this._isAdPlaying=!0},s._onAdBreakEnd=function(){this._adBreak=null,this._ad=null},s._onAdsCompleted=function(){this._adsPluginControllers.every((function(e){return e.done}))&&this._configAdBreaks.every((function(e){return e.played}))&&(this._allAdsCompleted=!0,r._logger.debug(l.AdEventType.ALL_ADS_COMPLETED),this.dispatchEvent(new l.FakeEvent(l.AdEventType.ALL_ADS_COMPLETED)))},s._onAdError=function(e){this._adIsLoading=!1,e.payload.severity===l.Error.Severity.CRITICAL&&(this._isAdPlaying=!1,this._adsPluginControllers.every((function(e){return e.done}))&&this._configAdBreaks.every((function(e){return e.played}))&&(this._allAdsCompleted=!0,this._adPlayed&&(r._logger.debug(l.AdEventType.ALL_ADS_COMPLETED),this.dispatchEvent(new l.FakeEvent(l.AdEventType.ALL_ADS_COMPLETED)))))},s._isBumper=function(e){return"bumper"===e.name},s._onEnded=function(){var e=this;if(!this._adIsLoading){var t=this._adsPluginControllers.find((function(t){return e._isBumper(t)})),n=this._adsPluginControllers.find((function(t){return!e._isBumper(t)&&!t.done})),r=t&&"function"==typeof t.onPlaybackEnded?function(){return t.onPlaybackEnded()}:function(){return Promise.resolve()},i=n&&"function"==typeof n.onPlaybackEnded?function(){return n.onPlaybackEnded()}:function(){return Promise.resolve()};this._adBreaksLayout.includes(-1)||this._adBreaksLayout.includes("100%")||(this._allAdsCompleted=!0),r().finally((function(){i().finally((function(){return e._handleConfiguredPostroll()}))}))}},s._onPlaybackEnded=function(){this._configAdBreaks.forEach((function(e){return e.played=!0}))},s._handleConfiguredPostroll=function(){var e=this._configAdBreaks.filter((function(e){return!e.played&&-1===e.position}));if(e.length){var t=this._mergeAdBreaks(e);t&&this._playAdBreak(t)}this._configAdBreaks.forEach((function(e){return e.played=!0}))},s._reset=function(){this._eventManager.removeAll(),this._liveEventManager.removeAll(),this._init()},s._destroy=function(){this._adsPluginControllers=[],this._eventManager.destroy(),this._liveEventManager.destroy()},s._mergeAdBreaks=function(e){if(e.length)return e.forEach((function(e){return e.played=!0})),{position:e[0].position,ads:e.reduce((function(e,t){return e.concat(t.ads)}),[]),played:!1,loadedPromise:Promise.all(e.map((function(e){return e.loadedPromise})))}},i=r,(a=[{key:"allAdsCompleted",get:function(){return this._allAdsCompleted}}])&&Dt(i.prototype,a),o&&Dt(i,o),Object.defineProperty(i,"prototype",{writable:!1}),r}(l.FakeEventTarget);!function(e,t,n){(t=Ot(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Lt,"_logger",Object(l.getLogger)("AdsController"));var Mt=function(){function e(e){this._pluginManager=e}return e.prototype.getAdsControllers=function(){return Object.values(this._pluginManager.getAll()).filter((function(e){return"function"==typeof e.getAdsController})).map((function(e){return e.getAdsController()}))},e}();function Nt(e,t){return(Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ut(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ft=function(e){var t,n;function r(t){var n;return Ut(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call(this)||this),"id","PluginReadinessMiddleware"),n._plugins=t,r._logger.debug("plugins readiness",n._plugins),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Nt(t,n);var i=r.prototype;return i.load=function(e){this._checkNextSettle(0,e)},i._checkNextSettle=function(e,t){e<this._plugins.length?this._checkSettle(e,t):this.callNext(t)},i._checkSettle=function(e,t){var n=this;(this._plugins[e].ready?this._plugins[e].ready:Promise.resolve()).then((function(){r._logger.debug("plugin "+n._plugins[e].name+" ready promise resolved"),n._checkNextSettle(e+1,t)})).catch((function(){r._logger.debug("plugin "+n._plugins[e].name+" ready promise rejected"),n._checkNextSettle(e+1,t)}))},i.play=function(e){this._checkNextSettle(0,e)},r}(l.BaseMiddleware);function jt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ut(Ft,"_logger",Object(l.getLogger)("PluginReadinessMiddleware"));var Bt=function(){function e(e){jt(this,"_textTrack",null),this._player=e}var t=e.prototype;return t._addTextTrack=function(){this._textTrack=this._player.addTextTrack(l.TextTrack.KIND.METADATA,"CuePoints")},t._getMetadataTracks=function(){return this._player.getNativeTextTracks().filter((function(e){return e.kind===l.TextTrack.KIND.METADATA&&e.cues}))},t._createTextTrackCue=function(e){var t=e.startTime,n=e.endTime,r=e.id,i=e.metadata;return Object(l.createTextTrackCue)({startTime:t,endTime:n,id:r,type:l.TimedMetadata.TYPE.CUE_POINT,metadata:i})},t._cuesSorter=function(e,t){return e.startTime-t.startTime},t.getAllCuePoints=function(){return this._getMetadataTracks().reduce((function(e,t){return e.concat(Array.from(t.cues).map((function(e){return Object(l.createTimedMetadata)(e)})))}),[]).sort(this._cuesSorter)},t.getActiveCuePoints=function(){return this._getMetadataTracks().reduce((function(e,t){return e.concat(Array.from(t.activeCues).map((function(e){return Object(l.createTimedMetadata)(e)})))}),[]).sort(this._cuesSorter)},t._getTextTrackCueById=function(e){var t=null;return this._getMetadataTracks().some((function(n){return t=n.cues.getCueById(e)})),t},t._removeTextTrackCue=function(e){this._getMetadataTracks().forEach((function(t){try{t.removeCue(e)}catch(e){}}))},t.addCuePoints=function(e){var t=this;this._player.ready().then((function(){t._textTrack||t._addTextTrack();var n=[];e.forEach((function(e){var r,i=t._createTextTrackCue(e),a=t._getTextTrackCueById(e.id);a&&t._removeTextTrackCue(a),null==(r=t._textTrack)||r.addCue(i),n.push(Object(l.createTimedMetadata)(i))})),t._player.dispatchEvent(new l.FakeEvent(l.EventType.TIMED_METADATA_ADDED,{cues:n}))}))},t._clearAllTextTrackCues=function(){var e=this;this._getMetadataTracks().forEach((function(t){for(;t.cues.length;)e._removeTextTrackCue(t.cues[0])}))},t.reset=function(){this._clearAllTextTrackCues()},t.destroy=function(){this.reset()},e}();function Vt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ht=function(){function e(t){var n=this;Vt(this,"_servicesRegistry",new Map),e._logger=Object(l.getLogger)("ServiceProvider"),this._eventManager=new l.EventManager,this._eventManager.listen(t,t.Event.Core.PLAYER_RESET,(function(){return n.reset()}))}var t=e.prototype;return t.register=function(t,n){this._servicesRegistry.has(t)?e._logger.debug(t+" service already exists"):(this._servicesRegistry.set(t,n),e._logger.debug(t+" service registered"))},t.get=function(e){return this._servicesRegistry.get(e)},t.has=function(e){return this._servicesRegistry.has(e)},t.reset=function(){this._servicesRegistry.forEach((function(e){return"function"==typeof e.reset&&e.reset()}))},t.destroy=function(){this._servicesRegistry.forEach((function(e){return"function"==typeof e.destroy&&e.destroy()})),this._eventManager.removeAll(),this._servicesRegistry.clear()},e}();function Kt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */zt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),s=new w(i||[]);return r(o,"_invoke",{value:E(e,n,s)}),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p={};function d(){}function f(){}function h(){}var g={};l(g,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(S([])));v&&v!==t&&n.call(v,a)&&(g=v);var m=h.prototype=d.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var i;r(this,"_invoke",{value:function(r,a){function o(){return new t((function(i,o){!function r(i,a,o,s){var l=c(e[i],e,a);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(p).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(r,a,i,o)}))}return i=i?i.then(o,o):o()}})}function E(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return C()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=h,r(m,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:f,configurable:!0}),f.displayName=l(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},b(_.prototype),l(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new _(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(m),l(m,s,"Generator"),l(m,a,(function(){return this})),l(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function Wt(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Yt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Wt(a,r,i,o,s,"next",e)}function s(e){Wt(a,r,i,o,s,"throw",e)}o(void 0)}))}}var qt=[["widevine","com.widevine.alpha"],["playready","com.microsoft.playready"],["fairplay","com.apple.fps"]],Xt=Object(l.getLogger)("MediaCapabilities"),$t=1,Qt=0,Zt=-1;function Jt(){return(Jt=Yt(zt().mark((function e(t){var n,r,i;return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Xt.debug("Starting to get media capabilities..."),e.next=4,nn(t);case 4:return r=e.sent,e.next=7,en();case 7:return i=e.sent,n=Object.assign({},r,i),Xt.debug("Finished getting media capabilities ",{mediaCapabilities:n}),e.abrupt("return",n);case 13:return e.prev=13,e.t0=e.catch(0),Xt.debug("There was a problem with getting the media capabilities, ",e.t0.message),n={isHEVCSupported:Qt,isPowerEfficient:Qt,isDRMSupported:Qt,supportedDRMs:[]},Xt.debug("Returning media capabilities defaults ",{mediaCapabilities:n}),e.abrupt("return",n);case 19:case"end":return e.stop()}}),e,null,[[0,13]])})))).apply(this,arguments)}function en(){return tn.apply(this,arguments)}function tn(){return(tn=Yt(zt().mark((function e(){var t,n,r,i,a,o,s,l;return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={isDRMSupported:Zt,supportedDRMs:[]},navigator.requestMediaKeySystemAccess){e.next=3;break}return e.abrupt("return",t);case 3:n=[{initDataTypes:["cenc"],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.42E01E"'}]}],r=new Map(qt),i=Kt(r);case 6:if((a=i()).done){e.next=19;break}return o=a.value,s=o[0],l=o[1],e.prev=8,e.next=11,navigator.requestMediaKeySystemAccess(l,n);case 11:t.supportedDRMs.push(s),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(8),Xt.debug(l+" not supported ("+e.t0.name+": "+e.t0.message+").");case 17:e.next=6;break;case 19:return t.isDRMSupported=t.supportedDRMs.length>0?$t:Qt,e.abrupt("return",t);case 21:case"end":return e.stop()}}),e,null,[[8,14]])})))).apply(this,arguments)}function nn(e){return rn.apply(this,arguments)}function rn(){return(rn=Yt(zt().mark((function e(t){var n,r,i;return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={isHEVCSupported:Zt,isPowerEfficient:Zt},navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo){e.next=3;break}return e.abrupt("return",n);case 3:return r={type:"media-source",video:{contentType:'video/mp4; codecs="hvc1.1.6.L150.90"',width:(null==t?void 0:t.width)||1920,height:(null==t?void 0:t.height)||1080,bitrate:(null==t?void 0:t.bitrate)||12e5,framerate:(null==t?void 0:t.framerate)||30}},e.prev=4,e.next=7,navigator.mediaCapabilities.decodingInfo(r);case 7:i=e.sent,n.isHEVCSupported=i.supported?$t:Qt,n.isPowerEfficient=i.powerEfficient?$t:Qt,e.next=17;break;case 12:e.prev=12,e.t0=e.catch(4),Xt.debug("Failed to get the media capabilities from navigator. ("+e.t0.name+": "+e.t0.message+")."),n.isHEVCSupported=Zt,n.isPowerEfficient=Zt;case 17:return e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,null,[[4,12]])})))).apply(this,arguments)}var an=function(e){return Jt.apply(this,arguments)};function on(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */on=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),s=new w(i||[]);return r(o,"_invoke",{value:E(e,n,s)}),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p={};function d(){}function f(){}function h(){}var g={};l(g,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(S([])));v&&v!==t&&n.call(v,a)&&(g=v);var m=h.prototype=d.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var i;r(this,"_invoke",{value:function(r,a){function o(){return new t((function(i,o){!function r(i,a,o,s){var l=c(e[i],e,a);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(p).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(r,a,i,o)}))}return i=i?i.then(o,o):o()}})}function E(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return C()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=h,r(m,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:f,configurable:!0}),f.displayName=l(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},b(_.prototype),l(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new _(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(m),l(m,s,"Generator"),l(m,a,(function(){return this})),l(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function sn(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function ln(){return(ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fn(r.key),r)}}function cn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pn(e,t){return(pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dn(e,t,n){return(t=fn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fn(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var hn=function(e){var t,n;function r(t){var n;dn(cn(n=e.call(this)||this),"_eventManager",new l.EventManager),dn(cn(n),"_mediaInfo",null),dn(cn(n),"_remotePlayer",null),dn(cn(n),"_pluginManager",new ee),dn(cn(n),"_pluginsConfig",{}),dn(cn(n),"_reset",!0),dn(cn(n),"_firstPlay",!0),dn(cn(n),"_sourceSelected",null),dn(cn(n),"_appPluginConfig",{}),dn(cn(n),"_thumbnailManager",null),dn(cn(n),"_isVisible",!1),dn(cn(n),"_autoPaused",!1);var r=t.sources,i=t.plugins;n._configEvaluator=new fe,n._configEvaluator.evaluatePluginsConfig(i,t),n._playbackStart=!1;var a=l.Utils.Object.mergeDeep({},t);delete a.plugins,delete a.sources,n._localPlayer=Object(l.loadPlayer)(a),n._controllerProvider=new Mt(n._pluginManager),n._viewabilityManager=new L(n.config.viewability),n._uiWrapper=new ke(cn(n),l.Utils.Object.mergeDeep(t,{ui:{logger:{getLogger:l.getLogger,LogLevel:l.LogLevel}}})),n._serviceProvider=new Ht(cn(n)),n._cuepointManager=new Bt(cn(n)),n._provider=new c.Provider(l.Utils.Object.mergeDeep(t.provider,{logger:{getLogger:l.getLogger,LogLevel:l.LogLevel}}),"3.14.4"),n._playlistManager=new Oe(cn(n),t),Object.values(l.EventType).forEach((function(e){return n._eventManager.listen(n._localPlayer,e,(function(e){return n.dispatchEvent(e)}))})),n._addBindings();var o=l.Utils.Object.mergeDeep({},t.playlist,{items:null});return n._playlistManager.configure(o),n.configure({plugins:i}),n._playlistManager.configure({items:t.playlist&&t.playlist.items||[]}),n._localPlayer.setSources(r||{}),n._remotePlayerManager=new mt,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,pn(t,n);var i,a,o,s=r.prototype;return s.loadMedia=function(e,t){var n=this;return r._logger.debug("loadMedia",e),this._mediaInfo=e,this.reset(),this._localPlayer.loadingMedia=!0,this._uiWrapper.setLoadingSpinnerState(!0),new Promise((function(r,i){n._provider.getMediaConfig(e).then((function(e){var i=l.Utils.Object.copyDeep(e);t&&(i.sources=i.sources||{},i.sources=l.Utils.Object.mergeDeep(i.sources,t));var a=X(i.plugins,n.config.plugins);i.plugins=a[0],n._appPluginConfig=a[1],n.configure(d({sources:n.sources},i)),n.setMedia(i),r(i)}),(function(e){var t=new l.Error(l.Error.Severity.CRITICAL,l.Error.Category.PLAYER,l.Error.Code.LOAD_FAILED,e);n._localPlayer.dispatchEvent(new l.FakeEvent(l.EventType.ERROR,t)),i(e)}))}))},s.setMedia=function(e){r._logger.debug("setMedia",e),this.reset(!0);var t=l.Utils.Object.copyDeep(e),n=l.Utils.Object.mergeDeep({},t.sources,this._localPlayer.sources);delete t.sources,l.Utils.Object.mergeDeep(t.session,this._localPlayer.config.session),t.plugins=t.plugins||{},Object.keys(this._pluginsConfig).forEach((function(e){t.plugins[e]=t.plugins[e]||{}})),this.configure({session:e.session}),Y(n)||q(n)?this._thumbnailManager=null:this._thumbnailManager=new me(this,this.config.ui,e),this.updateKalturaPoster(n,e.sources,this._localPlayer.dimensions),O(this,ln({},t,{sources:n}));var i=function(e,t){return t&&Y(t)?W(e,"youtube","progressive"):t&&q(t)?W(e,"image","image"):null}(this,n);i&&(t.playback=i),this.configure(ln({},t,{sources:n}))},s.updateKalturaPoster=function(e,t,n){var r,i;!function(e,t,n,r){var i=e.poster,a=t.poster,o=n.width,s=n.height;"string"==typeof i&&ve.test(i)&&i===a&&(e.poster=i+"/height/"+s+"/width/"+o+(r?"/ks/"+r:"")),t.poster=e.poster||""}(e,t,n,this.shouldAddKs()?null==(r=this.config)||null==(i=r.session)?void 0:i.ks:"")},s.shouldAddKs=function(e){var t,n;return!(!this.config.provider.loadThumbnailWithKs||!1!==(null==(t=e||this.config)||null==(n=t.session)?void 0:n.isAnonymous))},s.loadPlaylist=function(e,t){var n=this;return r._logger.debug("loadPlaylist",e),this._uiWrapper.setLoadingSpinnerState(!0),new Promise((function(r,i){n._provider.getPlaylistConfig(e).then((function(e){n.setPlaylist(e,t),r(e)}),(function(e){var t=new l.Error(l.Error.Severity.CRITICAL,l.Error.Category.PLAYER,l.Error.Code.LOAD_FAILED,e);n._localPlayer.dispatchEvent(new l.FakeEvent(l.EventType.ERROR,t)),i(e)}))}))},s.loadPlaylistByEntryList=function(e,t){var n=this;return r._logger.debug("loadPlaylistByEntryList",e),this._uiWrapper.setLoadingSpinnerState(!0),new Promise((function(r,i){n._provider.getEntryListConfig(e).then((function(i){n.setPlaylist(i,t,e),r(i)}),(function(e){var t=new l.Error(l.Error.Severity.CRITICAL,l.Error.Category.PLAYER,l.Error.Code.LOAD_FAILED,e);n._localPlayer.dispatchEvent(new l.FakeEvent(l.EventType.ERROR,t)),i(e)}))}))},s.setPlaylist=function(e,t,n){r._logger.debug("setPlaylist",e);var i={playlist:e,plugins:{}};Object.keys(this._pluginsConfig).forEach((function(e){i.plugins[e]={}})),this._configEvaluator.evaluatePluginsConfig(i.plugins,i),this._configureOrLoadPlugins(i.plugins),this._playlistManager.load(e,t,n)},s.getMediaInfo=function(){return l.Utils.Object.copyDeep(this._mediaInfo)},s.getDrmInfo=function(){return this._localPlayer.getDrmInfo()},s.getMediaConfig=function(){var e={sources:this._localPlayer.sources,plugins:this._pluginsConfig};return l.Utils.Object.copyDeep(e)},s.setSourcesMetadata=function(e){this._localPlayer.setSourcesMetadata(e)},s.configure=function(e){void 0===e&&(e={}),e=z(e);var t=l.Utils.Object.mergeDeep({},this.config,e);this._configEvaluator.evaluatePluginsConfig(e.plugins,t),this._configureOrLoadPlugins(e.plugins);var n=l.Utils.Object.mergeDeep({},e);if(delete n.plugins,n.sources){var r=n.sources;delete n.sources,this._localPlayer.configure(n),this._localPlayer.setSources(r||{})}else this._localPlayer.configure(n);e.ui&&this._uiWrapper.setConfig(t.ui),e.playlist&&this._playlistManager.configure(e.playlist)},s.ready=function(){return this._localPlayer.ready()},s.load=function(){this._localPlayer.load()},s.play=function(){this._localPlayer.play()},s.pause=function(){this._localPlayer.pause()},s.getView=function(){return this._localPlayer.getView()},s.getVideoElement=function(){return this._localPlayer.getVideoElement()},s.reset=function(e){var t;(void 0===e&&(e=!1),this._reset)||(this._reset=!0,this._firstPlay=!0,this._sourceSelected=null,this._attachEventManager&&this._attachEventManager.removeAll(),this._uiWrapper.reset(),this._resetProviderPluginsConfig(),this._pluginManager.reset(),this._cuepointManager.reset(),this._localPlayer.reset(e),null==(t=this._thumbnailManager)||t.destroy())},s.destroy=function(){var e,t=this.config.ui.targetId;this._reset=!0,this._playbackStart=!1,this._firstPlay=!0,this._uiWrapper.destroy(),this._pluginManager.destroy(),this._cuepointManager.destroy(),this._playlistManager.destroy(),this._localPlayer.destroy(),this._eventManager.destroy(),null==(e=this._thumbnailManager)||e.destroy(),this._viewabilityManager.destroy(),this._remotePlayerManager.destroy(),this._pluginsConfig={};var n=document.getElementById(t);n&&n.parentNode&&l.Utils.Dom.removeChild(n.parentNode,n)},s.isLive=function(){return this._localPlayer.isLive()},s.isOnLiveEdge=function(){return this._localPlayer.isOnLiveEdge()},s.isDvr=function(){return this._localPlayer.isDvr()},s.isUntimedImg=function(){return q(this.sources)&&!("number"==typeof this.config.sources.duration&&this.config.sources.duration>0)},s.isImage=function(){return q(this.sources)},s.seekToLiveEdge=function(){this._localPlayer.seekToLiveEdge()},s.getStartTimeOfDvrWindow=function(){return this._localPlayer.getStartTimeOfDvrWindow()},s.getTracks=function(e){return this._localPlayer.getTracks(e)},s.getActiveTracks=function(){return this._localPlayer.getActiveTracks()},s.selectTrack=function(e){this._localPlayer.selectTrack(e)},s.hideTextTrack=function(){this._localPlayer.hideTextTrack()},s.showTextTrack=function(){this._localPlayer.showTextTrack()},s.enableAdaptiveBitrate=function(){this._localPlayer.enableAdaptiveBitrate()},s.isAdaptiveBitrateEnabled=function(){return this._localPlayer.isAdaptiveBitrateEnabled()},s.setTextDisplaySettings=function(e){this._localPlayer.setTextDisplaySettings(e)},s.isFullscreen=function(){return this._localPlayer.isFullscreen()},s.notifyEnterFullscreen=function(){this._localPlayer.notifyEnterFullscreen()},s.notifyExitFullscreen=function(){this._localPlayer.notifyExitFullscreen()},s.enterFullscreen=function(e){var t=e||this.config.ui.targetId;this._localPlayer.enterFullscreen(t)},s.exitFullscreen=function(){this._localPlayer.exitFullscreen()},s.enterPictureInPicture=function(){this._localPlayer.enterPictureInPicture()},s.exitPictureInPicture=function(){this._localPlayer.exitPictureInPicture()},s.isInPictureInPicture=function(){return this._localPlayer.isInPictureInPicture()},s.isPictureInPictureSupported=function(){return this._localPlayer.isPictureInPictureSupported()},s.getLogLevel=function(e){return this._localPlayer.getLogLevel(e)},s.startCasting=function(e){var t=this;return this.setIsCastInitiator(e,!0),new Promise((function(n,r){t.remotePlayerManager.startCasting(e).then(n).catch((function(){t.setIsCastInitiator(e,!1),r()}))}))},s.setIsCastInitiator=function(e,t){this._remotePlayerManager.setIsCastInitiator(e,t)},s.isCastAvailable=function(e){return this._remotePlayerManager.isCastAvailable(e)},s.getCastSession=function(){return null},s.stopCasting=function(){},s.isCasting=function(){return!1},s.isVr=function(){return this._localPlayer.isVr()},s.toggleVrStereoMode=function(){var e=this._pluginManager.get("vr");e&&"function"==typeof e.toggleVrStereoMode&&e.toggleVrStereoMode()},s.isInVrStereoMode=function(){var e=this._pluginManager.get("vr");return!(!e||"function"!=typeof e.isInStereoMode)&&e.isInStereoMode()},s.setLogLevel=function(e,t){this._localPlayer.setLogLevel(e,t)},s.getThumbnail=function(e){if(!e){if(isNaN(this.currentTime))return null;e=this.currentTime}if(e=this.isLive()?e+this.getStartTimeOfDvrWindow():e,this._thumbnailManager)return this._thumbnailManager.getThumbnail(e)},s._addBindings=function(){var e=this;this._eventManager.listen(this,l.EventType.CHANGE_SOURCE_STARTED,(function(){return e._onChangeSourceStarted()})),this._eventManager.listen(this,l.EventType.CHANGE_SOURCE_ENDED,(function(){return e._onChangeSourceEnded()})),this._eventManager.listen(this,l.EventType.PLAYER_RESET,(function(){return e._onPlayerReset()})),this._eventManager.listen(this,l.EventType.ENDED,(function(){return e._onEnded()})),this._eventManager.listen(this,l.EventType.FIRST_PLAY,(function(){return e._firstPlay=!1})),this._eventManager.listen(this,l.EventType.SOURCE_SELECTED,(function(t){return e._sourceSelected=t.payload.selectedSource[0]})),this._eventManager.listen(this,l.EventType.PLAYBACK_ENDED,(function(){return e._onPlaybackEnded()})),this._eventManager.listen(this,l.EventType.PLAYBACK_START,(function(){e._playbackStart=!0})),this._eventManager.listen(this,l.AdEventType.AD_AUTOPLAY_FAILED,(function(t){return e._onAdAutoplayFailed(t)})),this._eventManager.listen(this,l.AdEventType.AD_STARTED,(function(){return e._onAdStarted()})),this.config.playback.playAdsWithMSE&&(this._attachEventManager=new l.EventManager,this._eventManager.listen(this,l.AdEventType.AD_LOADED,(function(t){var n=t.payload.ad;n&&n.linear&&1===n.position&&!n.inStream&&e.src?(e._attachEventManager.listenOnce(e,l.AdEventType.AD_BREAK_START,(function(){return e.detachMediaSource()})),e._attachEventManager.listenOnce(e,l.AdEventType.AD_BREAK_END,(function(){return e.attachMediaSource()})),e._attachEventManager.listenOnce(e,l.AdEventType.AD_ERROR,(function(){return e.attachMediaSource()}))):e._attachEventManager.removeAll()}))),this._eventManager.listen(this,l.EventType.ERROR,(function(t){t.payload.severity===l.Error.Severity.CRITICAL&&(e._reset=!1)}))},s._onChangeSourceEnded=function(){l.Utils.Object.getPropertyPath(this.config,"ui.targetId")?this._viewabilityManager.observe(l.Utils.Dom.getElementById(this.config.ui.targetId),this._handleVisibilityChange.bind(this)):r._logger.warn("Cannot observe visibility change without config.ui.targetId")},s._onPlayerReset=function(){this._playbackStart=!1,l.Utils.Object.getPropertyPath(this.config,"ui.targetId")&&this._viewabilityManager.unObserve(l.Utils.Dom.getElementById(this.config.ui.targetId),this._handleVisibilityChange.bind(this))},s._onChangeSourceStarted=function(){this._configureOrLoadPlugins(this._pluginsConfig),this.reset(),this._pluginManager.loadMedia(),this._reset=!1},s._onEnded=function(){var e=this;setTimeout((function(){e._adsController&&!e._adsController.allAdsCompleted?e._eventManager.listenOnce(e._adsController,l.AdEventType.ALL_ADS_COMPLETED,(function(){e.dispatchEvent(new l.FakeEvent(l.EventType.PLAYBACK_ENDED))})):e.dispatchEvent(new l.FakeEvent(l.EventType.PLAYBACK_ENDED))}))},s._onPlaybackEnded=function(){this.config.playback.loop&&(this.currentTime=0,this.play())},s._onAdStarted=function(){this._firstPlay&&(this._localPlayer.posterManager.hide(),this._localPlayer.hideBlackCover())},s._onAdAutoplayFailed=function(e){this._firstPlay&&this.config.playback.autoplay&&(this._localPlayer.posterManager.show(),this.dispatchEvent(new l.FakeEvent(l.EventType.AUTOPLAY_FAILED,e.payload)))},s._configureOrLoadPlugins=function(e){var t=this;void 0===e&&(e={});var n=[],r=[],i=[];Object.keys(e).forEach((function(a){var o=t._pluginManager.get(a);if(o)o.updateConfig(e[a]),e[a]=o.getConfig();else if(t._sourceSelected)delete e[a];else{try{t._pluginManager.load(a,t,e[a])}catch(e){t.dispatchEvent(new l.FakeEvent(l.Error.Code.ERROR,e))}var s=t._pluginManager.get(a);s&&(i.push(s),e[a]=s.getConfig(),"function"==typeof s.getMiddlewareImpl&&("bumper"===s.name?n.push(s.getMiddlewareImpl()):n.unshift(s.getMiddlewareImpl())),"function"==typeof s.getUIComponents&&r.push.apply(r,s.getUIComponents()||[]),"function"==typeof s.getEngineDecorator&&t._localPlayer.registerEngineDecoratorProvider(new l.EngineDecoratorProvider(s)))}})),r.forEach((function(e){return t._uiWrapper.addComponent(e)})),this._pluginReadinessMiddleware||(this._pluginReadinessMiddleware=new Ft(i),this._localPlayer.playbackMiddleware.use(this._pluginReadinessMiddleware)),this._maybeCreateAdsController(),n.forEach((function(e){return t._localPlayer.playbackMiddleware.use(e)})),l.Utils.Object.mergeDeep(this._pluginsConfig,e)},s._maybeCreateAdsController=function(){var e=this;if(!this._adsController){var t=this._controllerProvider.getAdsControllers();t.length&&(this._adsController=new Lt(this,t),this._localPlayer.playbackMiddleware.use(this._adsController.getMiddleware()),this._eventManager.listen(this._adsController,l.AdEventType.ALL_ADS_COMPLETED,(function(t){e.dispatchEvent(t)})))}},s.attachMediaSource=function(){this._localPlayer.attachMediaSource()},s.detachMediaSource=function(){this._localPlayer.detachMediaSource()},s._resetProviderPluginsConfig=function(){this.configure({plugins:this._appPluginConfig}),this._appPluginConfig={}},s._handleVisibilityChange=function(e){this._isVisible=e,this.dispatchEvent(new l.FakeEvent("visibilitychange",{visible:this._isVisible})),this.config.playback.autoplay===l.AutoPlayType.IN_VIEW&&this._isVisible&&!this._playbackStart&&this._localPlayer.play({programmatic:!0}),!0===this.config.playback.autopause&&this._handleAutoPause(e)},s._handleAutoPause=function(e){var t=!this.paused||this._adsController&&this._adsController.isAdPlaying(),n=!this.isInPictureInPicture()&&this._playbackStart&&t;e?this._autoPaused&&(this.paused&&this.play(),this._autoPaused=!1):n&&(this.pause(),this._autoPaused=!0)},s.getService=function(e){return this._serviceProvider.get(e)},s.hasService=function(e){return this._serviceProvider.has(e)},s.registerService=function(e,t){this._serviceProvider.register(e,t)},s.addTextTrack=function(e,t){return this._localPlayer.addTextTrack(e,t)},s.getNativeTextTracks=function(){return this._localPlayer.getNativeTextTracks()},s.getMediaCapabilities=function(){var e,t=(e=on().mark((function e(t){return on().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",an(t));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){sn(a,r,i,o,s,"next",e)}function s(e){sn(a,r,i,o,s,"throw",e)}o(void 0)}))});return function(e){return t.apply(this,arguments)}}(),i=r,(a=[{key:"textDisplaySetting",get:function(){return this._localPlayer.textDisplaySetting}},{key:"textStyle",get:function(){return this._localPlayer.textStyle},set:function(e){this._localPlayer.textStyle=e}},{key:"buffered",get:function(){return this._localPlayer.buffered}},{key:"stats",get:function(){return this._localPlayer.stats}},{key:"currentTime",get:function(){return this._localPlayer.currentTime},set:function(e){this._localPlayer.currentTime=e}},{key:"duration",get:function(){return this._localPlayer.duration}},{key:"liveDuration",get:function(){return this._localPlayer.liveDuration}},{key:"normalizedCurrentTime",get:function(){return this.isLive()?this.currentTime-this.getStartTimeOfDvrWindow():this.currentTime},set:function(e){this.isLive()?this.currentTime=e+this.getStartTimeOfDvrWindow():this.currentTime=e}},{key:"normalizedDuration",get:function(){return this.isLive()?this.liveDuration-this.getStartTimeOfDvrWindow():this.duration}},{key:"volume",get:function(){return this._localPlayer.volume},set:function(e){this._localPlayer.volume=e}},{key:"paused",get:function(){return this._localPlayer.paused}},{key:"seeking",get:function(){return this._localPlayer.seeking}},{key:"playsinline",get:function(){return this._localPlayer.playsinline},set:function(e){this._localPlayer.playsinline=e}},{key:"muted",get:function(){return this._localPlayer.muted},set:function(e){this._localPlayer.muted=e}},{key:"src",get:function(){return this._localPlayer.src}},{key:"videoHeight",get:function(){return this._localPlayer.videoHeight}},{key:"videoWidth",get:function(){return this._localPlayer.videoWidth}},{key:"dimensions",get:function(){return this._localPlayer.dimensions},set:function(e){this._localPlayer.dimensions=e}},{key:"poster",get:function(){return this._localPlayer.poster}},{key:"ended",get:function(){return this._localPlayer.ended}},{key:"playbackRate",get:function(){return this._localPlayer.playbackRate},set:function(e){this._localPlayer.playbackRate=e}},{key:"playbackRates",get:function(){return this._localPlayer.playbackRates}},{key:"defaultPlaybackRate",get:function(){return this._localPlayer.defaultPlaybackRate}},{key:"engineType",get:function(){return this._localPlayer.engineType}},{key:"streamType",get:function(){return this._localPlayer.streamType}},{key:"env",get:function(){return this._localPlayer.env}},{key:"selectedSource",get:function(){return this._sourceSelected}},{key:"sources",get:function(){return ln({},this._localPlayer.sources)}},{key:"config",get:function(){return ln({},this._localPlayer.config,{plugins:this._pluginsConfig,sources:this._localPlayer.sources})}},{key:"hasUserInteracted",get:function(){return this._localPlayer.hasUserInteracted}},{key:"loadingMedia",set:function(e){this._localPlayer.loadingMedia=e}},{key:"ads",get:function(){return this._adsController}},{key:"plugins",get:function(){return this._pluginManager.getAll()}},{key:"provider",get:function(){return this._provider}},{key:"ui",get:function(){return this._uiWrapper}},{key:"playlist",get:function(){return this._playlistManager}},{key:"Event",get:function(){return ln({Cast:Le,Core:l.EventType,Playlist:Te,UI:u.EventType},l.EventType,{VISIBILITY_CHANGE:"visibilitychange"})}},{key:"TextStyle",get:function(){return this._localPlayer.TextStyle}},{key:"ViewabilityType",get:function(){return M}},{key:"State",get:function(){return this._localPlayer.State}},{key:"Track",get:function(){return this._localPlayer.Track}},{key:"LogLevelType",get:function(){return this._localPlayer.LogLevelType}},{key:"LogLevel",get:function(){return this._localPlayer.LogLevel}},{key:"AbrMode",get:function(){return this._localPlayer.AbrMode}},{key:"MediaType",get:function(){return this._localPlayer.MediaType}},{key:"StreamType",get:function(){return this._localPlayer.StreamType}},{key:"EngineType",get:function(){return this._localPlayer.EngineType}},{key:"Error",get:function(){return this._localPlayer.Error}},{key:"crossOrigin",get:function(){return this._localPlayer.crossOrigin},set:function(e){this._localPlayer.crossOrigin=e}},{key:"isVisible",get:function(){return this._isVisible}},{key:"viewabilityManager",get:function(){return this._viewabilityManager}},{key:"cuePointManager",get:function(){return this._cuepointManager}},{key:"remotePlayerManager",get:function(){return this._remotePlayerManager}}])&&un(i.prototype,a),o&&un(i,o),Object.defineProperty(i,"prototype",{writable:!1}),r}(l.FakeEventTarget);dn(hn,"_logger",Object(l.getLogger)("KalturaPlayer"+l.Utils.Generator.uniqueId(5)));var gn={};function yn(){return gn}function vn(e){return gn[e]?gn[e]:null}var mn=["_remotePlayer","_listeners","_uiWrapper"],bn={get:function(e,t){if("destroy"===t){var n=e.config.targetId;delete gn[n]}return t in l.FakeEventTarget.prototype||mn.includes(t)?e[t]:e._remotePlayer&&t in e._remotePlayer?e._remotePlayer[t]:e[t]},set:function(e,t,n){return e._remotePlayer&&!mn.includes(t)?t in e._remotePlayer&&(e._remotePlayer[t]=n):e[t]=n,!0}};function _n(e){!function(e){!1!==l.Utils.Object.getPropertyPath(e,"log.playerVersion")&&(Object(l.setLogLevel)(l.LogLevel.INFO),Object(l.getLogger)().log("%c @playkit-js/kaltura-player-js 3.14.4","color: #ff98f9;  font-size: large"),Object(l.getLogger)().log("%c For more details see https://github.com/kaltura/kaltura-player-js","color: #ff98f9;"))}(e),B(e=z(e));var t=G(e);!function(e){var t,n=e.provider,r=null==(t=K())?void 0:t.productVersion;if(!n.partnerId||2504201===n.partnerId){var i={url:"https://analytics.kaltura.com/api_v3/index.php?service=analytics&action=trackEvent&apiVersion=3.3.0&format=1&eventType=1&partnerId=2504201&entryId=1_3bwzbc9o&&eventIndex=1&position=0",mimetype:""};i.url=function(e,t){return t&&(e+="&clientVer="+t),e}(i.url,r),i.url=P(i.url),i.url=R(i.url,r),i.url=x(i.url,l.Utils.Generator.guid()+":"+l.Utils.Generator.guid()),navigator.sendBeacon&&navigator.sendBeacon(i.url)}}(t),V(t),function(e){var t=parseFloat(H("kalturaStartTime"));isNaN(t)||l.Utils.Object.createPropertyPath(e,"sources.startTime",t)}(t),j.forEach((function(e){return Object(l.getLogger)("KalturaPlayer:Setup")[e.level](e.msg)})),function(e){!e.disableUserCache&&k.isLocalStorageAvailable()&&k.hasStorage()&&l.Utils.Object.mergeDeep(e,k.getStorageConfig())}(t);var n=function(e){var t=new hn(e),n=new Proxy(t,bn);return gn[e.targetId]=n,n}(t);return function(e){if(!e.config.disableUserCache&&k.isLocalStorageAvailable()){var t=k.getPlayerTextStyle();t&&(e.textStyle=l.Utils.Object.mergeDeep(new l.TextStyle,t))}}(n),function(e){k.isLocalStorageAvailable()&&k.attach(e)}(n),function(e,t){e.cast&&t.remotePlayerManager.load(e.cast,t)}(t,n),function(e){if(l.Env.isIOS||l.Env.isIPadOS){var t=function t(){e.removeEventListener(e.Event.UI.UI_CLICKED,t),Object(l.setCapabilities)(l.EngineType.HTML5,{autoplay:!0})};e.addEventListener(e.Event.SOURCE_SELECTED,(function n(){e.removeEventListener(e.Event.SOURCE_SELECTED,n),e.addEventListener(e.Event.UI.UI_CLICKED,t)}))}}(n),n}var En=function(){function e(){}return e.toCastTextStyle=function(t){if(window.chrome&&window.chrome.cast){var n=new window.chrome.cast.media.TextTrackStyle;return n.fontFamily=t.fontFamily,n.backgroundColor=e.rgbToHex(t.backgroundColor),n.foregroundColor=e.rgbToHex(t.fontColor),n.fontScale=Number.parseFloat(t.fontSize)/100,n}return{}},e.toPlayerTextStyle=function(t){var n=new l.TextStyle;return n.fontFamily=t.fontFamily,n.fontSize=100*t.fontScale+"%",n.fontColor=e.hexToRGB(t.foregroundColor),n.backgroundColor=e.hexToRGB(t.backgroundColor),n},e.rgbToHex=function(e){var t="#"+("0"+parseInt(e[0],10).toString(16)).slice(-2)+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2);if(e[3]){var n=e[3];n=Math.round(100*n)/100,t+=(Math.round(255*n)+65536).toString(16).substr(-2).toUpperCase()}else t+="FF";return t.toUpperCase()},e.hexToRGB=function(e){for(var t=[],n=(e=e.slice(1)).match(/.{1,2}/g),r=0;r<3;r++){var i=n&&n[r];i&&t.push(parseInt(i,16))}return t},e}();function kn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tn(e,t)}function Tn(e,t){return(Tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var An={ACTION:"action",EVENT:"event"},wn=function(e){this.type=e},Sn=function(e){function t(t,n){var r;return(r=e.call(this,An.EVENT)||this).event=t,r.payload=n,r}return kn(t,e),t}(wn),Cn=function(e){function t(t,n){var r;return(r=e.call(this,An.ACTION)||this).action=t,r.args=n,r}return kn(t,e),t}(wn),xn={registerRemotePlayer:mt.register,PlayerSnapshot:Me,RemoteControl:it,RemoteSession:Be,BaseRemotePlayer:ze,RemoteConnectedPayload:tt,RemoteDisconnectedPayload:nt,RemoteAvailablePayload:rt,RemotePlayerUI:qe,CastEventType:Le,RemotePlayerType:{CHROMECAST:"chromecast"},TextStyleConverter:En,CustomEventMessage:Sn,CustomActionMessage:Cn,CustomMessageType:An,CustomActionType:{SKIP_AD:"skipAd"},CustomMessage:wn},In={PlaylistEventType:Te},Pn="@playkit-js/kaltura-player-js",Dn="ovp",Rn="3.14.4";r.a.installAll(),l.Ad=At,l.AdBreak=Et,l.BasePlugin=Z,l.registerPlugin=te}]);

var KalturaPlayer="object"==typeof KalturaPlayer?KalturaPlayer:{};KalturaPlayer.plugins=KalturaPlayer.plugins||{},KalturaPlayer.plugins.airplay=function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e){t.exports=KalturaPlayer},function(t,e,n){"use strict";n.r(e),n.d(e,"Plugin",(function(){return U})),n.d(e,"EventType",(function(){return i})),n.d(e,"VERSION",(function(){return W})),n.d(e,"NAME",(function(){return z}));var r,a=n(0),i={AIRPLAY_AVAILABILITY_CHANGED:"airplayavailabilitychanged",AIRPLAY_STARTED:"airplaystarted",AIRPLAY_ENDED:"airplayended"};function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=a.ui.h,d=a.ui.preact,h=a.ui.Components,g=a.ui.style,A=a.ui.Event,P=a.ui.Utils,_=a.ui.redux,m=a.ui.Reducers,E=d.Component,w=h.Icon,O=h.IconState,S=h.withPlayer,I=h.Tooltip,R=A.withEventManager,C=P.bindActions,T=m.shell.actions,j=_.connect,k=(a.core.FakeEvent,S(r=R(r=j(null,C(T))(r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(o,t);var e,n,r,a=s(o);function o(){var t;l(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return b(p(t=a.call.apply(a,[this].concat(n))),"state",{isActive:!1,isAvailable:!1}),b(p(t),"_defaultTranslation",{title:"AirPlay",turnOff:"Turn off AirPlay"}),b(p(t),"airPlayAvailabilityChangedHandler",(function(e){t.setState({isAvailable:e.payload.isAvailable})})),b(p(t),"airPlayStartedHandler",(function(){t.setState({isActive:!0}),t.props.addPlayerClass(g.casting)})),b(p(t),"airPlayEndedHandler",(function(){t.setState({isActive:!1}),t.props.removePlayerClass(g.casting)})),t}return e=o,(n=[{key:"componentWillMount",value:function(){this.props.eventManager.listen(this.props.player,i.AIRPLAY_AVAILABILITY_CHANGED,this.airPlayAvailabilityChangedHandler),this.props.eventManager.listen(this.props.player,i.AIRPLAY_STARTED,this.airPlayStartedHandler),this.props.eventManager.listen(this.props.player,i.AIRPLAY_ENDED,this.airPlayEndedHandler)}},{key:"render",value:function(t){if(this.state.isAvailable){var e=this.props.title||this._defaultTranslation.title,n=this.props.turnOff||this._defaultTranslation.turnOff;return v("div",{className:g.controlButtonContainer},v(I,{label:this.state.isActive?n:e},v("button",{id:"airPlayButton",className:g.controlButton,onClick:t.startAirplay},v(w,{id:G,path:"M785.597 704l-55.273-64h37.887c17.556 0 31.789-14.235 31.789-31.858v-288.283c0-17.595-14.238-31.858-31.789-31.858h-512.423c-17.556 0-31.789 14.235-31.789 31.858v288.283c0 17.595 14.238 31.858 31.789 31.858h40.032l-54.575 64h-49.167c-17.717 0-32.079-14.365-32.079-32.239v-415.521c0-17.805 14.063-32.239 32.079-32.239h639.842c17.717 0 32.079 14.365 32.079 32.239v415.521c0 17.805-14.063 32.239-32.079 32.239h-46.324zM491.273 509.426c11.447-13.424 30.248-13.282 41.719 0l225.536 261.147c11.593 13.424 6.771 24.306-11.069 24.306h-467.54c-17.707 0-22.66-11.025-11.334-24.306l222.687-261.147z",state:this.state.isActive?O.ACTIVE:O.INACTIVE}))))}}}])&&u(e.prototype,n),r&&u(e,r),o}(E))||r)||r)||r);function L(t){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function M(t,e,n){return e&&D(t.prototype,e),n&&D(t,n),t}function H(t,e){return(H=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=x(t);if(e){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return N(this,n)}}function N(t,e){return!e||"object"!==L(e)&&"function"!=typeof e?V(t):e}function V(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function B(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var K=a.core.FakeEvent,G="airplay",U=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&H(t,e)}(n,t);var e=Y(n);function n(t,r,a){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),B(V(o=e.call(this,t,r,a)),"_isActive",!1),B(V(o),"_wasPaused",!1),B(V(o),"startAirplay",(function(){o.logger.debug("Start airplay request"),o.player.getVideoElement().webkitShowPlaybackTargetPicker(),o._wasPaused=o.player.paused})),B(V(o),"_availabilityChangedHandler",(function(t){switch(o.logger.debug("Availability changed to ".concat(t.availability)),t.availability){case"available":o.player.dispatchEvent(new K(i.AIRPLAY_AVAILABILITY_CHANGED,{isAvailable:!0}));break;case"not-available":o.player.dispatchEvent(new K(i.AIRPLAY_AVAILABILITY_CHANGED,{isAvailable:!1}))}})),B(V(o),"_activityChangedHandler",(function(){o._isActive=!o._isActive,o.logger.debug("Activity changed to ".concat(o._isActive.toString())),o.player.dispatchEvent(new K(o._isActive?i.AIRPLAY_STARTED:i.AIRPLAY_ENDED)),o._isActive&&!o._wasPaused&&(o.logger.debug("Calling player play to sync UI"),o.player.play())})),o._attachListeners(),o}return M(n,null,[{key:"isValid",value:function(){return!!window.WebKitPlaybackTargetAvailabilityEvent}}]),M(n,[{key:"getUIComponents",value:function(){return[{label:"airplayButtonComponent",presets:["Playback","Live"],container:"BottomBarRightControls",get:k,beforeComponent:"PictureInPicture",props:{startAirplay:this.startAirplay}}]}},{key:"_attachListeners",value:function(){var t=this;window.WebKitPlaybackTargetAvailabilityEvent&&this.eventManager.listenOnce(this.player,this.player.Event.SOURCE_SELECTED,(function(){t.logger.debug("Attach webkit listeners"),t.eventManager.listen(t.player.getVideoElement(),"webkitplaybacktargetavailabilitychanged",t._availabilityChangedHandler),t.eventManager.listen(t.player.getVideoElement(),"webkitcurrentplaybacktargetiswirelesschanged",t._activityChangedHandler)}))}}]),n}(a.BasePlugin);B(U,"defaultConfig",{});var W="1.1.3",z="@playkit-js/playkit-js-airplay";U.isValid()&&Object(a.registerPlugin)(G,U)}]);

/*! For license information please see playkit-downloads.js.LICENSE.txt */
var KalturaPlayer;(()=>{var e={1972:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonType=t.ButtonSize=void 0;var a,s,l=n(4522),c=n(42),u=n(6978),_=n(979),d=n(4820),p=n(5768),A=u.ui.Components.Tooltip;!function(e){e.small="small",e.medium="medium",e.large="large"}(a=t.ButtonSize||(t.ButtonSize={})),function(e){e.primary="primary",e.danger="danger",e.translucent="translucent",e.borderless="borderless"}(s=t.ButtonType||(t.ButtonType={}));var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonRef=(0,l.createRef)(),t.renderButton=function(){var e,n=t.props,o=c(p.button,p[n.size],p[n.type],n.className,((e={})[p.disabled]=n.disabled,e[p.withIcon]=n.children&&n.icon,e[p.iconOnly]=!n.children&&n.icon,e)),r=i(i({ref:t.buttonRef,disabled:n.disabled,"aria-disabled":n.disabled,tabIndex:n.tabIndex,className:o},n.ariaLabel?{"aria-label":n.ariaLabel}:{}),n.testId?{"data-testid":n.testId}:{}),a=(0,l.h)("button",i({},r),(0,l.h)(l.Fragment,null,n.icon&&(0,l.h)(d.Icon,{name:n.icon,size:d.IconSize[n.size]}),n.children&&(0,l.h)("span",null,n.children)));return n.onClick?(0,l.h)(_.A11yWrapper,{onClick:n.onClick},a):a},t}return r(t,e),t.prototype.componentDidMount=function(){var e;this.props.focusOnMount&&(null===(e=this.buttonRef.current)||void 0===e||e.focus())},t.prototype.render=function(e){if(e.tooltip){var t=i(i({label:e.tooltip.label},e.tooltip.type?{type:e.tooltip.type}:{}),e.tooltip.className?{classNames:e.tooltip.className}:{});return(0,l.h)(A,i({},t),this.renderButton())}return this.renderButton()},t}(l.Component);t.Button=h,h.defaultProps={disabled:!1,focusOnMount:!1,tabIndex:0,children:null,size:a.medium,icon:null,type:s.primary}},5454:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(1972),t),r(n(178),t)},178:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InputField=void 0;var a=n(4522),s=n(979),l=n(3665),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={active:!1},n._inputRef=null,n.setFocus=function(e){var t;null===(t=n._inputRef)||void 0===t||t.focus(e)},n._handleOnChange=function(e){n.props.onChange(e.target.value)},n._onClear=function(){var e;null===(e=n._inputRef)||void 0===e||e.focus(),n.props.onChange("")},n._onFocus=function(){n.setState({active:!0})},n._onBlur=function(){n.setState({active:!1})},n._goToNextSearchResult=function(){var e=n.props.searchResults,t=e.activeSearchIndex,o=e.totalSearchResults,r=e.onSearchIndexChange;0!==o&&r(t!==o?t+1:1)},n._goToPrevSearchResult=function(){var e=n.props.searchResults,t=e.activeSearchIndex,o=e.totalSearchResults;(0,e.onSearchIndexChange)(1!==t?t-1:o)},n._renderSearchResults=function(){return(0,a.h)(a.Fragment,null,(0,a.h)("div",{className:l.searchResults,"aria-live":"polite","aria-label":n.props.searchResults.searchResultsLabel},"".concat(n.props.searchResults.totalSearchResults>0?"".concat(n.props.searchResults.activeSearchIndex,"/").concat(n.props.searchResults.totalSearchResults):"0/0")),(0,a.h)("div",{className:l.prevNextWrapper},n.props.value&&(0,a.h)(s.A11yWrapper,{onClick:n._goToPrevSearchResult},(0,a.h)("button",{tabIndex:0,className:"".concat(l.prevNextButton," ").concat(0===n.props.searchResults.totalSearchResults?l.disabled:""),"aria-label":n.props.searchResults.prevMatchLabel},(0,a.h)("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{d:"M0.292893 4.70711C0.653377 5.06759 1.22061 5.09532 1.6129 4.7903L1.70711 4.70711L4 2.415L6.29289 4.70711C6.65338 5.06759 7.22061 5.09532 7.6129 4.7903L7.70711 4.70711C8.06759 4.34662 8.09532 3.77939 7.7903 3.3871L7.70711 3.29289L4.70711 0.292893C4.34662 -0.0675907 3.77939 -0.0953203 3.3871 0.209705L3.29289 0.292893L0.292893 3.29289C-0.0976311 3.68342 -0.0976311 4.31658 0.292893 4.70711Z",fill:"white","fill-opacity":"0.7"})))),n.props.value&&(0,a.h)(s.A11yWrapper,{onClick:n._goToNextSearchResult},(0,a.h)("button",{tabIndex:0,className:"".concat(l.prevNextButton," ").concat(0===n.props.searchResults.totalSearchResults?l.disabled:""),"aria-label":n.props.searchResults.nextMatchLabel},(0,a.h)("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L4 2.58579L6.29289 0.292893C6.68342 -0.0976311 7.31658 -0.0976311 7.70711 0.292893C8.09763 0.683417 8.09763 1.31658 7.70711 1.70711L4.70711 4.70711C4.31658 5.09763 3.68342 5.09763 3.29289 4.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",fill:"white","fill-opacity":"0.7"}))))))},n._renderClearSearch=function(){return(0,a.h)(s.A11yWrapper,{onClick:n._onClear},(0,a.h)("button",{className:l.clearIcon,tabIndex:0,"aria-label":n.props.clearSearchLabel},(0,a.h)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12ZM3.38951 2.3502L3.46013 2.41264L5.99548 4.9504L8.53067 2.41264L8.60129 2.3502C8.89537 2.12125 9.32081 2.1418 9.59133 2.41199C9.8844 2.70471 9.88469 3.17958 9.59197 3.47265L7.05523 6.01165L9.59197 8.55189C9.88469 8.84496 9.8844 9.31983 9.59133 9.61255C9.32081 9.88275 8.89537 9.90329 8.60129 9.67434L8.53067 9.61191L5.99548 7.0729L3.46013 9.61191L3.38951 9.67434C3.09543 9.90329 2.66999 9.88275 2.39947 9.61255C2.1064 9.31983 2.10611 8.84496 2.39883 8.55189L4.93498 6.01165L2.39883 3.47265C2.10611 3.17958 2.1064 2.70471 2.39947 2.41199C2.66999 2.1418 3.09543 2.12125 3.38951 2.3502Z",fill:"white","fill-opacity":"0.7"}))))},n.state={active:!1},n}return r(t,e),t.prototype.render=function(){var e=this,t={className:l.inputElement,value:this.props.value,onInput:this._handleOnChange,onFocus:this._onFocus,onBlur:this._onBlur,tabIndex:0,ref:function(t){e._inputRef=t}};return this.props.placeholder&&(t["aria-label"]=this.props.placeholder,t.placeholder=this.props.placeholder),(0,a.h)("div",{className:[l.inputFieldWrapper,this.props.value||this.state.active?l.active:""].join(" ")},(0,a.h)("input",i({},t)),this.props.value&&this.props.clearSearchLabel&&this._renderClearSearch(),this.props.value&&this.props.searchResults&&this._renderSearchResults())},t}(a.Component);t.InputField=c},979:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.A11yWrapper=t.isKeyboardEvent=void 0;var o=n(4522),r=n(6978).ui.utils.KeyMap,i=r.ENTER,a=r.SPACE,s=r.UP,l=r.DOWN,c=r.LEFT,u=r.RIGHT,_=function(e){e.preventDefault(),e.stopPropagation()};t.isKeyboardEvent=function(e){return e instanceof KeyboardEvent||[e.offsetX,e.offsetY].every((function(e){return 0===e}))},t.A11yWrapper=function(e){var n=e.children,r=e.onClick,d=e.onUpKeyPressed,p=e.onDownKeyPressed,A=e.onLeftKeyPressed,h=e.onRightKeyPressed,f=e.role,C=e.type,v={onKeyDown:function(e){e.keyCode===a||e.keyCode===i?(_(e),r(e,!0)):e.keyCode===s&&d?(_(e),d(e)):e.keyCode===l&&p?(_(e),p(e)):e.keyCode===c&&A?(_(e),A(e)):e.keyCode===u&&h&&(_(e),h(e))},onClick:function(e){e.stopPropagation(),r(e,(0,t.isKeyboardEvent)(e))},role:f};return"button"===n.type&&(v.type=C||"button"),(0,o.cloneElement)(n,v)},t.A11yWrapper.defaultProps={role:"button"}},172:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(979),t),r(n(8579),t)},8579:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayPortal=void 0;var n=KalturaPlayer.ui.redux.useSelector,o=KalturaPlayer.ui.createPortal;t.OverlayPortal=function(e){var t=e.children,r=n((function(e){return e.config.targetId})),i=document.getElementById(r)||document;return o(t,i.querySelector(".overlay-portal"))}},9695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Add=void 0;var o=n(4522);t.Add=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M21.8083 4C22.4665 4 23 4.55964 23 5.25V18.75C23 19.4404 22.4665 20 21.8083 20H2.19167C1.53353 20 1 19.4404 1 18.75V5.25C1 4.55964 1.53353 4 2.19167 4H21.8083ZM15 6H3V18H15V6ZM12.999 8.967L13 9L12.998 8.94L12.999 8.967L13 9V15C13 15.5523 12.5523 16 12 16C11.4872 16 11.0645 15.614 11.0067 15.1166L11 15V11.414L6.70711 15.7071C6.34662 16.0676 5.77939 16.0953 5.3871 15.7903L5.29289 15.7071C4.93241 15.3466 4.90468 14.7794 5.2097 14.3871L5.29289 14.2929L9.584 10H6C5.48716 10 5.06449 9.61396 5.00673 9.11662L5 9C5 8.44772 5.44772 8 6 8L12.0193 8.00018C12.0427 8.00063 12.066 8.00189 12.0893 8.00397C12.1097 8.00575 12.1294 8.0081 12.149 8.01102C12.1659 8.01363 12.1834 8.0167 12.2007 8.02024C12.2227 8.02464 12.2444 8.02983 12.2658 8.03572C12.2815 8.0401 12.2969 8.04473 12.3121 8.04974C12.3318 8.05612 12.3516 8.06332 12.3711 8.0711L12.4232 8.09367C12.4439 8.10338 12.4643 8.11379 12.4843 8.12488C12.4964 8.1315 12.5086 8.13861 12.5207 8.146C12.5463 8.16172 12.5711 8.17849 12.5952 8.19631L12.6525 8.24221L12.6167 8.21279C12.6802 8.26255 12.7374 8.31982 12.7872 8.38325C12.7927 8.39016 12.7982 8.3974 12.8037 8.40469C12.8215 8.42887 12.8383 8.45372 12.8539 8.47934L12.8753 8.51594C12.8862 8.53571 12.8966 8.55611 12.9063 8.5769L12.9288 8.62866C12.9367 8.64842 12.9439 8.6682 12.9505 8.68826C12.9553 8.70315 12.9599 8.71854 12.9642 8.73401C12.9702 8.75556 12.9754 8.77725 12.9798 8.79921C12.9833 8.81662 12.9864 8.83405 12.989 8.85153L12.9972 8.92482L12.998 8.94L12.999 8.967Z",fill:"white"}))}},5254:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Close=void 0;var o=n(4522);t.Close=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M11.6592 10.245L6.70483 5.29061C6.31701 4.9028 5.68581 4.90476 5.29528 5.29528C4.90204 5.68853 4.90267 6.31688 5.29061 6.70483L10.245 11.6592L5.29061 16.6137C4.9028 17.0015 4.90476 17.6327 5.29528 18.0232C5.68853 18.4165 6.31688 18.4158 6.70483 18.0279L11.6592 13.0735L16.6137 18.0279C17.0015 18.4157 17.6327 18.4137 18.0232 18.0232C18.4165 17.63 18.4158 17.0016 18.0279 16.6137L13.0735 11.6592L18.0279 6.70483C18.4157 6.31701 18.4137 5.68581 18.0232 5.29528C17.63 4.90204 17.0016 4.90267 16.6137 5.29061L11.6592 10.245Z",fill:"white"}))}},1577:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Download=void 0;var o=n(4522);t.Download=function(){return(0,o.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M17.5 6C17.5 5.44772 17.0523 5 16.5 5L16.3834 5.00673C15.886 5.06449 15.5 5.48716 15.5 6L15.4997 17.693L9.71029 12.2702C9.30721 11.8926 8.67439 11.9133 8.29683 12.3164C7.91928 12.7195 7.93998 13.3523 8.34306 13.7298L15.8164 20.7298C15.8212 20.7343 15.826 20.7387 15.8308 20.7431L15.8164 20.7298L15.9035 20.8027C15.9034 20.8026 15.9037 20.8028 15.9035 20.8027C15.9135 20.8101 15.9231 20.817 15.9333 20.824C15.956 20.8397 15.9793 20.8544 16.0038 20.8684C16.0148 20.8747 16.0259 20.8808 16.0366 20.8864C16.0596 20.8984 16.0832 20.9096 16.1077 20.9201C16.1223 20.9263 16.1371 20.9322 16.1515 20.9376C16.1769 20.947 16.2028 20.9555 16.2299 20.963C16.2399 20.9658 16.25 20.9684 16.2595 20.9709C16.3365 20.9899 16.4171 21 16.5 21C16.5804 21 16.6585 20.9905 16.7336 20.9725C16.7521 20.968 16.7706 20.963 16.7889 20.9576C16.8097 20.9514 16.8303 20.9444 16.8507 20.9367C16.8632 20.932 16.8756 20.9271 16.8878 20.922C16.9121 20.9118 16.936 20.9006 16.9596 20.8883C16.9735 20.8812 16.9872 20.8736 17.0007 20.8658C17.0223 20.8533 17.0434 20.84 17.0636 20.8262C17.0764 20.8174 17.0891 20.8083 17.1021 20.7985C17.1224 20.7831 17.1422 20.767 17.161 20.7504C17.1685 20.7437 17.176 20.737 17.1834 20.7301L24.6619 13.7301C25.0651 13.3527 25.086 12.7198 24.7086 12.3166L24.6172 12.2304C24.2352 11.9126 23.6674 11.9215 23.2952 12.2699L17.4997 17.694L17.5 6Z",fill:"white"}),(0,o.h)("path",{d:"M27 26C27 26.5523 26.5523 27 26 27H7C6.44772 27 6 26.5523 6 26C6 25.4477 6.44772 25 7 25H26C26.5523 25 27 25.4477 27 26Z",fill:"white"}))}},2942:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Expand=void 0;var o=n(4522);t.Expand=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M20.997 3.924L20.998 3.945L20.999 3.98L21 4V10C21 10.5523 20.5523 11 20 11C19.4872 11 19.0645 10.614 19.0067 10.1166L19 10V6.416L14.7071 10.7071C14.3466 11.0676 13.7794 11.0953 13.3871 10.7903L13.2929 10.7071C12.9324 10.3466 12.9047 9.77939 13.2097 9.3871L13.2929 9.29289L17.586 5H14C13.4872 5 13.0645 4.61396 13.0067 4.11662L13 4C13 3.48716 13.386 3.06449 13.8834 3.00673L14 3L20.0332 3.00054C20.0503 3.00109 20.0683 3.00216 20.0862 3.0037C20.1079 3.00553 20.1285 3.00797 20.149 3.01102C20.166 3.01363 20.1834 3.0167 20.2007 3.02024C20.2227 3.02464 20.2444 3.02983 20.2658 3.03572C20.2815 3.0401 20.2969 3.04473 20.3121 3.04974C20.3318 3.05612 20.3516 3.06332 20.3711 3.0711L20.4232 3.09367C20.4439 3.10338 20.4643 3.11379 20.4843 3.12488C20.4964 3.1315 20.5086 3.13861 20.5207 3.146C20.5463 3.16172 20.5711 3.17849 20.5952 3.19631L20.6525 3.24221L20.6168 3.21279C20.6802 3.26255 20.7374 3.31982 20.7872 3.38325C20.7927 3.39016 20.7982 3.3974 20.8037 3.40469C20.8215 3.42887 20.8383 3.45373 20.8539 3.47934L20.8753 3.51594C20.8862 3.53571 20.8966 3.55611 20.9063 3.5769L20.9288 3.62866C20.9367 3.64842 20.9439 3.6682 20.9505 3.68826C20.9553 3.70315 20.9599 3.71854 20.9642 3.73401C20.9702 3.75556 20.9754 3.77725 20.9798 3.79921C20.9833 3.81662 20.9864 3.83405 20.989 3.85153L20.996 3.91075L20.996 3.919L20.997 3.921V3.924ZM3.002 20.059V20.071L3.00175 20.0593C3.00122 20.0503 3.00081 20.0413 3.00052 20.0323L3 14C3 13.4477 3.44772 13 4 13C4.51284 13 4.93551 13.386 4.99327 13.8834L5 14V17.586L9.29289 13.2929C9.65338 12.9324 10.2206 12.9047 10.6129 13.2097L10.7071 13.2929C11.0676 13.6534 11.0953 14.2206 10.7903 14.6129L10.7071 14.7071L6.416 19H10C10.5128 19 10.9355 19.386 10.9933 19.8834L11 20C11 20.5128 10.614 20.9355 10.1166 20.9933L10 21H4C3.99354 21 3.98709 20.9999 3.98066 20.9998C3.95732 20.9994 3.93401 20.9981 3.91075 20.996C3.89031 20.9943 3.87058 20.9919 3.85104 20.989C3.83405 20.9864 3.81662 20.9833 3.79927 20.9798C3.77725 20.9754 3.75556 20.9702 3.73416 20.9643C3.71854 20.9599 3.70315 20.9553 3.68786 20.9503C3.6682 20.9439 3.64842 20.9367 3.62894 20.9289L3.57678 20.9063C3.55611 20.8966 3.53571 20.8862 3.51572 20.8751C3.50361 20.8685 3.49139 20.8614 3.47929 20.854C3.45373 20.8383 3.42887 20.8215 3.40484 20.8037L3.34745 20.7578L3.38325 20.7872C3.31982 20.7374 3.26255 20.6802 3.21279 20.6168C3.20728 20.6098 3.20175 20.6026 3.19633 20.5953C3.17849 20.5711 3.16172 20.5463 3.14607 20.5207L3.12467 20.4841C3.11379 20.4643 3.10338 20.4439 3.09365 20.4231L3.07123 20.3713C3.06332 20.3516 3.05612 20.3318 3.04955 20.3117C3.04473 20.2969 3.0401 20.2815 3.03585 20.266C3.02983 20.2444 3.02464 20.2227 3.02017 20.2008C3.0167 20.1834 3.01363 20.1659 3.01102 20.1485L3.0037 20.0862L3.002 20.059Z",fill:"white"}))}},1861:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Icons=void 0;var o=n(5254),r=n(9919),i=n(1577),a=n(7024),s=n(8835),l=n(1223),c=n(7858),u=n(6563),_=n(2489),d=n(9695),p=n(756),A=n(4726),h=n(2942);t.Icons={close:o.Close,print:r.Print,download:i.Download,related:a.Related,message:s.Message,share:l.Share,more:c.More,quiz:u.QuizIcon,switch:_.Switch,add:d.Add,minimizedVideo:p.MinimizedVideo,pictureInPicture:A.PictureInPicture,expand:h.Expand}},8835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=void 0;var o=n(4522);t.Message=function(){return(0,o.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M25 5C27.2091 5 29 6.75035 29 8.90952V18.6833C29 20.8425 27.2091 22.5928 25 22.5928H14.985L10.7019 26.7188C10.546 26.8689 10.3449 26.9641 10.1302 26.9917L10 27C9.44772 27 9 26.5624 9 26.0226V22.5928H7C4.79086 22.5928 3 20.8425 3 18.6833V8.90952C3 6.75035 4.79086 5 7 5H25ZM25 6.95476H7C5.89543 6.95476 5 7.82994 5 8.90952V18.6833C5 19.7629 5.89543 20.6381 7 20.6381H11V23.687L14.1651 20.6381H25C26.1046 20.6381 27 19.7629 27 18.6833V8.90952C27 7.82994 26.1046 6.95476 25 6.95476ZM19 14.7738C19.5523 14.7738 20 15.2114 20 15.7512C20 16.291 19.5523 16.7286 19 16.7286H10C9.44772 16.7286 9 16.291 9 15.7512C9 15.2114 9.44772 14.7738 10 14.7738H19ZM23 10.8643C23.5523 10.8643 24 11.3019 24 11.8417C24 12.3815 23.5523 12.819 23 12.819H10C9.44772 12.819 9 12.3815 9 11.8417C9 11.3019 9.44772 10.8643 10 10.8643H23Z",fill:"white"}))}},756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MinimizedVideo=void 0;var o=n(4522);t.MinimizedVideo=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.25 4.5H18.75C19.9926 4.5 21 5.50736 21 6.75V17.25C21 18.4926 19.9926 19.5 18.75 19.5H5.25C4.00736 19.5 3 18.4926 3 17.25V6.75C3 5.50736 4.00736 4.5 5.25 4.5ZM5.25 6C4.83579 6 4.5 6.33579 4.5 6.75V17.25C4.5 17.6642 4.83579 18 5.25 18H18.75C19.1642 18 19.5 17.6642 19.5 17.25V6.75C19.5 6.33579 19.1642 6 18.75 6H5.25ZM13 12C12.4477 12 12 12.4477 12 13V15.5C12 16.0523 12.4477 16.5 13 16.5H17C17.5523 16.5 18 16.0523 18 15.5V13C18 12.4477 17.5523 12 17 12H13Z",fill:"white"}))}},7858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.More=void 0;var o=n(4522);t.More=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M8 12C8 13.1046 7.10457 14 6 14C4.89543 14 4 13.1046 4 12C4 10.8954 4.89543 10 6 10C7.10457 10 8 10.8954 8 12ZM14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12ZM20 12C20 13.1046 19.1046 14 18 14C16.8954 14 16 13.1046 16 12C16 10.8954 16.8954 10 18 10C19.1046 10 20 10.8954 20 12Z",fill:"white"}))}},4726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PictureInPicture=void 0;var o=n(4522);t.PictureInPicture=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.75 4.5H5.25C4.00736 4.5 3 5.50736 3 6.75V17.25C3 18.4926 4.00736 19.5 5.25 19.5H18.75C19.9926 19.5 21 18.4926 21 17.25V6.75C21 5.50736 19.9926 4.5 18.75 4.5ZM13 12C12.4477 12 12 12.4477 12 13V15.5C12 16.0523 12.4477 16.5 13 16.5H17C17.5523 16.5 18 16.0523 18 15.5V13C18 12.4477 17.5523 12 17 12H13Z",fill:"white"}))}},9919:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Print=void 0;var o=n(4522);t.Print=function(){return(0,o.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 23H26C27.1046 23 28 22.1046 28 21V11C28 9.89543 27.1046 9 26 9H23V5C23 3.89543 22.1046 3 21 3H11C9.89543 3 9 3.89543 9 5V9H6C4.89543 9 4 9.89543 4 11V21C4 22.1046 4.89543 23 6 23H9V28C9 29.1046 9.89543 30 11 30H21C22.1046 30 23 29.1046 23 28V23ZM6 11V21H9V19C8.44772 19 8 18.5523 8 18C8 17.4477 8.44772 17 9 17H23C23.5523 17 24 17.4477 24 18C24 18.5523 23.5523 19 23 19V21H26V11H6ZM21 9V5H11V9H21ZM11 19V28H21V19H11Z",fill:"white"}))}},6563:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuizIcon=void 0;var o=n(4522);t.QuizIcon=function(){return(0,o.h)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.49857 2.11499L12.7442 4.2052C12.9162 4.28987 12.9812 4.48721 12.8895 4.64597C12.8594 4.69807 12.8145 4.74163 12.7597 4.77201L8.54484 7.10634C8.20953 7.29205 7.79063 7.29205 7.45532 7.10634L3.2405 4.77202C3.07335 4.67945 3.01915 4.47933 3.11944 4.32505C3.15235 4.27441 3.19956 4.23299 3.256 4.2052L7.50203 2.11498C7.81345 1.96167 8.18715 1.96168 8.49857 2.11499ZM14 6.02878V10.7642C14 11.1075 13.8049 11.4256 13.486 11.6022L9.24043 13.9536C9.07328 14.0461 8.85649 13.9961 8.7562 13.8418C8.72329 13.7912 8.7059 13.7333 8.7059 13.6742V8.93882C8.7059 8.59551 8.90104 8.27738 9.21997 8.10075L13.4655 5.74942C13.6326 5.65685 13.8494 5.70688 13.9497 5.86116C13.9826 5.91179 14 5.96973 14 6.02878ZM6.5145 8.31192L2.50483 6.04476C2.45303 6.01547 2.39375 6 2.33333 6C2.14924 6 2 6.14064 2 6.31412V10.88C2 11.211 2.1843 11.5178 2.4855 11.6881L6.49517 13.9552C6.54697 13.9845 6.60625 14 6.66667 14C6.85076 14 7 13.8594 7 13.6859V9.12C7 8.78898 6.8157 8.48223 6.5145 8.31192Z",fill:"white"}))}},7024:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Related=void 0;var o=n(4522);t.Related=function(){return(0,o.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 7H12C13.1046 7 14 7.89543 14 9V13C14 14.1046 13.1046 15 12 15H8C6.89543 15 6 14.1046 6 13V9C6 7.89543 6.89543 7 8 7ZM8 13H12V9H8V13Z",fill:"white"}),(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 18H12C13.1046 18 14 18.8954 14 20V24C14 25.1046 13.1046 26 12 26H8C6.89543 26 6 25.1046 6 24V20C6 18.8954 6.89543 18 8 18ZM8 24H12V20H8V24Z",fill:"white"}),(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 7H20C18.8954 7 18 7.89543 18 9V13C18 14.1046 18.8954 15 20 15H24C25.1046 15 26 14.1046 26 13V9C26 7.89543 25.1046 7 24 7ZM24 13H20V9H24V13Z",fill:"white"}),(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 18H24C25.1046 18 26 18.8954 26 20V24C26 25.1046 25.1046 26 24 26H20C18.8954 26 18 25.1046 18 24V20C18 18.8954 18.8954 18 20 18ZM20 24H24V20H20V24Z",fill:"white"}))}},1223:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Share=void 0;var o=n(4522);t.Share=function(){return(0,o.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22.6667 12.6667C24.5076 12.6667 26 11.1743 26 9.33333C26 7.49238 24.5076 6 22.6667 6C20.8257 6 19.3333 7.49238 19.3333 9.33333C19.3333 9.38882 19.3347 9.44399 19.3374 9.49881L11.9575 13.9443C11.3473 13.1665 10.3987 12.6667 9.33333 12.6667C7.49238 12.6667 6 14.1591 6 16C6 17.8409 7.49238 19.3333 9.33333 19.3333C10.3981 19.3333 11.3462 18.8341 11.9564 18.057L19.3374 22.5013C19.3347 22.5561 19.3333 22.6112 19.3333 22.6667C19.3333 24.5076 20.8257 26 22.6667 26C24.5076 26 26 24.5076 26 22.6667C26 20.8257 24.5076 19.3333 22.6667 19.3333C21.6074 19.3333 20.6636 19.8274 20.053 20.5976L12.864 16.2689L12.8651 15.7324L20.0531 11.4025C20.6637 12.1727 21.6075 12.6667 22.6667 12.6667ZM22.6667 10.6667C21.9303 10.6667 21.3333 10.0697 21.3333 9.33333C21.3333 8.59695 21.9303 8 22.6667 8C23.403 8 24 8.59695 24 9.33333C24 10.0697 23.403 10.6667 22.6667 10.6667ZM9.33333 17.3333C8.59695 17.3333 8 16.7364 8 16C8 15.2636 8.59695 14.6667 9.33333 14.6667C10.0697 14.6667 10.6667 15.2636 10.6667 16C10.6667 16.7364 10.0697 17.3333 9.33333 17.3333ZM21.3333 22.6667C21.3333 23.403 21.9303 24 22.6667 24C23.403 24 24 23.403 24 22.6667C24 21.9303 23.403 21.3333 22.6667 21.3333C21.9303 21.3333 21.3333 21.9303 21.3333 22.6667Z",fill:"white"}))}},2489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Switch=void 0;var o=n(4522);t.Switch=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M17.6744 9.27934L21.7563 13.3632L21.8282 13.4537L21.887 13.5492L21.9333 13.6489L21.9684 13.7556L21.9824 13.8172L21.9974 13.929L22 14L21.9897 14.1405L21.9824 14.1828L21.9535 14.2949L21.9231 14.3759L21.887 14.4508L21.8281 14.5463L21.7763 14.6137L21.7207 14.6744L17.6744 18.7207C17.3019 19.0931 16.6981 19.0931 16.3256 18.7207C15.9818 18.3769 15.9554 17.8359 16.2463 17.4617L16.3256 17.3719L18.7439 14.9536L12.9537 14.9537C12.4675 14.9537 12.0663 14.5899 12.0074 14.1196L12 14C12 13.5109 12.3682 13.1078 12.8425 13.0527L12.9537 13.0463L18.7426 13.0451L16.3256 10.6281C15.9798 10.2823 15.9551 9.73687 16.2515 9.36252L16.3256 9.27934C16.6981 8.90689 17.3019 8.90689 17.6744 9.27934ZM6.32562 5.27934C6.69807 4.90689 7.30193 4.90689 7.67438 5.27934L7.74849 5.36252C8.04493 5.73687 8.02023 6.28225 7.67438 6.6281L5.2574 9.04508L11.0463 9.04628L11.1575 9.0527C11.6318 9.10779 12 9.5109 12 10L11.9926 10.1196C11.9337 10.5899 11.5325 10.9537 11.0463 10.9537L5.25605 10.9536L7.67438 13.3719L7.75372 13.4617C8.04463 13.8359 8.01818 14.3769 7.67438 14.7207C7.30193 15.0931 6.69807 15.0931 6.32562 14.7207L2.25793 10.6523L2.18664 10.5668L2.12413 10.4708L2.07695 10.3759L2.03697 10.2639L2.01028 10.1405L2 10C2 9.95226 2.00351 9.90534 2.01036 9.85937L2.01758 9.81716L2.04651 9.70514L2.08932 9.59642L2.12415 9.52899L2.18631 9.43351L2.24369 9.36325L6.32562 5.27934Z",fill:"white"}))}},4820:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=t.IconSize=void 0;var o,r=n(4522),i=n(42),a=n(1861),s=n(927);!function(e){e.small="small",e.medium="medium",e.large="large"}(o=t.IconSize||(t.IconSize={})),t.Icon=function(e){var t=a.Icons[e.name];return t?(0,r.h)("div",{className:i(s.iconWrapper,s[e.size])},(0,r.h)(t,null)):null},t.Icon.defaultProps={size:o.medium}},573:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(197),t),r(n(6265),t),r(n(1644),t),r(n(5454),t),r(n(172),t)},2980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1644:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(2980),t)},1365:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BannerContainer=void 0;var i=n(4522),a=n(6550),s=n(8482),l=n(334),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(e){var t=this.props.theme,n=t.backgroundColor,o=t.blur;return(0,i.h)("div",{className:a.bannerContainerRoot,"aria-live":"polite"},(0,i.h)("div",{style:"\n                background-color:".concat(n,"; \n                backdrop-filter: blur(").concat(o,");\n             "),className:a.bannerContainer},(0,i.h)("button",{className:a.closeButton,onClick:e.onClose},(0,i.h)(s.CloseSmall,{className:a.small}),(0,i.h)(l.CloseLarge,{className:a.large})),this.props.children))},t}(i.Component);t.BannerContainer=c},334:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.CloseLarge=void 0;var r=n(4522);t.CloseLarge=function(e){return(0,r.h)("svg",o({width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,r.h)("g",{id:"Icons/32x32/Menu-Player-Close",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("path",{d:"M17.4142136,16 L22.363961,20.9497475 C22.7544853,21.3402718 22.7544853,21.9734367 22.363961,22.363961 C21.9734367,22.7544853 21.3402718,22.7544853 20.9497475,22.363961 L16,17.4142136 L11.0502525,22.363961 C10.6597282,22.7544853 10.0265633,22.7544853 9.63603897,22.363961 C9.24551468,21.9734367 9.24551468,21.3402718 9.63603897,20.9497475 L14.5857864,16 L9.63603897,11.0502525 C9.24551468,10.6597282 9.24551468,10.0265633 9.63603897,9.63603897 C10.0265633,9.24551468 10.6597282,9.24551468 11.0502525,9.63603897 L16,14.5857864 L20.9497475,9.63603897 C21.3402718,9.24551468 21.9734367,9.24551468 22.363961,9.63603897 C22.7544853,10.0265633 22.7544853,10.6597282 22.363961,11.0502525 L17.4142136,16 Z",id:"Path",fill:"#FFFFFF"})))}},8482:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.CloseSmall=void 0;var r=n(4522);t.CloseSmall=function(e){return(0,r.h)("svg",o({xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10"},e),(0,r.h)("path",{fill:"#FFF","fill-rule":"evenodd",d:"M5.956 5l3.348-3.348A.674.674 0 0 0 9.3.7a.672.672 0 0 0-.952-.004L5 4.044 1.652.696A.674.674 0 0 0 .7.7a.672.672 0 0 0-.004.952L4.044 5 .696 8.348A.674.674 0 0 0 .7 9.3c.265.266.69.266.952.004L5 5.956l3.348 3.348c.262.262.689.26.952-.004a.672.672 0 0 0 .004-.952L5.956 5z",opacity:".9"}))}},5827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BannerContainer=void 0;var o=n(1365);Object.defineProperty(t,"BannerContainer",{enumerable:!0,get:function(){return o.BannerContainer}})},9673:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BannerManager=t.VisibilityMode=void 0;var o,r=n(7720),i=n(4522),a=n(4570),s=n(5827),l=n(7863),c=n(8853);!function(e){e.VISIBLE="VISIBLE",e.HIDDEN="HIDDEN"}(o=t.VisibilityMode||(t.VisibilityMode={}));var u={theme:{backgroundColor:"rgba(0, 0, 0, .7)",blur:"10px"}},_=function(){function e(e){this.options=e,this._floatingItem=null,this._timerSubscription=void 0,this._options=e,this._bannerConfig=(0,c.getContribConfig)(this._options.kalturaPlayer,"ui.banner",u)}return e.prototype.add=function(e){return this._floatingItem&&this.remove(),this._floatingItem=this._options.floatingManager.add({label:"Banner",mode:r.FloatingUIModes.Immediate,position:r.FloatingPositions.InteractiveArea,renderContent:this._createRenderBanner(e,{onClose:this._handleCloseEvent.bind(this),theme:this._bannerConfig.theme})}),e.autoClose&&this._startDurationTimer(e.duration),this._getState()},e.prototype.remove=function(){this._floatingItem&&(this._timerSubscription&&clearTimeout(this._timerSubscription),this._options.floatingManager.remove(this._floatingItem),this._floatingItem=null)},e.prototype.reset=function(){this.remove()},e.prototype._createRenderBanner=function(e,t){var n=e.content,o=e.renderContent,r=t.onClose,l=t.theme;return function(e){return(0,i.h)(s.BannerContainer,{onClose:r,theme:l},o?o(n,e):(0,i.h)(a.Banner,{content:n}))}},e.prototype._handleCloseEvent=function(){this.remove()},e.prototype._startDurationTimer=function(e){void 0===e&&(e=6e4),this._timerSubscription=setTimeout(this.remove.bind(this),Math.max(5e3,e))},e.prototype._getState=function(){var e=(0,l.getPlayerSize)(this._options.kalturaPlayer);return{visibilityMode:!e||e.width<480?o.HIDDEN:o.VISIBLE}},e}();t.BannerManager=_},6797:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Banner=void 0;var i=n(4522),a=n(5111),s=n(5316),l=n(6339),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(e){var t=e.content,n=t.text,o=t.title,r=void 0===o?"Audience asks:":o,s=t.icon,l=void 0===s?this._defaultIcon():s;return(0,i.h)("div",{className:a.defaultBannerRoot+" "+a.bannerWrapper},(0,i.h)("div",{className:a.iconContainer},(0,i.h)("div",{className:a.iconWrapper},l)),(0,i.h)("div",{className:a.bannerBody},(0,i.h)("div",{className:a.title},r),(0,i.h)("div",{className:a.text},n)))},t.prototype._defaultIcon=function(){return(0,i.h)("div",{className:a.iconImage},(0,i.h)(s.SomeoneAsksLarge,{className:a.large}),(0,i.h)(l.SomeoneAsksSmall,{className:a.small}))},t}(i.Component);t.Banner=c},4570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Banner=void 0;var o=n(6797);Object.defineProperty(t,"Banner",{enumerable:!0,get:function(){return o.Banner}})},5316:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SomeoneAsksLarge=void 0;var r=n(4522);t.SomeoneAsksLarge=function(e){return(0,r.h)("svg",o({width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,r.h)("g",{id:"Icons/32/Someone-asks",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{id:"Group",transform:"translate(4.000000, 5.000000)",fill:"#B2D238"},(0,r.h)("ellipse",{id:"Oval",cx:"12",cy:"5.5",rx:"6",ry:"5.5"}),(0,r.h)("path",{d:"M12,13 C7.995,13 0,15.01 0,19 L0,20.5 C0,21.325 0.675,22 1.5,22 L22.5,22 C23.325,22 24,21.325 24,20.5 L24,19 C24,15.01 16.005,13 12,13 Z",id:"Path"}))))}},6339:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SomeoneAsksSmall=void 0;var r=n(4522);t.SomeoneAsksSmall=function(e){return(0,r.h)("svg",o({width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,r.h)("g",{id:"Icons/20/Someone-asks",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{id:"Group",transform:"translate(2.000000, 2.000000)",fill:"#B2D238"},(0,r.h)("circle",{id:"Oval",cx:"8",cy:"4",r:"4"}),(0,r.h)("path",{d:"M8,9 C5.33,9 0,10.5633333 0,13.6666667 L0,14.8333333 C0,15.475 0.45,16 1,16 L15,16 C15.55,16 16,15.475 16,14.8333333 L16,13.6666667 C16,10.5633333 10.67,9 8,9 Z",id:"Path"}))))}},6908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContribServices=t.getPlayerContribRegistry=void 0;var o=n(8717),r=n(3199),i=n(5753),a=n(8529),s=n(9673);function l(e){return o.PlayerContribRegistry.get(e)}t.getPlayerContribRegistry=l;var c=function(){function e(e,t){var n=this;this._playerContribRegistry=e,this._options=t,this._registered=!1,this._addListeners=function(){var e=n._options.kalturaPlayer;e.addEventListener(e.Event.PLAYER_RESET,n.reset),e.addEventListener(e.Event.PLAYER_DESTROY,n._removeListeners)},this._removeListeners=function(){var e=n._options.kalturaPlayer;e.removeEventListener(e.Event.PLAYER_RESET,n.reset),e.removeEventListener(e.Event.PLAYER_DESTROY,n._removeListeners)},this.register=function(){return n._registered?[]:(n._registered=!0,n._presetManager.registerComponents())},this.reset=function(){n._toastManager.reset(),n._floatingManager.reset(),n._bannerManager.reset()},this.destroy=function(){n._registered=!1};var o=this._options.kalturaPlayer,l=new r.PresetManager({kalturaPlayer:o}),c=new a.FloatingManager({kalturaPlayer:o,presetManager:l}),u=new i.ToastManager({floatingManager:c}),_=new s.BannerManager({kalturaPlayer:o,floatingManager:c});this._toastManager=u,this._floatingManager=c,this._presetManager=l,this._bannerManager=_,this._addListeners()}return e.get=function(t){var n=l(t.kalturaPlayer);return n.register("ContribServices",(function(){return new e(n,t)}))},Object.defineProperty(e.prototype,"presetManager",{get:function(){return this._presetManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"floatingManager",{get:function(){return this._floatingManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toastManager",{get:function(){return this._toastManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bannerManager",{get:function(){return this._bannerManager},enumerable:!1,configurable:!0}),e}();t.ContribServices=c},8853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContribConfig=void 0;var o=n(5816);t.getContribConfig=function(e,t,n,r){return o.KalturaPlayerUtils.getPlayerConfig(e,"contrib.".concat(t),n,r)}},5092:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4522);t.default=function(e,t,n){return(0,o.h)("a",{href:e,key:n,target:"_blank",rel:"noopener noreferrer"},t)}},8842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsManager=void 0;var n=function(){function e(){this._eventListeners={},this._wildcardEventListeners=[]}return e.prototype.on=function(e,t){"*"!==e?(this._eventListeners[e]||(this._eventListeners[e]=[])).push(t):this._wildcardEventListeners.push(t)},e.prototype.off=function(e,t){if("*"!==e){var n=this._eventListeners[e];n&&n.splice(n.indexOf(t)>>>0,1)}else this._wildcardEventListeners.splice(this._wildcardEventListeners.indexOf(t)>>>0,1)},e.prototype.emit=function(e){(this._eventListeners[e.type]||[]).slice().map((function(t){t(e)})),this._wildcardEventListeners.slice().map((function(t){t(e)}))},e}();t.EventsManager=n},7720:(e,t)=>{"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingPositions=t.FloatingUIModes=void 0,(o=t.FloatingUIModes||(t.FloatingUIModes={})).MediaLoaded="MediaLoaded",o.OnDemand="OnDemand",o.Immediate="Immediate",o.FirstPlay="FirstPlay",(n=t.FloatingPositions||(t.FloatingPositions={})).VideoArea="VideoArea",n.PresetArea="PresetArea",n.InteractiveArea="InteractiveArea"},5921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingItem=void 0;var o=n(4522),r=n(7720),i=n(9017),a=function(){function e(e){var t=this;this._destroyed=!1,this._isShown=!1,this._componentRef=null,this.remove=function(){t._isShown=!1,t._componentRef&&t._componentRef.update()},this.add=function(){t._isShown=!0,t._componentRef&&t._componentRef.update()},this._handleMediaLoaded=function(){var e=t._options.kalturaPlayer;e.removeEventListener(e.Event.MEDIA_LOADED,t._handleMediaLoaded),t.add()},this._handleFirstPlay=function(){var e=t._options.kalturaPlayer;e.removeEventListener(e.Event.FIRST_PLAY,t._handleFirstPlay),t.add()},this._options=e,this._addPlayerBindings()}return Object.defineProperty(e.prototype,"data",{get:function(){return this._options.data},enumerable:!1,configurable:!0}),e.prototype.update=function(){this._componentRef&&this._componentRef.update()},e.prototype.destroy=function(){this._destroyed=!0,this.remove()},e.prototype.renderFloatingChild=function(e){var t=this,n=this._options.data.label;return(0,o.h)(i.ManagedComponent,{label:n,renderChildren:function(){return t._options.data.renderContent(e)},isShown:function(){return t._isShown},ref:function(e){return t._componentRef=e}})},e.prototype._addPlayerBindings=function(){var e=this._options,t=e.kalturaPlayer,n=e.data;n.mode===r.FloatingUIModes.MediaLoaded&&t.addEventListener(t.Event.MEDIA_LOADED,this._handleMediaLoaded),n.mode===r.FloatingUIModes.FirstPlay&&t.addEventListener(t.Event.FIRST_PLAY,this._handleFirstPlay),n.mode===r.FloatingUIModes.Immediate&&this.add()},e}();t.FloatingItem=a},8529:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingManager=void 0;var i=n(5921),a=n(7720),s=n(3199),l=n(4522),c=n(7863),u=n(9017),_=n(7417),d=n(8853),p={presetAreasMapping:{Playback:{VideoArea:"VideoArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea"},Live:{VideoArea:"VideoArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea"}}},A=["VideoArea","PresetArea","InteractiveArea"],h=function(){function e(e){var t,n,o=this;this._options=e,this._items=((t={})[a.FloatingPositions.VideoArea]=[],t[a.FloatingPositions.InteractiveArea]=[],t[a.FloatingPositions.PresetArea]=[],t),this._componentRef=((n={})[a.FloatingPositions.InteractiveArea]=null,n[a.FloatingPositions.VideoArea]=null,n[a.FloatingPositions.PresetArea]=null,n),this._cache={canvas:{playerSize:{width:0,height:0},videoSize:{width:0,height:0}}},this._renderItems=function(e){var t=o._getRendererProps({});return o._items[e].map((function(e){return e.renderFloatingChild(t)}))},this._renderChild=function(e){return(0,l.h)(u.ManagedComponent,{label:"floating-manager",renderChildren:function(){return o._renderItems(e)},isShown:function(){return!0},ref:function(t){return o._componentRef[e]=t}})},this._floatingConfig=(0,d.getContribConfig)(this._options.kalturaPlayer,"ui.floating",p,{explicitMerge:["presetAreasMapping"]});var r=_.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._floatingConfig.presetAreasMapping,acceptableTypes:A});Object.keys(r).forEach((function(e){o._options.presetManager.add({label:"floating-manager",presetAreas:r[e],renderChild:function(){return o._renderChild(a.FloatingPositions[e])}})})),this._addPlayerBindings(),this._updateCachedCanvas()}return e.prototype.add=function(e){var t=this._options.presetManager,n=o(o({presetManager:t},this._options),{data:e}),r=new i.FloatingItem(n);return this._items[e.position].push(r),r},e.prototype.remove=function(e){var t=this._items[e.data.position],n=t.indexOf(e);n>-1?(t[n].destroy(),t.splice(n,1)):console.warn("couldn't remove ".concat(e," since it wasn't found"))},e.prototype.reset=function(){r(r(r([],this._items.VideoArea,!0),this._items.InteractiveArea,!0),this._items.PresetArea,!0).forEach((function(e){try{e.destroy()}catch(e){console.warn(e)}})),this._items.VideoArea=[],this._items.PresetArea=[],this._items.InteractiveArea=[]},e.prototype._getRendererProps=function(e){var t=this._options.kalturaPlayer;return{currentTime:void 0!==e.currentTime?e.currentTime:1e3*t.currentTime,canvas:this._cache.canvas}},e.prototype._updateCachedCanvas=function(){this._cache.canvas={playerSize:(0,c.getPlayerSize)(this._options.kalturaPlayer),videoSize:(0,c.getVideoSize)(this._options.kalturaPlayer)}},e.prototype._updateComponents=function(){this._componentRef.InteractiveArea&&this._componentRef.InteractiveArea.update(),this._componentRef.PresetArea&&this._componentRef.PresetArea.update(),this._componentRef.VideoArea&&this._componentRef.VideoArea.update()},e.prototype._addPlayerBindings=function(){var e=this,t=this._options.kalturaPlayer;t.addEventListener(t.Event.TIME_UPDATE,(function(){e._updateComponents()})),t.addEventListener(t.Event.MEDIA_LOADED,(function(){e._updateCachedCanvas(),e._updateComponents()})),t.addEventListener(t.Event.LOADED_DATA,(function(){e._updateCachedCanvas(),e._updateComponents()})),this._options.presetManager.on(s.PresetManagerEventTypes.VideoResizeEvent,(function(){e._updateCachedCanvas(),e._updateComponents()})),this._options.presetManager.on(s.PresetManagerEventTypes.PresetResizeEvent,(function(){e._updateCachedCanvas(),e._updateComponents()}))},e}();t.FloatingManager=h},197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkifyString=t.VisibilityMode=t.BannerManager=t.FloatingUIModes=t.FloatingPositions=t.FloatingItem=t.ToastSeverity=t.ContribServices=void 0;var o=n(6908);Object.defineProperty(t,"ContribServices",{enumerable:!0,get:function(){return o.ContribServices}});var r=n(5753);Object.defineProperty(t,"ToastSeverity",{enumerable:!0,get:function(){return r.ToastSeverity}});var i=n(5921);Object.defineProperty(t,"FloatingItem",{enumerable:!0,get:function(){return i.FloatingItem}});var a=n(7720);Object.defineProperty(t,"FloatingPositions",{enumerable:!0,get:function(){return a.FloatingPositions}}),Object.defineProperty(t,"FloatingUIModes",{enumerable:!0,get:function(){return a.FloatingUIModes}});var s=n(9673);Object.defineProperty(t,"BannerManager",{enumerable:!0,get:function(){return s.BannerManager}}),Object.defineProperty(t,"VisibilityMode",{enumerable:!0,get:function(){return s.VisibilityMode}});var l=n(8849);Object.defineProperty(t,"LinkifyString",{enumerable:!0,get:function(){return l.LinkifyString}})},5161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InjectedComponent=void 0;var o=n(413);Object.defineProperty(t,"InjectedComponent",{enumerable:!0,get:function(){return o.InjectedComponent}})},413:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InjectedComponent=void 0;var i=n(4522),a=n(7982),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._root=null,t}return r(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.componentDidMount=function(){var e=this.props,t=e.onCreate;if(e.label,t){var n=this._root;n&&t({parent:n})}},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.onDestroy,n=(e.label,this._root);n&&t&&t({parent:n})},t.prototype.render=function(){var e=this,t=this.props,n=t.label,o=t.fillContainer?a.fillContainer:"";return(0,i.h)("div",{"data-contrib-injected":n,className:o,ref:function(t){return e._root=t}})},t}(i.Component);t.InjectedComponent=s},5816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaPlayerUtils=void 0;var o=n(9442),r=function(){function e(){}return e.getPlayerConfig=function(e,t,n,r){var i=o.ObjectUtils.get(e.config,t,{});return o.ObjectUtils.mergeDefaults(i,n,r)},e}();t.KalturaPlayerUtils=r},8849:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LinkifyString=void 0;var i=n(4522),a=n(3708),s=n(5092),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._linkify=new a,t}return r(t,e),t.prototype._parseString=function(e){var t=this;if(0===(e||"").trim().length)return"";var n=this._linkify.match(e);if(!n)return e;var o=[],r=0;return n.forEach((function(n,i){n.index>r&&o.push(e.substring(r,n.index));var a=n.url,s=n.text,l=t.props.componentRenderer(a,s,i);o.push(l),r=n.lastIndex})),e.length>r&&o.push(e.substring(r)),1===o.length?o[0]:o},t.prototype.render=function(){return(0,i.h)("span",null,this._parseString(this.props.text))},t.defaultProps={componentRenderer:s.default},t}(i.Component);t.LinkifyString=l},9017:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(3692),t)},3692:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ManagedComponent=void 0;var a=n(4522),s=n(8598),l=KalturaPlayer.ui.redux.connect,c=function(e){return{playerSize:e.shell.playerSize}},u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.update=function(){this.setState((function(e){return{toggler:!e.toggler}}))},t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.updateOnPlayerSizeChanged,o=t.playerSize;return n&&e.playerSize!==o||e.playerSize===o},t.prototype.componentDidMount=function(){this.setState({toggler:!1})},t.prototype.render=function(){var e=this.props,t=e.fillContainer,n=e.isShown,o=e.playerSize;return n()?(0,a.h)("div",{"data-contrib-item":this.props.label,className:"".concat(t?s.fillContainer:"")},this.props.renderChildren(o)):null},t.defaultProps={fillContainer:!1},i([l(c,null,null,{forwardRef:!0})],t)}(a.Component);t.ManagedComponent=u},9442:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUtils=void 0;var o=function(){function e(){}return e.copyDeep=function(t){var n;return Array.isArray(t)?(n=t.length>0?t.slice(0):[]).forEach((function(t,o){("object"==typeof t&&t!=={}||Array.isArray(t)&&t.length>0)&&(n[o]=e.copyDeep(t))})):"object"==typeof t?(n=Object.assign({},t),Object.keys(n).forEach((function(t){("object"==typeof n[t]&&n[t]!=={}||Array.isArray(n[t])&&n[t].length>0)&&(n[t]=e.copyDeep(n[t]))}))):n=t,n},e.isObject=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},e.mergeDeep=function(t,n,o){var r,i;if(!n.length)return t;var a=(o?o.explicitMerge:null)||[],s=n.shift();if(e.isObject(t)&&e.isObject(s))for(var l in s)e.isObject(s[l])?(t[l]||Object.assign(t,((r={})[l]={},r)),-1!==a.indexOf(l)?t[l]=e.explicitFlatMerge(t[l],s[l]):e.mergeDeep(t[l],[s[l]],o)):Object.assign(t,((i={})[l]=s[l],i));return e.mergeDeep(t,n,o)},e.mergeDefaults=function(t,n,o){return e.mergeDeep({},[n,t],o)},e.explicitFlatMerge=function(e,t){var o=n({},e);return Object.keys(t).forEach((function(e){null===t[e]||0===Object.keys(t[e]).length?delete o[e]:o[e]=t[e]})),o},e.get=function(e,t,n){for(var o=function(e){var t=[];return e.split(".").forEach((function(e){e.split(/\[([^}]+)\]/g).forEach((function(e){e.length>0&&t.push(e)}))})),t}(t),r=e,i=0;i<o.length;i++){if(!r[o[i]])return n;r=r[o[i]]}return r},e}();t.ObjectUtils=o},8717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerContribRegistry=void 0;var n=function(){function e(){this._cache={}}return e.get=function(t){return t.__contrib__=t.__contrib__||{},t.__contrib__.services=t.__contrib__.services||new e,t.__contrib__.services},e.prototype.get=function(e){var t=this._cache[e];if(!t)throw new Error("cannot find resource with token ".concat(e));return t},e.prototype.register=function(e,t){var n=this._cache[e];return n||(n=this._cache[e]={instance:t()}),n.instance},e}();t.PlayerContribRegistry=n},7863:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVideoSize=t.getPlayerSize=void 0,t.getPlayerSize=function(e){return e?e.dimensions:{width:0,height:0}},t.getVideoSize=function(e){if(!e)return{width:0,height:0};var t=e.getActiveTracks().video;return t&&void 0!==t.width&&void 0!==t.height?{width:t.width,height:t.height}:e.getVideoElement()?{width:e.getVideoElement().videoWidth,height:e.getVideoElement().videoHeight}:{width:0,height:0}}},6109:(e,t)=>{"use strict";var n,o,r;Object.defineProperty(t,"__esModule",{value:!0}),t.RelativeToTypes=t.ReservedPresetAreas=t.ReservedPresetNames=void 0,(r=t.ReservedPresetNames||(t.ReservedPresetNames={})).Playback="Playback",r.Live="Live",(o=t.ReservedPresetAreas||(t.ReservedPresetAreas={})).PresetFloating="PresetFloating",o.BottomBarLeftControls="BottomBarLeftControls",o.BottomBarRightControls="BottomBarRightControls",o.TopBarLeftControls="TopBarLeftControls",o.TopBarRightControls="TopBarRightControls",o.SidePanelTop="SidePanelTop",o.SidePanelLeft="SidePanelLeft",o.SidePanelRight="SidePanelRight",o.SidePanelBottom="SidePanelBottom",o.PresetArea="PresetArea",o.InteractiveArea="InteractiveArea",o.PlayerArea="PlayerArea",o.VideoArea="VideoArea",(n=t.RelativeToTypes||(t.RelativeToTypes={})).Before="Before",n.After="After",n.Replace="Replace"},6513:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetItem=void 0;var o=n(4522),r=n(6109),i=n(5161),a=function(){function e(e){var t=this;this._render=function(){if(t._options.data.isolateComponent){var e=t._options.data,n=e.label,r=e.fillContainer;return(0,o.h)(i.InjectedComponent,{label:n,fillContainer:r||!1,onCreate:t._onCreate,onDestroy:t._onDestroy})}return t._options.data.renderChild()},this._onDestroy=function(e){e.parent&&(0,o.render)(null,e.parent)},this._onCreate=function(e){try{if(!e.parent)return;var n=t._options.data.renderChild();if(!n)return;(0,o.render)(n,e.parent)}catch(e){}},this._options=e}return Object.defineProperty(e.prototype,"playerConfig",{get:function(){var e=[];for(var t in this._options.data.presetAreas){var n=this._options.data.presetAreas[t],o=this._options.data.relativeTo;if(n){var i={label:this._options.data.label,presets:[t],container:n,get:this._render};if(o)switch(o.type){case r.RelativeToTypes.After:i.afterComponent=o.name;break;case r.RelativeToTypes.Before:i.beforeComponent=o.name;break;case r.RelativeToTypes.Replace:i.replaceComponent=o.name}e.push(i)}}return e},enumerable:!1,configurable:!0}),e}();t.PresetItem=a},3199:function(e,t,n){"use strict";var o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PresetManager=t.PresetManagerEventTypes=void 0;var r,i=n(4522),a=n(6513),s=n(8842),l=n(6227),c=n(7417),u=n(8853);!function(e){e.PresetResizeEvent="PresetResizeEvent",e.VideoResizeEvent="VideoResizeEvent"}(r=t.PresetManagerEventTypes||(t.PresetManagerEventTypes={}));var _=["PlayerArea"],d={presetAreasMapping:{Playback:{PlayerArea:"PlayerArea"},Live:{PlayerArea:"PlayerArea"}}},p=function(){function e(e){var t=this;this._events=new s.EventsManager,this._isLocked=!1,this._items=[],this._pendingItems=[],this._registerToPlayer=function(e){e.addEventListener(KalturaPlayer.ui.EventType.UI_PRESET_RESIZE,t._notifyUIPresetResize),e.addEventListener(KalturaPlayer.ui.EventType.VIDEO_RESIZE,t._notifyVideoResize)},this._notifyVideoResize=function(){t._events.emit({type:r.VideoResizeEvent})},this._notifyUIPresetResize=function(){t._events.emit({type:r.PresetResizeEvent})},this._unregisterToPlayer=function(e){e.removeEventListener(KalturaPlayer.ui.EventType.UI_PRESET_RESIZE,t._notifyUIPresetResize),e.removeEventListener(KalturaPlayer.ui.EventType.VIDEO_RESIZE,t._notifyVideoResize)},this.on=this._events.on.bind(this._events),this.off=this._events.off.bind(this._events),this._options=e,this._presetConfig=(0,u.getContribConfig)(this._options.kalturaPlayer,"ui.preset",d,{explicitMerge:["presetAreasMapping"]});var n=c.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._presetConfig.presetAreasMapping,acceptableTypes:_});this.add({label:"preset-manager",presetAreas:n.PlayerArea,renderChild:function(){return(0,i.h)(l.UIPlayerAdapter,{onMount:t._registerToPlayer,onUnmount:t._unregisterToPlayer})}})}return e.prototype.add=function(e){if(this._isLocked)return console.warn("cannot add new preset items once player completed its' setup phase"),null;var t=new a.PresetItem({kalturaPlayer:this._options.kalturaPlayer,data:e});this._pendingItems.push(t)},e.prototype.lockManager=function(){this._isLocked=!0},e.prototype.registerComponents=function(){var e=[];return this._pendingItems.forEach((function(t){e=o(o([],e,!0),t.playerConfig,!0)})),this._items=o(o([],this._items,!0),this._pendingItems,!0),this._pendingItems=[],e.filter(Boolean)},e}();t.PresetManager=p},7417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetsUtils=void 0;var n=function(){function e(){}return e.groupPresetAreasByType=function(e){var t=e.presetAreasMapping,n=e.acceptableTypes,o={};return n.forEach((function(e){return o[e]={}})),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(r){-1===n.indexOf(r)||(o[r][e]=t[e][r])}))})),o},e}();t.PresetsUtils=n},5753:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ToastManager=t.ToastSeverity=void 0;var i,a=n(4144),s=n(7720),l=n(4617),c=n(4522);(i=t.ToastSeverity||(t.ToastSeverity={})).Info="Info",i.Success="Success",i.Warn="Warn",i.Error="Error";var u=function(){function e(e){var t=this;this.options=e,this._toasts=[],this._floatingItem=null,this._remove=function(e){var n=t._findToastIndexById(e);-1!==n&&(clearTimeout(t._toasts[n].timerSubscription),t._toasts.splice(n,1),t._updateToastsUI(),0===t._toasts.length&&t._removeToastsContainer())},this._options=e}return e.prototype.add=function(e){var t=e.duration,n=r(e,["duration"]);this._floatingItem||this._addToastsContainer();var i={toastProps:o(o({},n),{id:a.UUID.uuidV1(),onClose:this._remove}),duration:t,timerSubscription:null};this._toasts.push(i),this._updateToastsUI(),this._startDurationTimer(i)},e.prototype.reset=function(){var e=this;this._toasts.forEach((function(t){e._remove(t.toastProps.id)}))},e.prototype._startDurationTimer=function(e){var t=this;e.timerSubscription=setTimeout((function(){t._remove(e.toastProps.id)}),e.duration)},e.prototype._addToastsContainer=function(){var e=this;this._floatingItem=this._options.floatingManager.add({label:"Toasts",mode:s.FloatingUIModes.Immediate,position:s.FloatingPositions.InteractiveArea,renderContent:function(){return(0,c.h)(l.ToastsContainer,{toasts:e._toasts.map((function(e){return e.toastProps}))})}})},e.prototype._removeToastsContainer=function(){this._floatingItem&&(this._options.floatingManager.remove(this._floatingItem),this._floatingItem=null)},e.prototype._updateToastsUI=function(){this._floatingItem&&this._floatingItem.update()},e.prototype._findToastIndexById=function(e){for(var t=0;t<this._toasts.length;){if(this._toasts[t].toastProps.id===e)return t;t++}return-1},e}();t.ToastManager=u},1569:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;var o=n(4522);t.CloseIcon=function(){return(0,o.h)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},(0,o.h)("g",{id:"Icons/16/Close",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,o.h)("path",{d:"M8.8497789,8 L11.824005,10.9742261 C12.058665,11.2088861 12.058665,11.5893451 11.824005,11.824005 C11.5893451,12.058665 11.2088861,12.058665 10.9742261,11.824005 L8,8.8497789 L5.02577387,11.824005 C4.7911139,12.058665 4.41065493,12.058665 4.17599497,11.824005 C3.94133501,11.5893451 3.94133501,11.2088861 4.17599497,10.9742261 L7.1502211,8 L4.17599497,5.02577387 C3.94133501,4.7911139 3.94133501,4.41065493 4.17599497,4.17599497 C4.41065493,3.94133501 4.7911139,3.94133501 5.02577387,4.17599497 L8,7.1502211 L10.9742261,4.17599497 C11.2088861,3.94133501 11.5893451,3.94133501 11.824005,4.17599497 C12.058665,4.41065493 12.058665,4.7911139 11.824005,5.02577387 L8.8497789,8 Z",id:"Path",fill:"#cccccc"})))}},3810:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Toast=void 0;var i=n(4522),a=n(8200),s=n(5753),l=n(1569),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isShown:!0},t._onClick=function(e){t.props.onClick(),t._onClose(e)},t._onClose=function(e){e.stopPropagation(),t.setState({isShown:!1}),t.props.onClose(t.props.id)},t}return r(t,e),t.prototype._getToastSeverityClass=function(){switch(this.props.severity){case s.ToastSeverity.Success:return a.successToast;case s.ToastSeverity.Warn:return a.warnToast;case s.ToastSeverity.Error:return a.errorToast;default:return a.infoToast}},t.prototype.render=function(){var e=this.props,t=e.text,n=e.title,o=e.icon;return(0,i.h)("div",{className:a.toastWrapper+" "+this._getToastSeverityClass(),onClick:this._onClick},(0,i.h)("button",{className:a.closeButton,onClick:this._onClose},(0,i.h)(l.CloseIcon,null)),(0,i.h)("div",{className:a.title},n),(0,i.h)("div",{className:a.toastBody},(0,i.h)("div",{className:a.iconContainer},(0,i.h)("div",{className:a.iconWrapper},o)),(0,i.h)("div",{className:a.text},t)))},t}(i.Component);t.Toast=c},4617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToastsContainer=void 0;var o=n(7371);Object.defineProperty(t,"ToastsContainer",{enumerable:!0,get:function(){return o.ToastsContainer}})},7371:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ToastsContainer=void 0;var a=n(4522),s=n(3810),l=n(5207),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return(0,a.h)("div",{className:l.toastsContainer,"aria-live":"polite"},this.props.toasts.map((function(e){return(0,a.h)("div",{className:l.toastRow,key:e.id},(0,a.h)(s.Toast,i({},e)))})))},t}(a.Component);t.ToastsContainer=c},6227:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(9873),t)},9873:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.UIPlayerAdapter=void 0;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.componentDidMount=function(){this.props.onMount(this.props.player)},t.prototype.componentWillUnmount=function(){this.props.onUnmount(this.props.player)},t.prototype.render=function(e){return null},t.defaultProps={player:null},i([KalturaPlayer.ui.components.withPlayer],t)}(n(4522).Component);t.UIPlayerAdapter=a},4144:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UUID=void 0;var n=function(){function e(){}return e.uuidV1=function(){return"".concat(Date.now(),"-").concat(Math.random())},e}();t.UUID=n},1123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsManager=void 0;var n=function(){function e(){this._eventListeners={},this._wildcardEventListeners=[]}return e.prototype.on=function(e,t){"*"!==e?(this._eventListeners[e]||(this._eventListeners[e]=[])).push(t):this._wildcardEventListeners.push(t)},e.prototype.off=function(e,t){if("*"!==e){var n=this._eventListeners[e];n&&n.splice(n.indexOf(t)>>>0,1)}else this._wildcardEventListeners.splice(this._wildcardEventListeners.indexOf(t)>>>0,1)},e.prototype.emit=function(e){(this._eventListeners[e.type]||[]).slice().map((function(t){t(e)})),this._wildcardEventListeners.slice().map((function(t){t(e)}))},e}();t.EventsManager=n},6265:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(1123),t),r(n(4300),t)},4300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=t.getQnaUserId=t.getUserId=t.generateId=void 0,t.generateId=function(){return(new Date).getTime().toString(36)+Math.random().toString(36).slice(2)};var n=function(){for(var e=(0,t.generateId)(),n="",o=0;o<e.length;o++){var r=e.charAt(o);n+=Number.isNaN(+r)?r.charCodeAt(0):r}return n};function o(){return"undefined"==typeof Storage?r():((e=localStorage.getItem("anonymousUserId"))||(e=r(),localStorage.setItem("anonymousUserId",e)),e);var e}function r(){return"##".concat("Guest").concat("HashSeparator").concat(n(),"##")}t.getUserId=o,t.getQnaUserId=function(e){var t,n,r,i,a=e,s=a.config,l=a.plugins,c=(null==s?void 0:s.session)||{},u=(null===(n=null===(t=null==l?void 0:l.qna)||void 0===t?void 0:t.config)||void 0===n?void 0:n.userRole)||c.userRole;return u&&"anonymousRole"!==u?(null===(i=null===(r=null==l?void 0:l.qna)||void 0===r?void 0:r.config)||void 0===i?void 0:i.userId)||c.userId:o()},t.debounce=function(e,t,n){var o;return void 0===t&&(t=50),void 0===n&&(n={isImmediate:!1}),function(){for(var r=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(r,i)}),t),s&&e.apply(this,i)}}},42:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)o.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},5630:(e,t,n)=>{"use strict";n.d(t,{H1:()=>A,IV:()=>f,JU:()=>c,LI:()=>s,T$:()=>l,Ts:()=>h,ZP:()=>v,bH:()=>C,h:()=>u,oB:()=>d,oL:()=>_,yG:()=>p});var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,".Button__button___NM3Vl{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;font-weight:700;border:1px solid rgba(0,0,0,0);border-radius:4px;cursor:pointer}.Button__button___NM3Vl.Button__primary___vkWyL{background-color:var(--playkit-primary-color);color:var(--playkit-primary-text-contrast-color)}.Button__button___NM3Vl.Button__primary___vkWyL:not(.Button__disabled___j4KjS):hover{background-color:var(--playkit-primary-darker-color)}.Button__button___NM3Vl.Button__primary___vkWyL:not(.Button__disabled___j4KjS):focus{background-color:var(--playkit-primary-brighter-color)}.Button__button___NM3Vl.Button__danger___lCKPq{background-color:var(--playkit-danger-color);color:var(--playkit-danger-text-contrast-color)}.Button__button___NM3Vl.Button__danger___lCKPq:not(.Button__disabled___j4KjS):hover{background-color:var(--playkit-danger-darker-color)}.Button__button___NM3Vl.Button__danger___lCKPq:not(.Button__disabled___j4KjS):focus{background-color:var(--playkit-danger-brighter-color)}.Button__button___NM3Vl.Button__translucent___nSc5h{background-color:rgba(0,0,0,.6);color:var(--playkit-primary-text-contrast-color)}.Button__button___NM3Vl.Button__borderless___sov7o{background-color:rgba(0,0,0,0);color:var(--playkit-tone-1-color)}.Button__button___NM3Vl.Button__borderless___sov7o:not(.Button__disabled___j4KjS):hover{background-color:var(--playkit-tone-4-color)}.Button__button___NM3Vl.Button__borderless___sov7o:not(.Button__disabled___j4KjS):focus{background-color:var(--playkit-tone-6-color)}.Button__button___NM3Vl.Button__small____SSTu{height:24px;font-size:13px;line-height:16px;padding:0 4px}.Button__button___NM3Vl.Button__small____SSTu.Button__withIcon___c3vxV{padding-right:8px}.Button__button___NM3Vl.Button__small____SSTu.Button__withIcon___c3vxV>span{margin-left:2px}.Button__button___NM3Vl.Button__small____SSTu.Button__iconOnly___dISNi{padding:0 3px}.Button__button___NM3Vl.Button__medium___psqY1{height:32px;font-size:14px;line-height:17px;padding:0 8px}.Button__button___NM3Vl.Button__medium___psqY1.Button__withIcon___c3vxV{padding-right:12px}.Button__button___NM3Vl.Button__medium___psqY1.Button__withIcon___c3vxV>span{margin-left:4px}.Button__button___NM3Vl.Button__medium___psqY1.Button__iconOnly___dISNi{padding:0 3px}.Button__button___NM3Vl.Button__large___ftsNW{height:40px;font-size:16px;line-height:19px;padding:0 16px}.Button__button___NM3Vl.Button__large___ftsNW.Button__withIcon___c3vxV{padding-left:12px}.Button__button___NM3Vl.Button__large___ftsNW.Button__withIcon___c3vxV>span{margin-left:4px}.Button__button___NM3Vl.Button__large___ftsNW.Button__iconOnly___dISNi{padding:0 3px}.Button__button___NM3Vl.Button__disabled___j4KjS{background-color:rgba(0,0,0,0);color:var(--playkit-tone-4-color);border-color:var(--playkit-tone-4-color);cursor:default}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/components/button/Button.scss","webpack://./../node_modules/@playkit-js/common/dist/components/variables.scss","webpack://./../node_modules/@playkit-js/common/node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAGA,wBACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,gBAAA,CACA,eAAA,CACA,8BAAA,CACA,iBCPY,CDQZ,cAAA,CACA,gDACE,6CEVY,CFWZ,gDER0B,CFUxB,qFACE,oDEbe,CFejB,qFACE,sDEfiB,CFmBvB,+CACE,4CENW,CFOX,+CEJyB,CFMvB,oFACE,mDETc,CFWhB,oFACE,qDEXgB,CFetB,oDACE,+BAAA,CACA,gDEhC0B,CFkC5B,mDACE,8BAAA,CACA,iCEZW,CFcT,wFACE,4CEZO,CFcT,wFACE,4CEbO,CFiBb,8CACE,WAAA,CACA,cAAA,CACA,gBAAA,CACA,aAAA,CACA,uEACE,iBAAA,CACA,4EACE,eAAA,CAGJ,uEACE,aAAA,CAGJ,+CACE,WAAA,CACA,cAAA,CACA,gBAAA,CACA,aAAA,CACA,wEACE,kBAAA,CACA,6EACE,eAAA,CAGJ,wEACE,aAAA,CAGJ,8CACE,WAAA,CACA,cAAA,CACA,gBAAA,CACA,cAAA,CACA,uEACE,iBAAA,CACA,4EACE,eAAA,CAGJ,uEACE,aAAA,CAGJ,iDACE,8BAAA,CACA,iCElEW,CFmEX,wCEnEW,CFoEX,cAAA",sourcesContent:["@import '../variables.scss';\n\n// https://www.figma.com/file/GYMv1jsthckOnKmCrdQJY3/%E2%8F%AF-Player-v7-(Guidelines)?node-id=21%3A1943&t=ywdMo875C6kzd7pN-0\n.button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-wrap: nowrap;\n  font-weight: 700;\n  border: 1px solid transparent;\n  border-radius: $roundness-1;\n  cursor: pointer;\n  &.primary {\n    background-color: $primary-color;\n    color: $primary-text-contrast-color;\n    &:not(.disabled) {\n      &:hover {\n        background-color: $primary-darker-color;\n      }\n      &:focus {\n        background-color: $primary-brighter-color;\n      }\n    }\n  }\n  &.danger {\n    background-color: $danger-color;\n    color: $danger-text-contrast-color;\n    &:not(.disabled) {\n      &:hover {\n        background-color: $danger-darker-color;\n      }\n      &:focus {\n        background-color: $danger-brighter-color;\n      }\n    }\n  }\n  &.translucent {\n    background-color: rgba(0, 0, 0, 0.6);\n    color: $primary-text-contrast-color;\n  }\n  &.borderless {\n    background-color: transparent;\n    color: $tone-1-color;\n    &:not(.disabled) {\n      &:hover {\n        background-color: $tone-4-color;\n      }\n      &:focus {\n        background-color: $tone-6-color;\n      }\n    }\n  }\n  &.small {\n    height: 24px;\n    font-size: 13px;\n    line-height: 16px;\n    padding: 0 4px;\n    &.withIcon {\n      padding-right: 8px;\n      > span {\n        margin-left: 2px;\n      }\n    }\n    &.iconOnly {\n      padding: 0 3px;\n    }\n  }\n  &.medium {\n    height: 32px;\n    font-size: 14px;\n    line-height: 17px;\n    padding: 0 8px;\n    &.withIcon {\n      padding-right: 12px;\n      > span {\n        margin-left: 4px;\n      }\n    }\n    &.iconOnly {\n      padding: 0 3px;\n    }\n  }\n  &.large {\n    height: 40px;\n    font-size: 16px;\n    line-height: 19px;\n    padding: 0 16px;\n    &.withIcon {\n      padding-left: 12px;\n      > span {\n        margin-left: 4px;\n      }\n    }\n    &.iconOnly {\n      padding: 0 3px;\n    }\n  }\n  &.disabled {\n    background-color: transparent;\n    color: $tone-4-color;\n    border-color: $tone-4-color;\n    cursor: default;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n\n// colors\n$white: #ffffff;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]);var s="Button__button___NM3Vl",l="Button__primary___vkWyL",c="Button__disabled___j4KjS",u="Button__danger___lCKPq",_="Button__translucent___nSc5h",d="Button__borderless___sov7o",p="Button__small____SSTu",A="Button__withIcon___c3vxV",h="Button__iconOnly___dISNi",f="Button__medium___psqY1",C="Button__large___ftsNW";const v=a},703:(e,t,n)=>{"use strict";n.d(t,{JU:()=>_,Xh:()=>u,ZP:()=>h,bB:()=>A,eX:()=>c,kz:()=>p,uN:()=>l,wc:()=>s,zF:()=>d});var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,".InputField__input-field-wrapper___K1QeS{display:flex;align-items:center;flex-grow:1;width:100%;max-width:599px;padding-right:8px;height:32px;border:solid 1px rgba(255,255,255,.4);border-radius:4px}.InputField__input-field-wrapper___K1QeS ::-moz-placeholder{opacity:1}.InputField__input-field-wrapper___K1QeS .InputField__search-results___PBRGr{display:flex;justify-content:flex-end;align-items:center;flex-shrink:0;margin:0 8px 0 6px;font-size:12px;text-overflow:ellipsis}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA{display:flex;flex-direction:column;justify-content:space-around;max-height:100%;height:100%;width:8px;flex:0 0 8px}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA .InputField__prev-next-button___HP7Me{display:flex;align-items:center;height:50%;padding:0;background-color:rgba(0,0,0,0);border:none;cursor:pointer}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA .InputField__prev-next-button___HP7Me.InputField__disabled___GVLcH{opacity:.4;cursor:default}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE{width:100%;flex-grow:1;flex-shrink:1;font-size:15px;padding:0 6px 1px 6px;color:var(--playkit-tone-1-color);background:rgba(0,0,0,0);border:none;overflow:hidden;text-overflow:ellipsis}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE::placeholder{color:var(--playkit-tone-2-color)}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE::selection{background-color:var(--playkit-primary-brighter-color)}.InputField__input-field-wrapper___K1QeS .InputField__clear-icon___eTi3X{padding:0;flex:0 0 12px;max-width:12px;max-height:12px;background-color:rgba(0,0,0,0);width:12px;height:12px;outline-offset:4px;border:none;cursor:pointer}.InputField__input-field-wrapper___K1QeS:hover{border-color:#fff}.InputField__input-field-wrapper___K1QeS.InputField__active____D1qS{color:var(--playkit-tone-2-color);background:var(--playkit-tone-8-color);border-color:#fff}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/components/input-field/InputField.scss","webpack://./../node_modules/@playkit-js/common/dist/components/variables.scss","webpack://./../node_modules/@playkit-js/common/node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,yCAKE,YAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,eAAA,CACA,iBAAA,CACA,WAAA,CACA,qCAAA,CACA,iBCZY,CAAA,4DDCV,SAAA,CAYF,6EACE,YAAA,CACA,wBAAA,CACA,kBAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,sBAAA,CAEF,gFACE,YAAA,CACA,qBAAA,CACA,4BAAA,CACA,eAAA,CACA,WAAA,CACA,SAAA,CACA,YAAA,CACA,sHACE,YAAA,CACA,kBAAA,CACA,UAAA,CACA,SAAA,CACA,8BAAA,CACA,WAAA,CACA,cAAA,CACA,mJACE,UAAA,CACA,cAAA,CAIN,4EACE,UAAA,CACA,WAAA,CACA,aAAA,CACA,cAAA,CACA,qBAAA,CACA,iCEvBW,CFwBX,wBAAA,CACA,WAAA,CACA,eAAA,CACA,sBAAA,CACA,yFACE,iCE5BS,CF8BX,uFACE,sDEzDmB,CF4DvB,yEACE,SAAA,CACA,aAAA,CACA,cAAA,CACA,eAAA,CACA,8BAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,WAAA,CACA,cAAA,CAEF,+CACE,iBCvEI,CDyEN,oEACE,iCElDW,CFmDX,sCE7CW,CF8CX,iBC5EI",sourcesContent:["@import '../variables.scss';\n\n.input-field-wrapper {\n  ::-moz-placeholder {\n    opacity: 1;\n  }\n\n  display: flex;\n  align-items: center;\n  flex-grow: 1;\n  width: 100%;\n  max-width: 599px;\n  padding-right: 8px;\n  height: 32px;\n  border: solid 1px rgba(255, 255, 255, 0.4);\n  border-radius: $roundness-1;\n  .search-results {\n    display: flex;\n    justify-content: flex-end;\n    align-items: center;\n    flex-shrink: 0;\n    margin: 0 8px 0 6px;\n    font-size: 12px;\n    text-overflow: ellipsis;\n  }\n  .prev-next-wrapper {\n    display: flex;\n    flex-direction: column;\n    justify-content: space-around;\n    max-height: 100%;\n    height: 100%;\n    width: 8px;\n    flex: 0 0 8px;\n    .prev-next-button {\n      display: flex;\n      align-items: center;\n      height: 50%;\n      padding: 0;\n      background-color: transparent;\n      border: none;\n      cursor: pointer;\n      &.disabled {\n        opacity: 0.4;\n        cursor: default;\n      }\n    }\n  }\n  .input-element {\n    width: 100%;\n    flex-grow: 1;\n    flex-shrink: 1;\n    font-size: 15px;\n    padding: 0 6px 1px 6px;\n    color: $tone-1-color;\n    background: transparent;\n    border: none;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    &::placeholder {\n      color: $tone-2-color;\n    }\n    &::selection {\n      background-color: $primary-brighter-color;\n    }\n  }\n  .clear-icon {\n    padding: 0;\n    flex: 0 0 12px;\n    max-width: 12px;\n    max-height: 12px;\n    background-color: transparent;\n    width: 12px;\n    height: 12px;\n    outline-offset: 4px;\n    border: none;\n    cursor: pointer;\n  }\n  &:hover {\n    border-color: $white;\n  }\n  &.active {\n    color: $tone-2-color;\n    background: $tone-8-color;\n    border-color: $white;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n\n// colors\n$white: #ffffff;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]);var s="InputField__input-field-wrapper___K1QeS",l="InputField__search-results___PBRGr",c="InputField__prev-next-wrapper___zAxBA",u="InputField__prev-next-button___HP7Me",_="InputField__disabled___GVLcH",d="InputField__input-element___BAphE",p="InputField__clear-icon___eTi3X",A="InputField__active____D1qS";const h=a},7001:(e,t,n)=>{"use strict";n.d(t,{IV:()=>c,ZP:()=>_,aW:()=>s,bH:()=>u,yG:()=>l});var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,".icon__iconWrapper___O5uqn.icon__small___IddLg{width:16px;height:16px}.icon__iconWrapper___O5uqn.icon__medium___llFxB{width:24px;height:24px}.icon__iconWrapper___O5uqn.icon__large___Q96VN{width:32px;height:32px}.icon__iconWrapper___O5uqn>svg{width:100%;height:100%}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/icon/icon.scss"],names:[],mappings:"AACE,+CACE,UAAA,CACA,WAAA,CAEF,gDACE,UAAA,CACA,WAAA,CAEF,+CACE,UAAA,CACA,WAAA,CAEF,+BACE,UAAA,CACA,WAAA",sourcesContent:[".iconWrapper {\n  &.small {\n    width: 16px;\n    height: 16px;\n  }\n  &.medium {\n    width: 24px;\n    height: 24px;\n  }\n  &.large {\n    width: 32px;\n    height: 32px;\n  }\n  > svg {\n    width: 100%;\n    height: 100%;\n  }\n}\n"],sourceRoot:""}]);var s="icon__iconWrapper___O5uqn",l="icon__small___IddLg",c="icon__medium___llFxB",u="icon__large___Q96VN";const _=a},1006:(e,t,n)=>{"use strict";n.d(t,{Ah:()=>c,Cg:()=>l,ZP:()=>d,bH:()=>_,ce:()=>s,yG:()=>u});var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,"._banner-container__bannerContainerRoot___xakgR{position:absolute;max-width:100%;min-width:270px;padding:0 16px 8px;height:88px;bottom:0;left:0;transition:all .5s ease}._banner-container__bannerContainer___Qm02i{position:relative;width:100%;height:100%;border-radius:4px;transition:all .5s ease}._banner-container__closeButton___WVWto{position:absolute;background-color:rgba(0,0,0,0);padding:0;border:none;top:0;right:0;width:32px;height:32px;padding:0}._banner-container__closeButton___WVWto ._banner-container__small___Tgp11{display:none}._banner-container__closeButton___WVWto:hover,._banner-container__closeButton___WVWto:active{cursor:pointer}.playkit-size-md ._banner-container__bannerContainerRoot___xakgR{height:68px;min-width:230px}.playkit-size-md ._banner-container__closeButton___WVWto{top:8px;right:8px;width:10px;height:10px}.playkit-size-md ._banner-container__closeButton___WVWto ._banner-container__large___aw4QR{display:none}.playkit-size-md ._banner-container__closeButton___WVWto ._banner-container__small___Tgp11{display:block}.playkit-size-sm ._banner-container__bannerContainerRoot___xakgR,.playkit-size-xs ._banner-container__bannerContainerRoot___xakgR,.playkit-size-ty ._banner-container__bannerContainerRoot___xakgR{display:none;width:0;height:0}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/banner-container/_banner-container.scss"],names:[],mappings:"AAAA,gDACE,iBAAA,CACA,cAAA,CACA,eAAA,CACA,kBAAA,CACA,WAAA,CACA,QAAA,CACA,MAAA,CACA,uBAAA,CAGF,4CACE,iBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,uBAAA,CAGF,wCACE,iBAAA,CACA,8BAAA,CACA,SAAA,CACA,WAAA,CACA,KAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,SAAA,CACA,0EACE,YAAA,CAIJ,6FAEE,cAAA,CAMI,iEACE,WAAA,CACA,eAAA,CAEF,yDACE,OAAA,CACA,SAAA,CACA,UAAA,CACA,WAAA,CACA,2FACE,YAAA,CAEF,2FACE,aAAA,CAWN,mMACE,YAAA,CACA,OAAA,CACA,QAAA",sourcesContent:[".bannerContainerRoot {\n  position: absolute;\n  max-width: 100%;\n  min-width: 270px;\n  padding: 0 16px 8px;\n  height: 88px;\n  bottom: 0;\n  left: 0;\n  transition: all 0.5s ease;\n}\n\n.bannerContainer {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  border-radius: 4px;\n  transition: all 0.5s ease;\n}\n\n.closeButton {\n  position: absolute;\n  background-color: transparent;\n  padding: 0;\n  border: none;\n  top: 0;\n  right: 0;\n  width: 32px;\n  height: 32px;\n  padding: 0;\n  .small {\n    display: none;\n  }\n}\n\n.closeButton:hover,\n.closeButton:active {\n  cursor: pointer;\n}\n\n:global {\n  .playkit-size-md {\n    :local {\n      .bannerContainerRoot {\n        height: 68px;\n        min-width: 230px;\n      }\n      .closeButton {\n        top: 8px;\n        right: 8px;\n        width: 10px;\n        height: 10px;\n        .large {\n          display: none;\n        }\n        .small {\n          display: block;\n        }\n      }\n    }\n  }\n}\n\n:global {\n  .playkit-size-sm,\n  .playkit-size-xs,\n  .playkit-size-ty {\n    :local .bannerContainerRoot {\n      display: none;\n      width: 0;\n      height: 0;\n    }\n  }\n}\n"],sourceRoot:""}]);var s="_banner-container__bannerContainerRoot___xakgR",l="_banner-container__bannerContainer___Qm02i",c="_banner-container__closeButton___WVWto",u="_banner-container__small___Tgp11",_="_banner-container__large___aw4QR";const d=a},3297:(e,t,n)=>{"use strict";n.d(t,{Fu:()=>c,TN:()=>A,Wd:()=>l,ZP:()=>C,aW:()=>u,bH:()=>f,cy:()=>_,d7:()=>p,fL:()=>h,m0:()=>s,yG:()=>d});var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,"._banner__defaultBannerRoot___NepFO{display:flex;max-width:100%;height:100%;transition:all .5s ease;text-align:left}._banner__bannerWrapper___Rs8hK{padding:18px 17px 17px 16px}._banner__iconContainer___wyKRN{height:100%;width:64px}._banner__iconWrapper___duGbT{position:relative;height:48px;width:48px;background-color:rgba(255,255,255,.14);border-radius:50%;transition:all .5s ease}._banner__iconImage___I0LAA{position:absolute;width:32px;height:32px;left:calc(50% - 16px);top:calc(50% - 16px);transition:all .5s ease;padding:0}._banner__iconImage___I0LAA ._banner__small___mrxMV{display:none}._banner__bannerBody___ISEP1{height:100%;flex:1 1 auto;overflow:hidden}._banner__title___LCkfF{opacity:.9;font-size:14px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:normal;color:#ebebeb}._banner__text___UyS4n{opacity:.9;font-size:24px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.21;letter-spacing:normal;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .5s ease}.playkit-size-md ._banner__bannerWrapper___Rs8hK{padding:14px 16px 14px}.playkit-size-md ._banner__iconContainer___wyKRN{width:44px}.playkit-size-md ._banner__iconWrapper___duGbT{height:32px;width:32px}.playkit-size-md ._banner__iconImage___I0LAA{width:20px;height:20px;left:calc(50% - 10px);top:calc(50% - 10px)}.playkit-size-md ._banner__iconImage___I0LAA ._banner__small___mrxMV{display:block}.playkit-size-md ._banner__iconImage___I0LAA ._banner__large___q5r6u{display:none}.playkit-size-md ._banner__bannerBody___ISEP1{flex:1 1 auto}.playkit-size-md ._banner__title___LCkfF{font-size:12px;font-weight:bold;line-height:1.17}.playkit-size-md ._banner__text___UyS4n{font-size:15px;line-height:1.27}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/banner/_banner.scss"],names:[],mappings:"AAAA,oCACE,YAAA,CACA,cAAA,CACA,WAAA,CACA,uBAAA,CACA,eAAA,CAGF,gCACE,2BAAA,CAGF,gCACE,WAAA,CACA,UAAA,CAGF,8BACE,iBAAA,CACA,WAAA,CACA,UAAA,CACA,sCAAA,CACA,iBAAA,CACA,uBAAA,CAGF,4BACE,iBAAA,CACA,UAAA,CACA,WAAA,CACA,qBAAA,CACA,oBAAA,CACA,uBAAA,CACA,SAAA,CACA,oDACE,YAAA,CAIJ,6BACE,WAAA,CACA,aAAA,CACA,eAAA,CAGF,wBACE,UAAA,CACA,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,aAAA,CACA,qBAAA,CACA,aAAA,CAGF,uBACE,UAAA,CACA,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CACA,uBAAA,CAMI,iDACE,sBAAA,CAEF,iDACE,UAAA,CAEF,+CACE,WAAA,CACA,UAAA,CAEF,6CACE,UAAA,CACA,WAAA,CACA,qBAAA,CACA,oBAAA,CACA,qEACE,aAAA,CAEF,qEACE,YAAA,CAGJ,8CACE,aAAA,CAEF,yCACE,cAAA,CACA,gBAAA,CACA,gBAAA,CAEF,wCACE,cAAA,CACA,gBAAA",sourcesContent:[".defaultBannerRoot {\n  display: flex;\n  max-width: 100%;\n  height: 100%;\n  transition: all 0.5s ease;\n  text-align: left;\n}\n\n.bannerWrapper {\n  padding: 18px 17px 17px 16px;\n}\n\n.iconContainer {\n  height: 100%;\n  width: 64px;\n}\n\n.iconWrapper {\n  position: relative;\n  height: 48px;\n  width: 48px;\n  background-color: rgba(255, 255, 255, 0.14);\n  border-radius: 50%;\n  transition: all 0.5s ease;\n}\n\n.iconImage {\n  position: absolute;\n  width: 32px;\n  height: 32px;\n  left: calc(50% - 16px);\n  top: calc(50% - 16px);\n  transition: all 0.5s ease;\n  padding: 0;\n  .small {\n    display: none;\n  }\n}\n\n.bannerBody {\n  height: 100%;\n  flex: 1 1 auto;\n  overflow: hidden;\n}\n\n.title {\n  opacity: 0.9;\n  font-size: 14px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1;\n  letter-spacing: normal;\n  color: #ebebeb;\n}\n\n.text {\n  opacity: 0.9;\n  font-size: 24px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1.21;\n  letter-spacing: normal;\n  color: #ffffff;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  transition: all 0.5s ease;\n}\n\n:global {\n  .playkit-size-md {\n    :local {\n      .bannerWrapper {\n        padding: 14px 16px 14px;\n      }\n      .iconContainer {\n        width: 44px;\n      }\n      .iconWrapper {\n        height: 32px;\n        width: 32px;\n      }\n      .iconImage {\n        width: 20px;\n        height: 20px;\n        left: calc(50% - 10px);\n        top: calc(50% - 10px);\n        .small {\n          display: block;\n        }\n        .large {\n          display: none;\n        }\n      }\n      .bannerBody {\n        flex: 1 1 auto;\n      }\n      .title {\n        font-size: 12px;\n        font-weight: bold;\n        line-height: 1.17;\n      }\n      .text {\n        font-size: 15px;\n        line-height: 1.27;\n      }\n    }\n  }\n}\n"],sourceRoot:""}]);var s="_banner__defaultBannerRoot___NepFO",l="_banner__bannerWrapper___Rs8hK",c="_banner__iconContainer___wyKRN",u="_banner__iconWrapper___duGbT",_="_banner__iconImage___I0LAA",d="_banner__small___mrxMV",p="_banner__bannerBody___ISEP1",A="_banner__title___LCkfF",h="_banner__text___UyS4n",f="_banner__large___q5r6u";const C=a},8215:(e,t,n)=>{"use strict";n.d(t,{V:()=>s,Z:()=>l});var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,".injected-component__fill-container___mNczr{width:100%;height:100%;overflow:hidden}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/injected-component/injected-component.scss"],names:[],mappings:"AAAA,4CACE,UAAA,CACA,WAAA,CACA,eAAA",sourcesContent:[".fill-container {\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n}\n"],sourceRoot:""}]);var s="injected-component__fill-container___mNczr";const l=a},200:(e,t,n)=>{"use strict";n.d(t,{V:()=>s,Z:()=>l});var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,"._managed-component__fill-container___BZ9jB{width:100%;height:100%}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/managed-component/_managed-component.scss"],names:[],mappings:"AAAA,4CACE,UAAA,CACA,WAAA",sourcesContent:[".fill-container {\n  width: 100%;\n  height: 100%;\n}\n"],sourceRoot:""}]);var s="_managed-component__fill-container___BZ9jB";const l=a},6398:(e,t,n)=>{"use strict";n.d(t,{Ah:()=>d,Fu:()=>h,GK:()=>s,Jc:()=>_,Qm:()=>c,Rr:()=>l,TN:()=>p,X$:()=>A,ZP:()=>v,aW:()=>f,fL:()=>C,x_:()=>u});var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,"._toast__toastWrapper___WvdiK{position:relative;min-width:120px;max-width:310px;height:100%;border-radius:4px;background-color:#222;border-left-style:solid;border-left-width:4px;text-align:left}._toast__infoToast___GSdk1{border-left-color:#01accd}._toast__successToast___dyb3J{border-left-color:#009e48}._toast__warnToast___vCnBw{border-left-color:#f9a71b}._toast__errorToast___GAr1R{border-left-color:#e7585d}._toast__closeButton___kXqZM{position:absolute;background-color:rgba(0,0,0,0);top:0;right:0;width:16px;height:16px;object-fit:contain;background-repeat:no-repeat;border:none;padding:0}._toast__closeButton___kXqZM:hover{cursor:pointer}._toast__title___aQCgz{font-size:12px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.17;letter-spacing:normal;color:#ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:4px;padding-right:16px;padding-left:12px}._toast__toastBody___aP3ij{position:relative;width:100%;padding:2px 16px 5px 12px}._toast__iconContainer___S5hMD{position:relative;height:16px;width:16px;float:left;margin-right:7px}._toast__iconWrapper___kqam1{height:16px;width:16px}._toast__text___EdqX7{font-size:14px;font-weight:bold;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/toast/_toast.scss"],names:[],mappings:"AAAA,8BACE,iBAAA,CACA,eAAA,CACA,eAAA,CACA,WAAA,CACA,iBAAA,CACA,qBAAA,CACA,uBAAA,CACA,qBAAA,CACA,eAAA,CAGF,2BACE,yBAAA,CAGF,8BACE,yBAAA,CAGF,2BACE,yBAAA,CAGF,4BACE,yBAAA,CAGF,6BACE,iBAAA,CACA,8BAAA,CACA,KAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,2BAAA,CACA,WAAA,CACA,SAAA,CAEA,mCACE,cAAA,CAIJ,uBACE,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CACA,eAAA,CACA,kBAAA,CACA,iBAAA,CAGF,2BACE,iBAAA,CACA,UAAA,CACA,yBAAA,CAGF,+BACE,iBAAA,CACA,WAAA,CACA,UAAA,CACA,UAAA,CACA,gBAAA,CAGF,6BACE,WAAA,CACA,UAAA,CAGF,sBACE,cAAA,CACA,gBAAA,CACA,iBAAA,CACA,mBAAA,CACA,kBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA",sourcesContent:[".toastWrapper {\n  position: relative;\n  min-width: 120px;\n  max-width: 310px;\n  height: 100%;\n  border-radius: 4px;\n  background-color: #222222;\n  border-left-style: solid;\n  border-left-width: 4px;\n  text-align: left;\n}\n\n.infoToast {\n  border-left-color: #01ACCD;\n}\n\n.successToast {\n  border-left-color: #009E48;\n}\n\n.warnToast {\n  border-left-color: #F9A71B;\n}\n\n.errorToast {\n  border-left-color: #E7585D;\n}\n\n.closeButton {\n  position: absolute;\n  background-color: transparent;\n  top: 0;\n  right: 0;\n  width: 16px;\n  height: 16px;\n  object-fit: contain;\n  background-repeat: no-repeat;\n  border: none;\n  padding: 0;\n\n  &:hover {\n    cursor: pointer;\n  }\n}\n\n.title {\n  font-size: 12px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1.17;\n  letter-spacing: normal;\n  color: #cccccc;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  padding-top: 4px;\n  padding-right: 16px;\n  padding-left: 12px;\n}\n\n.toastBody {\n  position: relative;\n  width: 100%;\n  padding: 2px 16px 5px 12px;\n}\n\n.iconContainer {\n  position: relative;\n  height: 16px;\n  width: 16px;\n  float: left;\n  margin-right: 7px;\n}\n\n.iconWrapper {\n  height: 16px;\n  width: 16px;\n}\n\n.text {\n  font-size: 14px;\n  font-weight: bold;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: normal;\n  letter-spacing: normal;\n  color: #cccccc;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n"],sourceRoot:""}]);var s="_toast__toastWrapper___WvdiK",l="_toast__infoToast___GSdk1",c="_toast__successToast___dyb3J",u="_toast__warnToast___vCnBw",_="_toast__errorToast___GAr1R",d="_toast__closeButton___kXqZM",p="_toast__title___aQCgz",A="_toast__toastBody___aP3ij",h="_toast__iconContainer___S5hMD",f="_toast__iconWrapper___kqam1",C="_toast__text___EdqX7";const v=a},696:(e,t,n)=>{"use strict";n.d(t,{Q$:()=>s,YY:()=>l,ZP:()=>c});var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,"._toasts-container__toastsContainer___ep0ad{position:absolute;right:0;top:0;padding:8px 16px 0;min-width:120px;max-width:310px;display:flex;flex-direction:column}._toasts-container__toastRow___J1NQa{height:42px;min-width:120px;max-width:310px;margin-bottom:8px;overflow:hidden;overflow-wrap:break-word;text-overflow:ellipsis;align-self:flex-end}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/toasts-container/_toasts-container.scss"],names:[],mappings:"AAAA,4CACE,iBAAA,CACA,OAAA,CACA,KAAA,CACA,kBAAA,CACA,eAAA,CACA,eAAA,CACA,YAAA,CACA,qBAAA,CAGF,qCACE,WAAA,CACA,eAAA,CACA,eAAA,CACA,iBAAA,CACA,eAAA,CACA,wBAAA,CACA,sBAAA,CACA,mBAAA",sourcesContent:[".toastsContainer {\n  position: absolute;\n  right: 0;\n  top: 0;\n  padding: 8px 16px 0;\n  min-width: 120px;\n  max-width: 310px;\n  display: flex;\n  flex-direction: column;\n}\n\n.toastRow {\n  height: 42px;\n  min-width: 120px;\n  max-width: 310px;\n  margin-bottom: 8px;\n  overflow: hidden;\n  overflow-wrap: break-word;\n  text-overflow: ellipsis;\n  align-self: flex-end;\n}\n"],sourceRoot:""}]);var s="_toasts-container__toastsContainer___ep0ad",l="_toasts-container__toastRow___J1NQa";const c=a},8437:(e,t,n)=>{"use strict";n.d(t,{E9:()=>u,Fs:()=>l,Fu:()=>_,IV:()=>C,Iw:()=>d,Y1:()=>y,ZP:()=>g,aL:()=>p,bH:()=>f,gE:()=>A,j:()=>h,mn:()=>s,xY:()=>c,yG:()=>v});var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,".download-overlay__download-overlay___IThlq{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background-color:rgba(0,0,0,.7);color:#fff;height:100%;position:absolute;width:100%;z-index:2}.download-overlay__download-overlay___IThlq .download-overlay__header___Z6u7x{font-size:32px;font-weight:700;margin-top:48px;text-align:center}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL{margin:auto;margin-top:25px}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL .download-overlay__file-info___tOj1B{background-color:rgba(255,255,255,.12);border-radius:4px;display:flex;font-size:14px;margin:auto;position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL .download-overlay__file-info___tOj1B .download-overlay__icon-container___MkUSY{display:flex;flex-direction:column;justify-content:center}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL .download-overlay__file-info___tOj1B .download-overlay__icon-container___MkUSY.download-overlay__play-icon___cZGi3{background-color:#444;border-radius:4px 0 0 4px;padding:12px}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL .download-overlay__file-info___tOj1B .download-overlay__icon-container___MkUSY.download-overlay__play-icon___cZGi3 i{height:24px;width:24px}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL .download-overlay__file-info___tOj1B .download-overlay__icon-container___MkUSY.download-overlay__download-icon___kF7WC{margin-right:4px}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL .download-overlay__file-info___tOj1B .download-overlay__file-info-text-container___kBFJu{display:flex;flex-direction:column;justify-content:center;max-width:calc(100% - 88px)}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL .download-overlay__file-info___tOj1B .download-overlay__file-info-text-container___kBFJu .download-overlay__file-info-text___NlVOi{-webkit-line-clamp:1;font-size:14px;margin:16px 8px 16px 16px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL .download-overlay__file-info___tOj1B.download-overlay__large___DWfTB{max-width:600px}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL .download-overlay__file-info___tOj1B.download-overlay__medium___P4lmJ{margin:0 24px;max-width:calc(100% - 48px)}.download-overlay__download-overlay___IThlq .download-overlay__file-info-list___riTfL .download-overlay__file-info___tOj1B.download-overlay__small___GW05I{margin:0 8px;max-width:calc(100% - 16px)}.download-overlay__download-overlay___IThlq .download-overlay__close-button-container___nLul9{position:absolute;top:36px;right:36px}","",{version:3,sources:["webpack://./components/download-overlay/download-overlay.scss"],names:[],mappings:"AAAA,4CACI,kCAAA,CACQ,0BAAA,CACR,+BAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CACA,SAAA,CAEA,8EACI,cAAA,CACA,eAAA,CACA,eAAA,CACA,iBAAA,CAGJ,sFACI,WAAA,CACA,eAAA,CAEA,2HACI,sCAAA,CACA,iBAAA,CACA,YAAA,CACA,cAAA,CACA,WAAA,CACA,iBAAA,CACA,yBAAA,CACA,sBAAA,CACA,iBAAA,CAEA,qKACI,YAAA,CACA,qBAAA,CACA,sBAAA,CAEA,yMACI,qBAAA,CACA,yBAAA,CACA,YAAA,CAEA,2MACI,WAAA,CACA,UAAA,CAIR,6MACI,gBAAA,CAIR,+KACI,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,2BAAA,CAEA,yNACI,oBAAA,CACA,cAAA,CACA,yBAAA,CACA,cAAA,CACA,eAAA,CACA,sBAAA,CACA,kBAAA,CAIR,2JACI,eAAA,CAGJ,4JACI,aAAA,CACA,2BAAA,CAGJ,2JACI,YAAA,CACA,2BAAA,CAKZ,8FACI,iBAAA,CACA,QAAA,CACA,UAAA",sourcesContent:[".download-overlay {\n    -webkit-backdrop-filter: blur(16px);\n            backdrop-filter: blur(16px);\n    background-color: rgba(0, 0, 0, .7);\n    color: #fff;\n    height: 100%;\n    position: absolute;\n    width: 100%;\n    z-index: 2;\n    \n    .header {\n        font-size: 32px;\n        font-weight: 700;\n        margin-top: 48px;\n        text-align: center;\n    }\n\n    .file-info-list {\n        margin: auto;\n        margin-top: 25px;\n\n        .file-info {\n            background-color: rgba(255, 255, 255, 0.12);\n            border-radius: 4px;\n            display: flex;\n            font-size: 14px;\n            margin: auto;\n            position: relative;\n            width: -webkit-fit-content;\n            width: -moz-fit-content;\n            width: fit-content;\n\n            .icon-container {\n                display: flex;\n                flex-direction: column;\n                justify-content: center;\n                \n                &.play-icon {\n                    background-color: #444;\n                    border-radius: 4px 0 0 4px;\n                    padding: 12px;\n\n                    i {\n                        height: 24px;\n                        width: 24px;\n                    }\n                }\n\n                &.download-icon {\n                    margin-right: 4px;\n                }\n            }\n\n            .file-info-text-container {\n                display: flex;\n                flex-direction: column;\n                justify-content: center;\n                max-width: calc(100% - 88px);\n\n                .file-info-text {\n                    -webkit-line-clamp: 1;\n                    font-size: 14px;\n                    margin: 16px 8px 16px 16px;\n                    max-width: 100%;\n                    overflow: hidden;\n                    text-overflow: ellipsis;\n                    white-space: nowrap;\n                }\n            }\n\n            &.large {\n                max-width: 600px;\n            }\n\n            &.medium {\n                margin: 0 24px;\n                max-width: calc(100% - 48px);\n            }\n\n            &.small {\n                margin: 0 8px;\n                max-width: calc(100% - 16px);\n            }\n        }\n    }\n\n    .close-button-container {\n        position: absolute;\n        top: 36px;\n        right: 36px;\n    }\n}"],sourceRoot:""}]);var s="download-overlay__download-overlay___IThlq",l="download-overlay__header___Z6u7x",c="download-overlay__file-info-list___riTfL",u="download-overlay__file-info___tOj1B",_="download-overlay__icon-container___MkUSY",d="download-overlay__play-icon___cZGi3",p="download-overlay__download-icon___kF7WC",A="download-overlay__file-info-text-container___kBFJu",h="download-overlay__file-info-text___NlVOi",f="download-overlay__large___DWfTB",C="download-overlay__medium___P4lmJ",v="download-overlay__small___GW05I",y="download-overlay__close-button-container___nLul9";const g=a},3476:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},559:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(r," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},3708:(e,t,n)=>{"use strict";function o(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===r(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var o=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function _(e){var t=e.re=n(2596)(e.__opts__),o=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||o.push(c),o.push(t.src_xn),t.src_tlds=o.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var o={validate:null,link:null};if(e.__compiled__[t]=o,"[object Object]"===r(n))return"[object RegExp]"!==r(n.validate)?i(n.validate)?o.validate=n.validate:u(t,n):o.validate=function(e){return function(t,n){var o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}(n.validate),void(i(n.normalize)?o.normalize=n.normalize:n.normalize?u(t,n):o.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===r(e)}(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var _=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+_+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+_+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function d(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function p(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function A(e,t){if(!(this instanceof A))return new A(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=o({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=o({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},_(this)}A.prototype.add=function(e,t){return this.__schemas__[e]=t,_(this),this},A.prototype.set=function(e){return this.__opts__=o(this.__opts__,e),this},A.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,o,r,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(r=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(o=e.match(this.re.email_fuzzy))&&(i=o.index+o[1].length,a=o.index+o[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},A.prototype.pretest=function(e){return this.re.pretest.test(e)},A.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},A.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var o=t?e.slice(t):e;this.test(o);)n.push(p(this,t)),o=o.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},A.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,p(this,0)):null},A.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),_(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,_(this),this)},A.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},A.prototype.onCompile=function(){},e.exports=A},2596:(e,t,n)=>{"use strict";e.exports=function(e){var t={};e=e||{},t.src_Any=n(8287).source,t.src_Cc=n(699).source,t.src_Z=n(9338).source,t.src_P=n(6924).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},1432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Fragment:()=>o.Fragment,jsx:()=>i,jsxDEV:()=>i,jsxs:()=>i});var o=n(4522),r=0;function i(e,t,n,i,a,s){var l,c,u={};for(c in t)"ref"==c?l=t[c]:u[c]=t[c];var _={type:e,props:u,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--r,__source:a,__self:s};if("function"==typeof e&&(l=e.defaultProps))for(c in l)void 0===u[c]&&(u[c]=l[c]);return o.options.vnode&&o.options.vnode(_),_}},5768:(e,t,n)=>{"use strict";n.r(t),n.d(t,{borderless:()=>h.oB,button:()=>h.LI,danger:()=>h.h,default:()=>C,disabled:()=>h.JU,iconOnly:()=>h.Ts,large:()=>h.bH,medium:()=>h.IV,primary:()=>h.T$,small:()=>h.yG,translucent:()=>h.oL,withIcon:()=>h.H1});var o=n(1892),r=n.n(o),i=n(5760),a=n.n(i),s=n(8311),l=n.n(s),c=n(8192),u=n.n(c),_=n(8060),d=n.n(_),p=n(4865),A=n.n(p),h=n(5630),f={};f.styleTagTransform=A(),f.setAttributes=u(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=d(),r()(h.ZP,f);const C=h.ZP&&h.ZP.locals?h.ZP.locals:void 0},3665:(e,t,n)=>{"use strict";n.r(t),n.d(t,{active:()=>h.bB,clearIcon:()=>h.kz,default:()=>C,disabled:()=>h.JU,inputElement:()=>h.zF,inputFieldWrapper:()=>h.wc,prevNextButton:()=>h.Xh,prevNextWrapper:()=>h.eX,searchResults:()=>h.uN});var o=n(1892),r=n.n(o),i=n(5760),a=n.n(i),s=n(8311),l=n.n(s),c=n(8192),u=n.n(c),_=n(8060),d=n.n(_),p=n(4865),A=n.n(p),h=n(703),f={};f.styleTagTransform=A(),f.setAttributes=u(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=d(),r()(h.ZP,f);const C=h.ZP&&h.ZP.locals?h.ZP.locals:void 0},927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C,iconWrapper:()=>h.aW,large:()=>h.bH,medium:()=>h.IV,small:()=>h.yG});var o=n(1892),r=n.n(o),i=n(5760),a=n.n(i),s=n(8311),l=n.n(s),c=n(8192),u=n.n(c),_=n(8060),d=n.n(_),p=n(4865),A=n.n(p),h=n(7001),f={};f.styleTagTransform=A(),f.setAttributes=u(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=d(),r()(h.ZP,f);const C=h.ZP&&h.ZP.locals?h.ZP.locals:void 0},6550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{bannerContainer:()=>h.Cg,bannerContainerRoot:()=>h.ce,closeButton:()=>h.Ah,default:()=>C,large:()=>h.bH,small:()=>h.yG});var o=n(1892),r=n.n(o),i=n(5760),a=n.n(i),s=n(8311),l=n.n(s),c=n(8192),u=n.n(c),_=n(8060),d=n.n(_),p=n(4865),A=n.n(p),h=n(1006),f={};f.styleTagTransform=A(),f.setAttributes=u(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=d(),r()(h.ZP,f);const C=h.ZP&&h.ZP.locals?h.ZP.locals:void 0},5111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{bannerBody:()=>h.d7,bannerWrapper:()=>h.Wd,default:()=>C,defaultBannerRoot:()=>h.m0,iconContainer:()=>h.Fu,iconImage:()=>h.cy,iconWrapper:()=>h.aW,large:()=>h.bH,small:()=>h.yG,text:()=>h.fL,title:()=>h.TN});var o=n(1892),r=n.n(o),i=n(5760),a=n.n(i),s=n(8311),l=n.n(s),c=n(8192),u=n.n(c),_=n(8060),d=n.n(_),p=n(4865),A=n.n(p),h=n(3297),f={};f.styleTagTransform=A(),f.setAttributes=u(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=d(),r()(h.ZP,f);const C=h.ZP&&h.ZP.locals?h.ZP.locals:void 0},7982:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C,fillContainer:()=>h.V});var o=n(1892),r=n.n(o),i=n(5760),a=n.n(i),s=n(8311),l=n.n(s),c=n(8192),u=n.n(c),_=n(8060),d=n.n(_),p=n(4865),A=n.n(p),h=n(8215),f={};f.styleTagTransform=A(),f.setAttributes=u(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=d(),r()(h.Z,f);const C=h.Z&&h.Z.locals?h.Z.locals:void 0},8598:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C,fillContainer:()=>h.V});var o=n(1892),r=n.n(o),i=n(5760),a=n.n(i),s=n(8311),l=n.n(s),c=n(8192),u=n.n(c),_=n(8060),d=n.n(_),p=n(4865),A=n.n(p),h=n(200),f={};f.styleTagTransform=A(),f.setAttributes=u(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=d(),r()(h.Z,f);const C=h.Z&&h.Z.locals?h.Z.locals:void 0},8200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{closeButton:()=>h.Ah,default:()=>C,errorToast:()=>h.Jc,iconContainer:()=>h.Fu,iconWrapper:()=>h.aW,infoToast:()=>h.Rr,successToast:()=>h.Qm,text:()=>h.fL,title:()=>h.TN,toastBody:()=>h.X$,toastWrapper:()=>h.GK,warnToast:()=>h.x_});var o=n(1892),r=n.n(o),i=n(5760),a=n.n(i),s=n(8311),l=n.n(s),c=n(8192),u=n.n(c),_=n(8060),d=n.n(_),p=n(4865),A=n.n(p),h=n(6398),f={};f.styleTagTransform=A(),f.setAttributes=u(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=d(),r()(h.ZP,f);const C=h.ZP&&h.ZP.locals?h.ZP.locals:void 0},5207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C,toastRow:()=>h.YY,toastsContainer:()=>h.Q$});var o=n(1892),r=n.n(o),i=n(5760),a=n.n(i),s=n(8311),l=n.n(s),c=n(8192),u=n.n(c),_=n(8060),d=n.n(_),p=n(4865),A=n.n(p),h=n(696),f={};f.styleTagTransform=A(),f.setAttributes=u(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=d(),r()(h.ZP,f);const C=h.ZP&&h.ZP.locals?h.ZP.locals:void 0},7435:(e,t,n)=>{"use strict";n.r(t),n.d(t,{closeButtonContainer:()=>h.Y1,default:()=>C,downloadIcon:()=>h.aL,downloadOverlay:()=>h.mn,fileInfo:()=>h.E9,fileInfoList:()=>h.xY,fileInfoText:()=>h.j,fileInfoTextContainer:()=>h.gE,header:()=>h.Fs,iconContainer:()=>h.Fu,large:()=>h.bH,medium:()=>h.IV,playIcon:()=>h.Iw,small:()=>h.yG});var o=n(1892),r=n.n(o),i=n(5760),a=n.n(i),s=n(8311),l=n.n(s),c=n(8192),u=n.n(c),_=n(8060),d=n.n(_),p=n(4865),A=n.n(p),h=n(8437),f={};f.styleTagTransform=A(),f.setAttributes=u(),f.insert=l().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=d(),r()(h.ZP,f);const C=h.ZP&&h.ZP.locals?h.ZP.locals:void 0},1892:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],c=o.base?l[0]+o.base:l[0],u=i[c]||0,_="".concat(c," ").concat(u);i[c]=u+1;var d=n(_),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var A=r(p,o);o.byIndex=s,t.splice(s,0,{identifier:_,updater:A,references:1})}a.push(_)}return a}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var i=o(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=o(e,r),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},8311:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},8060:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},8192:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},5760:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4865:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},4891:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadOverlayButton=void 0;var r=n(1432),i=n(8686),a=KalturaPlayer.ui.preacti18n.withText,s=KalturaPlayer.ui.components,l=s.Icon,c=s.Tooltip,u=a({downloadLabel:"download.downloads"})((function(e){var t=e.onClick,n=e.downloadLabel;return(0,r.jsx)("div",{children:(0,r.jsx)(c,o({label:n},{children:(0,r.jsx)("button",o({"aria-label":n,tabIndex:0,className:"".concat(KalturaPlayer.ui.style.controlButton),onClick:t},{children:(0,r.jsx)(l,{id:"download-overlay-icon",path:i.DOWNLOAD,viewBox:"0 0 32 32"})}))}))})}));t.DownloadOverlayButton=u},2483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadOverlayButton=void 0;var o=n(4891);Object.defineProperty(t,"DownloadOverlayButton",{enumerable:!0,get:function(){return o.DownloadOverlayButton}})},9266:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadOverlay=void 0;var r=n(1432),i=n(573),a=n(8750),s=n(2085),l=KalturaPlayer.ui.Event.withEventManager,c=KalturaPlayer.ui.components,u=c.Icon,_=c.IconType,d=c.PLAYER_SIZE,p=KalturaPlayer.ui.redux.connect,A=KalturaPlayer.ui.preacti18n.withText,h=n(7435),f=A({downloadLabel:"download.download",downloadsLabel:"download.downloads",downloadStartedLabel:"download.download_has_started",downloadFailedLabel:"download.download_has_failed",closeLabel:"overlay.close"})(p((function(e){var t="";switch(e.shell.playerSize){case d.EXTRA_LARGE:case d.LARGE:t=h.large;break;case d.MEDIUM:t=h.medium;break;case d.SMALL:case d.EXTRA_SMALL:t=h.small}return{sizeClass:t}}))(l((function(e){var t=e.downloadPluginManager,n=e.eventManager,l=e.sizeClass,c=e.downloadLabel,d=e.downloadsLabel,p=e.downloadStartedLabel,A=e.downloadFailedLabel,f=e.closeLabel,C=(0,a.useState)(!1),v=C[0],y=C[1],g=(0,a.useState)(""),m=g[0],b=g[1];return(0,a.useEffect)((function(){null==n||n.listen(t,s.EventType.SHOW_OVERLAY,(function(){y(!0),t.getDownloadMetadata().then((function(e){e&&b(e.fileName)}))})),null==n||n.listen(t,s.EventType.HIDE_OVERLAY,(function(){y(!1)}))}),[]),v?(0,r.jsxs)("div",o({className:h.downloadOverlay},{children:[(0,r.jsx)("div",o({className:h.header},{children:d})),(0,r.jsx)("div",o({className:h.fileInfoList},{children:(0,r.jsxs)("div",o({className:"".concat(h.fileInfo," ").concat(l)},{children:[(0,r.jsx)("div",o({className:"".concat(h.iconContainer," ").concat(h.playIcon)},{children:(0,r.jsx)(u,{id:"download-file-play",type:_.Play,viewBox:"0 0 32 32"})})),(0,r.jsx)("div",o({className:h.fileInfoTextContainer},{children:(0,r.jsx)("div",o({className:h.fileInfoText},{children:m}))})),(0,r.jsx)("div",o({className:"".concat(h.iconContainer," ").concat(h.downloadIcon)},{children:(0,r.jsx)("div",{children:(0,r.jsx)(i.Button,{focusOnMount:!0,type:i.ButtonType.borderless,size:i.ButtonSize.medium,disabled:!1,onClick:function(){t.getDownloadMetadata(!0).then((function(e){e?(t.downloadFile(),t.notifyDownloadStarted(c,p)):t.notifyDownloadFailed(c,A),t.showOverlay=!1}))},tooltip:{label:c},icon:"download"})})}))]}))})),(0,r.jsx)("div",{children:(0,r.jsx)("div",o({className:h.closeButtonContainer},{children:(0,r.jsx)(i.Button,{type:i.ButtonType.borderless,size:i.ButtonSize.medium,disabled:!1,onClick:function(){t.showOverlay=!1},tooltip:{label:f},icon:"close"})}))})]})):(0,r.jsx)("div",{})}))));t.DownloadOverlay=f},1887:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadOverlay=void 0;var o=n(9266);Object.defineProperty(t,"DownloadOverlay",{enumerable:!0,get:function(){return o.DownloadOverlay}})},7875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadOverlayButton=void 0;var o=n(2483);Object.defineProperty(t,"DownloadOverlayButton",{enumerable:!0,get:function(){return o.DownloadOverlayButton}})},2725:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadPluginManager=void 0;var s=n(1432),l=KalturaPlayer.ui.components.Icon,c=n(573),u=n(8686),_=n(4983),d=n(2085),p=function(e){function t(t){var n=e.call(this)||this;return n.downloadPlugin=t,n._showOverlay=!1,n.downloadMetadata=null,n.playOnClose=!1,n.downloadService=new _.DownloadService(t.player),n}return r(t,e),t.prototype.getDownloadMetadata=function(e){return void 0===e&&(e=!1),i(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return this.downloadMetadata&&!e?[3,2]:(t=this,[4,this.downloadService.getDownloadMetadata(this.downloadPlugin.config)]);case 1:t.downloadMetadata=n.sent(),this.downloadMetadata||this.downloadPlugin.logger.debug("Failed to get download url headers"),n.label=2;case 2:return[2,this.downloadMetadata]}}))}))},t.prototype.downloadFile=function(){var e,t;try{var n=this.downloadPlugin.config.preDownloadHook;"function"==typeof n&&n()}catch(e){this.downloadPlugin.logger.debug("Exception in pre-download hook")}this.downloadService.downloadFile(null===(e=this.downloadMetadata)||void 0===e?void 0:e.downloadUrl,null===(t=this.downloadMetadata)||void 0===t?void 0:t.fileName)},t.prototype.notifyDownloadStarted=function(e,t){this.downloadPlugin.addToast({title:e,text:t,icon:(0,s.jsx)(l,{id:"download-started-toast-icon",path:u.DOWNLOAD,viewBox:"0 0 32 32"}),severity:c.ToastSeverity.Success})},t.prototype.notifyDownloadFailed=function(e,t){this.downloadPlugin.addToast({title:e,text:t,icon:(0,s.jsx)(l,{id:"download-failed-toast-icon",path:u.ERROR,viewBox:"0 0 16 16"}),severity:c.ToastSeverity.Error})},Object.defineProperty(t.prototype,"showOverlay",{get:function(){return this._showOverlay},set:function(e){this._showOverlay=e,this._showOverlay?(this.downloadPlugin.player.paused||(this.downloadPlugin.player.pause(),this.playOnClose=!0),this.dispatchEvent(new KalturaPlayer.core.FakeEvent(d.EventType.SHOW_OVERLAY))):(this.playOnClose&&(this.downloadPlugin.player.play(),this.playOnClose=!1),this.dispatchEvent(new KalturaPlayer.core.FakeEvent(d.EventType.HIDE_OVERLAY)))},enumerable:!1,configurable:!0}),t}(KalturaPlayer.core.FakeEventTarget);t.DownloadPluginManager=p},4071:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Download=void 0;var s=n(1432),l=n(7875),c=n(8686),u=n(1887),_=n(2725),d=n(6908),p=["Playback"],A=function(e){function t(t,n,o){var r=e.call(this,t,n,o)||this;return r.iconId=-1,r.defaultToastDuration=5e3,r.componentDisposers=[],r.downloadPluginManager=new _.DownloadPluginManager(r),r.contribServices=d.ContribServices.get({kalturaPlayer:n}),r}return r(t,e),t.isValid=function(){return!0},Object.defineProperty(t.prototype,"upperBarManager",{get:function(){return this.player.getService("upperBarManager")||{}},enumerable:!1,configurable:!0}),t.prototype.addToast=function(e){var t,n,o=e.title,r=e.text,i=e.icon,a=e.severity;null===(n=null===(t=this.contribServices)||void 0===t?void 0:t.toastManager)||void 0===n||n.add({title:o,text:r,icon:i,severity:a,duration:this.defaultToastDuration,onClick:function(){return null}})},t.prototype.getUIComponents=function(){return this.contribServices.register()},t.prototype.injectOverlayComponents=function(){var e=this;this.iconId=this.upperBarManager.add({label:"Download",svgIcon:{viewBox:"0 0 32 32",path:c.DOWNLOAD},onClick:function(){e.downloadPluginManager.showOverlay=!e.downloadPluginManager.showOverlay},component:function(){return(0,s.jsx)(l.DownloadOverlayButton,{})}}),this.componentDisposers.push(this.player.ui.addComponent({label:"kaltura-download-overlay",presets:p,area:"GuiArea",get:function(){return(0,s.jsx)(u.DownloadOverlay,{downloadPluginManager:e.downloadPluginManager})}}))},t.prototype.loadMedia=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.ready];case 1:return e.sent(),this.downloadPluginManager.showOverlay=!1,[4,this.downloadPluginManager.getDownloadMetadata(!0)];case 2:return e.sent()&&(this.logger.debug("Download is supported for current entry"),this.injectOverlayComponents()),[2]}}))}))},t.prototype.reset=function(){var e;null===(e=this.upperBarManager)||void 0===e||e.remove(this.iconId),this.iconId=-1;for(var t=0,n=this.componentDisposers;t<n.length;t++)(0,n[t])();this.componentDisposers=[]},t.defaultConfig={flavorId:null,flavorParamId:"0",preDownloadHook:null},t}(KalturaPlayer.core.BasePlugin);t.Download=A},7765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR=t.DOWNLOAD=void 0,t.DOWNLOAD="M26,25 C26.5522847,25 27,25.4477153 27,26 C27,26.5522847 26.5522847,27 26,27 L26,27 L7,27 C6.44771525,27 6,26.5522847 6,26 C6,25.4477153 6.44771525,25 7,25 L7,25 Z M15.897,20.797 L15.817,20.73 L15.8163834,20.7298413 L8.34305882,13.7298413 C7.93997861,13.3522902 7.91928313,12.7194636 8.29683417,12.3163834 C8.67438521,11.9133032 9.30721188,11.8926077 9.71029209,12.2701587 L15.4996721,17.693 L15.5,6 C15.5,5.48716416 15.8860402,5.06449284 16.3833789,5.00672773 L16.5,5 C17.0522847,5 17.5,5.44771525 17.5,6 L17.4996721,17.694 L23.2951711,12.2699211 C23.6673663,11.9215418 24.2352038,11.9125649 24.6172049,12.230382 L24.7086128,12.3166371 C25.0860237,12.7198486 25.0651082,13.352668 24.6618968,13.7300789 L17.1833629,20.7300789 L17.1610165,20.7503813 L17.1610165,20.7503813 C17.1421868,20.7669999 17.1224361,20.7831339 17.102079,20.7985075 C17.0891381,20.8082894 17.0764369,20.8174134 17.0635772,20.826204 C17.0434306,20.8399634 17.0223437,20.8532674 17.0007451,20.8657864 C16.9872099,20.8736423 16.9734873,20.8811624 16.959633,20.8883367 L16.8877511,20.9220455 L16.8877511,20.9220455 C16.8756318,20.927087 16.8632234,20.9320132 16.8507409,20.9366814 C16.83028,20.9444208 16.8097352,20.9513578 16.7889039,20.9576336 C16.7705976,20.9630349 16.752126,20.968019 16.7335525,20.9724647 C16.6585039,20.9905214 16.5803589,21 16.5,21 C16.4170842,21 16.3365254,20.9899086 16.2594848,20.9708871 C16.2500284,20.9684434 16.2399293,20.9657886 16.2298654,20.9629733 C16.2028024,20.9554899 16.1769173,20.947049 16.1515197,20.9376057 C16.1370523,20.9321598 16.1223107,20.9262914 16.1076867,20.9200585 C16.0832011,20.9096448 16.0596143,20.8984375 16.036557,20.886357 C16.025923,20.8807972 16.0148138,20.8747205 16.0037984,20.8684173 C15.9792921,20.8543502 15.955966,20.8396537 15.9333153,20.8240474 L15.898,20.798 L15.897,20.797 Z M15.867,20.774 L15.888,20.79 L15.8735171,20.7794831 L15.8735171,20.7794831 L15.867,20.774 Z M15.817,20.73 L15.9035191,20.8027045 C15.8784859,20.7840722 15.8543541,20.7642966 15.831201,20.7434548 L15.817,20.73 Z",t.ERROR="M8 2C11.3137 2 14 4.68629 14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2ZM8 10C7.44772 10 7 10.4477 7 11C7 11.5523 7.44772 12 8 12C8.55228 12 9 11.5523 9 11C9 10.4477 8.55228 10 8 10ZM8 4C7.44772 4 7 4.44372 7 4.99981V8.00019C7 8.51293 7.38272 8.93552 7.88267 8.99327L8 9C8.55228 9 9 8.55628 9 8.00019V4.99981C9 4.48707 8.61728 4.06448 8.11733 4.00673L8 4Z"},8686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR=t.DOWNLOAD=void 0;var o=n(7765);Object.defineProperty(t,"DOWNLOAD",{enumerable:!0,get:function(){return o.DOWNLOAD}}),Object.defineProperty(t,"ERROR",{enumerable:!0,get:function(){return o.ERROR}})},8566:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadService=void 0;var r=function(){function e(e){this.player=e}return e.prototype.isPlatformSupported=function(){var e=navigator.userAgent||"";return!(e.includes("Tizen")||e.includes("Web0S"))},e.prototype.isEntrySupported=function(){return!(this.player.isLive()||this.player.getVideoElement().mediaKeys||this.player.isImage())},e.prototype.isContentTypeSupported=function(e){if(e.ok){var t=e.headers.get("content-type");return!(!t||!t.toLowerCase().includes("video"))}return!1},e.prototype.getFilename=function(e){var t=e.url.split("/");return t[t.indexOf("fileName")+1]},e.prototype.getDownloadUrl=function(e){var t=e.flavorId,n=e.flavorParamId,o=this.player.provider,r=o.partnerId,i=o.env.cdnUrl,a=this.player.config,s=a.session.ks,l=a.sources.id,c="/p/".concat(r),u="/entryId/".concat(l),_=null!==n?"/flavorParamId/".concat(n):"",d=null!==t?"/flavorId/".concat(t):"",p=s?"/ks/".concat(s):"",A="/protocol/".concat(location.protocol.split(":")[0]);return"".concat(i).concat(c,"/playManifest").concat(u).concat(A).concat(p).concat(_).concat(d,"/format/download")},e.prototype.getDownloadMetadata=function(e){return n(this,void 0,void 0,(function(){var t,n,r,i,a;return o(this,(function(o){switch(o.label){case 0:if(!this.isPlatformSupported()&&!this.isEntrySupported())return[2,null];t=this.getDownloadUrl(e),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,fetch(t,{method:"HEAD"})];case 2:return(n=o.sent()).ok?(r=n.url,i=this.isContentTypeSupported(n),a=this.getFilename(n),i&&a?[2,{downloadUrl:r,fileName:a}]:[3,4]):[2,null];case 3:return o.sent(),[3,4];case 4:return[2,null]}}))}))},e.prototype.downloadFile=function(e,t){var n=document.createElement("a");n.href=e,n.hidden=!0,n.download=t,n.target="_blank",n.rel="noopener noreferrer",n.click()},e}();t.DownloadService=r},4983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadService=void 0;var o=n(8566);Object.defineProperty(t,"DownloadService",{enumerable:!0,get:function(){return o.DownloadService}})},7010:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EventType=void 0,(n=t.EventType||(t.EventType={})).SHOW_OVERLAY="show_overlay",n.HIDE_OVERLAY="hide_overlay"},2085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventType=void 0;var o=n(7010);Object.defineProperty(t,"EventType",{enumerable:!0,get:function(){return o.EventType}})},699:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},6924:e=>{e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},9338:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},8287:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},4522:e=>{"use strict";e.exports=KalturaPlayer.ui.preact},8750:e=>{"use strict";e.exports=KalturaPlayer.ui.preactHooks},6978:e=>{"use strict";e.exports=KalturaPlayer}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};(()=>{"use strict";var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.NAME=e.VERSION=e.Plugin=void 0;var t=n(4071);Object.defineProperty(e,"Plugin",{enumerable:!0,get:function(){return t.Download}}),e.VERSION="1.0.4",e.NAME="@playkit-js/playkit-js-downloads",KalturaPlayer.core.registerPlugin("download",t.Download)})(),((KalturaPlayer=void 0===KalturaPlayer?{}:KalturaPlayer).plugins=KalturaPlayer.plugins||{}).download=o})();

var KalturaPlayer="object"==typeof KalturaPlayer?KalturaPlayer:{};KalturaPlayer.plugins=KalturaPlayer.plugins||{},KalturaPlayer.plugins.dualscreen=function(e){var n={};function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(n){return e[n]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=13)}([function(e,n){e.exports=KalturaPlayer.ui.preact},function(e,n,t){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=function(e,n){var t=e[1]||"",i=e[3];if(!i)return t;if(n&&"function"==typeof btoa){var r=(o=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),a=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([r]).join("\n")}var o,s,l;return[t].join("\n")}(n,e);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(r[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);i&&r[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),n.push(l))}},n}},function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||n.hasOwnProperty(t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(18),n),r(t(19),n),r(t(9),n),r(t(20),n),r(t(21),n),r(t(22),n)},function(e,n,t){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),o=[];function s(e){for(var n=-1,t=0;t<o.length;t++)if(o[t].identifier===e){n=t;break}return n}function l(e,n){for(var t={},i=[],r=0;r<e.length;r++){var a=e[r],l=n.base?a[0]+n.base:a[0],c=t[l]||0,d="".concat(l," ").concat(c);t[l]=c+1;var p=s(d),u={css:a[1],media:a[2],sourceMap:a[3]};-1!==p?(o[p].references++,o[p].updater(u)):o.push({identifier:d,updater:A(u,n),references:1}),i.push(d)}return i}function c(e){var n=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var r=t.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(e){n.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(n);else{var o=a(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}return n}var d,p=(d=[],function(e,n){return d[e]=n,d.filter(Boolean).join("\n")});function u(e,n,t,i){var r=t?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=p(n,r);else{var a=document.createTextNode(r),o=e.childNodes;o[n]&&e.removeChild(o[n]),o.length?e.insertBefore(a,o[n]):e.appendChild(a)}}function _(e,n,t){var i=t.css,r=t.media,a=t.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var y=null,g=0;function A(e,n){var t,i,r;if(n.singleton){var a=g++;t=y||(y=c(n)),i=u.bind(null,t,a,!1),r=u.bind(null,t,a,!0)}else t=c(n),i=_.bind(null,t,n),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return i(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;i(e=n)}else r()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=r());var t=l(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<t.length;i++){var r=s(t[i]);o[r].references--}for(var a=l(e,n),c=0;c<t.length;c++){var d=s(t[c]);0===o[d].references&&(o[d].updater(),o.splice(d,1))}t=a}}}},function(e,n){e.exports=KalturaPlayer},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.icons=void 0,function(e){e.HIDE_ICON_PATH="M4.29289 6.29289C4.68342 5.90237 5.31658 5.90237 5.70711 6.29289L8 8.58579L10.2929 6.29289C10.6834 5.90237 11.3166 5.90237 11.7071 6.29289C12.0976 6.68342 12.0976 7.31658 11.7071 7.70711L8.70711 10.7071C8.31658 11.0976 7.68342 11.0976 7.29289 10.7071L4.29289 7.70711C3.90237 7.31658 3.90237 6.68342 4.29289 6.29289Z",e.SWAP_ICON_PATH="M17.6744 9.27934L21.7563 13.3632L21.8282 13.4537L21.887 13.5492L21.9333 13.6489L21.9684 13.7556L21.9824 13.8172L21.9974 13.929L22 14L21.9897 14.1405L21.9824 14.1828L21.9535 14.2949L21.9231 14.3759L21.887 14.4508L21.8281 14.5463L21.7763 14.6137L21.7207 14.6744L17.6744 18.7207C17.3019 19.0931 16.6981 19.0931 16.3256 18.7207C15.9818 18.3769 15.9554 17.8359 16.2463 17.4617L16.3256 17.3719L18.7439 14.9536L12.9537 14.9537C12.4675 14.9537 12.0663 14.5899 12.0074 14.1196L12 14C12 13.5109 12.3682 13.1078 12.8425 13.0527L12.9537 13.0463L18.7426 13.0451L16.3256 10.6281C15.9798 10.2823 15.9551 9.73687 16.2515 9.36252L16.3256 9.27934C16.6981 8.90689 17.3019 8.90689 17.6744 9.27934ZM6.32562 5.27934C6.69807 4.90689 7.30193 4.90689 7.67438 5.27934L7.74849 5.36252C8.04493 5.73687 8.02023 6.28225 7.67438 6.6281L5.2574 9.04508L11.0463 9.04628L11.1575 9.0527C11.6318 9.10779 12 9.5109 12 10L11.9926 10.1196C11.9337 10.5899 11.5325 10.9537 11.0463 10.9537L5.25605 10.9536L7.67438 13.3719L7.75372 13.4617C8.04463 13.8359 8.01818 14.3769 7.67438 14.7207C7.30193 15.0931 6.69807 15.0931 6.32562 14.7207L2.25793 10.6523L2.18664 10.5668L2.12413 10.4708L2.07695 10.3759L2.03697 10.2639L2.01028 10.1405L2 10C2 9.95226 2.00351 9.90534 2.01036 9.85937L2.01758 9.81716L2.04651 9.70514L2.08932 9.59642L2.12415 9.52899L2.18631 9.43351L2.24369 9.36325L6.32562 5.27934Z",e.SIDE_BY_SIDE_ICON_PATH="M21.8083 4C22.4665 4 23 4.55964 23 5.25V18.75C23 19.4404 22.4665 20 21.8083 20H2.19167C1.53353 20 1 19.4404 1 18.75V5.25C1 4.55964 1.53353 4 2.19167 4H21.8083ZM15 6H3V18H15V6ZM12.999 8.967L13 9L12.998 8.94L12.999 8.967L13 9V15C13 15.5523 12.5523 16 12 16C11.4872 16 11.0645 15.614 11.0067 15.1166L11 15V11.414L6.70711 15.7071C6.34662 16.0676 5.77939 16.0953 5.3871 15.7903L5.29289 15.7071C4.93241 15.3466 4.90468 14.7794 5.2097 14.3871L5.29289 14.2929L9.584 10H6C5.48716 10 5.06449 9.61396 5.00673 9.11662L5 9C5 8.44772 5.44772 8 6 8L12.0193 8.00018C12.0427 8.00063 12.066 8.00189 12.0893 8.00397C12.1097 8.00575 12.1294 8.0081 12.149 8.01102C12.1659 8.01363 12.1834 8.0167 12.2007 8.02024C12.2227 8.02464 12.2444 8.02983 12.2658 8.03572C12.2815 8.0401 12.2969 8.04473 12.3121 8.04974C12.3318 8.05612 12.3516 8.06332 12.3711 8.0711L12.4232 8.09367C12.4439 8.10338 12.4643 8.11379 12.4843 8.12488C12.4964 8.1315 12.5086 8.13861 12.5207 8.146C12.5463 8.16172 12.5711 8.17849 12.5952 8.19631L12.6525 8.24221L12.6167 8.21279C12.6802 8.26255 12.7374 8.31982 12.7872 8.38325C12.7927 8.39016 12.7982 8.3974 12.8037 8.40469C12.8215 8.42887 12.8383 8.45372 12.8539 8.47934L12.8753 8.51594C12.8862 8.53571 12.8966 8.55611 12.9063 8.5769L12.9288 8.62866C12.9367 8.64842 12.9439 8.6682 12.9505 8.68826C12.9553 8.70315 12.9599 8.71854 12.9642 8.73401C12.9702 8.75556 12.9754 8.77725 12.9798 8.79921C12.9833 8.81662 12.9864 8.83405 12.989 8.85153L12.9972 8.92482L12.998 8.94L12.999 8.967Z",e.SHOW_ICON_PATH="M4.29289 10.7071C4.65338 11.0676 5.22061 11.0953 5.6129 10.7903L5.70711 10.7071L8 8.415L10.2929 10.7071C10.6534 11.0676 11.2206 11.0953 11.6129 10.7903L11.7071 10.7071C12.0676 10.3466 12.0953 9.77939 11.7903 9.3871L11.7071 9.29289L8.70711 6.29289C8.34662 5.93241 7.77939 5.90468 7.3871 6.2097L7.29289 6.29289L4.29289 9.29289C3.90237 9.68342 3.90237 10.3166 4.29289 10.7071Z",e.SWITCH_TO_SIDE_BY_SIDE_ICON_PATH="M20.997 3.924L20.998 3.945L20.999 3.98L21 4V10C21 10.5523 20.5523 11 20 11C19.4872 11 19.0645 10.614 19.0067 10.1166L19 10V6.416L14.7071 10.7071C14.3466 11.0676 13.7794 11.0953 13.3871 10.7903L13.2929 10.7071C12.9324 10.3466 12.9047 9.77939 13.2097 9.3871L13.2929 9.29289L17.586 5H14C13.4872 5 13.0645 4.61396 13.0067 4.11662L13 4C13 3.48716 13.386 3.06449 13.8834 3.00673L14 3L20.0332 3.00054C20.0503 3.00109 20.0683 3.00216 20.0862 3.0037C20.1079 3.00553 20.1285 3.00797 20.149 3.01102C20.166 3.01363 20.1834 3.0167 20.2007 3.02024C20.2227 3.02464 20.2444 3.02983 20.2658 3.03572C20.2815 3.0401 20.2969 3.04473 20.3121 3.04974C20.3318 3.05612 20.3516 3.06332 20.3711 3.0711L20.4232 3.09367C20.4439 3.10338 20.4643 3.11379 20.4843 3.12488C20.4964 3.1315 20.5086 3.13861 20.5207 3.146C20.5463 3.16172 20.5711 3.17849 20.5952 3.19631L20.6525 3.24221L20.6168 3.21279C20.6802 3.26255 20.7374 3.31982 20.7872 3.38325C20.7927 3.39016 20.7982 3.3974 20.8037 3.40469C20.8215 3.42887 20.8383 3.45373 20.8539 3.47934L20.8753 3.51594C20.8862 3.53571 20.8966 3.55611 20.9063 3.5769L20.9288 3.62866C20.9367 3.64842 20.9439 3.6682 20.9505 3.68826C20.9553 3.70315 20.9599 3.71854 20.9642 3.73401C20.9702 3.75556 20.9754 3.77725 20.9798 3.79921C20.9833 3.81662 20.9864 3.83405 20.989 3.85153L20.996 3.91075L20.996 3.919L20.997 3.921V3.924ZM3.002 20.059V20.071L3.00175 20.0593C3.00122 20.0503 3.00081 20.0413 3.00052 20.0323L3 14C3 13.4477 3.44772 13 4 13C4.51284 13 4.93551 13.386 4.99327 13.8834L5 14V17.586L9.29289 13.2929C9.65338 12.9324 10.2206 12.9047 10.6129 13.2097L10.7071 13.2929C11.0676 13.6534 11.0953 14.2206 10.7903 14.6129L10.7071 14.7071L6.416 19H10C10.5128 19 10.9355 19.386 10.9933 19.8834L11 20C11 20.5128 10.614 20.9355 10.1166 20.9933L10 21H4C3.99354 21 3.98709 20.9999 3.98066 20.9998C3.95732 20.9994 3.93401 20.9981 3.91075 20.996C3.89031 20.9943 3.87058 20.9919 3.85104 20.989C3.83405 20.9864 3.81662 20.9833 3.79927 20.9798C3.77725 20.9754 3.75556 20.9702 3.73416 20.9643C3.71854 20.9599 3.70315 20.9553 3.68786 20.9503C3.6682 20.9439 3.64842 20.9367 3.62894 20.9289L3.57678 20.9063C3.55611 20.8966 3.53571 20.8862 3.51572 20.8751C3.50361 20.8685 3.49139 20.8614 3.47929 20.854C3.45373 20.8383 3.42887 20.8215 3.40484 20.8037L3.34745 20.7578L3.38325 20.7872C3.31982 20.7374 3.26255 20.6802 3.21279 20.6168C3.20728 20.6098 3.20175 20.6026 3.19633 20.5953C3.17849 20.5711 3.16172 20.5463 3.14607 20.5207L3.12467 20.4841C3.11379 20.4643 3.10338 20.4439 3.09365 20.4231L3.07123 20.3713C3.06332 20.3516 3.05612 20.3318 3.04955 20.3117C3.04473 20.2969 3.0401 20.2815 3.03585 20.266C3.02983 20.2444 3.02464 20.2227 3.02017 20.2008C3.0167 20.1834 3.01363 20.1659 3.01102 20.1485L3.0037 20.0862L3.002 20.059Z",e.MediumSize=24,e.SmallSize=16}(n.icons||(n.icons={}))},function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||n.hasOwnProperty(t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(23),n)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getValueOrUndefined=n.dimensionStyleToString=n.getClientY=n.getClientX=n.isInInterval=void 0,n.isInInterval=function(e,n,t){return!isNaN(e)&&!isNaN(n)&&!isNaN(t)&&n<=t&&e>=n&&e<=t},n.getClientX=function(e){return e instanceof MouseEvent?e.clientX:e.changedTouches&&e.changedTouches[0]&&e.changedTouches[0].clientX},n.getClientY=function(e){return e instanceof MouseEvent?e.clientY:e.changedTouches&&e.changedTouches[0]&&e.changedTouches[0].clientY},n.dimensionStyleToString=function(e){return e+"px"},n.getValueOrUndefined=function(e,n){return e?n:void 0}},function(e,n,t){var i=t(3),r=t(17);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);e.exports=r.locals||{}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Position=void 0,function(e){e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e.TopLeft="top-left",e.TopRight="top-right"}(n.Position||(n.Position={}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.debounce=n.getQnaUserId=n.getUserId=n.generateId=void 0;n.generateId=function(){return(new Date).getTime().toString(36)+Math.random().toString(36).slice(2)};function i(){return"undefined"==typeof Storage?r():((e=localStorage.getItem("anonymousUserId"))||(e=r(),localStorage.setItem("anonymousUserId",e)),e);var e}n.getUserId=i;function r(){return"##".concat("Guest").concat("HashSeparator").concat(function(){for(var e=(0,n.generateId)(),t="",i=0;i<e.length;i++){var r=e.charAt(i);t+=Number.isNaN(+r)?r.charCodeAt(0):r}return t}(),"##")}n.getQnaUserId=function(e){var n,t,r,a,o=e,s=o.config,l=o.plugins,c=(null==s?void 0:s.session)||{},d=(null===(t=null===(n=null==l?void 0:l.qna)||void 0===n?void 0:n.config)||void 0===t?void 0:t.userRole)||c.userRole;return d&&"anonymousRole"!==d?(null===(a=null===(r=null==l?void 0:l.qna)||void 0===r?void 0:r.config)||void 0===a?void 0:a.userId)||c.userId:i()},n.debounce=function(e,n,t){var i;return void 0===n&&(n=50),void 0===t&&(t={isImmediate:!1}),function(){for(var r=this,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=function(){i=void 0,t.isImmediate||e.apply(r,a)},l=t.isImmediate&&void 0===i;void 0!==i&&clearTimeout(i),i=setTimeout(s,n),l&&e.apply(this,a)}}},function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||n.hasOwnProperty(t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(33),n)},function(e,n,t){var i=t(3),r=t(41);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);e.exports=r.locals||{}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NAME=n.VERSION=n.Plugin=void 0;var i=t(14);Object.defineProperty(n,"Plugin",{enumerable:!0,get:function(){return i.DualScreen}});n.VERSION="3.1.5";n.NAME="@playkit-js/playkit-js-dual-screen";KalturaPlayer.core.registerPlugin("dualscreen",i.DualScreen)},function(e,n,t){"use strict";var i,r=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.DualScreen=void 0;var o=t(0),s=t(15),l=t(27),c=t(2),d=t(31),p=t(32),u=t(11),_=t(34),y=t(35),g=t(39),A=t(7),h=t(42),f=t(43),m=t(4);t(47);var v=KalturaPlayer.ui.reducers.shell,C=m.core.EventType,b=["Playback","Live","Ads"],P=function(e){function n(n,t,i){var r=e.call(this,n,t,i)||this;return r._externalLayout=null,r._pipPosition=c.Position.BottomRight,r._removeActivesArr=[],r._playbackEnded=!1,r._resolveReadyPromise=function(){},r._secondaryPlayerType=c.PlayerType.VIDEO,r._pipPortraitMode=!1,r._undoRemoveSettings=null,r._removeSettingsComponent=function(){if(!r._undoRemoveSettings){var e={presets:b,container:c.ReservedPresetAreas.BottomBarRightControls,get:KalturaPlayer.ui.components.Remove,replaceComponent:KalturaPlayer.ui.components.Settings.displayName};r._undoRemoveSettings=r._player.ui.addComponent(e)}},r._makeReadyPromise=function(){return new Promise((function(e){r._resolveReadyPromise=e}))},r._getSecondaryPlayer=function(){return r._secondaryPlayerType===c.PlayerType.IMAGE?r._imagePlayer:r.secondaryKalturaPlayer},r._setMode=function(){switch(r._layout){case c.Layout.PIP:r._switchToPIP();break;case c.Layout.PIPInverse:r._switchToPIPInverse();break;case c.Layout.SingleMedia:r._switchToSingleMedia();break;case c.Layout.SingleMediaInverse:r._switchToSingleMediaInverse();break;case c.Layout.SideBySide:r._switchToSideBySide();break;case c.Layout.SideBySideInverse:r._switchToSideBySideInverse();break;case c.Layout.Hidden:r._switchToHidden();break;default:r.logger.warn("unrecognized layout, got:",r._layout)}},r._setDefaultMode=function(){r._switchToHidden();var e=[c.Layout.PIP,c.Layout.PIPInverse,c.Layout.SideBySide,c.Layout.SideBySideInverse,c.Layout.SingleMedia,c.Layout.SingleMediaInverse];r._layout=e.includes(r.config.layout)?r.config.layout:c.Layout.Hidden,r._pipPosition=r.config.position,r._pipPortraitMode=!1,r._externalLayout=null},r._setPipPosition=function(e){r._pipPosition=e},r.getPipPosition=function(){return r._pipPosition},r._switchToHidden=function(){var e=r._player.ui.store.dispatch;r._layout=c.Layout.Hidden,e(v.actions.removePlayerClass("has-dual-screen-plugin-overlay")),r._removeActives()},r._switchToPIP=function(e,n){var t;void 0===e&&(e=c.Animations.None),r._layout===c.Layout.PIP&&r._removeActivesArr.length&&(null===(t=r._imagePlayer.active)||void 0===t?void 0:t.portrait)===r._pipPortraitMode||(r._setPipPortraitMode(),r._layout=c.Layout.PIP,r._addActives(r._player.ui.addComponent({label:"kaltura-dual-screen-pip",presets:b,container:c.ReservedPresetAreas.VideoContainer,get:function(){return o.h(s.PipParent,{animation:e,player:r._player})}}),r._player.ui.addComponent({label:"kaltura-dual-screen-pip",presets:b,container:c.ReservedPresetAreas.InteractiveArea,get:function(){return o.h(u.ResponsiveManager,{onMinSize:function(){r._switchToSingleMedia()},onDefaultSize:r._setMode},o.h(y.DragAndSnapManager,{eventManager:r.eventManager,logger:r.logger,getPosition:r.getPipPosition,onPositionChanged:r._setPipPosition},o.h(s.PipChild,{animation:c.Animations.Fade,playerSizePercentage:r.config.childSizePercentage,player:r._getSecondaryPlayer(),hide:function(e){return r._switchToSingleMedia(c.Animations.None,A.getValueOrUndefined(e,c.ButtonsEnum.Show))},onSideBySideSwitch:function(e){return r._switchToSideBySide(e)},onInversePIP:function(e){return r._switchToPIPInverse(c.Animations.Fade,A.getValueOrUndefined(e,c.ButtonsEnum.SwitchScreen))},portrait:r._pipPortraitMode,aspectRatio:r.config.childAspectRatio,focusOnButton:n,layout:r._layout})))}})))},r._switchToPIPInverse=function(e,n){void 0===e&&(e=c.Animations.None),r._layout===c.Layout.PIPInverse&&r._removeActivesArr.length||(r._layout=c.Layout.PIPInverse,r._addActives(r._player.ui.addComponent({label:"kaltura-dual-screen-pip",presets:b,container:c.ReservedPresetAreas.VideoContainer,get:function(){return o.h(s.PipParent,{animation:e,player:r._getSecondaryPlayer()})}}),r._player.ui.addComponent({label:"kaltura-dual-screen-pip",presets:b,container:c.ReservedPresetAreas.InteractiveArea,get:function(){return o.h(u.ResponsiveManager,{onMinSize:function(){r._switchToSingleMediaInverse()},onDefaultSize:r._setMode},o.h(y.DragAndSnapManager,{eventManager:r.eventManager,logger:r.logger,getPosition:r.getPipPosition,onPositionChanged:r._setPipPosition},o.h(s.PipChild,{animation:c.Animations.Fade,playerSizePercentage:r.config.childSizePercentage,player:r._player,hide:function(e){return r._switchToSingleMediaInverse(c.Animations.None,A.getValueOrUndefined(e,c.ButtonsEnum.Show))},onSideBySideSwitch:function(e){return r._switchToSideBySideInverse(e)},onInversePIP:function(e){return r._switchToPIP(c.Animations.Fade,A.getValueOrUndefined(e,c.ButtonsEnum.SwitchScreen))},aspectRatio:r.config.childAspectRatio,focusOnButton:n,layout:r._layout})))}})))},r._switchToSingleMedia=function(e,n){void 0===e&&(e=c.Animations.None),r._layout===c.Layout.SingleMedia&&r._removeActivesArr.length||(r._layout=c.Layout.SingleMedia,r._addActives(r._player.ui.addComponent({label:"kaltura-dual-screen-pip",presets:b,container:c.ReservedPresetAreas.VideoContainer,get:function(){return o.h(s.PipParent,{animation:e,player:r._player})}}),r._player.ui.addComponent({label:"kaltura-dual-screen-pip-minimized",presets:b,container:c.ReservedPresetAreas.BottomBar,get:function(){return o.h(u.ResponsiveManager,{onDefaultSize:r._setMode},o.h(l.PipMinimized,{show:function(e){return r._switchToPIP(c.Animations.None,A.getValueOrUndefined(e,c.ButtonsEnum.Hide))},player:r._getSecondaryPlayer(),onInverse:function(e){return r._switchToSingleMediaInverse(c.Animations.Fade,A.getValueOrUndefined(e,c.ButtonsEnum.SwitchScreen))},focusOnButton:n}))}})))},r._switchToSingleMediaInverse=function(e,n){void 0===e&&(e=c.Animations.None),r._layout===c.Layout.SingleMediaInverse&&r._removeActivesArr.length||(r._layout=c.Layout.SingleMediaInverse,r._addActives(r._player.ui.addComponent({label:"kaltura-dual-screen-pip",presets:b,container:c.ReservedPresetAreas.VideoContainer,get:function(){return o.h(s.PipParent,{animation:e,player:r._getSecondaryPlayer()})}}),r._player.ui.addComponent({label:"kaltura-dual-screen-pip-minimized",presets:b,container:c.ReservedPresetAreas.BottomBar,get:function(){return o.h(u.ResponsiveManager,{onDefaultSize:r._setMode},o.h(l.PipMinimized,{show:function(e){return r._switchToPIPInverse(c.Animations.None,A.getValueOrUndefined(e,c.ButtonsEnum.Hide))},player:r._player,onInverse:function(e){return r._switchToSingleMedia(c.Animations.Fade,A.getValueOrUndefined(e,c.ButtonsEnum.SwitchScreen))},focusOnButton:n}))}})))},r._switchToSideBySide=function(e){if(r._layout!==c.Layout.SideBySide||!r._removeActivesArr.length){r._layout=c.Layout.SideBySide;var n={player:r._player,onExpand:function(e){return r._switchToPIP(c.Animations.ScaleRight,A.getValueOrUndefined(e,c.ButtonsEnum.SideBySide))},focusOnButton:e},t={player:r._getSecondaryPlayer(),onExpand:function(e){return r._switchToPIPInverse(c.Animations.ScaleLeft,A.getValueOrUndefined(e,c.ButtonsEnum.SideBySide))}};r._addActives(r._player.ui.addComponent({label:"kaltura-dual-screen-side-by-side",presets:b,container:c.ReservedPresetAreas.VideoContainer,get:function(){return o.h(g.SideBySideWrapper,{leftSideProps:n,rightSideProps:t,layout:r._layout,onSizeChange:r._setMode,onMinSize:r._switchToSingleMedia})}}))}},r._switchToSideBySideInverse=function(e){if(r._layout!==c.Layout.SideBySideInverse||!r._removeActivesArr.length){r._layout=c.Layout.SideBySideInverse;var n={player:r._getSecondaryPlayer(),onExpand:function(e){return r._switchToPIPInverse(c.Animations.ScaleRight,A.getValueOrUndefined(e,c.ButtonsEnum.SideBySide))},focusOnButton:e},t={player:r._player,onExpand:function(e){return r._switchToPIP(c.Animations.ScaleLeft,A.getValueOrUndefined(e,c.ButtonsEnum.SideBySide))}};r._addActives(r._player.ui.addComponent({label:"kaltura-dual-screen-side-by-side",presets:b,container:c.ReservedPresetAreas.VideoContainer,get:function(){return o.h(g.SideBySideWrapper,{leftSideProps:n,rightSideProps:t,layout:r._layout,onSizeChange:r._setMode,onMinSize:r._switchToSingleMedia})}}))}},r._onActiveSlideChanged=function(e){if(e){var n=!1;r._layout!==c.Layout.Hidden||r._externalLayout||(n=!0,r._setDefaultMode()),r._layout===c.Layout.Hidden&&r._externalLayout&&r._applyExternalLayout();var t=!1;e.portrait!==r._pipPortraitMode&&(t=!0),(n||t&&r._layout===c.Layout.PIP)&&r._setMode(),r.config.removePlayerSettings&&r._removeSettingsComponent()}else r._switchToHidden()},r._onSlideViewChanged=function(e){r._externalLayout!==e&&(r._externalLayout=e,r._applyExternalLayout())},r._applyExternalLayout=function(){switch(r._externalLayout){case c.ExternalLayout.Hidden:r._switchToHidden();break;case c.ExternalLayout.SingleMedia:r._layout!==c.Layout.SingleMedia&&r._switchToSingleMedia();break;case c.ExternalLayout.SingleMediaInverse:r._layout!==c.Layout.SingleMediaInverse&&r._switchToSingleMediaInverse();break;case c.ExternalLayout.PIP:r._layout!==c.Layout.PIP&&r._switchToPIP();break;case c.ExternalLayout.PIPInverse:r._layout!==c.Layout.PIPInverse&&r._switchToPIPInverse();break;case c.ExternalLayout.SideBySide:r._layout!==c.Layout.SideBySide&&r._switchToSideBySide();break;case c.ExternalLayout.SideBySideInverse:r._layout!==c.Layout.SideBySideInverse&&r._switchToSideBySideInverse()}},r._player=t,r._imagePlayer=new f.ImagePlayer(r._onActiveSlideChanged,r.config.slidesPreloadEnabled),r._readyPromise=r._makeReadyPromise(),r._layout=c.Layout.Hidden,r._pipPosition=r.config.position,r}return r(n,e),n.prototype.getEngineDecorator=function(e,n){return new h.DualScreenEngineDecorator(e,this,n)},Object.defineProperty(n.prototype,"ready",{get:function(){return this._readyPromise},enumerable:!1,configurable:!0}),n.prototype.loadMedia=function(){this._addBindings();var e=this._player.getService("kalturaCuepoints");this._getSecondaryMedia(),e?this._getThumbs(e):this.logger.warn("kalturaCuepoints service is not registered")},n.prototype.reset=function(){var e,n;this._setDefaultMode(),this._layout=c.Layout.Hidden,this._imagePlayer.reset(),null===(e=this._imageSyncManager)||void 0===e||e.reset(),this._readyPromise=this._makeReadyPromise(),this._undoRemoveSettings&&(this._undoRemoveSettings(),this._undoRemoveSettings=null),null===(n=this.secondaryKalturaPlayer)||void 0===n||n.destroy(),this.secondaryKalturaPlayer=null,this._removeSecondaryPlaceholder(),this.eventManager.removeAll()},n.prototype._removeSecondaryPlaceholder=function(){var e=document.getElementById("secondaryPlaceholder");e&&document.body.removeChild(e)},n.prototype._addBindings=function(){var e=this;this.eventManager.listen(this.player,this.player.Event.PLAYBACK_ENDED,(function(){e._playbackEnded=!0})),this.eventManager.listenOnce(this.player,this.player.Event.FIRST_PLAY,(function(){e._originalVideoElementParent=e.player.getVideoElement().parentElement})),this.eventManager.listen(this.player,this.player.Event.PLAY,(function(){e._playbackEnded&&(e._playbackEnded=!1,e._secondaryPlayerType!==c.PlayerType.IMAGE||e._imagePlayer.active?(e._setDefaultMode(),e._setMode()):e._switchToHidden())}))},n.prototype._addActives=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=this._player.ui.store.dispatch;t(v.actions.addPlayerClass("has-dual-screen-plugin-overlay")),this._removeActives(),this._removeActivesArr=e},n.prototype._removeActives=function(){this._removeActivesArr.forEach((function(e){e()})),this._removeActivesArr=[],this._originalVideoElementParent&&this._originalVideoElementParent.prepend(this._player.getVideoElement())},n.prototype._getThumbs=function(e){null==e||e.registerTypes([e.CuepointType.SLIDE,e.CuepointType.VIEW_CHANGE])},n.prototype._getSecondaryMedia=function(){var e=this;this._player.provider.doRequest([{loader:_.SecondaryMediaLoader,params:{parentEntryId:this._player.sources.id}}]).then((function(n){var t,i;if(n&&n.has(_.SecondaryMediaLoader.id)){var r=n.get(_.SecondaryMediaLoader.id),a=null===(i=null===(t=null==r?void 0:r.response)||void 0===t?void 0:t.entries[0])||void 0===i?void 0:i.id;a?(e._secondaryPlayerType=c.PlayerType.VIDEO,e.config.removePlayerSettings&&e._removeSettingsComponent(),e.secondaryKalturaPlayer=e._createSecondaryPlayer(),e.eventManager.listenOnce(e.secondaryKalturaPlayer,C.CHANGE_SOURCE_ENDED,(function(){e._resolveReadyPromise()})),e._videoSyncManager=new d.VideoSyncManager(e.eventManager,e.player,e.secondaryKalturaPlayer,e.logger),e.eventManager.listen(e.secondaryKalturaPlayer,e.player.Event.FIRST_PLAYING,(function(){e.logger.debug("secondary player first playing - show dual mode"),e._setDefaultMode(),e._setMode()})),e.secondaryKalturaPlayer.loadMedia({entryId:a,ks:e.player.config.session.isAnonymous?"":e.player.config.session.ks})):(e.logger.warn("Secondary entry id not found"),e._secondaryPlayerType=c.PlayerType.IMAGE,e.player.getService("kalturaCuepoints")&&(e._imageSyncManager=new p.ImageSyncManager(e.eventManager,e.player,e._imagePlayer,e.logger,e._onSlideViewChanged)),e._resolveReadyPromise())}else e.logger.warn("SecondaryMediaLoader does not exist"),e._resolveReadyPromise(),e.eventManager.removeAll()})).catch((function(n){e.logger.error(n),e._resolveReadyPromise()}))},n.prototype._createSecondaryPlayer=function(){var e,n=document.createElement("div");n.setAttribute("id","secondaryPlaceholder"),n.style.width="240px",n.style.height="135px",n.hidden=!0,document.body.appendChild(n);var t={targetId:"secondaryPlaceholder",disableUserCache:!0,playback:{muted:!0},ui:{disable:!0},provider:a(a({},this._player.config.provider),{ignoreServerConfig:!0}),plugins:{"kaltura-live":a({},(null===(e=this._player.plugins["kaltura-live"])||void 0===e?void 0:e.config)||{})}};return KalturaPlayer.setup(t)},n.isValid=function(){return!0},n.prototype.destroy=function(){this.eventManager.destroy()},n.prototype._setPipPortraitMode=function(){if(this._secondaryPlayerType===c.PlayerType.VIDEO&&this.secondaryKalturaPlayer){var e=this.secondaryKalturaPlayer.getVideoElement().videoWidth,n=this.secondaryKalturaPlayer.getVideoElement().videoHeight;this._pipPortraitMode=e<n||this._pipPortraitMode}else this._pipPortraitMode=this._imagePlayer.active?this._imagePlayer.active.portrait:this._pipPortraitMode},n.defaultConfig={layout:c.Layout.PIP,childSizePercentage:30,childAspectRatio:{width:16,height:9},position:c.Position.BottomRight,slidesPreloadEnabled:!0,removePlayerSettings:!1},n}(KalturaPlayer.core.BasePlugin);n.DualScreen=P},function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||n.hasOwnProperty(t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(16),n),r(t(26),n)},function(e,n,t){"use strict";var i,r=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__decorate||function(e,n,t,i){var r,a=arguments.length,o=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(n,t,o):r(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(n,"__esModule",{value:!0}),n.PipChild=void 0;var o=t(0),s=t(8),l=t(2),c=t(5),d=t(6),p=KalturaPlayer.ui.redux.connect,u=KalturaPlayer.ui,_=u.utils,y=u.reducers,g=KalturaPlayer.ui.components.Icon,A=KalturaPlayer.ui.preacti18n,h=A.withText,f=A.Text,m=function(e){var n=e.layout;return{sideBySide:o.h(f,{id:"dualScreen.side_by_side"},"Side by side screens"),switchScreen:n===l.Layout.PIP?o.h(f,{id:"dualScreen.switch_to_secondary_screen"},"Switch to secondary screen"):o.h(f,{id:"dualScreen.switch_to_primary_screen"},"Switch to primary screen"),hideLabel:o.h(f,{id:"dualScreen.hide"},"Hide"),hideAriaLabel:o.h(f,{id:"dualScreen.hide_label"},"Hide dual screen")}},v=function(e){return{showUi:e.shell.playerHover||e.shell.playerNav,playerHeight:e.shell.guiClientRect.height,prePlayback:e.engine.prePlayback}},C=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.playerContainerRef=o.createRef(),n.pipContainerRef=o.createRef(),n}return r(n,e),n.prototype.componentDidMount=function(){var e=this.props.player.getVideoElement();e.tabIndex=-1,this.playerContainerRef.current.prepend(e),this.props.setDraggableTarget(this.playerContainerRef.current)},n.prototype._renderInnerButtons=function(){var e=this.props,n=e.onSideBySideSwitch,t=e.onInversePIP,i=e.focusOnButton;return o.h("div",{className:[s.innerButtons,this.props.portrait?s.verticalPlayer:""].join(" ")},o.h(d.Button,{className:s.iconContainer,onClick:n,tooltip:{label:this.props.sideBySide,type:"bottom-left"},focusOnMount:i===l.ButtonsEnum.SideBySide},o.h(g,{id:"dualscreen-pip-side-by-side",height:c.icons.MediumSize,width:c.icons.MediumSize,viewBox:"0 0 "+c.icons.MediumSize+" "+c.icons.MediumSize,path:c.icons.SIDE_BY_SIDE_ICON_PATH})),o.h(d.Button,{className:s.iconContainer,onClick:t,tooltip:{label:this.props.switchScreen,type:"bottom-left"},focusOnMount:i===l.ButtonsEnum.SwitchScreen},o.h(g,{id:"dualscreen-pip-swap",height:c.icons.MediumSize,width:c.icons.MediumSize,viewBox:"0 0 "+c.icons.MediumSize+" "+c.icons.MediumSize,path:c.icons.SWAP_ICON_PATH})))},n.prototype._renderHideButton=function(){var e=this.props,n=e.hide,t=e.focusOnButton;return o.h(d.Button,{className:s.hideContainer,onClick:n,ariaLabel:this.props.hideAriaLabel,focusOnMount:t===l.ButtonsEnum.Hide},o.h(o.Fragment,null,o.h("div",{className:s.iconContainer},o.h(g,{id:"dualscreen-pip-hide",height:c.icons.SmallSize,width:c.icons.SmallSize,viewBox:"0 0 "+c.icons.SmallSize+" "+c.icons.SmallSize,path:c.icons.HIDE_ICON_PATH})),this.props.hideLabel))},n.prototype.render=function(e){var n=[s.childPlayer];if(e.isDragging&&n.push(s.dragging),e.showUi||n.push(s.hideButtons),!e.prePlayback&&e.animation)switch(e.animation){case l.Animations.Fade:n.push(s.animatedFade);break;case l.Animations.ScaleRight:n.push(s.animatedScaleRight);break;case l.Animations.ScaleLeft:n.push(s.animatedScaleLeft)}var t=e.playerHeight*e.playerSizePercentage/100,i=t*e.aspectRatio.width/e.aspectRatio.height,r={height:(e.portrait?i:t)+"px"};return o.h("div",{className:n.join(" "),ref:this.pipContainerRef},this._renderHideButton(),o.h("div",{className:s.playerWrapper},o.h("div",{className:s.playerContainer,style:r,ref:this.playerContainerRef}),this._renderInnerButtons()))},n=a([h(m),p(v,_.bindActions(y.shell.actions))],n)}(o.Component);n.PipChild=C},function(e,n,t){"use strict";t.r(n);var i=t(1),r=t.n(i)()(!0);r.push([e.i,'.pip__iconContainer___I7wDY{height:28px;width:28px;opacity:.8;cursor:pointer}.pip__innerButtons___qkl44{display:flex;position:absolute;height:60px;left:0px;top:0px;padding:8px;background:linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);width:100%}.pip__innerButtons___qkl44 .pip__iconContainer___I7wDY:hover{background:var(--playkit-tone-4-color);border-radius:4px;opacity:1}.pip__parentPlayer___NCnqk{width:100%;height:100%;position:absolute;left:0}.pip__parentPlayer___NCnqk:has(.playkit-image-player > img[src=""]){visibility:hidden}.pip__childPlayer___tqBeH{position:relative}.pip__childPlayer___tqBeH video{position:relative;object-fit:cover;width:auto}.pip__childPlayer___tqBeH:has(.playkit-image-player > img[src=""]){visibility:hidden}.pip__childPlayer___tqBeH.pip__hideButtons___UgdN2 .pip__innerButtons___qkl44,.pip__childPlayer___tqBeH.pip__dragging___LIITy .pip__innerButtons___qkl44{display:none}.pip__childPlayer___tqBeH.pip__hideButtons___UgdN2 .pip__hideContainer___WmxCK{display:none}.pip__childPlayer___tqBeH.pip__dragging___LIITy .pip__hideContainer___WmxCK{visibility:hidden}.pip__childPlayer___tqBeH .pip__hideContainer___WmxCK{position:relative;width:66px;height:32px;margin:0px 0px 5px auto;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;color:#fff;font-style:normal;font-weight:400;font-size:14px;line-height:18px;background:rgba(0,0,0,.6);border-radius:4px}.pip__childPlayer___tqBeH .pip__hideContainer___WmxCK:hover{background:rgba(0,0,0,.7)}.pip__childPlayer___tqBeH .pip__hideContainer___WmxCK .pip__iconContainer___I7wDY{margin:0px 8px 0px 0px;height:16px;width:16px}.pip__childPlayer___tqBeH .pip__playerWrapper___8XRTF{position:relative;border-radius:8px;overflow:hidden;-webkit-mask-image:-webkit-radial-gradient(white, black)}.pip__childPlayer___tqBeH .pip__playerWrapper___8XRTF .pip__playerContainer___RCOLw{box-shadow:0 0 40px 0 rgba(0,0,0,.2),0 0 4px 0 rgba(0,0,0,.3)}.pip__childPlayer___tqBeH .pip__playerWrapper___8XRTF .pip__playerContainer___RCOLw .playkit-image-player img{width:auto}.pip__childPlayer___tqBeH .pip__playerWrapper___8XRTF .pip__innerButtons___qkl44{flex-direction:row;justify-content:flex-end;align-items:flex-start;pointer-events:none}.pip__childPlayer___tqBeH .pip__playerWrapper___8XRTF .pip__innerButtons___qkl44 *{pointer-events:auto}.pip__childPlayer___tqBeH .pip__playerWrapper___8XRTF .pip__innerButtons___qkl44.pip__verticalPlayer___u5l6a .playkit-tooltip span{max-width:100px !important}.pip__childPlayer___tqBeH .pip__playerWrapper___8XRTF .pip__innerButtons___qkl44 .pip__iconContainer___I7wDY{display:inline-block;margin:0px;padding:2px}.pip__childPlayer___tqBeH .pip__playerWrapper___8XRTF .pip__innerButtons___qkl44 .pip__iconContainer___I7wDY:first-child{margin-right:8px}.pip__animatedFade___vj\\+WL{animation:pip__fading___lS5WQ .3s linear}.pip__animatedScaleRight___16P-V{animation:pip__scalingRight___mxPy7 .3s linear}.pip__animatedScaleLeft___x\\+SjS{animation:pip__scalingLeft___Vdcvp .3s linear}@keyframes pip__scalingRight___mxPy7{0%{transform:scale(0.5) translate(-50%)}100%{transform:scale(1) translate(0%)}}@keyframes pip__scalingLeft___Vdcvp{0%{transform:scale(0.5) translate(50%)}100%{transform:scale(1) translate(0%)}}@keyframes pip__fading___lS5WQ{0%{opacity:0}100%{opacity:1}}',"",{version:3,sources:["webpack://styles/_styles.scss","webpack://styles/_variables.scss","webpack://../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss","webpack://components/pip/pip.scss"],names:[],mappings:"AAEA,4BACE,WCDc,CDEd,UCFc,CDGd,UAAA,CACA,cAAA,CAGF,2BACE,YAAA,CACA,iBAAA,CACA,WAAA,CACA,QAAA,CACA,OAAA,CACA,WAAA,CACA,gFAAA,CACA,UAAA,CAGE,6DACE,sCEYS,CFXT,iBCfQ,CDgBR,SAAA,CGjBN,2BACE,UAAA,CACA,WAAA,CACA,iBAAA,CACA,MAAA,CHmBA,oEAEE,iBAAA,CGlBJ,0BACE,iBAAA,CACA,gCACE,iBAAA,CACA,gBAAA,CACA,UAAA,CHWF,mEAEE,iBAAA,CGPA,yJACE,YAAA,CAGJ,+EACE,YAAA,CAEF,4EACE,iBAAA,CAGF,sDACE,iBAAA,CACA,UAAA,CACA,WAnCoB,CAoCpB,uBAAA,CAEA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,kBAAA,CAEA,cAAA,CACA,UAAA,CACA,iBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CAEA,yBAAA,CACA,iBF/CU,CEiDV,4DACE,yBAAA,CAGF,kFACE,sBAAA,CACA,WF3DoB,CE4DpB,UF5DoB,CEgExB,sDACE,iBAAA,CACA,iBF7DU,CE8DV,eAAA,CACA,wDAAA,CACA,oFACE,6DAAA,CACA,8GACE,UAAA,CAIJ,iFACE,kBAAA,CACA,wBAAA,CACA,sBAAA,CACA,mBAAA,CACA,mFACE,mBAAA,CAGA,mIACE,0BAAA,CAIJ,6GACE,oBAAA,CACA,UAAA,CACA,WAAA,CACA,yHACE,gBAAA,CAOV,4BACE,wCAAA,CAGF,iCACE,8CAAA,CAGF,iCACE,6CAAA,CAGF,qCACE,GACE,oCAAA,CAEF,KACE,gCAAA,CAAA,CAIJ,oCACE,GACE,mCAAA,CAEF,KACE,gCAAA,CAAA,CAIJ,+BACE,GACE,SAAA,CAEF,KACE,SAAA,CAAA",sourcesContent:["@import '~styles/variables';\n\n.iconContainer {\n  height: $smallIconSize;\n  width: $smallIconSize;\n  opacity: 0.8;\n  cursor: pointer;\n}\n\n.innerButtons {\n  display: flex;\n  position: absolute;\n  height: 60px;\n  left: 0px;\n  top: 0px;\n  padding: 8px;\n  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);\n  width: 100%;\n\n  .iconContainer {\n    &:hover {\n      background: $tone-4-color;\n      border-radius: $roundness-1;\n      opacity: 1;\n    }\n  }\n}\n\n@mixin hideImagePlayer {\n  &:has(:global(.playkit-image-player > img[src=''])) {\n    // hide image player container if image haven't loaded\n    visibility: hidden;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$smallIconSize: 28px;\n$smallBorderLessIconSize: 16px;\n$animation-duration: 0.3s;\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n","@import '~styles/variables';\n@import '~styles/styles';\n\n$hide-container-height: 32px;\n$hide-container-gap: 5px;\n\n.parentPlayer {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  left: 0;\n  @include hideImagePlayer;\n}\n.childPlayer {\n  position: relative;\n  video {\n    position: relative;\n    object-fit: cover;\n    width: auto;\n  }\n  @include hideImagePlayer;\n\n  &.hideButtons,\n  &.dragging {\n    .innerButtons {\n      display: none;\n    }\n  }\n  &.hideButtons .hideContainer {\n    display: none;\n  }\n  &.dragging .hideContainer {\n    visibility: hidden;\n  }\n\n  .hideContainer {\n    position: relative;\n    width: 66px;\n    height: $hide-container-height;\n    margin: 0px 0px $hide-container-gap auto;\n\n    display: flex;\n    flex-direction: row;\n    justify-content: center;\n    align-items: center;\n\n    cursor: pointer;\n    color: white;\n    font-style: normal;\n    font-weight: 400;\n    font-size: 14px;\n    line-height: 18px;\n\n    background: rgba(0, 0, 0, 0.6);\n    border-radius: $roundness-1;\n\n    &:hover {\n      background: rgba(0, 0, 0, 0.7);\n    }\n\n    .iconContainer {\n      margin: 0px 8px 0px 0px;\n      height: $smallBorderLessIconSize;\n      width: $smallBorderLessIconSize;\n    }\n  }\n\n  .playerWrapper {\n    position: relative;\n    border-radius: $roundness-2;\n    overflow: hidden;\n    -webkit-mask-image: -webkit-radial-gradient(white, black);\n    .playerContainer {\n      box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.2), 0 0 4px 0 rgba(0, 0, 0, 0.3);\n      :global(.playkit-image-player img) {\n        width: auto;\n      }\n    }\n\n    .innerButtons {\n      flex-direction: row;\n      justify-content: flex-end;\n      align-items: flex-start;\n      pointer-events: none;\n      * {\n        pointer-events: auto;\n      }\n      &.verticalPlayer {\n        :global(.playkit-tooltip span) {\n          max-width: 100px !important;\n        }\n      }\n\n      .iconContainer {\n        display: inline-block;\n        margin: 0px;\n        padding: 2px;\n        &:first-child {\n          margin-right: 8px;\n        }\n      }\n    }\n  }\n}\n\n.animatedFade {\n  animation: fading $animation-duration linear;\n}\n\n.animatedScaleRight {\n  animation: scalingRight $animation-duration linear;\n}\n\n.animatedScaleLeft {\n  animation: scalingLeft $animation-duration linear;\n}\n\n@keyframes scalingRight {\n  0% {\n    transform: scale(0.5) translate(-50%);\n  }\n  100% {\n    transform: scale(1) translate(0%);\n  }\n}\n\n@keyframes scalingLeft {\n  0% {\n    transform: scale(0.5) translate(50%);\n  }\n  100% {\n    transform: scale(1) translate(0%);\n  }\n}\n\n@keyframes fading {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n"],sourceRoot:""}]),r.locals={iconContainer:"pip__iconContainer___I7wDY",innerButtons:"pip__innerButtons___qkl44",parentPlayer:"pip__parentPlayer___NCnqk",childPlayer:"pip__childPlayer___tqBeH",hideButtons:"pip__hideButtons___UgdN2",dragging:"pip__dragging___LIITy",hideContainer:"pip__hideContainer___WmxCK",playerWrapper:"pip__playerWrapper___8XRTF",playerContainer:"pip__playerContainer___RCOLw",verticalPlayer:"pip__verticalPlayer___u5l6a",animatedFade:"pip__animatedFade___vj+WL",fading:"pip__fading___lS5WQ",animatedScaleRight:"pip__animatedScaleRight___16P-V",scalingRight:"pip__scalingRight___mxPy7",animatedScaleLeft:"pip__animatedScaleLeft___x+SjS",scalingLeft:"pip__scalingLeft___Vdcvp"},n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Animations=void 0,function(e){e.None="None",e.Fade="Fade",e.ScaleRight="ScaleRight",e.ScaleLeft="ScaleLeft",e.Slide="Slide"}(n.Animations||(n.Animations={}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StreamMode=n.ViewModeLockState=n.ExternalLayout=n.Layout=void 0,function(e){e.PIP="PIP",e.PIPInverse="PIPInverse",e.SingleMedia="SingleMedia",e.SingleMediaInverse="SingleMediaInverse",e.SideBySide="SideBySide",e.SideBySideInverse="SideBySideInverse",e.Hidden="Hidden"}(n.Layout||(n.Layout={})),function(e){e.Hidden="locked",e.SingleMedia="parent-only",e.SingleMediaInverse="no-parent",e.PIP="pip-parent-in-large",e.PIPInverse="pip-parent-in-small",e.SideBySide="sbs-parent-in-left",e.SideBySideInverse="sbs-parent-in-right"}(n.ExternalLayout||(n.ExternalLayout={})),function(e){e.Locked="locked",e.Unlocked="unlocked"}(n.ViewModeLockState||(n.ViewModeLockState={})),function(e){e.Primary="Primary",e.Secondary="Secondary"}(n.StreamMode||(n.StreamMode={}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ReservedPresetAreas=void 0,function(e){e.PresetFloating="PresetFloating",e.BottomBar="BottomBar",e.BottomBarLeftControls="BottomBarLeftControls",e.BottomBarRightControls="BottomBarRightControls",e.TopBarLeftControls="TopBarLeftControls",e.TopBarRightControls="TopBarRightControls",e.SidePanelTop="SidePanelTop",e.InteractiveAreaSidePanelLeft="SidePanelLeft",e.SidePanelRight="SidePanelRight",e.SidePanelBottom="SidePanelBottom",e.PresetArea="PresetArea",e.InteractiveArea="InteractiveArea",e.PlayerArea="PlayerArea",e.VideoArea="VideoArea",e.VideoContainer="VideoContainer"}(n.ReservedPresetAreas||(n.ReservedPresetAreas={}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ButtonsEnum=void 0,function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show",e[e.ExpandScreen=2]="ExpandScreen",e[e.SideBySide=3]="SideBySide",e[e.SwitchScreen=4]="SwitchScreen"}(n.ButtonsEnum||(n.ButtonsEnum={}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PlayerType=void 0,function(e){e.IMAGE="image",e.VIDEO="video"}(n.PlayerType||(n.PlayerType={}))},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Button=void 0;var r=t(0),a=t(24),o=t(25),s=KalturaPlayer.ui.components.Tooltip;n.Button=function(e){var n=e.onClick,t=e.className,l=e.children,c=e.tooltip,d=e.ariaLabel,p=e.focusOnMount,u=a.useRef(null);a.useEffect((function(){var e;p&&(null===(e=u.current)||void 0===e||e.focus())}),[p]);var _=a.useCallback((function(e,t){n(Boolean(t))}),[n]),y={ref:u,role:"button",tabIndex:0};return t&&(y.className=t),(d||c)&&(y["aria-label"]=d||c.label),r.h(o.A11yWrapper,{onClick:_},r.h("div",i({},y),c?r.h(s,{label:c.label,type:c.type},l):l))}},function(e,n,t){"use strict";t.r(n),t.d(n,"useState",(function(){return g})),t.d(n,"useReducer",(function(){return A})),t.d(n,"useEffect",(function(){return h})),t.d(n,"useLayoutEffect",(function(){return f})),t.d(n,"useRef",(function(){return m})),t.d(n,"useImperativeHandle",(function(){return v})),t.d(n,"useMemo",(function(){return C})),t.d(n,"useCallback",(function(){return b})),t.d(n,"useContext",(function(){return P})),t.d(n,"useDebugValue",(function(){return S})),t.d(n,"useErrorBoundary",(function(){return k}));var i,r,a,o=t(0),s=0,l=[],c=o.options.__b,d=o.options.__r,p=o.options.diffed,u=o.options.__c,_=o.options.unmount;function y(e,n){o.options.__h&&o.options.__h(r,e,s||n),s=0;var t=r.__H||(r.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function g(e){return s=1,A(I,e)}function A(e,n,t){var a=y(i++,2);return a.t=e,a.__c||(a.__=[t?t(n):I(void 0,n),function(e){var n=a.t(a.__[0],e);a.__[0]!==n&&(a.__=[n,a.__[1]],a.__c.setState({}))}],a.__c=r),a.__}function h(e,n){var t=y(i++,3);!o.options.__s&&M(t.__H,n)&&(t.__=e,t.__H=n,r.__H.__h.push(t))}function f(e,n){var t=y(i++,4);!o.options.__s&&M(t.__H,n)&&(t.__=e,t.__H=n,r.__h.push(t))}function m(e){return s=5,C((function(){return{current:e}}),[])}function v(e,n,t){s=6,f((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))}function C(e,n){var t=y(i++,7);return M(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function b(e,n){return s=8,C((function(){return e}),n)}function P(e){var n=r.context[e.__c],t=y(i++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(r)),n.props.value):e.__}function S(e,n){o.options.useDebugValue&&o.options.useDebugValue(n?n(e):e)}function k(e){var n=y(i++,10),t=g();return n.__=e,r.componentDidCatch||(r.componentDidCatch=function(e){n.__&&n.__(e),t[1](e)}),[t[0],function(){t[1](void 0)}]}function E(){l.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(w),e.__H.__h.forEach(x),e.__H.__h=[]}catch(n){e.__H.__h=[],o.options.__e(n,e.__v)}})),l=[]}o.options.__b=function(e){r=null,c&&c(e)},o.options.__r=function(e){d&&d(e),i=0;var n=(r=e.__c).__H;n&&(n.__h.forEach(w),n.__h.forEach(x),n.__h=[])},o.options.diffed=function(e){p&&p(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==l.push(n)&&a===o.options.requestAnimationFrame||((a=o.options.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(i),B&&cancelAnimationFrame(n),setTimeout(e)},i=setTimeout(t,100);B&&(n=requestAnimationFrame(t))})(E)),r=null},o.options.__c=function(e,n){n.some((function(e){try{e.__h.forEach(w),e.__h=e.__h.filter((function(e){return!e.__||x(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],o.options.__e(t,e.__v)}})),u&&u(e,n)},o.options.unmount=function(e){_&&_(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(w)}catch(e){o.options.__e(e,n.__v)}};var B="function"==typeof requestAnimationFrame;function w(e){var n=r;"function"==typeof e.__c&&e.__c(),r=n}function x(e){var n=r;e.__c=e.__(),r=n}function M(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function I(e,n){return"function"==typeof n?n(e):n}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.A11yWrapper=n.isKeyboardEvent=void 0;var i=t(0),r=t(4).ui.utils.KeyMap,a=r.ENTER,o=r.SPACE,s=r.UP,l=r.DOWN,c=r.LEFT,d=r.RIGHT,p=function(e){e.preventDefault(),e.stopPropagation()};n.isKeyboardEvent=function(e){return e instanceof KeyboardEvent||[e.offsetX,e.offsetY].every((function(e){return 0===e}))};n.A11yWrapper=function(e){var t=e.children,r=e.onClick,u=e.onUpKeyPressed,_=e.onDownKeyPressed,y=e.onLeftKeyPressed,g=e.onRightKeyPressed,A=e.role,h=e.type,f={onKeyDown:function(e){e.keyCode===o||e.keyCode===a?(p(e),r(e,!0)):e.keyCode===s&&u?(p(e),u(e)):e.keyCode===l&&_?(p(e),_(e)):e.keyCode===c&&y?(p(e),y(e)):e.keyCode===d&&g&&(p(e),g(e))},onClick:function(e){e.stopPropagation(),r(e,(0,n.isKeyboardEvent)(e))},role:A};return"button"===t.type&&(f.type=h||"button"),(0,i.cloneElement)(t,f)},n.A11yWrapper.defaultProps={role:"button"}},function(e,n,t){"use strict";var i,r=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__decorate||function(e,n,t,i){var r,a=arguments.length,o=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(n,t,o):r(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(n,"__esModule",{value:!0}),n.PipParent=void 0;var o=t(0),s=t(8),l=t(2),c=KalturaPlayer.ui.redux.connect,d=function(e){return{prePlayback:e.engine.prePlayback}},p=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.videoContainerRef=o.createRef(),n}return r(n,e),n.prototype.componentDidMount=function(){var e,n,t=this.props.player;null===(n=null===(e=this.videoContainerRef)||void 0===e?void 0:e.current)||void 0===n||n.appendChild(t.getVideoElement())},n.prototype.render=function(e){var n=[s.videoContainer,s.parentPlayer];if(!e.prePlayback&&e.animation)switch(e.animation){case l.Animations.Fade:n.push(s.animatedFade);break;case l.Animations.ScaleRight:n.push(s.animatedScaleRight);break;case l.Animations.ScaleLeft:n.push(s.animatedScaleLeft)}return o.h("div",{className:n.join(" "),ref:this.videoContainerRef})},n=a([c(d)],n)}(o.Component);n.PipParent=p},function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||n.hasOwnProperty(t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(28),n)},function(e,n,t){"use strict";var i,r=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__decorate||function(e,n,t,i){var r,a=arguments.length,o=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(n,t,o):r(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(n,"__esModule",{value:!0}),n.PipMinimized=void 0;var o=t(0),s=t(29),l=t(5),c=t(6),d=t(2),p=KalturaPlayer.ui.components.Icon,u=KalturaPlayer.ui.preacti18n,_=u.withText,y=u.Text,g=function(){return{showLabel:o.h(y,{id:"dualScreen.show"},"Show"),showAriaLabel:o.h(y,{id:"dualScreen.show_label"},"Show dual screen"),switchScreen:o.h(y,{id:"dualScreen.switch_screen"},"Switch Screen")}},A=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.ref=o.createRef(),n._renderHoverButton=function(){var e=n.props,t=e.show,i=e.onInverse,r=e.hideButtons,a=e.focusOnButton;return o.h(o.Fragment,null,!r&&o.h(c.Button,{onClick:t,className:s.showContainer,ariaLabel:n.props.showAriaLabel,focusOnMount:a===d.ButtonsEnum.Show},o.h(o.Fragment,null,o.h("div",{className:s.iconContainer},o.h(p,{id:"dualscreen-pip-minimized-show",height:l.icons.SmallSize,width:l.icons.SmallSize,viewBox:"0 0 "+l.icons.SmallSize+" "+l.icons.SmallSize,path:l.icons.SHOW_ICON_PATH})),n.props.showLabel)),o.h("div",{className:[s.innerButtons,r?s.tinyInnerButtons:""].join(" ")},o.h(c.Button,{onClick:i,focusOnMount:a===d.ButtonsEnum.SwitchScreen,ariaLabel:n.props.switchScreen},o.h("div",{className:s.iconContainer},o.h(p,{id:"dualscreen-pip-minimized-swap",height:l.icons.MediumSize,width:l.icons.MediumSize,viewBox:"0 0 "+l.icons.MediumSize+" "+l.icons.MediumSize,path:l.icons.SWAP_ICON_PATH})))))},n}return r(n,e),n.prototype.componentDidMount=function(){var e=this.props.player.getVideoElement();e.tabIndex=-1,this.ref.current.appendChild(e)},n.prototype.render=function(e){return o.h("div",{className:s.childPlayerContainer},o.h("div",{ref:this.ref,className:[s.childPlayer,e.hideButtons?s.tinyChildPlayer:""].join(" ")}),this._renderHoverButton())},n=a([_(g)],n)}(o.Component);n.PipMinimized=A},function(e,n,t){var i=t(3),r=t(30);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);e.exports=r.locals||{}},function(e,n,t){"use strict";t.r(n);var i=t(1),r=t.n(i)()(!0);r.push([e.i,'.pip-minimized__iconContainer___a26rb{height:28px;width:28px;opacity:.8;cursor:pointer}.pip-minimized__innerButtons___JWiMT{display:flex;position:absolute;height:60px;left:0px;top:0px;padding:8px;background:linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);width:100%}.pip-minimized__innerButtons___JWiMT .pip-minimized__iconContainer___a26rb:hover{background:var(--playkit-tone-4-color);border-radius:4px;opacity:1}.pip-minimized__childPlayerContainer___SbEUB{position:absolute;top:0;right:0;transform:translateY(-100%);animation:pip-minimized__fading___Kl3LB .3s linear}.pip-minimized__childPlayerContainer___SbEUB:has(.playkit-image-player > img[src=""]){visibility:hidden}.pip-minimized__childPlayerContainer___SbEUB video{position:relative;object-fit:cover;width:auto}.pip-minimized__childPlayerContainer___SbEUB .pip-minimized__childPlayer___dA6kb{width:auto;height:60px;box-shadow:0px 0px 0px 1px rgba(0,0,0,.2),0px 8px 60px -16px rgba(0,0,0,.2);border-radius:8px;-webkit-mask-image:-webkit-radial-gradient(white, black);overflow:hidden}.pip-minimized__childPlayerContainer___SbEUB .pip-minimized__childPlayer___dA6kb.pip-minimized__tinyChildPlayer___barzW{height:34px}.pip-minimized__childPlayerContainer___SbEUB .pip-minimized__childPlayer___dA6kb img{width:auto}.pip-minimized__childPlayerContainer___SbEUB .pip-minimized__showContainer___doQSU{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;padding:8px;cursor:pointer;position:absolute;width:66px;height:32px;right:0px;top:calc((32px + 5px)*-1);color:#fff;font-style:normal;font-weight:400;font-size:14px;line-height:18px;background:rgba(0,0,0,.6);border-radius:4px}.pip-minimized__childPlayerContainer___SbEUB .pip-minimized__showContainer___doQSU:hover{background:rgba(0,0,0,.7)}.pip-minimized__childPlayerContainer___SbEUB .pip-minimized__showContainer___doQSU .pip-minimized__iconContainer___a26rb{height:16px;width:16px;margin-right:8px}.pip-minimized__childPlayerContainer___SbEUB .pip-minimized__innerButtons___JWiMT{border-radius:8px;justify-content:center;align-items:center}.pip-minimized__childPlayerContainer___SbEUB .pip-minimized__innerButtons___JWiMT.pip-minimized__tinyInnerButtons___wAzR\\+{height:34px}.pip-minimized__childPlayerContainer___SbEUB .pip-minimized__innerButtons___JWiMT .pip-minimized__iconContainer___a26rb:hover{background:rgba(0,0,0,0)}@keyframes pip-minimized__fading___Kl3LB{0%{opacity:0}100%{opacity:1}}',"",{version:3,sources:["webpack://styles/_styles.scss","webpack://styles/_variables.scss","webpack://../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss","webpack://components/pip-minimized/pip-minimized.scss"],names:[],mappings:"AAEA,sCACE,WCDc,CDEd,UCFc,CDGd,UAAA,CACA,cAAA,CAGF,qCACE,YAAA,CACA,iBAAA,CACA,WAAA,CACA,QAAA,CACA,OAAA,CACA,WAAA,CACA,gFAAA,CACA,UAAA,CAGE,iFACE,sCEYS,CFXT,iBCfQ,CDgBR,SAAA,CGjBN,6CAOE,iBAAA,CACA,KAAA,CACA,OAAA,CACA,2BAAA,CACA,kDAAA,CHYA,sFAEE,iBAAA,CGvBF,mDACE,iBAAA,CACA,gBAAA,CACA,UAAA,CAOF,iFACE,UAAA,CACA,WAAA,CACA,2EAAA,CACA,iBFdU,CEeV,wDAAA,CACA,eAAA,CACA,wHACE,WAAA,CAEF,qFACE,UAAA,CAIJ,mFACE,YAAA,CACA,kBAAA,CACA,wBAAA,CACA,kBAAA,CACA,WAAA,CACA,cAAA,CAEA,iBAAA,CACA,UAAA,CACA,WAxCoB,CAyCpB,SAAA,CACA,yBAAA,CAEA,UAAA,CACA,iBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CAEA,yBAAA,CACA,iBF/CU,CEiDV,yFACE,yBAAA,CAEF,yHACE,WAAA,CACA,UAAA,CACA,gBAAA,CAIJ,kFACE,iBF3DU,CE4DV,sBAAA,CACA,kBAAA,CACA,2HACE,WAAA,CAEF,8HACE,wBAAA,CAKN,yCACE,GACE,SAAA,CAEF,KACE,SAAA,CAAA",sourcesContent:["@import '~styles/variables';\n\n.iconContainer {\n  height: $smallIconSize;\n  width: $smallIconSize;\n  opacity: 0.8;\n  cursor: pointer;\n}\n\n.innerButtons {\n  display: flex;\n  position: absolute;\n  height: 60px;\n  left: 0px;\n  top: 0px;\n  padding: 8px;\n  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);\n  width: 100%;\n\n  .iconContainer {\n    &:hover {\n      background: $tone-4-color;\n      border-radius: $roundness-1;\n      opacity: 1;\n    }\n  }\n}\n\n@mixin hideImagePlayer {\n  &:has(:global(.playkit-image-player > img[src=''])) {\n    // hide image player container if image haven't loaded\n    visibility: hidden;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$smallIconSize: 28px;\n$smallBorderLessIconSize: 16px;\n$animation-duration: 0.3s;\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n","@import '~styles/styles';\n@import '~styles/variables';\n\n$show-container-height: 32px;\n$show-container-gap: 5px;\n\n.childPlayerContainer {\n  @include hideImagePlayer;\n  video {\n    position: relative;\n    object-fit: cover;\n    width: auto;\n  }\n  position: absolute;\n  top: 0;\n  right: 0;\n  transform: translateY(-100%);\n  animation: fading $animation-duration linear;\n  .childPlayer {\n    width: auto;\n    height: 60px;\n    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 8px 60px -16px rgba(0, 0, 0, 0.2);\n    border-radius: $roundness-2;\n    -webkit-mask-image: -webkit-radial-gradient(white, black);\n    overflow: hidden;\n    &.tinyChildPlayer {\n      height: 34px;\n    }\n    :global(img) {\n      width: auto;\n    }\n  }\n\n  .showContainer {\n    display: flex;\n    flex-direction: row;\n    justify-content: flex-end;\n    align-items: center;\n    padding: 8px;\n    cursor: pointer;\n\n    position: absolute;\n    width: 66px;\n    height: $show-container-height;\n    right: 0px;\n    top: calc((#{$show-container-height} + #{$show-container-gap}) * -1);\n\n    color: white;\n    font-style: normal;\n    font-weight: 400;\n    font-size: 14px;\n    line-height: 18px;\n\n    background: rgba(0, 0, 0, 0.6);\n    border-radius: $roundness-1;\n\n    &:hover {\n      background: rgba(0, 0, 0, 0.7);\n    }\n    .iconContainer {\n      height: 16px;\n      width: 16px;\n      margin-right: 8px;\n    }\n  }\n\n  .innerButtons {\n    border-radius: $roundness-2;\n    justify-content: center;\n    align-items: center;\n    &.tinyInnerButtons {\n      height: 34px;\n    }\n    .iconContainer:hover {\n      background: transparent;\n    }\n  }\n}\n\n@keyframes fading {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n"],sourceRoot:""}]),r.locals={iconContainer:"pip-minimized__iconContainer___a26rb",innerButtons:"pip-minimized__innerButtons___JWiMT",childPlayerContainer:"pip-minimized__childPlayerContainer___SbEUB",fading:"pip-minimized__fading___Kl3LB",childPlayer:"pip-minimized__childPlayer___dA6kb",tinyChildPlayer:"pip-minimized__tinyChildPlayer___barzW",showContainer:"pip-minimized__showContainer___doQSU",tinyInnerButtons:"pip-minimized__tinyInnerButtons___wAzR+"},n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.VideoSyncManager=void 0;var i=t(7),r=t(4),a=t(10),o=r.core.EventType,s=r.core.FakeEvent,l=r.core.Error,c=r.core.StateType,d=function(e,n,t,r){var d=this;this._isSyncDelay=!1,this._errorHandling=function(){d._eventManager.listen(d._secondaryPlayer,o.ERROR,(function(e){d._logger.debug("errorHandling :: secondary player got error");var n=new l(l.Severity.CRITICAL,l.Category.PLAYER,l.Code.VIDEO_ERROR,e);d._mainPlayer.pause(),d._mainPlayer.dispatchEvent(new s(o.ERROR,n))})),d._eventManager.listen(d._mainPlayer,o.ERROR,(function(){d._logger.debug("errorHandling :: main player got error"),d._secondaryPlayer.reset()}))},this._syncEvents=function(){var e=0;d._eventManager.listen(d._mainPlayer,o.PLAY,(function(){d._logger.debug("syncEvents :: secondary player play"),d._secondaryPlayer.play()})),d._eventManager.listen(d._mainPlayer,o.PAUSE,(function(){d._logger.debug("syncEvents :: secondary player pause"),d._secondaryPlayer.pause()})),d._eventManager.listenOnce(d._secondaryPlayer,o.CHANGE_SOURCE_ENDED,(function(){var n=d._secondaryPlayer.isLive(),t=d._secondaryPlayer.isDvr();n?t&&d._eventManager.listen(d._secondaryPlayer,o.VIDEO_TRACK_CHANGED,(function(){d._logger.debug("syncEvents :: make raw initial sync for live media"),d._debouncedSeekSecondaryPlayer()})):(d._logger.debug("syncEvents :: subscribe on time update for accurate sync"),d._eventManager.listen(d._mainPlayer,o.TIME_UPDATE,(function(){if(!d._isSyncDelay){var n=Date.now();(n-e>1e3||d._mainPlayer.paused)&&(e=n,d._mediaSync())}}))),n&&!t||d._eventManager.listen(d._mainPlayer,o.SEEKING,(function(){d._logger.debug("syncEvents :: seek secondary player to "+d._mainPlayer),d._secondaryPlayer.pause(),d._debouncedSeekSecondaryPlayer()}))})),d._eventManager.listen(d._mainPlayer,o.ENDED,(function(){d._logger.debug("syncEvents :: secondary player pause + seek to 0.01"),d._secondaryPlayer.pause(),d._seekSecondaryPlayer(.01)})),d._eventManager.listen(d._mainPlayer,o.PLAYER_STATE_CHANGED,(function(e){var n=e.payload;if(n.newState.type===c.BUFFERING&&!d._mainPlayer.seeking&&!d._mainPlayer.paused&&!d._secondaryPlayer.paused)return d._logger.debug("syncEvents :: main player got BUFFERING"),void d._secondaryPlayer.pause();n.newState.type===c.PLAYING&&n.oldState.type===c.BUFFERING&&d._secondaryPlayer.paused&&(d._logger.debug("syncEvents :: main player resume PLAYING"),d._secondaryPlayer.play())}))},this._mediaSync=function(){if(!(d._isSyncDelay||d._mainPlayer.paused&&!d._mainPlayer.seeking)&&d._secondaryPlayer){var e=!1,n=d._getSyncDelay();d._logger.debug("mediaSync :: synchDelay is "+n);var t=0,i=Math.round(100*Math.abs(n))/100;if(n>.03?t=-1*i:n<-.03&&(t=i),0!==t)if(Math.abs(n)<4){var r=d._mainPlayer.playbackRate+t;r<.1&&(r=.1),d._logger.debug("mediaSync :: Adjusting slave playbackRateChange = "+r),d._secondaryPlayer.playbackRate=r}else d._logger.debug("mediaSync :: Adjusting secondary player playbackRateChange to main player and flagging for seek"),d._secondaryPlayer.playbackRate=d._mainPlayer.playbackRate,e=!0;else d._mainPlayer.paused||(d._secondaryPlayer.playbackRate!==d._mainPlayer.playbackRate&&(d._logger.debug("mediaSync :: Main player and secondary player sync, adjusting secondary player playback rate to main player rate"),d._secondaryPlayer.playbackRate=d._mainPlayer.playbackRate),d._secondaryPlayer.paused&&d._secondaryPlayer.play());e&&(d._logger.debug("mediaSync :: Seeking secondary player to "+(d._mainPlayer.currentTime+.25)),d._seekSecondaryPlayer(.25))}},this._getSyncDelay=function(){var e=d._mainPlayer.currentTime,n=d._secondaryPlayer.currentTime;return-1==e||-1==n||i.isInInterval(n,e-0,e)?0:n-e},this._seekSecondaryPlayer=function(e){void 0===e&&(e=0);var n=d._mainPlayer.currentTime<0?0:d._mainPlayer.currentTime;if(d._secondaryPlayer.ended&&d._secondaryPlayer.duration&&Math.ceil(n)>d._secondaryPlayer.duration)return d._logger.debug("seekSecondaryPlayer :: seekTime "+n+" is out of bounds 0.."+d._secondaryPlayer.duration+". pause secondary player"),void d._secondaryPlayer.pause();d._logger.debug("seekSecondaryPlayer :: seeking to="+n+", ahead="+e),d._secondaryPlayer.currentTime=n+e,d._mainPlayer.paused?d._secondaryPlayer.pause():d._secondaryPlayer.play()},this._eventManager=e,this._mainPlayer=n,this._secondaryPlayer=t,this._logger=r,this._syncEvents(),this._errorHandling(),this._debouncedSeekSecondaryPlayer=a.debounce(this._seekSecondaryPlayer,1e3)};n.VideoSyncManager=d},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.ImageSyncManager=void 0;var r=t(4),a=t(2),o=t(10),s=r.core.TimedMetadata,l=function(){function e(e,n,t,r,s){var l=this;this._firstPlaying=!1,this._lock=!1,this._syncEvents=function(){l._eventManager.listen(l._mainPlayer,l._mainPlayer.Event.TIMED_METADATA_CHANGE,l._onTimedMetadataChange),l._eventManager.listen(l._mainPlayer,l._mainPlayer.Event.TIMED_METADATA_ADDED,l._onTimedMetadataAdded),l._eventManager.listen(l._mainPlayer,l._mainPlayer.Event.FIRST_PLAYING,l._onFirstPlaying)},this._onFirstPlaying=function(){l._firstPlaying=!0,l._imagePlayer.preLoadImages()},this._onTimedMetadataChange=function(e){var n=e.payload.cues.reduce((function(e,n){var t,r;if(l._isSlideCuePoint(n))return i(i({},e),{activeSlide:n.id});if((null===(t=n.metadata)||void 0===t?void 0:t.cuePointType)===l._kalturaCuePointService.KalturaCuePointType.CODE&&"change-view-mode"===(null===(r=n.metadata)||void 0===r?void 0:r.tags)){var o=n.metadata.partnerData,s=o.playerViewModeId,c=o.viewModeLockState;if(s)return i(i({},e),{externalLayout:c===a.ViewModeLockState.Locked?a.ExternalLayout.Hidden:s})}return e}),{activeSlide:null,externalLayout:null}),t=n.activeSlide,r=n.externalLayout;r&&l._onSlideViewChanged(r),l._debouncedSetActive(r===a.ExternalLayout.Hidden?null:t)},this._onTimedMetadataAdded=function(e){e.payload.cues.map((function(e){if(l._isSlideCuePoint(e))return l._imagePlayer.addImage({id:e.id,imageUrl:e.metadata.assetUrl,alt:e.metadata.title||e.metadata.description}),e})).length&&l._firstPlaying&&l._imagePlayer.preLoadImages()},this._eventManager=e,this._mainPlayer=n,this._imagePlayer=t,this._logger=r,this._onSlideViewChanged=s,this._syncEvents(),this._kalturaCuePointService=this._mainPlayer.getService("kalturaCuepoints"),this._debouncedSetActive=o.debounce(this._imagePlayer.setActive,200)}return e.prototype._isSlideCuePoint=function(e){var n,t;return(null==e?void 0:e.type)===s.TYPE.CUE_POINT&&(null===(n=e.metadata)||void 0===n?void 0:n.cuePointType)===this._kalturaCuePointService.KalturaCuePointType.THUMB&&(null===(t=e.metadata)||void 0===t?void 0:t.subType)===this._kalturaCuePointService.KalturaThumbCuePointSubType.SLIDE},e.prototype.reset=function(){this._firstPlaying=!1},e}();n.ImageSyncManager=l},function(e,n,t){"use strict";var i,r=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__decorate||function(e,n,t,i){var r,a=arguments.length,o=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(n,t,o):r(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(n,"__esModule",{value:!0}),n.ResponsiveManager=void 0;var o=t(0),s=KalturaPlayer.ui,l=s.redux.connect,c=s.components.PLAYER_SIZE,d=[c.EXTRA_SMALL,c.SMALL,c.TINY],p=[c.EXTRA_SMALL,c.SMALL],u=function(e){return{playerSize:e.shell.playerSize}},_=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._renderChildComponent=function(){var e=n.props,t=e.children,i=e.playerSize;return o.cloneElement(t,{hideButtons:d.includes(i)})},n}return r(n,e),n.prototype.componentDidMount=function(){var e=this.props,n=e.playerSize,t=e.onMinSize;p.includes(n)&&t()},n.prototype.componentDidUpdate=function(e){var n=this.props,t=n.playerSize,i=n.onMinSize,r=n.onDefaultSize;t!==c.TINY&&(!p.includes(t)||p.includes(e.playerSize)?!p.includes(t)&&p.includes(e.playerSize)&&r():i())},n.prototype.render=function(e){return e.playerSize===c.TINY?null:this._renderChildComponent()},n.defaultProps={onMinSize:function(){}},n=a([l(u)],n)}(o.Component);n.ResponsiveManager=_},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SecondaryMediaLoader=void 0;var i=KalturaPlayer.providers,r=i.RequestBuilder,a=i.ResponseTypes,o=function(){function e(e){this._parentEntryId="",this._requests=[],this._response={entries:[]},this._parentEntryId=e.parentEntryId;var n=new Map,t=new r(n);t.service="baseEntry",t.action="list",t.params={filter:{objectType:"KalturaBaseEntryFilter",parentEntryIdEqual:this._parentEntryId,typeIn:a.KalturaMediaEntry.MediaType.VIDEO.value+",7"},responseProfile:{type:1,fields:"id"}},this.requests.push(t)}return Object.defineProperty(e,"id",{get:function(){return"dualscreen"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var n,t=new a.KalturaBaseEntryListResponse(null===(n=e[0])||void 0===n?void 0:n.data);t.totalCount&&(this._response.entries=null==t?void 0:t.entries)},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return!!this._parentEntryId},e}();n.SecondaryMediaLoader=o},function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||n.hasOwnProperty(t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(36),n)},function(e,n,t){"use strict";var i,r=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__decorate||function(e,n,t,i){var r,a=arguments.length,o=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(n,t,o):r(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(n,"__esModule",{value:!0}),n.DragAndSnapManager=void 0;var o,s=t(0),l=t(9),c=t(7),d=t(37),p=KalturaPlayer.ui.redux.connect;!function(e){e.MouseDown="mousedown",e.MouseMove="mousemove",e.MouseUp="mouseup",e.TouchStart="touchstart",e.TouchMove="touchmove",e.TouchEnd="touchend"}(o||(o={}));var u=function(e){return{prePlayback:e.engine.prePlayback}},_=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._draggableTargetRef=s.createRef(),n._draggableItemRef=s.createRef(),n._draggableAreaRef=s.createRef(),n._currMousePos={x:0,y:0},n._throttleWait=!1,n.state={isDragging:!1},n._renderChildComponent=function(){var e=n.props.children;return s.cloneElement(e,{isDragging:n.state.isDragging,setDraggableTarget:n._setDraggableTarget})},n._setDraggableTarget=function(e){n._draggableTargetRef.current=e,n._addListeners()},n._handleChangePosition=function(e){n._setAbsoluteStyles(e),n.props.onPositionChanged(e)},n._onStartDrag=function(){n._setAbsoluteStyles(n.props.getPosition()),n.setState({isDragging:!0})},n._addListeners=function(){n.props.eventManager.listen(n._draggableTargetRef.current,o.MouseDown,(function(e){n._startDrag(e,o.MouseMove,o.MouseUp)})),n.props.eventManager.listen(n._draggableTargetRef.current,o.TouchStart,(function(e){n.props.eventManager.unlisten(n._draggableTargetRef.current,o.MouseDown),n._startDrag(e,o.TouchMove,o.TouchEnd)}))},n._moveDrag=function(e){if(!n._throttleWait){e=e||window.event;var t=n._currMousePos.x-c.getClientX(e),i=n._currMousePos.y-c.getClientY(e);if(n._currMousePos.x=c.getClientX(e),n._currMousePos.y=c.getClientY(e),n._draggableItemRef.current&&n._draggableAreaRef.current){var r=parseInt(n._draggableItemRef.current.style.top,10),a=parseInt(n._draggableItemRef.current.style.right,10);n._draggableItemRef.current.style.right=c.dimensionStyleToString(a+t),n._draggableItemRef.current.style.top=c.dimensionStyleToString(r-i)}n._throttleWait=!0,setTimeout((function(){n._throttleWait=!1}),30)}},n._getBoundingClientRects=function(){return[n._draggableItemRef.current.getBoundingClientRect(),n._draggableAreaRef.current.getBoundingClientRect()]},n._applyRelativeStyles=function(e,t,i,r){n._draggableItemRef.current.style.top=null!==e?c.dimensionStyleToString(e):"",n._draggableItemRef.current.style.right=null!==t?c.dimensionStyleToString(t):"",n._draggableItemRef.current.style.bottom=null!==i?c.dimensionStyleToString(i):"",n._draggableItemRef.current.style.left=null!==r?c.dimensionStyleToString(r):""},n._setRelativeStyles=function(){switch(n.props.getPosition()){case l.Position.BottomRight:n._setRelativeBottomRightStyles();break;case l.Position.BottomLeft:n._setRelativeBottomLeftStyles();break;case l.Position.TopRight:n._setRelativeTopRightStyles();break;case l.Position.TopLeft:n._setRelativeTopLeftStyles()}},n._setRelativeBottomRightStyles=function(){n._applyRelativeStyles(null,0,n.props.prePlayback?-130:0,null)},n._setRelativeBottomLeftStyles=function(){n._applyRelativeStyles(null,null,n.props.prePlayback?-130:0,0)},n._setRelativeTopRightStyles=function(){n._applyRelativeStyles(n.props.prePlayback?-130:0,0,null,null)},n._setRelativeTopLeftStyles=function(){n._applyRelativeStyles(n.props.prePlayback?-130:0,null,null,0)},n._applyAbsoluteStyles=function(e,t){n._draggableItemRef.current.style.top=c.dimensionStyleToString(e),n._draggableItemRef.current.style.right=c.dimensionStyleToString(t)},n._setAbsoluteStyles=function(e){switch(e){case l.Position.BottomRight:n._setAbsoluteBottomRightStyles();break;case l.Position.BottomLeft:n._setAbsoluteBottomLeftStyles();break;case l.Position.TopRight:n._setAbsoluteTopRightStyles();break;case l.Position.TopLeft:n._setAbsoluteTopLeftStyles()}n._draggableItemRef.current.style.bottom="",n._draggableItemRef.current.style.left=""},n._setAbsoluteBottomRightStyles=function(){var e=n._getBoundingClientRects(),t=e[0],i=e[1];n._applyAbsoluteStyles(i.height-t.height,0)},n._setAbsoluteBottomLeftStyles=function(){var e=n._getBoundingClientRects(),t=e[0],i=e[1];n._applyAbsoluteStyles(i.height-t.height,i.width-t.width)},n._setAbsoluteTopRightStyles=function(){n._applyAbsoluteStyles(0,0)},n._setAbsoluteTopLeftStyles=function(){var e=n._getBoundingClientRects(),t=e[0],i=e[1];n._applyAbsoluteStyles(0,i.width-t.width)},n._stopDrag=function(){n.setState({isDragging:!1}),n.props.eventManager.unlisten(document,o.MouseMove),n.props.eventManager.unlisten(document,o.TouchMove);var e=n._getBoundingClientRects(),t=e[0],i=e[1],r=t.x+t.width/2,a=t.y+t.height/2,s=i.x+i.width/2,c=i.y+i.height/2;r>s?a>c?n._handleChangePosition(l.Position.BottomRight):n._handleChangePosition(l.Position.TopRight):a>c?n._handleChangePosition(l.Position.BottomLeft):n._handleChangePosition(l.Position.TopLeft)},n}return r(n,e),n.prototype.componentDidMount=function(){this._setRelativeStyles()},n.prototype.componentWillUnmount=function(){var e=this.props.eventManager;e.unlisten(document,o.MouseMove),e.unlisten(document,o.TouchMove),e.unlisten(document,o.MouseUp),e.unlisten(document,o.TouchEnd),e.unlisten(this._draggableTargetRef.current,o.MouseDown),e.unlisten(this._draggableTargetRef.current,o.TouchStart)},n.prototype._startDrag=function(e,n,t){this.props.eventManager.listenOnce(document,t,this._stopDrag),this._currMousePos.x=c.getClientX(e),this._currMousePos.y=c.getClientY(e),this.props.eventManager.listenOnce(document,n,this._onStartDrag),this.props.eventManager.listen(document,n,this._moveDrag)},n.prototype.render=function(){var e=[d.draggableItem];return this.state.isDragging&&e.push(d.dragging),s.h("div",{id:"draggeble-area",className:d.draggableArea,ref:this._draggableAreaRef},s.h("div",{id:"draggable-item",ref:this._draggableItemRef,className:e.join(" "),onTransitionEnd:this._setRelativeStyles},this._renderChildComponent()))},n=a([p(u)],n)}(s.Component);n.DragAndSnapManager=_},function(e,n,t){var i=t(3),r=t(38);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);e.exports=r.locals||{}},function(e,n,t){"use strict";t.r(n);var i=t(1),r=t.n(i)()(!0);r.push([e.i,".drag-and-snap-manager__draggableArea___ifUCa{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}.drag-and-snap-manager__draggableItem___7xiLg{position:absolute;pointer-events:auto}.drag-and-snap-manager__draggableItem___7xiLg.drag-and-snap-manager__dragging___OTNT0{cursor:grabbing}.drag-and-snap-manager__draggableItem___7xiLg:not(.drag-and-snap-manager__dragging___OTNT0){transition:top .3s ease-in,right .3s ease-in,bottom .3s ease-in}.drag-and-snap-manager__draggableItem___7xiLg.drag-and-snap-manager__prePlayback___fZHf3{bottom:-50px}","",{version:3,sources:["webpack://components/drag-and-snap-manager/drag-and-snap-manager.scss"],names:[],mappings:"AAEA,8CACE,iBAAA,CACA,MAAA,CACA,KAAA,CACA,UAAA,CACA,WAAA,CACA,mBAAA,CAEF,8CACE,iBAAA,CACA,mBAAA,CACA,sFACE,eAAA,CAEF,4FACE,+DAAA,CAEF,yFACE,YAAA",sourcesContent:["@import '~styles/variables';\n\n.draggableArea {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 100%;\n  pointer-events: none;\n}\n.draggableItem {\n  position: absolute;\n  pointer-events: auto;\n  &.dragging {\n    cursor: grabbing;\n  }\n  &:not(.dragging) {\n    transition: top $animation-duration ease-in, right $animation-duration ease-in, bottom $animation-duration ease-in;\n  }\n  &.prePlayback {\n    bottom: -50px;\n  }\n}\n"],sourceRoot:""}]),r.locals={draggableArea:"drag-and-snap-manager__draggableArea___ifUCa",draggableItem:"drag-and-snap-manager__draggableItem___7xiLg",dragging:"drag-and-snap-manager__dragging___OTNT0",prePlayback:"drag-and-snap-manager__prePlayback___fZHf3"},n.default=r},function(e,n,t){"use strict";var i,r=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.SideBySideWrapper=void 0;var o=t(0),s=t(40),l=t(2),c=t(11),d=t(12),p=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.render=function(e){var n=e.leftSideProps,t=e.rightSideProps,i=e.layout,r=e.onSizeChange,p=e.onMinSize;return o.h(c.ResponsiveManager,{onMinSize:function(){p()},onDefaultSize:r},o.h("div",{className:d.sideBySideWrapper},o.h(s.SideBySide,a({},n,{animation:l.Animations.ScaleLeft,streamMode:i===l.Layout.SideBySide?l.StreamMode.Primary:l.StreamMode.Secondary})),o.h(s.SideBySide,a({},t,{animation:l.Animations.Fade,streamMode:i===l.Layout.SideBySide?l.StreamMode.Secondary:l.StreamMode.Primary}))))},n}(o.Component);n.SideBySideWrapper=p},function(e,n,t){"use strict";var i,r=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__decorate||function(e,n,t,i){var r,a=arguments.length,o=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(n,t,o):r(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(n,"__esModule",{value:!0}),n.SideBySide=void 0;var o=t(0),s=t(12),l=t(5),c=t(6),d=t(2),p=KalturaPlayer.ui.components.Icon,u=KalturaPlayer.ui.redux.connect,_=KalturaPlayer.ui.preacti18n,y=_.withText,g=_.Text,A=function(e){return{expandScreen:e.streamMode===d.StreamMode.Primary?o.h(g,{id:"dualScreen.expand_primary_screen"},"Expand primary screen"):o.h(g,{id:"dualScreen.expand_secondary_screen"},"Expand secondary screen")}},h=function(e){return{playerWidth:e.shell.guiClientRect.width,showUi:e.shell.playerHover||e.shell.playerNav}},f=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.ref=o.createRef(),n}return r(n,e),n.prototype.componentDidMount=function(){var e=this.props.player.getVideoElement();e.tabIndex=-1,this.ref.current.prepend(e)},n.prototype._renderHoverButton=function(){var e=this.props,n=e.onExpand,t=e.showUi,i=e.focusOnButton;return t?o.h("div",{className:s.innerButtons},o.h(c.Button,{className:s.iconContainer,onClick:n,tooltip:{label:this.props.expandScreen,type:"bottom-left"},focusOnMount:i},o.h(p,{id:"dualscreen-side-by-side-pip",height:l.icons.MediumSize,width:l.icons.MediumSize,viewBox:"0 0 "+l.icons.MediumSize+" "+l.icons.MediumSize,path:l.icons.SWITCH_TO_SIDE_BY_SIDE_ICON_PATH}))):null},n.prototype.render=function(e){var n=e.playerWidth,t=e.animation,i={height:n/2/16*9},r=[s.player];return t===d.Animations.ScaleLeft?r.push(s.animatedScale):r.push(s.animatedFade),o.h("div",{ref:this.ref,className:r.join(" "),style:i},this._renderHoverButton())},n=a([y(A),u(h)],n)}(o.Component);n.SideBySide=f},function(e,n,t){"use strict";t.r(n);var i=t(1),r=t.n(i)()(!0);r.push([e.i,'.side-by-side__iconContainer___wi1We{height:28px;width:28px;opacity:.8;cursor:pointer}.side-by-side__innerButtons___dOkDo{display:flex;position:absolute;height:60px;left:0px;top:0px;padding:8px;background:linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);width:100%}.side-by-side__innerButtons___dOkDo .side-by-side__iconContainer___wi1We:hover{background:var(--playkit-tone-4-color);border-radius:4px;opacity:1}.side-by-side__sideBySideWrapper___Qyf1j{width:100%;height:100%;position:absolute;left:0;display:flex}.side-by-side__player___Q5KOJ{position:relative;margin:auto;flex:1}.side-by-side__player___Q5KOJ:has(.playkit-image-player > img[src=""]){visibility:hidden}.side-by-side__player___Q5KOJ .side-by-side__iconContainer___wi1We{padding:2px}.side-by-side__player___Q5KOJ .side-by-side__innerButtons___dOkDo{z-index:1;padding:16px;flex-direction:row-reverse;animation:side-by-side__appears___zwo0C .3s linear}.side-by-side__animatedScale___d2hEx{animation:side-by-side__scaling___dcUq3 .3s linear}.side-by-side__animatedFade___duTBX{animation:side-by-side__fading___H1wdi .3s linear}@keyframes side-by-side__appears___zwo0C{0%{opacity:0}99%{opacity:0}100%{opacity:1}}@keyframes side-by-side__scaling___dcUq3{0%{transform:scale(2) translate(25%);z-index:100}100%{transform:scale(1) translate(0%);z-index:0}}@keyframes side-by-side__fading___H1wdi{0%{opacity:0}100%{opacity:1}}.has-dual-screen-plugin-overlay.playkit-hover .playkit-side-panel{z-index:1}',"",{version:3,sources:["webpack://styles/_styles.scss","webpack://styles/_variables.scss","webpack://../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss","webpack://components/side-by-side/side-by-side.scss"],names:[],mappings:"AAEA,qCACE,WCDc,CDEd,UCFc,CDGd,UAAA,CACA,cAAA,CAGF,oCACE,YAAA,CACA,iBAAA,CACA,WAAA,CACA,QAAA,CACA,OAAA,CACA,WAAA,CACA,gFAAA,CACA,UAAA,CAGE,+EACE,sCEYS,CFXT,iBCfQ,CDgBR,SAAA,CGpBN,yCACE,UAAA,CACA,WAAA,CACA,iBAAA,CACA,MAAA,CACA,YAAA,CAGF,8BACE,iBAAA,CACA,WAAA,CACA,MAAA,CHeA,uEAEE,iBAAA,CGdF,mEACE,WAAA,CAGF,kEACE,SAAA,CACA,YAAA,CACA,0BAAA,CACA,kDAAA,CAIJ,qCACE,kDAAA,CAGF,oCACE,iDAAA,CAGF,yCACE,GACE,SAAA,CAEF,IACE,SAAA,CAEF,KACE,SAAA,CAAA,CAIJ,yCACE,GACE,iCAAA,CACA,WAAA,CAEF,KACE,gCAAA,CACA,SAAA,CAAA,CAIJ,wCACE,GACE,SAAA,CAEF,KACE,SAAA,CAAA,CAIJ,kEAEE,SAAA",sourcesContent:["@import '~styles/variables';\n\n.iconContainer {\n  height: $smallIconSize;\n  width: $smallIconSize;\n  opacity: 0.8;\n  cursor: pointer;\n}\n\n.innerButtons {\n  display: flex;\n  position: absolute;\n  height: 60px;\n  left: 0px;\n  top: 0px;\n  padding: 8px;\n  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);\n  width: 100%;\n\n  .iconContainer {\n    &:hover {\n      background: $tone-4-color;\n      border-radius: $roundness-1;\n      opacity: 1;\n    }\n  }\n}\n\n@mixin hideImagePlayer {\n  &:has(:global(.playkit-image-player > img[src=''])) {\n    // hide image player container if image haven't loaded\n    visibility: hidden;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$smallIconSize: 28px;\n$smallBorderLessIconSize: 16px;\n$animation-duration: 0.3s;\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n","@import '~styles/variables';\n@import '~styles/styles';\n\n.sideBySideWrapper {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  left: 0;\n  display: flex;\n}\n\n.player {\n  position: relative;\n  margin: auto;\n  flex: 1;\n  @include hideImagePlayer;\n\n  .iconContainer {\n    padding: 2px;\n  }\n\n  .innerButtons {\n    z-index: 1;\n    padding: 16px;\n    flex-direction: row-reverse;\n    animation: appears $animation-duration linear;\n  }\n}\n\n.animatedScale {\n  animation: scaling $animation-duration linear;\n}\n\n.animatedFade {\n  animation: fading $animation-duration linear;\n}\n\n@keyframes appears {\n  0% {\n    opacity: 0;\n  }\n  99% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes scaling {\n  0% {\n    transform: scale(2) translate(25%);\n    z-index: 100;\n  }\n  100% {\n    transform: scale(1) translate(0%);\n    z-index: 0;\n  }\n}\n\n@keyframes fading {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n:global(.has-dual-screen-plugin-overlay.playkit-hover .playkit-side-panel) {\n  // prevent displaying innerButtons over playkit-side-panel\n  z-index: 1;\n}\n"],sourceRoot:""}]),r.locals={iconContainer:"side-by-side__iconContainer___wi1We",innerButtons:"side-by-side__innerButtons___dOkDo",sideBySideWrapper:"side-by-side__sideBySideWrapper___Qyf1j",player:"side-by-side__player___Q5KOJ",appears:"side-by-side__appears___zwo0C",animatedScale:"side-by-side__animatedScale___d2hEx",scaling:"side-by-side__scaling___dcUq3",animatedFade:"side-by-side__animatedFade___duTBX",fading:"side-by-side__fading___H1wdi"},n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DualScreenEngineDecorator=void 0;var i=t(4),r=(i.core.FakeEvent,i.core.EventType),a=function(){function e(e,n,t){var i=this;this._isActive=!1,this._plugin=n,this._dispatcher=t,n.eventManager.listen(n.player,r.SEEKING,(function(){var e;i._isActive=!!(null===(e=i._plugin.secondaryKalturaPlayer)||void 0===e?void 0:e.src)})),n.eventManager.listen(n.player,r.SEEKED,(function(){i._isActive=!1}))}return Object.defineProperty(e.prototype,"active",{get:function(){return this._isActive&&!this._plugin.secondaryKalturaPlayer.ended},enumerable:!1,configurable:!0}),e.prototype.dispatchEvent=function(e){var n=this;return e.type===r.SEEKED?(this._plugin.eventManager.listenOnce(this._plugin.secondaryKalturaPlayer,r.SEEKED,(function(){n._dispatcher(e)})),!0):this._dispatcher(e)},e}();n.DualScreenEngineDecorator=a},function(e,n,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,i){void 0===i&&(i=t),e[i]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||n.hasOwnProperty(t)||i(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(44),n)},function(e,n,t){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.ImagePlayer=void 0,t(45);var r=function(){function e(e,n){var t=this;this._images=[],this._activeImage=null,this._preloadEnabled=!0,this.preLoadImages=function(){var e=t._images.some((function(e){return e.loading}));if(t._preloadEnabled&&!e){for(var n=t._activeImage?t._activeImage.index:0;n<t._images.length;n++){var i=t._images[n];if(!t._isSlideItemPreloded(i))return void t._preLoadImage(i)}var r=t._images.find((function(e){return!t._isSlideItemPreloded(e)}));r&&t._preLoadImage(r)}},this.addImage=function(e){if(!t._images.find((function(n){return n.id===e.id}))){var n=function(){},r=new Promise((function(e){n=e})),a=i(i({},e),{index:t._images.length,loading:!1,loaded:!1,portrait:!1,retryAttempts:0,ready:r,setReady:n});t._images.push(a)}},this.setActive=function(e){if(!e){if(!t._activeImage)return;return t._imagePlayer.firstChild.setAttribute("src",""),t._imagePlayer.firstChild.setAttribute("alt",""),t._activeImage=null,void t._onActiveChange(null)}t._activeImage&&e===t._activeImage.id||(clearTimeout(t._retryTimeout),t._images.find((function(n){return e===n.id&&(t._preLoadImage(n),t._activeImage=n,n.ready.then((function(){var e;(null===(e=t._activeImage)||void 0===e?void 0:e.id)===n.id&&(t._onActiveChange(n),t._imagePlayer.firstChild.setAttribute("src",n.imageUrl))})),!0)})))},this.getVideoElement=function(){return t._imagePlayer},this._isSlideItemPreloded=function(e){return e.loaded||e.loading||e.retryAttempts>=3},this._createImagePlayer=function(){var e=document.createElement("div"),n=document.createElement("img");return n.src="",n.alt="",e.appendChild(n),e.classList.add("playkit-image-player"),e},this._preLoadImage=function(e){if(t._isSlideItemPreloded(e))t.preLoadImages();else{e.retryAttempts++,e.loading=!0;var n=new Image;n.onload=function(){e.loading=!1,e.loaded=!0,e.portrait=n.width<n.height,e.setReady(),t.preLoadImages()},n.onerror=function(){e.loading=!1,t._retryTimeout=setTimeout((function(){t._preLoadImage(e)}),2e3)},n.src=e.imageUrl}},this.reset=function(){t._activeImage=null,t._images=[],clearTimeout(t._retryTimeout)},this._imagePlayer=this._createImagePlayer(),this._onActiveChange=e,this._preloadEnabled=n}return Object.defineProperty(e.prototype,"active",{get:function(){return this._activeImage},enumerable:!1,configurable:!0}),e}();n.ImagePlayer=r},function(e,n,t){var i=t(3),r=t(46);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);e.exports=r.locals||{}},function(e,n,t){"use strict";t.r(n);var i=t(1),r=t.n(i)()(!0);r.push([e.i,".playkit-image-player{width:100%;height:100%;background:#000}.playkit-image-player img{width:100%;height:100%;object-fit:contain;position:relative;top:0px;left:0px;pointer-events:none}","",{version:3,sources:["webpack://image-player/image-player.scss"],names:[],mappings:"AACE,sBACE,UAAA,CACA,WAAA,CACA,eAAA,CACA,0BACE,UAAA,CACA,WAAA,CACA,kBAAA,CACA,iBAAA,CACA,OAAA,CACA,QAAA,CACA,mBAAA",sourcesContent:[":global {\n  .playkit-image-player {\n    width:100%;\n    height:100%;\n    background: #000000;\n    img {\n      width:100%;\n      height:100%;\n      object-fit: contain;\n      position: relative;\n      top: 0px;\n      left: 0px;\n      pointer-events: none;\n    }\n  }\n}\n"],sourceRoot:""}]),n.default=r},function(e,n,t){var i=t(3),r=t(48);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);e.exports=r.locals||{}},function(e,n,t){"use strict";t.r(n);var i=t(1),r=t.n(i)()(!0);r.push([e.i,".playkit-player.has-dual-screen-plugin-overlay .playkit-subtitles{z-index:1}.playkit-player.has-dual-screen-plugin-overlay .playkit-slideIn{z-index:1}","",{version:3,sources:["webpack://styles/global.scss"],names:[],mappings:"AACE,kEACE,SAAA,CAEF,gEACE,SAAA",sourcesContent:[":global(.playkit-player.has-dual-screen-plugin-overlay) {\n  :global(.playkit-subtitles) {\n    z-index: 1;\n  }\n  :global(.playkit-slideIn) {\n    z-index: 1;\n  }\n}\n"],sourceRoot:""}]),n.default=r}]);

/*! For license information please see playkit-hotspots.js.LICENSE.txt */
var KalturaPlayer;!function(){var e={1972:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonType=t.ButtonSize=void 0;var a,s,l=n(4522),c=n(42),u=n(2052),p=n(979),_=n(4820),d=n(7538),h=u.ui.Components.Tooltip;!function(e){e.small="small",e.medium="medium",e.large="large"}(a=t.ButtonSize||(t.ButtonSize={})),function(e){e.primary="primary",e.danger="danger",e.translucent="translucent",e.borderless="borderless"}(s=t.ButtonType||(t.ButtonType={}));var A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonRef=(0,l.createRef)(),t.renderButton=function(){var e,n=t.props,o=c(d.button,d[n.size],d[n.type],n.className,((e={})[d.disabled]=n.disabled,e[d.withIcon]=n.children&&n.icon,e[d.iconOnly]=!n.children&&n.icon,e)),r=i(i({ref:t.buttonRef,disabled:n.disabled,"aria-disabled":n.disabled,tabIndex:n.tabIndex,className:o},n.ariaLabel?{"aria-label":n.ariaLabel}:{}),n.testId?{"data-testid":n.testId}:{}),a=(0,l.h)("button",i({},r),(0,l.h)(l.Fragment,null,n.icon&&(0,l.h)(_.Icon,{name:n.icon,size:_.IconSize[n.size]}),n.children&&(0,l.h)("span",null,n.children)));return n.onClick?(0,l.h)(p.A11yWrapper,{onClick:n.onClick},a):a},t}return r(t,e),t.prototype.componentDidMount=function(){var e;this.props.focusOnMount&&(null===(e=this.buttonRef.current)||void 0===e||e.focus())},t.prototype.render=function(e){if(e.tooltip){var t=i(i({label:e.tooltip.label},e.tooltip.type?{type:e.tooltip.type}:{}),e.tooltip.className?{classNames:e.tooltip.className}:{});return(0,l.h)(h,i({},t),this.renderButton())}return this.renderButton()},t}(l.Component);t.Button=A,A.defaultProps={disabled:!1,focusOnMount:!1,tabIndex:0,children:null,size:a.medium,icon:null,type:s.primary}},5454:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(1972),t),r(n(178),t)},178:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InputField=void 0;var a=n(4522),s=n(979),l=n(7998),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={active:!1},n._inputRef=null,n.setFocus=function(e){var t;null===(t=n._inputRef)||void 0===t||t.focus(e)},n._handleOnChange=function(e){n.props.onChange(e.target.value)},n._onClear=function(){var e;null===(e=n._inputRef)||void 0===e||e.focus(),n.props.onChange("")},n._onFocus=function(){n.setState({active:!0})},n._onBlur=function(){n.setState({active:!1})},n._goToNextSearchResult=function(){var e=n.props.searchResults,t=e.activeSearchIndex,o=e.totalSearchResults,r=e.onSearchIndexChange;0!==o&&r(t!==o?t+1:1)},n._goToPrevSearchResult=function(){var e=n.props.searchResults,t=e.activeSearchIndex,o=e.totalSearchResults;(0,e.onSearchIndexChange)(1!==t?t-1:o)},n._renderSearchResults=function(){return(0,a.h)(a.Fragment,null,(0,a.h)("div",{className:l.searchResults,"aria-live":"polite","aria-label":n.props.searchResults.searchResultsLabel},"".concat(n.props.searchResults.totalSearchResults>0?"".concat(n.props.searchResults.activeSearchIndex,"/").concat(n.props.searchResults.totalSearchResults):"0/0")),(0,a.h)("div",{className:l.prevNextWrapper},n.props.value&&(0,a.h)(s.A11yWrapper,{onClick:n._goToPrevSearchResult},(0,a.h)("button",{tabIndex:0,className:"".concat(l.prevNextButton," ").concat(0===n.props.searchResults.totalSearchResults?l.disabled:""),"aria-label":n.props.searchResults.prevMatchLabel},(0,a.h)("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{d:"M0.292893 4.70711C0.653377 5.06759 1.22061 5.09532 1.6129 4.7903L1.70711 4.70711L4 2.415L6.29289 4.70711C6.65338 5.06759 7.22061 5.09532 7.6129 4.7903L7.70711 4.70711C8.06759 4.34662 8.09532 3.77939 7.7903 3.3871L7.70711 3.29289L4.70711 0.292893C4.34662 -0.0675907 3.77939 -0.0953203 3.3871 0.209705L3.29289 0.292893L0.292893 3.29289C-0.0976311 3.68342 -0.0976311 4.31658 0.292893 4.70711Z",fill:"white","fill-opacity":"0.7"})))),n.props.value&&(0,a.h)(s.A11yWrapper,{onClick:n._goToNextSearchResult},(0,a.h)("button",{tabIndex:0,className:"".concat(l.prevNextButton," ").concat(0===n.props.searchResults.totalSearchResults?l.disabled:""),"aria-label":n.props.searchResults.nextMatchLabel},(0,a.h)("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L4 2.58579L6.29289 0.292893C6.68342 -0.0976311 7.31658 -0.0976311 7.70711 0.292893C8.09763 0.683417 8.09763 1.31658 7.70711 1.70711L4.70711 4.70711C4.31658 5.09763 3.68342 5.09763 3.29289 4.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",fill:"white","fill-opacity":"0.7"}))))))},n._renderClearSearch=function(){return(0,a.h)(s.A11yWrapper,{onClick:n._onClear},(0,a.h)("button",{className:l.clearIcon,tabIndex:0,"aria-label":n.props.clearSearchLabel},(0,a.h)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12ZM3.38951 2.3502L3.46013 2.41264L5.99548 4.9504L8.53067 2.41264L8.60129 2.3502C8.89537 2.12125 9.32081 2.1418 9.59133 2.41199C9.8844 2.70471 9.88469 3.17958 9.59197 3.47265L7.05523 6.01165L9.59197 8.55189C9.88469 8.84496 9.8844 9.31983 9.59133 9.61255C9.32081 9.88275 8.89537 9.90329 8.60129 9.67434L8.53067 9.61191L5.99548 7.0729L3.46013 9.61191L3.38951 9.67434C3.09543 9.90329 2.66999 9.88275 2.39947 9.61255C2.1064 9.31983 2.10611 8.84496 2.39883 8.55189L4.93498 6.01165L2.39883 3.47265C2.10611 3.17958 2.1064 2.70471 2.39947 2.41199C2.66999 2.1418 3.09543 2.12125 3.38951 2.3502Z",fill:"white","fill-opacity":"0.7"}))))},n.state={active:!1},n}return r(t,e),t.prototype.render=function(){var e=this,t={className:l.inputElement,value:this.props.value,onInput:this._handleOnChange,onFocus:this._onFocus,onBlur:this._onBlur,tabIndex:0,ref:function(t){e._inputRef=t}};return this.props.placeholder&&(t["aria-label"]=this.props.placeholder,t.placeholder=this.props.placeholder),(0,a.h)("div",{className:[l.inputFieldWrapper,this.props.value||this.state.active?l.active:""].join(" ")},(0,a.h)("input",i({},t)),this.props.value&&this.props.clearSearchLabel&&this._renderClearSearch(),this.props.value&&this.props.searchResults&&this._renderSearchResults())},t}(a.Component);t.InputField=c},979:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.A11yWrapper=t.isKeyboardEvent=void 0;var o=n(4522),r=n(2052).ui.utils.KeyMap,i=r.ENTER,a=r.SPACE,s=r.UP,l=r.DOWN,c=r.LEFT,u=r.RIGHT,p=function(e){e.preventDefault(),e.stopPropagation()};t.isKeyboardEvent=function(e){return e instanceof KeyboardEvent||[e.offsetX,e.offsetY].every((function(e){return 0===e}))},t.A11yWrapper=function(e){var n=e.children,r=e.onClick,_=e.onUpKeyPressed,d=e.onDownKeyPressed,h=e.onLeftKeyPressed,A=e.onRightKeyPressed,f=e.role,C=e.type,v={onKeyDown:function(e){e.keyCode===a||e.keyCode===i?(p(e),r(e,!0)):e.keyCode===s&&_?(p(e),_(e)):e.keyCode===l&&d?(p(e),d(e)):e.keyCode===c&&h?(p(e),h(e)):e.keyCode===u&&A&&(p(e),A(e))},onClick:function(e){e.stopPropagation(),r(e,(0,t.isKeyboardEvent)(e))},role:f};return"button"===n.type&&(v.type=C||"button"),(0,o.cloneElement)(n,v)},t.A11yWrapper.defaultProps={role:"button"}},172:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(979),t),r(n(8579),t),r(n(3425),t)},8579:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayPortal=void 0;var n=KalturaPlayer.ui.redux.useSelector,o=KalturaPlayer.ui.createPortal;t.OverlayPortal=function(e){var t=e.children,r=n((function(e){return e.config.targetId})),i=document.getElementById(r)||document;return o(t,i.querySelector(".overlay-portal"))}},3425:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenReaderProvider=t.ScreenReaderContext=void 0;var i=n(4522),a=n(73);t.ScreenReaderContext=(0,i.createContext)((function(e,t){}));var s=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={textToRead:""},t._setTextToRead=function(e,n){void 0===n&&(n=500),setTimeout((function(){t.setState({textToRead:e})}),n)},t}return r(n,e),n.prototype.render=function(){return(0,i.h)(t.ScreenReaderContext.Provider,{value:this._setTextToRead},this.props.children,(0,i.h)("div",{style:a.srWrapper,"aria-live":"polite"},(0,i.h)("span",{id:"sr-only","aria-label":this.state.textToRead},this.state.textToRead)))},n}(i.Component);t.ScreenReaderProvider=s},9695:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Add=void 0;var o=n(4522);t.Add=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M21.8083 4C22.4665 4 23 4.55964 23 5.25V18.75C23 19.4404 22.4665 20 21.8083 20H2.19167C1.53353 20 1 19.4404 1 18.75V5.25C1 4.55964 1.53353 4 2.19167 4H21.8083ZM15 6H3V18H15V6ZM12.999 8.967L13 9L12.998 8.94L12.999 8.967L13 9V15C13 15.5523 12.5523 16 12 16C11.4872 16 11.0645 15.614 11.0067 15.1166L11 15V11.414L6.70711 15.7071C6.34662 16.0676 5.77939 16.0953 5.3871 15.7903L5.29289 15.7071C4.93241 15.3466 4.90468 14.7794 5.2097 14.3871L5.29289 14.2929L9.584 10H6C5.48716 10 5.06449 9.61396 5.00673 9.11662L5 9C5 8.44772 5.44772 8 6 8L12.0193 8.00018C12.0427 8.00063 12.066 8.00189 12.0893 8.00397C12.1097 8.00575 12.1294 8.0081 12.149 8.01102C12.1659 8.01363 12.1834 8.0167 12.2007 8.02024C12.2227 8.02464 12.2444 8.02983 12.2658 8.03572C12.2815 8.0401 12.2969 8.04473 12.3121 8.04974C12.3318 8.05612 12.3516 8.06332 12.3711 8.0711L12.4232 8.09367C12.4439 8.10338 12.4643 8.11379 12.4843 8.12488C12.4964 8.1315 12.5086 8.13861 12.5207 8.146C12.5463 8.16172 12.5711 8.17849 12.5952 8.19631L12.6525 8.24221L12.6167 8.21279C12.6802 8.26255 12.7374 8.31982 12.7872 8.38325C12.7927 8.39016 12.7982 8.3974 12.8037 8.40469C12.8215 8.42887 12.8383 8.45372 12.8539 8.47934L12.8753 8.51594C12.8862 8.53571 12.8966 8.55611 12.9063 8.5769L12.9288 8.62866C12.9367 8.64842 12.9439 8.6682 12.9505 8.68826C12.9553 8.70315 12.9599 8.71854 12.9642 8.73401C12.9702 8.75556 12.9754 8.77725 12.9798 8.79921C12.9833 8.81662 12.9864 8.83405 12.989 8.85153L12.9972 8.92482L12.998 8.94L12.999 8.967Z",fill:"white"}))}},5254:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Close=void 0;var o=n(4522);t.Close=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M11.6592 10.245L6.70483 5.29061C6.31701 4.9028 5.68581 4.90476 5.29528 5.29528C4.90204 5.68853 4.90267 6.31688 5.29061 6.70483L10.245 11.6592L5.29061 16.6137C4.9028 17.0015 4.90476 17.6327 5.29528 18.0232C5.68853 18.4165 6.31688 18.4158 6.70483 18.0279L11.6592 13.0735L16.6137 18.0279C17.0015 18.4157 17.6327 18.4137 18.0232 18.0232C18.4165 17.63 18.4158 17.0016 18.0279 16.6137L13.0735 11.6592L18.0279 6.70483C18.4157 6.31701 18.4137 5.68581 18.0232 5.29528C17.63 4.90204 17.0016 4.90267 16.6137 5.29061L11.6592 10.245Z",fill:"white"}))}},1577:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Download=void 0;var o=n(4522);t.Download=function(){return(0,o.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M17.5 6C17.5 5.44772 17.0523 5 16.5 5L16.3834 5.00673C15.886 5.06449 15.5 5.48716 15.5 6L15.4997 17.693L9.71029 12.2702C9.30721 11.8926 8.67439 11.9133 8.29683 12.3164C7.91928 12.7195 7.93998 13.3523 8.34306 13.7298L15.8164 20.7298C15.8212 20.7343 15.826 20.7387 15.8308 20.7431L15.8164 20.7298L15.9035 20.8027C15.9034 20.8026 15.9037 20.8028 15.9035 20.8027C15.9135 20.8101 15.9231 20.817 15.9333 20.824C15.956 20.8397 15.9793 20.8544 16.0038 20.8684C16.0148 20.8747 16.0259 20.8808 16.0366 20.8864C16.0596 20.8984 16.0832 20.9096 16.1077 20.9201C16.1223 20.9263 16.1371 20.9322 16.1515 20.9376C16.1769 20.947 16.2028 20.9555 16.2299 20.963C16.2399 20.9658 16.25 20.9684 16.2595 20.9709C16.3365 20.9899 16.4171 21 16.5 21C16.5804 21 16.6585 20.9905 16.7336 20.9725C16.7521 20.968 16.7706 20.963 16.7889 20.9576C16.8097 20.9514 16.8303 20.9444 16.8507 20.9367C16.8632 20.932 16.8756 20.9271 16.8878 20.922C16.9121 20.9118 16.936 20.9006 16.9596 20.8883C16.9735 20.8812 16.9872 20.8736 17.0007 20.8658C17.0223 20.8533 17.0434 20.84 17.0636 20.8262C17.0764 20.8174 17.0891 20.8083 17.1021 20.7985C17.1224 20.7831 17.1422 20.767 17.161 20.7504C17.1685 20.7437 17.176 20.737 17.1834 20.7301L24.6619 13.7301C25.0651 13.3527 25.086 12.7198 24.7086 12.3166L24.6172 12.2304C24.2352 11.9126 23.6674 11.9215 23.2952 12.2699L17.4997 17.694L17.5 6Z",fill:"white"}),(0,o.h)("path",{d:"M27 26C27 26.5523 26.5523 27 26 27H7C6.44772 27 6 26.5523 6 26C6 25.4477 6.44772 25 7 25H26C26.5523 25 27 25.4477 27 26Z",fill:"white"}))}},2942:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Expand=void 0;var o=n(4522);t.Expand=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M20.997 3.924L20.998 3.945L20.999 3.98L21 4V10C21 10.5523 20.5523 11 20 11C19.4872 11 19.0645 10.614 19.0067 10.1166L19 10V6.416L14.7071 10.7071C14.3466 11.0676 13.7794 11.0953 13.3871 10.7903L13.2929 10.7071C12.9324 10.3466 12.9047 9.77939 13.2097 9.3871L13.2929 9.29289L17.586 5H14C13.4872 5 13.0645 4.61396 13.0067 4.11662L13 4C13 3.48716 13.386 3.06449 13.8834 3.00673L14 3L20.0332 3.00054C20.0503 3.00109 20.0683 3.00216 20.0862 3.0037C20.1079 3.00553 20.1285 3.00797 20.149 3.01102C20.166 3.01363 20.1834 3.0167 20.2007 3.02024C20.2227 3.02464 20.2444 3.02983 20.2658 3.03572C20.2815 3.0401 20.2969 3.04473 20.3121 3.04974C20.3318 3.05612 20.3516 3.06332 20.3711 3.0711L20.4232 3.09367C20.4439 3.10338 20.4643 3.11379 20.4843 3.12488C20.4964 3.1315 20.5086 3.13861 20.5207 3.146C20.5463 3.16172 20.5711 3.17849 20.5952 3.19631L20.6525 3.24221L20.6168 3.21279C20.6802 3.26255 20.7374 3.31982 20.7872 3.38325C20.7927 3.39016 20.7982 3.3974 20.8037 3.40469C20.8215 3.42887 20.8383 3.45373 20.8539 3.47934L20.8753 3.51594C20.8862 3.53571 20.8966 3.55611 20.9063 3.5769L20.9288 3.62866C20.9367 3.64842 20.9439 3.6682 20.9505 3.68826C20.9553 3.70315 20.9599 3.71854 20.9642 3.73401C20.9702 3.75556 20.9754 3.77725 20.9798 3.79921C20.9833 3.81662 20.9864 3.83405 20.989 3.85153L20.996 3.91075L20.996 3.919L20.997 3.921V3.924ZM3.002 20.059V20.071L3.00175 20.0593C3.00122 20.0503 3.00081 20.0413 3.00052 20.0323L3 14C3 13.4477 3.44772 13 4 13C4.51284 13 4.93551 13.386 4.99327 13.8834L5 14V17.586L9.29289 13.2929C9.65338 12.9324 10.2206 12.9047 10.6129 13.2097L10.7071 13.2929C11.0676 13.6534 11.0953 14.2206 10.7903 14.6129L10.7071 14.7071L6.416 19H10C10.5128 19 10.9355 19.386 10.9933 19.8834L11 20C11 20.5128 10.614 20.9355 10.1166 20.9933L10 21H4C3.99354 21 3.98709 20.9999 3.98066 20.9998C3.95732 20.9994 3.93401 20.9981 3.91075 20.996C3.89031 20.9943 3.87058 20.9919 3.85104 20.989C3.83405 20.9864 3.81662 20.9833 3.79927 20.9798C3.77725 20.9754 3.75556 20.9702 3.73416 20.9643C3.71854 20.9599 3.70315 20.9553 3.68786 20.9503C3.6682 20.9439 3.64842 20.9367 3.62894 20.9289L3.57678 20.9063C3.55611 20.8966 3.53571 20.8862 3.51572 20.8751C3.50361 20.8685 3.49139 20.8614 3.47929 20.854C3.45373 20.8383 3.42887 20.8215 3.40484 20.8037L3.34745 20.7578L3.38325 20.7872C3.31982 20.7374 3.26255 20.6802 3.21279 20.6168C3.20728 20.6098 3.20175 20.6026 3.19633 20.5953C3.17849 20.5711 3.16172 20.5463 3.14607 20.5207L3.12467 20.4841C3.11379 20.4643 3.10338 20.4439 3.09365 20.4231L3.07123 20.3713C3.06332 20.3516 3.05612 20.3318 3.04955 20.3117C3.04473 20.2969 3.0401 20.2815 3.03585 20.266C3.02983 20.2444 3.02464 20.2227 3.02017 20.2008C3.0167 20.1834 3.01363 20.1659 3.01102 20.1485L3.0037 20.0862L3.002 20.059Z",fill:"white"}))}},1861:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Icons=void 0;var o=n(5254),r=n(9919),i=n(1577),a=n(7024),s=n(8835),l=n(1223),c=n(7858),u=n(6563),p=n(2489),_=n(9695),d=n(756),h=n(4726),A=n(2942);t.Icons={close:o.Close,print:r.Print,download:i.Download,related:a.Related,message:s.Message,share:l.Share,more:c.More,quiz:u.QuizIcon,switch:p.Switch,add:_.Add,minimizedVideo:d.MinimizedVideo,pictureInPicture:h.PictureInPicture,expand:A.Expand}},8835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=void 0;var o=n(4522);t.Message=function(){return(0,o.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M25 5C27.2091 5 29 6.75035 29 8.90952V18.6833C29 20.8425 27.2091 22.5928 25 22.5928H14.985L10.7019 26.7188C10.546 26.8689 10.3449 26.9641 10.1302 26.9917L10 27C9.44772 27 9 26.5624 9 26.0226V22.5928H7C4.79086 22.5928 3 20.8425 3 18.6833V8.90952C3 6.75035 4.79086 5 7 5H25ZM25 6.95476H7C5.89543 6.95476 5 7.82994 5 8.90952V18.6833C5 19.7629 5.89543 20.6381 7 20.6381H11V23.687L14.1651 20.6381H25C26.1046 20.6381 27 19.7629 27 18.6833V8.90952C27 7.82994 26.1046 6.95476 25 6.95476ZM19 14.7738C19.5523 14.7738 20 15.2114 20 15.7512C20 16.291 19.5523 16.7286 19 16.7286H10C9.44772 16.7286 9 16.291 9 15.7512C9 15.2114 9.44772 14.7738 10 14.7738H19ZM23 10.8643C23.5523 10.8643 24 11.3019 24 11.8417C24 12.3815 23.5523 12.819 23 12.819H10C9.44772 12.819 9 12.3815 9 11.8417C9 11.3019 9.44772 10.8643 10 10.8643H23Z",fill:"white"}))}},756:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MinimizedVideo=void 0;var o=n(4522);t.MinimizedVideo=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.25 4.5H18.75C19.9926 4.5 21 5.50736 21 6.75V17.25C21 18.4926 19.9926 19.5 18.75 19.5H5.25C4.00736 19.5 3 18.4926 3 17.25V6.75C3 5.50736 4.00736 4.5 5.25 4.5ZM5.25 6C4.83579 6 4.5 6.33579 4.5 6.75V17.25C4.5 17.6642 4.83579 18 5.25 18H18.75C19.1642 18 19.5 17.6642 19.5 17.25V6.75C19.5 6.33579 19.1642 6 18.75 6H5.25ZM13 12C12.4477 12 12 12.4477 12 13V15.5C12 16.0523 12.4477 16.5 13 16.5H17C17.5523 16.5 18 16.0523 18 15.5V13C18 12.4477 17.5523 12 17 12H13Z",fill:"white"}))}},7858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.More=void 0;var o=n(4522);t.More=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M8 12C8 13.1046 7.10457 14 6 14C4.89543 14 4 13.1046 4 12C4 10.8954 4.89543 10 6 10C7.10457 10 8 10.8954 8 12ZM14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12ZM20 12C20 13.1046 19.1046 14 18 14C16.8954 14 16 13.1046 16 12C16 10.8954 16.8954 10 18 10C19.1046 10 20 10.8954 20 12Z",fill:"white"}))}},4726:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PictureInPicture=void 0;var o=n(4522);t.PictureInPicture=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.75 4.5H5.25C4.00736 4.5 3 5.50736 3 6.75V17.25C3 18.4926 4.00736 19.5 5.25 19.5H18.75C19.9926 19.5 21 18.4926 21 17.25V6.75C21 5.50736 19.9926 4.5 18.75 4.5ZM13 12C12.4477 12 12 12.4477 12 13V15.5C12 16.0523 12.4477 16.5 13 16.5H17C17.5523 16.5 18 16.0523 18 15.5V13C18 12.4477 17.5523 12 17 12H13Z",fill:"white"}))}},9919:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Print=void 0;var o=n(4522);t.Print=function(){return(0,o.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 23H26C27.1046 23 28 22.1046 28 21V11C28 9.89543 27.1046 9 26 9H23V5C23 3.89543 22.1046 3 21 3H11C9.89543 3 9 3.89543 9 5V9H6C4.89543 9 4 9.89543 4 11V21C4 22.1046 4.89543 23 6 23H9V28C9 29.1046 9.89543 30 11 30H21C22.1046 30 23 29.1046 23 28V23ZM6 11V21H9V19C8.44772 19 8 18.5523 8 18C8 17.4477 8.44772 17 9 17H23C23.5523 17 24 17.4477 24 18C24 18.5523 23.5523 19 23 19V21H26V11H6ZM21 9V5H11V9H21ZM11 19V28H21V19H11Z",fill:"white"}))}},6563:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuizIcon=void 0;var o=n(4522);t.QuizIcon=function(){return(0,o.h)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.49857 2.11499L12.7442 4.2052C12.9162 4.28987 12.9812 4.48721 12.8895 4.64597C12.8594 4.69807 12.8145 4.74163 12.7597 4.77201L8.54484 7.10634C8.20953 7.29205 7.79063 7.29205 7.45532 7.10634L3.2405 4.77202C3.07335 4.67945 3.01915 4.47933 3.11944 4.32505C3.15235 4.27441 3.19956 4.23299 3.256 4.2052L7.50203 2.11498C7.81345 1.96167 8.18715 1.96168 8.49857 2.11499ZM14 6.02878V10.7642C14 11.1075 13.8049 11.4256 13.486 11.6022L9.24043 13.9536C9.07328 14.0461 8.85649 13.9961 8.7562 13.8418C8.72329 13.7912 8.7059 13.7333 8.7059 13.6742V8.93882C8.7059 8.59551 8.90104 8.27738 9.21997 8.10075L13.4655 5.74942C13.6326 5.65685 13.8494 5.70688 13.9497 5.86116C13.9826 5.91179 14 5.96973 14 6.02878ZM6.5145 8.31192L2.50483 6.04476C2.45303 6.01547 2.39375 6 2.33333 6C2.14924 6 2 6.14064 2 6.31412V10.88C2 11.211 2.1843 11.5178 2.4855 11.6881L6.49517 13.9552C6.54697 13.9845 6.60625 14 6.66667 14C6.85076 14 7 13.8594 7 13.6859V9.12C7 8.78898 6.8157 8.48223 6.5145 8.31192Z",fill:"white"}))}},7024:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Related=void 0;var o=n(4522);t.Related=function(){return(0,o.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 7H12C13.1046 7 14 7.89543 14 9V13C14 14.1046 13.1046 15 12 15H8C6.89543 15 6 14.1046 6 13V9C6 7.89543 6.89543 7 8 7ZM8 13H12V9H8V13Z",fill:"white"}),(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 18H12C13.1046 18 14 18.8954 14 20V24C14 25.1046 13.1046 26 12 26H8C6.89543 26 6 25.1046 6 24V20C6 18.8954 6.89543 18 8 18ZM8 24H12V20H8V24Z",fill:"white"}),(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 7H20C18.8954 7 18 7.89543 18 9V13C18 14.1046 18.8954 15 20 15H24C25.1046 15 26 14.1046 26 13V9C26 7.89543 25.1046 7 24 7ZM24 13H20V9H24V13Z",fill:"white"}),(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 18H24C25.1046 18 26 18.8954 26 20V24C26 25.1046 25.1046 26 24 26H20C18.8954 26 18 25.1046 18 24V20C18 18.8954 18.8954 18 20 18ZM20 24H24V20H20V24Z",fill:"white"}))}},1223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Share=void 0;var o=n(4522);t.Share=function(){return(0,o.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22.6667 12.6667C24.5076 12.6667 26 11.1743 26 9.33333C26 7.49238 24.5076 6 22.6667 6C20.8257 6 19.3333 7.49238 19.3333 9.33333C19.3333 9.38882 19.3347 9.44399 19.3374 9.49881L11.9575 13.9443C11.3473 13.1665 10.3987 12.6667 9.33333 12.6667C7.49238 12.6667 6 14.1591 6 16C6 17.8409 7.49238 19.3333 9.33333 19.3333C10.3981 19.3333 11.3462 18.8341 11.9564 18.057L19.3374 22.5013C19.3347 22.5561 19.3333 22.6112 19.3333 22.6667C19.3333 24.5076 20.8257 26 22.6667 26C24.5076 26 26 24.5076 26 22.6667C26 20.8257 24.5076 19.3333 22.6667 19.3333C21.6074 19.3333 20.6636 19.8274 20.053 20.5976L12.864 16.2689L12.8651 15.7324L20.0531 11.4025C20.6637 12.1727 21.6075 12.6667 22.6667 12.6667ZM22.6667 10.6667C21.9303 10.6667 21.3333 10.0697 21.3333 9.33333C21.3333 8.59695 21.9303 8 22.6667 8C23.403 8 24 8.59695 24 9.33333C24 10.0697 23.403 10.6667 22.6667 10.6667ZM9.33333 17.3333C8.59695 17.3333 8 16.7364 8 16C8 15.2636 8.59695 14.6667 9.33333 14.6667C10.0697 14.6667 10.6667 15.2636 10.6667 16C10.6667 16.7364 10.0697 17.3333 9.33333 17.3333ZM21.3333 22.6667C21.3333 23.403 21.9303 24 22.6667 24C23.403 24 24 23.403 24 22.6667C24 21.9303 23.403 21.3333 22.6667 21.3333C21.9303 21.3333 21.3333 21.9303 21.3333 22.6667Z",fill:"white"}))}},2489:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Switch=void 0;var o=n(4522);t.Switch=function(){return(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M17.6744 9.27934L21.7563 13.3632L21.8282 13.4537L21.887 13.5492L21.9333 13.6489L21.9684 13.7556L21.9824 13.8172L21.9974 13.929L22 14L21.9897 14.1405L21.9824 14.1828L21.9535 14.2949L21.9231 14.3759L21.887 14.4508L21.8281 14.5463L21.7763 14.6137L21.7207 14.6744L17.6744 18.7207C17.3019 19.0931 16.6981 19.0931 16.3256 18.7207C15.9818 18.3769 15.9554 17.8359 16.2463 17.4617L16.3256 17.3719L18.7439 14.9536L12.9537 14.9537C12.4675 14.9537 12.0663 14.5899 12.0074 14.1196L12 14C12 13.5109 12.3682 13.1078 12.8425 13.0527L12.9537 13.0463L18.7426 13.0451L16.3256 10.6281C15.9798 10.2823 15.9551 9.73687 16.2515 9.36252L16.3256 9.27934C16.6981 8.90689 17.3019 8.90689 17.6744 9.27934ZM6.32562 5.27934C6.69807 4.90689 7.30193 4.90689 7.67438 5.27934L7.74849 5.36252C8.04493 5.73687 8.02023 6.28225 7.67438 6.6281L5.2574 9.04508L11.0463 9.04628L11.1575 9.0527C11.6318 9.10779 12 9.5109 12 10L11.9926 10.1196C11.9337 10.5899 11.5325 10.9537 11.0463 10.9537L5.25605 10.9536L7.67438 13.3719L7.75372 13.4617C8.04463 13.8359 8.01818 14.3769 7.67438 14.7207C7.30193 15.0931 6.69807 15.0931 6.32562 14.7207L2.25793 10.6523L2.18664 10.5668L2.12413 10.4708L2.07695 10.3759L2.03697 10.2639L2.01028 10.1405L2 10C2 9.95226 2.00351 9.90534 2.01036 9.85937L2.01758 9.81716L2.04651 9.70514L2.08932 9.59642L2.12415 9.52899L2.18631 9.43351L2.24369 9.36325L6.32562 5.27934Z",fill:"white"}))}},4820:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=t.IconSize=void 0;var o,r=n(4522),i=n(42),a=n(1861),s=n(3278);!function(e){e.small="small",e.medium="medium",e.large="large"}(o=t.IconSize||(t.IconSize={})),t.Icon=function(e){var t=a.Icons[e.name];return t?(0,r.h)("div",{className:i(s.iconWrapper,s[e.size])},(0,r.h)(t,null)):null},t.Icon.defaultProps={size:o.medium}},573:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(197),t),r(n(6265),t),r(n(1644),t),r(n(5454),t),r(n(172),t)},2980:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1644:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(2980),t)},1365:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BannerContainer=void 0;var i=n(4522),a=n(6502),s=n(8482),l=n(334),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(e){var t=this.props.theme,n=t.backgroundColor,o=t.blur;return(0,i.h)("div",{className:a.bannerContainerRoot,"aria-live":"polite"},(0,i.h)("div",{style:"\n                background-color:".concat(n,"; \n                backdrop-filter: blur(").concat(o,");\n             "),className:a.bannerContainer},(0,i.h)("button",{className:a.closeButton,onClick:e.onClose},(0,i.h)(s.CloseSmall,{className:a.small}),(0,i.h)(l.CloseLarge,{className:a.large})),this.props.children))},t}(i.Component);t.BannerContainer=c},334:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.CloseLarge=void 0;var r=n(4522);t.CloseLarge=function(e){return(0,r.h)("svg",o({width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,r.h)("g",{id:"Icons/32x32/Menu-Player-Close",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("path",{d:"M17.4142136,16 L22.363961,20.9497475 C22.7544853,21.3402718 22.7544853,21.9734367 22.363961,22.363961 C21.9734367,22.7544853 21.3402718,22.7544853 20.9497475,22.363961 L16,17.4142136 L11.0502525,22.363961 C10.6597282,22.7544853 10.0265633,22.7544853 9.63603897,22.363961 C9.24551468,21.9734367 9.24551468,21.3402718 9.63603897,20.9497475 L14.5857864,16 L9.63603897,11.0502525 C9.24551468,10.6597282 9.24551468,10.0265633 9.63603897,9.63603897 C10.0265633,9.24551468 10.6597282,9.24551468 11.0502525,9.63603897 L16,14.5857864 L20.9497475,9.63603897 C21.3402718,9.24551468 21.9734367,9.24551468 22.363961,9.63603897 C22.7544853,10.0265633 22.7544853,10.6597282 22.363961,11.0502525 L17.4142136,16 Z",id:"Path",fill:"#FFFFFF"})))}},8482:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.CloseSmall=void 0;var r=n(4522);t.CloseSmall=function(e){return(0,r.h)("svg",o({xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10"},e),(0,r.h)("path",{fill:"#FFF","fill-rule":"evenodd",d:"M5.956 5l3.348-3.348A.674.674 0 0 0 9.3.7a.672.672 0 0 0-.952-.004L5 4.044 1.652.696A.674.674 0 0 0 .7.7a.672.672 0 0 0-.004.952L4.044 5 .696 8.348A.674.674 0 0 0 .7 9.3c.265.266.69.266.952.004L5 5.956l3.348 3.348c.262.262.689.26.952-.004a.672.672 0 0 0 .004-.952L5.956 5z",opacity:".9"}))}},5827:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BannerContainer=void 0;var o=n(1365);Object.defineProperty(t,"BannerContainer",{enumerable:!0,get:function(){return o.BannerContainer}})},9673:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BannerManager=t.VisibilityMode=void 0;var o,r=n(7720),i=n(4522),a=n(4570),s=n(5827),l=n(7863),c=n(8853);!function(e){e.VISIBLE="VISIBLE",e.HIDDEN="HIDDEN"}(o=t.VisibilityMode||(t.VisibilityMode={}));var u={theme:{backgroundColor:"rgba(0, 0, 0, .7)",blur:"10px"}},p=function(){function e(e){this.options=e,this._floatingItem=null,this._timerSubscription=void 0,this._options=e,this._bannerConfig=(0,c.getContribConfig)(this._options.kalturaPlayer,"ui.banner",u)}return e.prototype.add=function(e){return this._floatingItem&&this.remove(),this._floatingItem=this._options.floatingManager.add({label:"Banner",mode:r.FloatingUIModes.Immediate,position:r.FloatingPositions.InteractiveArea,renderContent:this._createRenderBanner(e,{onClose:this._handleCloseEvent.bind(this),theme:this._bannerConfig.theme})}),e.autoClose&&this._startDurationTimer(e.duration),this._getState()},e.prototype.remove=function(){this._floatingItem&&(this._timerSubscription&&clearTimeout(this._timerSubscription),this._options.floatingManager.remove(this._floatingItem),this._floatingItem=null)},e.prototype.reset=function(){this.remove()},e.prototype._createRenderBanner=function(e,t){var n=e.content,o=e.renderContent,r=t.onClose,l=t.theme;return function(e){return(0,i.h)(s.BannerContainer,{onClose:r,theme:l},o?o(n,e):(0,i.h)(a.Banner,{content:n}))}},e.prototype._handleCloseEvent=function(){this.remove()},e.prototype._startDurationTimer=function(e){void 0===e&&(e=6e4),this._timerSubscription=setTimeout(this.remove.bind(this),Math.max(5e3,e))},e.prototype._getState=function(){var e=(0,l.getPlayerSize)(this._options.kalturaPlayer);return{visibilityMode:!e||e.width<480?o.HIDDEN:o.VISIBLE}},e}();t.BannerManager=p},6797:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Banner=void 0;var i=n(4522),a=n(9480),s=n(5316),l=n(6339),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(e){var t=e.content,n=t.text,o=t.title,r=void 0===o?"Audience asks:":o,s=t.icon,l=void 0===s?this._defaultIcon():s;return(0,i.h)("div",{className:a.defaultBannerRoot+" "+a.bannerWrapper},(0,i.h)("div",{className:a.iconContainer},(0,i.h)("div",{className:a.iconWrapper},l)),(0,i.h)("div",{className:a.bannerBody},(0,i.h)("div",{className:a.title},r),(0,i.h)("div",{className:a.text},n)))},t.prototype._defaultIcon=function(){return(0,i.h)("div",{className:a.iconImage},(0,i.h)(s.SomeoneAsksLarge,{className:a.large}),(0,i.h)(l.SomeoneAsksSmall,{className:a.small}))},t}(i.Component);t.Banner=c},4570:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Banner=void 0;var o=n(6797);Object.defineProperty(t,"Banner",{enumerable:!0,get:function(){return o.Banner}})},5316:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SomeoneAsksLarge=void 0;var r=n(4522);t.SomeoneAsksLarge=function(e){return(0,r.h)("svg",o({width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,r.h)("g",{id:"Icons/32/Someone-asks",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{id:"Group",transform:"translate(4.000000, 5.000000)",fill:"#B2D238"},(0,r.h)("ellipse",{id:"Oval",cx:"12",cy:"5.5",rx:"6",ry:"5.5"}),(0,r.h)("path",{d:"M12,13 C7.995,13 0,15.01 0,19 L0,20.5 C0,21.325 0.675,22 1.5,22 L22.5,22 C23.325,22 24,21.325 24,20.5 L24,19 C24,15.01 16.005,13 12,13 Z",id:"Path"}))))}},6339:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SomeoneAsksSmall=void 0;var r=n(4522);t.SomeoneAsksSmall=function(e){return(0,r.h)("svg",o({width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,r.h)("g",{id:"Icons/20/Someone-asks",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{id:"Group",transform:"translate(2.000000, 2.000000)",fill:"#B2D238"},(0,r.h)("circle",{id:"Oval",cx:"8",cy:"4",r:"4"}),(0,r.h)("path",{d:"M8,9 C5.33,9 0,10.5633333 0,13.6666667 L0,14.8333333 C0,15.475 0.45,16 1,16 L15,16 C15.55,16 16,15.475 16,14.8333333 L16,13.6666667 C16,10.5633333 10.67,9 8,9 Z",id:"Path"}))))}},6908:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContribServices=t.getPlayerContribRegistry=void 0;var o=n(8717),r=n(3199),i=n(5753),a=n(8529),s=n(9673);function l(e){return o.PlayerContribRegistry.get(e)}t.getPlayerContribRegistry=l;var c=function(){function e(e,t){var n=this;this._playerContribRegistry=e,this._options=t,this._registered=!1,this._addListeners=function(){var e=n._options.kalturaPlayer;e.addEventListener(e.Event.PLAYER_RESET,n.reset),e.addEventListener(e.Event.PLAYER_DESTROY,n._removeListeners)},this._removeListeners=function(){var e=n._options.kalturaPlayer;e.removeEventListener(e.Event.PLAYER_RESET,n.reset),e.removeEventListener(e.Event.PLAYER_DESTROY,n._removeListeners)},this.register=function(){return n._registered?[]:(n._registered=!0,n._presetManager.registerComponents())},this.reset=function(){n._toastManager.reset(),n._floatingManager.reset(),n._bannerManager.reset()},this.destroy=function(){n._registered=!1};var o=this._options.kalturaPlayer,l=new r.PresetManager({kalturaPlayer:o}),c=new a.FloatingManager({kalturaPlayer:o,presetManager:l}),u=new i.ToastManager({floatingManager:c}),p=new s.BannerManager({kalturaPlayer:o,floatingManager:c});this._toastManager=u,this._floatingManager=c,this._presetManager=l,this._bannerManager=p,this._addListeners()}return e.get=function(t){var n=l(t.kalturaPlayer);return n.register("ContribServices",(function(){return new e(n,t)}))},Object.defineProperty(e.prototype,"presetManager",{get:function(){return this._presetManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"floatingManager",{get:function(){return this._floatingManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toastManager",{get:function(){return this._toastManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bannerManager",{get:function(){return this._bannerManager},enumerable:!1,configurable:!0}),e}();t.ContribServices=c},8853:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContribConfig=void 0;var o=n(5816);t.getContribConfig=function(e,t,n,r){return o.KalturaPlayerUtils.getPlayerConfig(e,"contrib.".concat(t),n,r)}},5092:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4522);t.default=function(e,t,n){return(0,o.h)("a",{href:e,key:n,target:"_blank",rel:"noopener noreferrer"},t)}},8842:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsManager=void 0;var n=function(){function e(){this._eventListeners={},this._wildcardEventListeners=[]}return e.prototype.on=function(e,t){"*"!==e?(this._eventListeners[e]||(this._eventListeners[e]=[])).push(t):this._wildcardEventListeners.push(t)},e.prototype.off=function(e,t){if("*"!==e){var n=this._eventListeners[e];n&&n.splice(n.indexOf(t)>>>0,1)}else this._wildcardEventListeners.splice(this._wildcardEventListeners.indexOf(t)>>>0,1)},e.prototype.emit=function(e){(this._eventListeners[e.type]||[]).slice().map((function(t){t(e)})),this._wildcardEventListeners.slice().map((function(t){t(e)}))},e}();t.EventsManager=n},7720:function(e,t){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingPositions=t.FloatingUIModes=void 0,(o=t.FloatingUIModes||(t.FloatingUIModes={})).MediaLoaded="MediaLoaded",o.OnDemand="OnDemand",o.Immediate="Immediate",o.FirstPlay="FirstPlay",(n=t.FloatingPositions||(t.FloatingPositions={})).VideoArea="VideoArea",n.PresetArea="PresetArea",n.InteractiveArea="InteractiveArea"},5921:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingItem=void 0;var o=n(4522),r=n(7720),i=n(9017),a=function(){function e(e){var t=this;this._destroyed=!1,this._isShown=!1,this._componentRef=null,this.remove=function(){t._isShown=!1,t._componentRef&&t._componentRef.update()},this.add=function(){t._isShown=!0,t._componentRef&&t._componentRef.update()},this._handleMediaLoaded=function(){var e=t._options.kalturaPlayer;e.removeEventListener(e.Event.MEDIA_LOADED,t._handleMediaLoaded),t.add()},this._handleFirstPlay=function(){var e=t._options.kalturaPlayer;e.removeEventListener(e.Event.FIRST_PLAY,t._handleFirstPlay),t.add()},this._options=e,this._addPlayerBindings()}return Object.defineProperty(e.prototype,"data",{get:function(){return this._options.data},enumerable:!1,configurable:!0}),e.prototype.update=function(){this._componentRef&&this._componentRef.update()},e.prototype.destroy=function(){this._destroyed=!0,this.remove()},e.prototype.renderFloatingChild=function(e){var t=this,n=this._options.data.label;return(0,o.h)(i.ManagedComponent,{label:n,renderChildren:function(){return t._options.data.renderContent(e)},isShown:function(){return t._isShown},ref:function(e){return t._componentRef=e}})},e.prototype._addPlayerBindings=function(){var e=this._options,t=e.kalturaPlayer,n=e.data;n.mode===r.FloatingUIModes.MediaLoaded&&t.addEventListener(t.Event.MEDIA_LOADED,this._handleMediaLoaded),n.mode===r.FloatingUIModes.FirstPlay&&t.addEventListener(t.Event.FIRST_PLAY,this._handleFirstPlay),n.mode===r.FloatingUIModes.Immediate&&this.add()},e}();t.FloatingItem=a},8529:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingManager=void 0;var i=n(5921),a=n(7720),s=n(3199),l=n(4522),c=n(7863),u=n(9017),p=n(7417),_=n(8853),d={presetAreasMapping:{Playback:{VideoArea:"VideoArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea"},Live:{VideoArea:"VideoArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea"}}},h=["VideoArea","PresetArea","InteractiveArea"],A=function(){function e(e){var t,n,o=this;this._options=e,this._items=((t={})[a.FloatingPositions.VideoArea]=[],t[a.FloatingPositions.InteractiveArea]=[],t[a.FloatingPositions.PresetArea]=[],t),this._componentRef=((n={})[a.FloatingPositions.InteractiveArea]=null,n[a.FloatingPositions.VideoArea]=null,n[a.FloatingPositions.PresetArea]=null,n),this._cache={canvas:{playerSize:{width:0,height:0},videoSize:{width:0,height:0}}},this._renderItems=function(e){var t=o._getRendererProps({});return o._items[e].map((function(e){return e.renderFloatingChild(t)}))},this._renderChild=function(e){return(0,l.h)(u.ManagedComponent,{label:"floating-manager",renderChildren:function(){return o._renderItems(e)},isShown:function(){return!0},ref:function(t){return o._componentRef[e]=t}})},this._floatingConfig=(0,_.getContribConfig)(this._options.kalturaPlayer,"ui.floating",d,{explicitMerge:["presetAreasMapping"]});var r=p.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._floatingConfig.presetAreasMapping,acceptableTypes:h});Object.keys(r).forEach((function(e){o._options.presetManager.add({label:"floating-manager",presetAreas:r[e],renderChild:function(){return o._renderChild(a.FloatingPositions[e])}})})),this._addPlayerBindings(),this._updateCachedCanvas()}return e.prototype.add=function(e){var t=this._options.presetManager,n=o(o({presetManager:t},this._options),{data:e}),r=new i.FloatingItem(n);return this._items[e.position].push(r),r},e.prototype.remove=function(e){var t=this._items[e.data.position],n=t.indexOf(e);n>-1?(t[n].destroy(),t.splice(n,1)):console.warn("couldn't remove ".concat(e," since it wasn't found"))},e.prototype.reset=function(){r(r(r([],this._items.VideoArea,!0),this._items.InteractiveArea,!0),this._items.PresetArea,!0).forEach((function(e){try{e.destroy()}catch(e){console.warn(e)}})),this._items.VideoArea=[],this._items.PresetArea=[],this._items.InteractiveArea=[]},e.prototype._getRendererProps=function(e){var t=this._options.kalturaPlayer;return{currentTime:void 0!==e.currentTime?e.currentTime:1e3*t.currentTime,canvas:this._cache.canvas}},e.prototype._updateCachedCanvas=function(){this._cache.canvas={playerSize:(0,c.getPlayerSize)(this._options.kalturaPlayer),videoSize:(0,c.getVideoSize)(this._options.kalturaPlayer)}},e.prototype._updateComponents=function(){this._componentRef.InteractiveArea&&this._componentRef.InteractiveArea.update(),this._componentRef.PresetArea&&this._componentRef.PresetArea.update(),this._componentRef.VideoArea&&this._componentRef.VideoArea.update()},e.prototype._addPlayerBindings=function(){var e=this,t=this._options.kalturaPlayer;t.addEventListener(t.Event.TIME_UPDATE,(function(){e._updateComponents()})),t.addEventListener(t.Event.MEDIA_LOADED,(function(){e._updateCachedCanvas(),e._updateComponents()})),t.addEventListener(t.Event.LOADED_DATA,(function(){e._updateCachedCanvas(),e._updateComponents()})),this._options.presetManager.on(s.PresetManagerEventTypes.VideoResizeEvent,(function(){e._updateCachedCanvas(),e._updateComponents()})),this._options.presetManager.on(s.PresetManagerEventTypes.PresetResizeEvent,(function(){e._updateCachedCanvas(),e._updateComponents()}))},e}();t.FloatingManager=A},197:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkifyString=t.VisibilityMode=t.BannerManager=t.FloatingUIModes=t.FloatingPositions=t.FloatingItem=t.ToastSeverity=t.ContribServices=void 0;var o=n(6908);Object.defineProperty(t,"ContribServices",{enumerable:!0,get:function(){return o.ContribServices}});var r=n(5753);Object.defineProperty(t,"ToastSeverity",{enumerable:!0,get:function(){return r.ToastSeverity}});var i=n(5921);Object.defineProperty(t,"FloatingItem",{enumerable:!0,get:function(){return i.FloatingItem}});var a=n(7720);Object.defineProperty(t,"FloatingPositions",{enumerable:!0,get:function(){return a.FloatingPositions}}),Object.defineProperty(t,"FloatingUIModes",{enumerable:!0,get:function(){return a.FloatingUIModes}});var s=n(9673);Object.defineProperty(t,"BannerManager",{enumerable:!0,get:function(){return s.BannerManager}}),Object.defineProperty(t,"VisibilityMode",{enumerable:!0,get:function(){return s.VisibilityMode}});var l=n(8849);Object.defineProperty(t,"LinkifyString",{enumerable:!0,get:function(){return l.LinkifyString}})},5161:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InjectedComponent=void 0;var o=n(413);Object.defineProperty(t,"InjectedComponent",{enumerable:!0,get:function(){return o.InjectedComponent}})},413:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InjectedComponent=void 0;var i=n(4522),a=n(4367),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._root=null,t}return r(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.componentDidMount=function(){var e=this.props,t=e.onCreate;if(e.label,t){var n=this._root;n&&t({parent:n})}},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.onDestroy,n=(e.label,this._root);n&&t&&t({parent:n})},t.prototype.render=function(){var e=this,t=this.props,n=t.label,o=t.fillContainer?a.fillContainer:"";return(0,i.h)("div",{"data-contrib-injected":n,className:o,ref:function(t){return e._root=t}})},t}(i.Component);t.InjectedComponent=s},5816:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaPlayerUtils=void 0;var o=n(9442),r=function(){function e(){}return e.getPlayerConfig=function(e,t,n,r){var i=o.ObjectUtils.get(e.config,t,{});return o.ObjectUtils.mergeDefaults(i,n,r)},e}();t.KalturaPlayerUtils=r},8849:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LinkifyString=void 0;var i=n(4522),a=n(3708),s=n(5092),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._linkify=new a,t}return r(t,e),t.prototype._parseString=function(e){var t=this;if(0===(e||"").trim().length)return"";var n=this._linkify.match(e);if(!n)return e;var o=[],r=0;return n.forEach((function(n,i){n.index>r&&o.push(e.substring(r,n.index));var a=n.url,s=n.text,l=t.props.componentRenderer(a,s,i);o.push(l),r=n.lastIndex})),e.length>r&&o.push(e.substring(r)),1===o.length?o[0]:o},t.prototype.render=function(){return(0,i.h)("span",null,this._parseString(this.props.text))},t.defaultProps={componentRenderer:s.default},t}(i.Component);t.LinkifyString=l},9017:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(3692),t)},3692:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ManagedComponent=void 0;var a=n(4522),s=n(4022),l=KalturaPlayer.ui.redux.connect,c=function(e){return{playerSize:e.shell.playerSize}},u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.update=function(){this.setState((function(e){return{toggler:!e.toggler}}))},t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.updateOnPlayerSizeChanged,o=t.playerSize;return n&&e.playerSize!==o||e.playerSize===o},t.prototype.componentDidMount=function(){this.setState({toggler:!1})},t.prototype.render=function(){var e=this.props,t=e.fillContainer,n=e.isShown,o=e.playerSize;return n()?(0,a.h)("div",{"data-contrib-item":this.props.label,className:"".concat(t?s.fillContainer:"")},this.props.renderChildren(o)):null},t.defaultProps={fillContainer:!1},i([l(c,null,null,{forwardRef:!0})],t)}(a.Component);t.ManagedComponent=u},9442:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUtils=void 0;var o=function(){function e(){}return e.copyDeep=function(t){var n;return Array.isArray(t)?(n=t.length>0?t.slice(0):[]).forEach((function(t,o){("object"==typeof t&&t!=={}||Array.isArray(t)&&t.length>0)&&(n[o]=e.copyDeep(t))})):"object"==typeof t?(n=Object.assign({},t),Object.keys(n).forEach((function(t){("object"==typeof n[t]&&n[t]!=={}||Array.isArray(n[t])&&n[t].length>0)&&(n[t]=e.copyDeep(n[t]))}))):n=t,n},e.isObject=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},e.mergeDeep=function(t,n,o){var r,i;if(!n.length)return t;var a=(o?o.explicitMerge:null)||[],s=n.shift();if(e.isObject(t)&&e.isObject(s))for(var l in s)e.isObject(s[l])?(t[l]||Object.assign(t,((r={})[l]={},r)),-1!==a.indexOf(l)?t[l]=e.explicitFlatMerge(t[l],s[l]):e.mergeDeep(t[l],[s[l]],o)):Object.assign(t,((i={})[l]=s[l],i));return e.mergeDeep(t,n,o)},e.mergeDefaults=function(t,n,o){return e.mergeDeep({},[n,t],o)},e.explicitFlatMerge=function(e,t){var o=n({},e);return Object.keys(t).forEach((function(e){null===t[e]||0===Object.keys(t[e]).length?delete o[e]:o[e]=t[e]})),o},e.get=function(e,t,n){for(var o=function(e){var t=[];return e.split(".").forEach((function(e){e.split(/\[([^}]+)\]/g).forEach((function(e){e.length>0&&t.push(e)}))})),t}(t),r=e,i=0;i<o.length;i++){if(!r[o[i]])return n;r=r[o[i]]}return r},e}();t.ObjectUtils=o},8717:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerContribRegistry=void 0;var n=function(){function e(){this._cache={}}return e.get=function(t){return t.__contrib__=t.__contrib__||{},t.__contrib__.services=t.__contrib__.services||new e,t.__contrib__.services},e.prototype.get=function(e){var t=this._cache[e];if(!t)throw new Error("cannot find resource with token ".concat(e));return t},e.prototype.register=function(e,t){var n=this._cache[e];return n||(n=this._cache[e]={instance:t()}),n.instance},e}();t.PlayerContribRegistry=n},7863:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVideoSize=t.getPlayerSize=void 0,t.getPlayerSize=function(e){return e?e.dimensions:{width:0,height:0}},t.getVideoSize=function(e){if(!e)return{width:0,height:0};var t=e.getActiveTracks().video;return t&&void 0!==t.width&&void 0!==t.height?{width:t.width,height:t.height}:e.getVideoElement()?{width:e.getVideoElement().videoWidth,height:e.getVideoElement().videoHeight}:{width:0,height:0}}},6109:function(e,t){"use strict";var n,o,r;Object.defineProperty(t,"__esModule",{value:!0}),t.RelativeToTypes=t.ReservedPresetAreas=t.ReservedPresetNames=void 0,(r=t.ReservedPresetNames||(t.ReservedPresetNames={})).Playback="Playback",r.Live="Live",(o=t.ReservedPresetAreas||(t.ReservedPresetAreas={})).PresetFloating="PresetFloating",o.BottomBarLeftControls="BottomBarLeftControls",o.BottomBarRightControls="BottomBarRightControls",o.TopBarLeftControls="TopBarLeftControls",o.TopBarRightControls="TopBarRightControls",o.SidePanelTop="SidePanelTop",o.SidePanelLeft="SidePanelLeft",o.SidePanelRight="SidePanelRight",o.SidePanelBottom="SidePanelBottom",o.PresetArea="PresetArea",o.InteractiveArea="InteractiveArea",o.PlayerArea="PlayerArea",o.VideoArea="VideoArea",(n=t.RelativeToTypes||(t.RelativeToTypes={})).Before="Before",n.After="After",n.Replace="Replace"},6513:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetItem=void 0;var o=n(4522),r=n(6109),i=n(5161),a=function(){function e(e){var t=this;this._render=function(){if(t._options.data.isolateComponent){var e=t._options.data,n=e.label,r=e.fillContainer;return(0,o.h)(i.InjectedComponent,{label:n,fillContainer:r||!1,onCreate:t._onCreate,onDestroy:t._onDestroy})}return t._options.data.renderChild()},this._onDestroy=function(e){e.parent&&(0,o.render)(null,e.parent)},this._onCreate=function(e){try{if(!e.parent)return;var n=t._options.data.renderChild();if(!n)return;(0,o.render)(n,e.parent)}catch(e){}},this._options=e}return Object.defineProperty(e.prototype,"playerConfig",{get:function(){var e=[];for(var t in this._options.data.presetAreas){var n=this._options.data.presetAreas[t],o=this._options.data.relativeTo;if(n){var i={label:this._options.data.label,presets:[t],container:n,get:this._render};if(o)switch(o.type){case r.RelativeToTypes.After:i.afterComponent=o.name;break;case r.RelativeToTypes.Before:i.beforeComponent=o.name;break;case r.RelativeToTypes.Replace:i.replaceComponent=o.name}e.push(i)}}return e},enumerable:!1,configurable:!0}),e}();t.PresetItem=a},3199:function(e,t,n){"use strict";var o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PresetManager=t.PresetManagerEventTypes=void 0;var r,i=n(4522),a=n(6513),s=n(8842),l=n(6227),c=n(7417),u=n(8853);!function(e){e.PresetResizeEvent="PresetResizeEvent",e.VideoResizeEvent="VideoResizeEvent"}(r=t.PresetManagerEventTypes||(t.PresetManagerEventTypes={}));var p=["PlayerArea"],_={presetAreasMapping:{Playback:{PlayerArea:"PlayerArea"},Live:{PlayerArea:"PlayerArea"}}},d=function(){function e(e){var t=this;this._events=new s.EventsManager,this._isLocked=!1,this._items=[],this._pendingItems=[],this._registerToPlayer=function(e){e.addEventListener(KalturaPlayer.ui.EventType.UI_PRESET_RESIZE,t._notifyUIPresetResize),e.addEventListener(KalturaPlayer.ui.EventType.VIDEO_RESIZE,t._notifyVideoResize)},this._notifyVideoResize=function(){t._events.emit({type:r.VideoResizeEvent})},this._notifyUIPresetResize=function(){t._events.emit({type:r.PresetResizeEvent})},this._unregisterToPlayer=function(e){e.removeEventListener(KalturaPlayer.ui.EventType.UI_PRESET_RESIZE,t._notifyUIPresetResize),e.removeEventListener(KalturaPlayer.ui.EventType.VIDEO_RESIZE,t._notifyVideoResize)},this.on=this._events.on.bind(this._events),this.off=this._events.off.bind(this._events),this._options=e,this._presetConfig=(0,u.getContribConfig)(this._options.kalturaPlayer,"ui.preset",_,{explicitMerge:["presetAreasMapping"]});var n=c.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._presetConfig.presetAreasMapping,acceptableTypes:p});this.add({label:"preset-manager",presetAreas:n.PlayerArea,renderChild:function(){return(0,i.h)(l.UIPlayerAdapter,{onMount:t._registerToPlayer,onUnmount:t._unregisterToPlayer})}})}return e.prototype.add=function(e){if(this._isLocked)return console.warn("cannot add new preset items once player completed its' setup phase"),null;var t=new a.PresetItem({kalturaPlayer:this._options.kalturaPlayer,data:e});this._pendingItems.push(t)},e.prototype.lockManager=function(){this._isLocked=!0},e.prototype.registerComponents=function(){var e=[];return this._pendingItems.forEach((function(t){e=o(o([],e,!0),t.playerConfig,!0)})),this._items=o(o([],this._items,!0),this._pendingItems,!0),this._pendingItems=[],e.filter(Boolean)},e}();t.PresetManager=d},7417:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetsUtils=void 0;var n=function(){function e(){}return e.groupPresetAreasByType=function(e){var t=e.presetAreasMapping,n=e.acceptableTypes,o={};return n.forEach((function(e){return o[e]={}})),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(r){-1===n.indexOf(r)||(o[r][e]=t[e][r])}))})),o},e}();t.PresetsUtils=n},5753:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ToastManager=t.ToastSeverity=void 0;var i,a=n(4144),s=n(7720),l=n(4617),c=n(4522);(i=t.ToastSeverity||(t.ToastSeverity={})).Info="Info",i.Success="Success",i.Warn="Warn",i.Error="Error";var u=function(){function e(e){var t=this;this.options=e,this._toasts=[],this._floatingItem=null,this._remove=function(e){var n=t._findToastIndexById(e);-1!==n&&(clearTimeout(t._toasts[n].timerSubscription),t._toasts.splice(n,1),t._updateToastsUI(),0===t._toasts.length&&t._removeToastsContainer())},this._options=e}return e.prototype.add=function(e){var t=e.duration,n=r(e,["duration"]);this._floatingItem||this._addToastsContainer();var i={toastProps:o(o({},n),{id:a.UUID.uuidV1(),onClose:this._remove}),duration:t,timerSubscription:null};this._toasts.push(i),this._updateToastsUI(),this._startDurationTimer(i)},e.prototype.reset=function(){var e=this;this._toasts.forEach((function(t){e._remove(t.toastProps.id)}))},e.prototype._startDurationTimer=function(e){var t=this;e.timerSubscription=setTimeout((function(){t._remove(e.toastProps.id)}),e.duration)},e.prototype._addToastsContainer=function(){var e=this;this._floatingItem=this._options.floatingManager.add({label:"Toasts",mode:s.FloatingUIModes.Immediate,position:s.FloatingPositions.InteractiveArea,renderContent:function(){return(0,c.h)(l.ToastsContainer,{toasts:e._toasts.map((function(e){return e.toastProps}))})}})},e.prototype._removeToastsContainer=function(){this._floatingItem&&(this._options.floatingManager.remove(this._floatingItem),this._floatingItem=null)},e.prototype._updateToastsUI=function(){this._floatingItem&&this._floatingItem.update()},e.prototype._findToastIndexById=function(e){for(var t=0;t<this._toasts.length;){if(this._toasts[t].toastProps.id===e)return t;t++}return-1},e}();t.ToastManager=u},1569:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;var o=n(4522);t.CloseIcon=function(){return(0,o.h)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},(0,o.h)("g",{id:"Icons/16/Close",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,o.h)("path",{d:"M8.8497789,8 L11.824005,10.9742261 C12.058665,11.2088861 12.058665,11.5893451 11.824005,11.824005 C11.5893451,12.058665 11.2088861,12.058665 10.9742261,11.824005 L8,8.8497789 L5.02577387,11.824005 C4.7911139,12.058665 4.41065493,12.058665 4.17599497,11.824005 C3.94133501,11.5893451 3.94133501,11.2088861 4.17599497,10.9742261 L7.1502211,8 L4.17599497,5.02577387 C3.94133501,4.7911139 3.94133501,4.41065493 4.17599497,4.17599497 C4.41065493,3.94133501 4.7911139,3.94133501 5.02577387,4.17599497 L8,7.1502211 L10.9742261,4.17599497 C11.2088861,3.94133501 11.5893451,3.94133501 11.824005,4.17599497 C12.058665,4.41065493 12.058665,4.7911139 11.824005,5.02577387 L8.8497789,8 Z",id:"Path",fill:"#cccccc"})))}},3810:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Toast=void 0;var i=n(4522),a=n(181),s=n(5753),l=n(1569),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isShown:!0},t._onClick=function(e){t.props.onClick(),t._onClose(e)},t._onClose=function(e){e.stopPropagation(),t.setState({isShown:!1}),t.props.onClose(t.props.id)},t}return r(t,e),t.prototype._getToastSeverityClass=function(){switch(this.props.severity){case s.ToastSeverity.Success:return a.successToast;case s.ToastSeverity.Warn:return a.warnToast;case s.ToastSeverity.Error:return a.errorToast;default:return a.infoToast}},t.prototype.render=function(){var e=this.props,t=e.text,n=e.title,o=e.icon;return(0,i.h)("div",{className:a.toastWrapper+" "+this._getToastSeverityClass(),onClick:this._onClick},(0,i.h)("button",{className:a.closeButton,onClick:this._onClose},(0,i.h)(l.CloseIcon,null)),(0,i.h)("div",{className:a.title},n),(0,i.h)("div",{className:a.toastBody},(0,i.h)("div",{className:a.iconContainer},(0,i.h)("div",{className:a.iconWrapper},o)),(0,i.h)("div",{className:a.text},t)))},t}(i.Component);t.Toast=c},4617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToastsContainer=void 0;var o=n(7371);Object.defineProperty(t,"ToastsContainer",{enumerable:!0,get:function(){return o.ToastsContainer}})},7371:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ToastsContainer=void 0;var a=n(4522),s=n(3810),l=n(5579),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return(0,a.h)("div",{className:l.toastsContainer,"aria-live":"polite"},this.props.toasts.map((function(e){return(0,a.h)("div",{className:l.toastRow,key:e.id},(0,a.h)(s.Toast,i({},e)))})))},t}(a.Component);t.ToastsContainer=c},6227:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(9873),t)},9873:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.UIPlayerAdapter=void 0;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.componentDidMount=function(){this.props.onMount(this.props.player)},t.prototype.componentWillUnmount=function(){this.props.onUnmount(this.props.player)},t.prototype.render=function(e){return null},t.defaultProps={player:null},i([KalturaPlayer.ui.components.withPlayer],t)}(n(4522).Component);t.UIPlayerAdapter=a},4144:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UUID=void 0;var n=function(){function e(){}return e.uuidV1=function(){return"".concat(Date.now(),"-").concat(Math.random())},e}();t.UUID=n},1123:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsManager=void 0;var n=function(){function e(){this._eventListeners={},this._wildcardEventListeners=[]}return e.prototype.on=function(e,t){"*"!==e?(this._eventListeners[e]||(this._eventListeners[e]=[])).push(t):this._wildcardEventListeners.push(t)},e.prototype.off=function(e,t){if("*"!==e){var n=this._eventListeners[e];n&&n.splice(n.indexOf(t)>>>0,1)}else this._wildcardEventListeners.splice(this._wildcardEventListeners.indexOf(t)>>>0,1)},e.prototype.emit=function(e){(this._eventListeners[e.type]||[]).slice().map((function(t){t(e)})),this._wildcardEventListeners.slice().map((function(t){t(e)}))},e}();t.EventsManager=n},6265:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(1123),t),r(n(4300),t)},4300:function(e,t){"use strict";function n(){return"undefined"==typeof Storage?o():((e=localStorage.getItem("anonymousUserId"))||(e=o(),localStorage.setItem("anonymousUserId",e)),e);var e}function o(){return"##".concat("Guest").concat("HashSeparator").concat(function(){for(var e=(0,t.generateId)(),n="",o=0;o<e.length;o++){var r=e.charAt(o);n+=Number.isNaN(+r)?r.charCodeAt(0):r}return n}(),"##")}Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=t.getQnaUserId=t.getUserId=t.generateId=void 0,t.generateId=function(){return(new Date).getTime().toString(36)+Math.random().toString(36).slice(2)},t.getUserId=n,t.getQnaUserId=function(e){var t,o,r,i,a=e,s=a.config,l=a.plugins,c=(null==s?void 0:s.session)||{},u=(null===(o=null===(t=null==l?void 0:l.qna)||void 0===t?void 0:t.config)||void 0===o?void 0:o.userRole)||c.userRole;return u&&"anonymousRole"!==u?(null===(i=null===(r=null==l?void 0:l.qna)||void 0===r?void 0:r.config)||void 0===i?void 0:i.userId)||c.userId:n()},t.debounce=function(e,t,n){var o;return void 0===t&&(t=50),void 0===n&&(n={isImmediate:!1}),function(){for(var r=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=function(){o=void 0,n.isImmediate||e.apply(r,i)},l=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout(s,t),l&&e.apply(this,i)}}},42:function(e,t){var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)o.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},6298:function(e,t,n){"use strict";n.r(t);var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,".Button__button___NM3Vl{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;font-weight:700;border:1px solid rgba(0,0,0,0);border-radius:4px;cursor:pointer}.Button__button___NM3Vl.Button__primary___vkWyL{background-color:var(--playkit-primary-color);color:var(--playkit-primary-text-contrast-color)}.Button__button___NM3Vl.Button__primary___vkWyL:not(.Button__disabled___j4KjS):hover{background-color:var(--playkit-primary-darker-color)}.Button__button___NM3Vl.Button__primary___vkWyL:not(.Button__disabled___j4KjS):focus{background-color:var(--playkit-primary-brighter-color)}.Button__button___NM3Vl.Button__danger___lCKPq{background-color:var(--playkit-danger-color);color:var(--playkit-danger-text-contrast-color)}.Button__button___NM3Vl.Button__danger___lCKPq:not(.Button__disabled___j4KjS):hover{background-color:var(--playkit-danger-darker-color)}.Button__button___NM3Vl.Button__danger___lCKPq:not(.Button__disabled___j4KjS):focus{background-color:var(--playkit-danger-brighter-color)}.Button__button___NM3Vl.Button__translucent___nSc5h{background-color:rgba(0,0,0,.6);color:var(--playkit-primary-text-contrast-color)}.Button__button___NM3Vl.Button__borderless___sov7o{background-color:rgba(0,0,0,0);color:var(--playkit-tone-1-color)}.Button__button___NM3Vl.Button__borderless___sov7o:not(.Button__disabled___j4KjS):hover{background-color:var(--playkit-tone-4-color)}.Button__button___NM3Vl.Button__borderless___sov7o:not(.Button__disabled___j4KjS):focus{background-color:var(--playkit-tone-6-color)}.Button__button___NM3Vl.Button__small____SSTu{height:24px;font-size:13px;line-height:16px;padding:0 4px}.Button__button___NM3Vl.Button__small____SSTu.Button__withIcon___c3vxV{padding-right:8px}.Button__button___NM3Vl.Button__small____SSTu.Button__withIcon___c3vxV>span{margin-left:2px}.Button__button___NM3Vl.Button__small____SSTu.Button__iconOnly___dISNi{padding:0 3px}.Button__button___NM3Vl.Button__medium___psqY1{height:32px;font-size:14px;line-height:17px;padding:0 8px}.Button__button___NM3Vl.Button__medium___psqY1.Button__withIcon___c3vxV{padding-right:12px}.Button__button___NM3Vl.Button__medium___psqY1.Button__withIcon___c3vxV>span{margin-left:4px}.Button__button___NM3Vl.Button__medium___psqY1.Button__iconOnly___dISNi{padding:0 3px}.Button__button___NM3Vl.Button__large___ftsNW{height:40px;font-size:16px;line-height:19px;padding:0 16px}.Button__button___NM3Vl.Button__large___ftsNW.Button__withIcon___c3vxV{padding-left:12px}.Button__button___NM3Vl.Button__large___ftsNW.Button__withIcon___c3vxV>span{margin-left:4px}.Button__button___NM3Vl.Button__large___ftsNW.Button__iconOnly___dISNi{padding:0 3px}.Button__button___NM3Vl.Button__disabled___j4KjS{background-color:rgba(0,0,0,0);color:var(--playkit-tone-4-color);border-color:var(--playkit-tone-4-color);cursor:default}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/components/button/Button.scss","webpack://./../node_modules/@playkit-js/common/dist/components/variables.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAGA,wBACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,gBAAA,CACA,eAAA,CACA,8BAAA,CACA,iBCPY,CDQZ,cAAA,CACA,gDACE,6CEVY,CFWZ,gDER0B,CFUxB,qFACE,oDEbe,CFejB,qFACE,sDEfiB,CFmBvB,+CACE,4CENW,CFOX,+CEJyB,CFMvB,oFACE,mDETc,CFWhB,oFACE,qDEXgB,CFetB,oDACE,+BAAA,CACA,gDEhC0B,CFkC5B,mDACE,8BAAA,CACA,iCEZW,CFcT,wFACE,4CEZO,CFcT,wFACE,4CEbO,CFiBb,8CACE,WAAA,CACA,cAAA,CACA,gBAAA,CACA,aAAA,CACA,uEACE,iBAAA,CACA,4EACE,eAAA,CAGJ,uEACE,aAAA,CAGJ,+CACE,WAAA,CACA,cAAA,CACA,gBAAA,CACA,aAAA,CACA,wEACE,kBAAA,CACA,6EACE,eAAA,CAGJ,wEACE,aAAA,CAGJ,8CACE,WAAA,CACA,cAAA,CACA,gBAAA,CACA,cAAA,CACA,uEACE,iBAAA,CACA,4EACE,eAAA,CAGJ,uEACE,aAAA,CAGJ,iDACE,8BAAA,CACA,iCElEW,CFmEX,wCEnEW,CFoEX,cAAA",sourcesContent:["@import '../variables.scss';\n\n// https://www.figma.com/file/GYMv1jsthckOnKmCrdQJY3/%E2%8F%AF-Player-v7-(Guidelines)?node-id=21%3A1943&t=ywdMo875C6kzd7pN-0\n.button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-wrap: nowrap;\n  font-weight: 700;\n  border: 1px solid transparent;\n  border-radius: $roundness-1;\n  cursor: pointer;\n  &.primary {\n    background-color: $primary-color;\n    color: $primary-text-contrast-color;\n    &:not(.disabled) {\n      &:hover {\n        background-color: $primary-darker-color;\n      }\n      &:focus {\n        background-color: $primary-brighter-color;\n      }\n    }\n  }\n  &.danger {\n    background-color: $danger-color;\n    color: $danger-text-contrast-color;\n    &:not(.disabled) {\n      &:hover {\n        background-color: $danger-darker-color;\n      }\n      &:focus {\n        background-color: $danger-brighter-color;\n      }\n    }\n  }\n  &.translucent {\n    background-color: rgba(0, 0, 0, 0.6);\n    color: $primary-text-contrast-color;\n  }\n  &.borderless {\n    background-color: transparent;\n    color: $tone-1-color;\n    &:not(.disabled) {\n      &:hover {\n        background-color: $tone-4-color;\n      }\n      &:focus {\n        background-color: $tone-6-color;\n      }\n    }\n  }\n  &.small {\n    height: 24px;\n    font-size: 13px;\n    line-height: 16px;\n    padding: 0 4px;\n    &.withIcon {\n      padding-right: 8px;\n      > span {\n        margin-left: 2px;\n      }\n    }\n    &.iconOnly {\n      padding: 0 3px;\n    }\n  }\n  &.medium {\n    height: 32px;\n    font-size: 14px;\n    line-height: 17px;\n    padding: 0 8px;\n    &.withIcon {\n      padding-right: 12px;\n      > span {\n        margin-left: 4px;\n      }\n    }\n    &.iconOnly {\n      padding: 0 3px;\n    }\n  }\n  &.large {\n    height: 40px;\n    font-size: 16px;\n    line-height: 19px;\n    padding: 0 16px;\n    &.withIcon {\n      padding-left: 12px;\n      > span {\n        margin-left: 4px;\n      }\n    }\n    &.iconOnly {\n      padding: 0 3px;\n    }\n  }\n  &.disabled {\n    background-color: transparent;\n    color: $tone-4-color;\n    border-color: $tone-4-color;\n    cursor: default;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n\n// colors\n$white: #ffffff;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={button:"Button__button___NM3Vl",primary:"Button__primary___vkWyL",disabled:"Button__disabled___j4KjS",danger:"Button__danger___lCKPq",translucent:"Button__translucent___nSc5h",borderless:"Button__borderless___sov7o",small:"Button__small____SSTu",withIcon:"Button__withIcon___c3vxV",iconOnly:"Button__iconOnly___dISNi",medium:"Button__medium___psqY1",large:"Button__large___ftsNW"},t.default=a},2707:function(e,t,n){"use strict";n.r(t);var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,".InputField__input-field-wrapper___K1QeS{display:flex;align-items:center;flex-grow:1;width:100%;max-width:599px;padding-right:8px;height:32px;border:solid 1px rgba(255,255,255,.4);border-radius:4px}.InputField__input-field-wrapper___K1QeS ::-moz-placeholder{opacity:1}.InputField__input-field-wrapper___K1QeS .InputField__search-results___PBRGr{display:flex;justify-content:flex-end;align-items:center;flex-shrink:0;margin:0 8px 0 6px;font-size:12px;text-overflow:ellipsis}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA{display:flex;flex-direction:column;justify-content:space-around;max-height:100%;height:100%;width:8px;flex:0 0 8px}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA .InputField__prev-next-button___HP7Me{display:flex;align-items:center;height:50%;padding:0;background-color:rgba(0,0,0,0);border:none;cursor:pointer}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA .InputField__prev-next-button___HP7Me.InputField__disabled___GVLcH{opacity:.4;cursor:default}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE{width:100%;flex-grow:1;flex-shrink:1;font-size:15px;padding:0 6px 1px 6px;color:var(--playkit-tone-1-color);background:rgba(0,0,0,0);border:none;overflow:hidden;text-overflow:ellipsis}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE::placeholder{color:var(--playkit-tone-2-color)}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE::selection{background-color:var(--playkit-primary-brighter-color)}.InputField__input-field-wrapper___K1QeS .InputField__clear-icon___eTi3X{padding:0;flex:0 0 12px;max-width:12px;max-height:12px;background-color:rgba(0,0,0,0);width:12px;height:12px;outline-offset:4px;border:none;cursor:pointer}.InputField__input-field-wrapper___K1QeS:hover{border-color:#fff}.InputField__input-field-wrapper___K1QeS.InputField__active____D1qS{color:var(--playkit-tone-2-color);background:var(--playkit-tone-8-color);border-color:#fff}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/components/input-field/InputField.scss","webpack://./../node_modules/@playkit-js/common/dist/components/variables.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,yCAKE,YAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,eAAA,CACA,iBAAA,CACA,WAAA,CACA,qCAAA,CACA,iBCZY,CAAA,4DDCV,SAAA,CAYF,6EACE,YAAA,CACA,wBAAA,CACA,kBAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,sBAAA,CAEF,gFACE,YAAA,CACA,qBAAA,CACA,4BAAA,CACA,eAAA,CACA,WAAA,CACA,SAAA,CACA,YAAA,CACA,sHACE,YAAA,CACA,kBAAA,CACA,UAAA,CACA,SAAA,CACA,8BAAA,CACA,WAAA,CACA,cAAA,CACA,mJACE,UAAA,CACA,cAAA,CAIN,4EACE,UAAA,CACA,WAAA,CACA,aAAA,CACA,cAAA,CACA,qBAAA,CACA,iCEvBW,CFwBX,wBAAA,CACA,WAAA,CACA,eAAA,CACA,sBAAA,CACA,yFACE,iCE5BS,CF8BX,uFACE,sDEzDmB,CF4DvB,yEACE,SAAA,CACA,aAAA,CACA,cAAA,CACA,eAAA,CACA,8BAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,WAAA,CACA,cAAA,CAEF,+CACE,iBCvEI,CDyEN,oEACE,iCElDW,CFmDX,sCE7CW,CF8CX,iBC5EI",sourcesContent:["@import '../variables.scss';\n\n.input-field-wrapper {\n  ::-moz-placeholder {\n    opacity: 1;\n  }\n\n  display: flex;\n  align-items: center;\n  flex-grow: 1;\n  width: 100%;\n  max-width: 599px;\n  padding-right: 8px;\n  height: 32px;\n  border: solid 1px rgba(255, 255, 255, 0.4);\n  border-radius: $roundness-1;\n  .search-results {\n    display: flex;\n    justify-content: flex-end;\n    align-items: center;\n    flex-shrink: 0;\n    margin: 0 8px 0 6px;\n    font-size: 12px;\n    text-overflow: ellipsis;\n  }\n  .prev-next-wrapper {\n    display: flex;\n    flex-direction: column;\n    justify-content: space-around;\n    max-height: 100%;\n    height: 100%;\n    width: 8px;\n    flex: 0 0 8px;\n    .prev-next-button {\n      display: flex;\n      align-items: center;\n      height: 50%;\n      padding: 0;\n      background-color: transparent;\n      border: none;\n      cursor: pointer;\n      &.disabled {\n        opacity: 0.4;\n        cursor: default;\n      }\n    }\n  }\n  .input-element {\n    width: 100%;\n    flex-grow: 1;\n    flex-shrink: 1;\n    font-size: 15px;\n    padding: 0 6px 1px 6px;\n    color: $tone-1-color;\n    background: transparent;\n    border: none;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    &::placeholder {\n      color: $tone-2-color;\n    }\n    &::selection {\n      background-color: $primary-brighter-color;\n    }\n  }\n  .clear-icon {\n    padding: 0;\n    flex: 0 0 12px;\n    max-width: 12px;\n    max-height: 12px;\n    background-color: transparent;\n    width: 12px;\n    height: 12px;\n    outline-offset: 4px;\n    border: none;\n    cursor: pointer;\n  }\n  &:hover {\n    border-color: $white;\n  }\n  &.active {\n    color: $tone-2-color;\n    background: $tone-8-color;\n    border-color: $white;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n\n// colors\n$white: #ffffff;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={"input-field-wrapper":"InputField__input-field-wrapper___K1QeS",inputFieldWrapper:"InputField__input-field-wrapper___K1QeS","search-results":"InputField__search-results___PBRGr",searchResults:"InputField__search-results___PBRGr","prev-next-wrapper":"InputField__prev-next-wrapper___zAxBA",prevNextWrapper:"InputField__prev-next-wrapper___zAxBA","prev-next-button":"InputField__prev-next-button___HP7Me",prevNextButton:"InputField__prev-next-button___HP7Me",disabled:"InputField__disabled___GVLcH","input-element":"InputField__input-element___BAphE",inputElement:"InputField__input-element___BAphE","clear-icon":"InputField__clear-icon___eTi3X",clearIcon:"InputField__clear-icon___eTi3X",active:"InputField__active____D1qS"},t.default=a},3861:function(e,t,n){"use strict";n.r(t);var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,".sr-wrapper__sr-wrapper___GwVLr{position:absolute;height:1px;width:1px;overflow:hidden;padding:0;margin:-1px;border:0}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/hoc/sr-wrapper/sr-wrapper.scss"],names:[],mappings:"AAAA,gCACE,iBAAA,CACA,UAAA,CACA,SAAA,CACA,eAAA,CACA,SAAA,CACA,WAAA,CACA,QAAA",sourcesContent:[".sr-wrapper {\n  position: absolute;\n  height: 1px;\n  width: 1px;\n  overflow: hidden;\n  padding: 0;\n  margin: -1px;\n  border: 0;\n}"],sourceRoot:""}]),a.locals={"sr-wrapper":"sr-wrapper__sr-wrapper___GwVLr",srWrapper:"sr-wrapper__sr-wrapper___GwVLr"},t.default=a},6469:function(e,t,n){"use strict";n.r(t);var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,".icon__iconWrapper___O5uqn.icon__small___IddLg{width:16px;height:16px}.icon__iconWrapper___O5uqn.icon__medium___llFxB{width:24px;height:24px}.icon__iconWrapper___O5uqn.icon__large___Q96VN{width:32px;height:32px}.icon__iconWrapper___O5uqn>svg{width:100%;height:100%}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/icon/icon.scss"],names:[],mappings:"AACE,+CACE,UAAA,CACA,WAAA,CAEF,gDACE,UAAA,CACA,WAAA,CAEF,+CACE,UAAA,CACA,WAAA,CAEF,+BACE,UAAA,CACA,WAAA",sourcesContent:[".iconWrapper {\n  &.small {\n    width: 16px;\n    height: 16px;\n  }\n  &.medium {\n    width: 24px;\n    height: 24px;\n  }\n  &.large {\n    width: 32px;\n    height: 32px;\n  }\n  > svg {\n    width: 100%;\n    height: 100%;\n  }\n}\n"],sourceRoot:""}]),a.locals={iconWrapper:"icon__iconWrapper___O5uqn",small:"icon__small___IddLg",medium:"icon__medium___llFxB",large:"icon__large___Q96VN"},t.default=a},5588:function(e,t,n){"use strict";n.r(t);var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,"._banner-container__bannerContainerRoot___xakgR{position:absolute;max-width:100%;min-width:270px;padding:0 16px 8px;height:88px;bottom:0;left:0;transition:all .5s ease}._banner-container__bannerContainer___Qm02i{position:relative;width:100%;height:100%;border-radius:4px;transition:all .5s ease}._banner-container__closeButton___WVWto{position:absolute;background-color:rgba(0,0,0,0);padding:0;border:none;top:0;right:0;width:32px;height:32px;padding:0}._banner-container__closeButton___WVWto ._banner-container__small___Tgp11{display:none}._banner-container__closeButton___WVWto:hover,._banner-container__closeButton___WVWto:active{cursor:pointer}.playkit-size-md ._banner-container__bannerContainerRoot___xakgR{height:68px;min-width:230px}.playkit-size-md ._banner-container__closeButton___WVWto{top:8px;right:8px;width:10px;height:10px}.playkit-size-md ._banner-container__closeButton___WVWto ._banner-container__large___aw4QR{display:none}.playkit-size-md ._banner-container__closeButton___WVWto ._banner-container__small___Tgp11{display:block}.playkit-size-sm ._banner-container__bannerContainerRoot___xakgR,.playkit-size-xs ._banner-container__bannerContainerRoot___xakgR,.playkit-size-ty ._banner-container__bannerContainerRoot___xakgR{display:none;width:0;height:0}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/banner-container/_banner-container.scss"],names:[],mappings:"AAAA,gDACE,iBAAA,CACA,cAAA,CACA,eAAA,CACA,kBAAA,CACA,WAAA,CACA,QAAA,CACA,MAAA,CACA,uBAAA,CAGF,4CACE,iBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,uBAAA,CAGF,wCACE,iBAAA,CACA,8BAAA,CACA,SAAA,CACA,WAAA,CACA,KAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,SAAA,CACA,0EACE,YAAA,CAIJ,6FAEE,cAAA,CAMI,iEACE,WAAA,CACA,eAAA,CAEF,yDACE,OAAA,CACA,SAAA,CACA,UAAA,CACA,WAAA,CACA,2FACE,YAAA,CAEF,2FACE,aAAA,CAWN,mMACE,YAAA,CACA,OAAA,CACA,QAAA",sourcesContent:[".bannerContainerRoot {\n  position: absolute;\n  max-width: 100%;\n  min-width: 270px;\n  padding: 0 16px 8px;\n  height: 88px;\n  bottom: 0;\n  left: 0;\n  transition: all 0.5s ease;\n}\n\n.bannerContainer {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  border-radius: 4px;\n  transition: all 0.5s ease;\n}\n\n.closeButton {\n  position: absolute;\n  background-color: transparent;\n  padding: 0;\n  border: none;\n  top: 0;\n  right: 0;\n  width: 32px;\n  height: 32px;\n  padding: 0;\n  .small {\n    display: none;\n  }\n}\n\n.closeButton:hover,\n.closeButton:active {\n  cursor: pointer;\n}\n\n:global {\n  .playkit-size-md {\n    :local {\n      .bannerContainerRoot {\n        height: 68px;\n        min-width: 230px;\n      }\n      .closeButton {\n        top: 8px;\n        right: 8px;\n        width: 10px;\n        height: 10px;\n        .large {\n          display: none;\n        }\n        .small {\n          display: block;\n        }\n      }\n    }\n  }\n}\n\n:global {\n  .playkit-size-sm,\n  .playkit-size-xs,\n  .playkit-size-ty {\n    :local .bannerContainerRoot {\n      display: none;\n      width: 0;\n      height: 0;\n    }\n  }\n}\n"],sourceRoot:""}]),a.locals={bannerContainerRoot:"_banner-container__bannerContainerRoot___xakgR",bannerContainer:"_banner-container__bannerContainer___Qm02i",closeButton:"_banner-container__closeButton___WVWto",small:"_banner-container__small___Tgp11",large:"_banner-container__large___aw4QR"},t.default=a},9882:function(e,t,n){"use strict";n.r(t);var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,"._banner__defaultBannerRoot___NepFO{display:flex;max-width:100%;height:100%;transition:all .5s ease;text-align:left}._banner__bannerWrapper___Rs8hK{padding:18px 17px 17px 16px}._banner__iconContainer___wyKRN{height:100%;width:64px}._banner__iconWrapper___duGbT{position:relative;height:48px;width:48px;background-color:rgba(255,255,255,.14);border-radius:50%;transition:all .5s ease}._banner__iconImage___I0LAA{position:absolute;width:32px;height:32px;left:calc(50% - 16px);top:calc(50% - 16px);transition:all .5s ease;padding:0}._banner__iconImage___I0LAA ._banner__small___mrxMV{display:none}._banner__bannerBody___ISEP1{height:100%;flex:1 1 auto;overflow:hidden}._banner__title___LCkfF{opacity:.9;font-size:14px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:normal;color:#ebebeb}._banner__text___UyS4n{opacity:.9;font-size:24px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.21;letter-spacing:normal;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .5s ease}.playkit-size-md ._banner__bannerWrapper___Rs8hK{padding:14px 16px 14px}.playkit-size-md ._banner__iconContainer___wyKRN{width:44px}.playkit-size-md ._banner__iconWrapper___duGbT{height:32px;width:32px}.playkit-size-md ._banner__iconImage___I0LAA{width:20px;height:20px;left:calc(50% - 10px);top:calc(50% - 10px)}.playkit-size-md ._banner__iconImage___I0LAA ._banner__small___mrxMV{display:block}.playkit-size-md ._banner__iconImage___I0LAA ._banner__large___q5r6u{display:none}.playkit-size-md ._banner__bannerBody___ISEP1{flex:1 1 auto}.playkit-size-md ._banner__title___LCkfF{font-size:12px;font-weight:bold;line-height:1.17}.playkit-size-md ._banner__text___UyS4n{font-size:15px;line-height:1.27}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/banner/_banner.scss"],names:[],mappings:"AAAA,oCACE,YAAA,CACA,cAAA,CACA,WAAA,CACA,uBAAA,CACA,eAAA,CAGF,gCACE,2BAAA,CAGF,gCACE,WAAA,CACA,UAAA,CAGF,8BACE,iBAAA,CACA,WAAA,CACA,UAAA,CACA,sCAAA,CACA,iBAAA,CACA,uBAAA,CAGF,4BACE,iBAAA,CACA,UAAA,CACA,WAAA,CACA,qBAAA,CACA,oBAAA,CACA,uBAAA,CACA,SAAA,CACA,oDACE,YAAA,CAIJ,6BACE,WAAA,CACA,aAAA,CACA,eAAA,CAGF,wBACE,UAAA,CACA,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,aAAA,CACA,qBAAA,CACA,aAAA,CAGF,uBACE,UAAA,CACA,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CACA,uBAAA,CAMI,iDACE,sBAAA,CAEF,iDACE,UAAA,CAEF,+CACE,WAAA,CACA,UAAA,CAEF,6CACE,UAAA,CACA,WAAA,CACA,qBAAA,CACA,oBAAA,CACA,qEACE,aAAA,CAEF,qEACE,YAAA,CAGJ,8CACE,aAAA,CAEF,yCACE,cAAA,CACA,gBAAA,CACA,gBAAA,CAEF,wCACE,cAAA,CACA,gBAAA",sourcesContent:[".defaultBannerRoot {\n  display: flex;\n  max-width: 100%;\n  height: 100%;\n  transition: all 0.5s ease;\n  text-align: left;\n}\n\n.bannerWrapper {\n  padding: 18px 17px 17px 16px;\n}\n\n.iconContainer {\n  height: 100%;\n  width: 64px;\n}\n\n.iconWrapper {\n  position: relative;\n  height: 48px;\n  width: 48px;\n  background-color: rgba(255, 255, 255, 0.14);\n  border-radius: 50%;\n  transition: all 0.5s ease;\n}\n\n.iconImage {\n  position: absolute;\n  width: 32px;\n  height: 32px;\n  left: calc(50% - 16px);\n  top: calc(50% - 16px);\n  transition: all 0.5s ease;\n  padding: 0;\n  .small {\n    display: none;\n  }\n}\n\n.bannerBody {\n  height: 100%;\n  flex: 1 1 auto;\n  overflow: hidden;\n}\n\n.title {\n  opacity: 0.9;\n  font-size: 14px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1;\n  letter-spacing: normal;\n  color: #ebebeb;\n}\n\n.text {\n  opacity: 0.9;\n  font-size: 24px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1.21;\n  letter-spacing: normal;\n  color: #ffffff;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  transition: all 0.5s ease;\n}\n\n:global {\n  .playkit-size-md {\n    :local {\n      .bannerWrapper {\n        padding: 14px 16px 14px;\n      }\n      .iconContainer {\n        width: 44px;\n      }\n      .iconWrapper {\n        height: 32px;\n        width: 32px;\n      }\n      .iconImage {\n        width: 20px;\n        height: 20px;\n        left: calc(50% - 10px);\n        top: calc(50% - 10px);\n        .small {\n          display: block;\n        }\n        .large {\n          display: none;\n        }\n      }\n      .bannerBody {\n        flex: 1 1 auto;\n      }\n      .title {\n        font-size: 12px;\n        font-weight: bold;\n        line-height: 1.17;\n      }\n      .text {\n        font-size: 15px;\n        line-height: 1.27;\n      }\n    }\n  }\n}\n"],sourceRoot:""}]),a.locals={defaultBannerRoot:"_banner__defaultBannerRoot___NepFO",bannerWrapper:"_banner__bannerWrapper___Rs8hK",iconContainer:"_banner__iconContainer___wyKRN",iconWrapper:"_banner__iconWrapper___duGbT",iconImage:"_banner__iconImage___I0LAA",small:"_banner__small___mrxMV",bannerBody:"_banner__bannerBody___ISEP1",title:"_banner__title___LCkfF",text:"_banner__text___UyS4n",large:"_banner__large___q5r6u"},t.default=a},1355:function(e,t,n){"use strict";n.r(t);var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,".injected-component__fill-container___mNczr{width:100%;height:100%;overflow:hidden}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/injected-component/injected-component.scss"],names:[],mappings:"AAAA,4CACE,UAAA,CACA,WAAA,CACA,eAAA",sourcesContent:[".fill-container {\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n}\n"],sourceRoot:""}]),a.locals={"fill-container":"injected-component__fill-container___mNczr",fillContainer:"injected-component__fill-container___mNczr"},t.default=a},8931:function(e,t,n){"use strict";n.r(t);var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,"._managed-component__fill-container___BZ9jB{width:100%;height:100%}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/managed-component/_managed-component.scss"],names:[],mappings:"AAAA,4CACE,UAAA,CACA,WAAA",sourcesContent:[".fill-container {\n  width: 100%;\n  height: 100%;\n}\n"],sourceRoot:""}]),a.locals={"fill-container":"_managed-component__fill-container___BZ9jB",fillContainer:"_managed-component__fill-container___BZ9jB"},t.default=a},9318:function(e,t,n){"use strict";n.r(t);var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,"._toast__toastWrapper___WvdiK{position:relative;min-width:120px;max-width:310px;height:100%;border-radius:4px;background-color:#222;border-left-style:solid;border-left-width:4px;text-align:left}._toast__infoToast___GSdk1{border-left-color:#01accd}._toast__successToast___dyb3J{border-left-color:#009e48}._toast__warnToast___vCnBw{border-left-color:#f9a71b}._toast__errorToast___GAr1R{border-left-color:#e7585d}._toast__closeButton___kXqZM{position:absolute;background-color:rgba(0,0,0,0);top:0;right:0;width:16px;height:16px;object-fit:contain;background-repeat:no-repeat;border:none;padding:0}._toast__closeButton___kXqZM:hover{cursor:pointer}._toast__title___aQCgz{font-size:12px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.17;letter-spacing:normal;color:#ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:4px;padding-right:16px;padding-left:12px}._toast__toastBody___aP3ij{position:relative;width:100%;padding:2px 16px 5px 12px}._toast__iconContainer___S5hMD{position:relative;height:16px;width:16px;float:left;margin-right:7px}._toast__iconWrapper___kqam1{height:16px;width:16px}._toast__text___EdqX7{font-size:14px;font-weight:bold;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/toast/_toast.scss"],names:[],mappings:"AAAA,8BACE,iBAAA,CACA,eAAA,CACA,eAAA,CACA,WAAA,CACA,iBAAA,CACA,qBAAA,CACA,uBAAA,CACA,qBAAA,CACA,eAAA,CAGF,2BACE,yBAAA,CAGF,8BACE,yBAAA,CAGF,2BACE,yBAAA,CAGF,4BACE,yBAAA,CAGF,6BACE,iBAAA,CACA,8BAAA,CACA,KAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,2BAAA,CACA,WAAA,CACA,SAAA,CAEA,mCACE,cAAA,CAIJ,uBACE,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CACA,eAAA,CACA,kBAAA,CACA,iBAAA,CAGF,2BACE,iBAAA,CACA,UAAA,CACA,yBAAA,CAGF,+BACE,iBAAA,CACA,WAAA,CACA,UAAA,CACA,UAAA,CACA,gBAAA,CAGF,6BACE,WAAA,CACA,UAAA,CAGF,sBACE,cAAA,CACA,gBAAA,CACA,iBAAA,CACA,mBAAA,CACA,kBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA",sourcesContent:[".toastWrapper {\n  position: relative;\n  min-width: 120px;\n  max-width: 310px;\n  height: 100%;\n  border-radius: 4px;\n  background-color: #222222;\n  border-left-style: solid;\n  border-left-width: 4px;\n  text-align: left;\n}\n\n.infoToast {\n  border-left-color: #01ACCD;\n}\n\n.successToast {\n  border-left-color: #009E48;\n}\n\n.warnToast {\n  border-left-color: #F9A71B;\n}\n\n.errorToast {\n  border-left-color: #E7585D;\n}\n\n.closeButton {\n  position: absolute;\n  background-color: transparent;\n  top: 0;\n  right: 0;\n  width: 16px;\n  height: 16px;\n  object-fit: contain;\n  background-repeat: no-repeat;\n  border: none;\n  padding: 0;\n\n  &:hover {\n    cursor: pointer;\n  }\n}\n\n.title {\n  font-size: 12px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1.17;\n  letter-spacing: normal;\n  color: #cccccc;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  padding-top: 4px;\n  padding-right: 16px;\n  padding-left: 12px;\n}\n\n.toastBody {\n  position: relative;\n  width: 100%;\n  padding: 2px 16px 5px 12px;\n}\n\n.iconContainer {\n  position: relative;\n  height: 16px;\n  width: 16px;\n  float: left;\n  margin-right: 7px;\n}\n\n.iconWrapper {\n  height: 16px;\n  width: 16px;\n}\n\n.text {\n  font-size: 14px;\n  font-weight: bold;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: normal;\n  letter-spacing: normal;\n  color: #cccccc;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n"],sourceRoot:""}]),a.locals={toastWrapper:"_toast__toastWrapper___WvdiK",infoToast:"_toast__infoToast___GSdk1",successToast:"_toast__successToast___dyb3J",warnToast:"_toast__warnToast___vCnBw",errorToast:"_toast__errorToast___GAr1R",closeButton:"_toast__closeButton___kXqZM",title:"_toast__title___aQCgz",toastBody:"_toast__toastBody___aP3ij",iconContainer:"_toast__iconContainer___S5hMD",iconWrapper:"_toast__iconWrapper___kqam1",text:"_toast__text___EdqX7"},t.default=a},3346:function(e,t,n){"use strict";n.r(t);var o=n(559),r=n.n(o),i=n(3476),a=n.n(i)()(r());a.push([e.id,"._toasts-container__toastsContainer___ep0ad{position:absolute;right:0;top:0;padding:8px 16px 0;min-width:120px;max-width:310px;display:flex;flex-direction:column}._toasts-container__toastRow___J1NQa{height:42px;min-width:120px;max-width:310px;margin-bottom:8px;overflow:hidden;overflow-wrap:break-word;text-overflow:ellipsis;align-self:flex-end}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/toasts-container/_toasts-container.scss"],names:[],mappings:"AAAA,4CACE,iBAAA,CACA,OAAA,CACA,KAAA,CACA,kBAAA,CACA,eAAA,CACA,eAAA,CACA,YAAA,CACA,qBAAA,CAGF,qCACE,WAAA,CACA,eAAA,CACA,eAAA,CACA,iBAAA,CACA,eAAA,CACA,wBAAA,CACA,sBAAA,CACA,mBAAA",sourcesContent:[".toastsContainer {\n  position: absolute;\n  right: 0;\n  top: 0;\n  padding: 8px 16px 0;\n  min-width: 120px;\n  max-width: 310px;\n  display: flex;\n  flex-direction: column;\n}\n\n.toastRow {\n  height: 42px;\n  min-width: 120px;\n  max-width: 310px;\n  margin-bottom: 8px;\n  overflow: hidden;\n  overflow-wrap: break-word;\n  text-overflow: ellipsis;\n  align-self: flex-end;\n}\n"],sourceRoot:""}]),a.locals={toastsContainer:"_toasts-container__toastsContainer___ep0ad",toastRow:"_toasts-container__toastRow___J1NQa"},t.default=a},3476:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},559:function(e){"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(r," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([i]).join("\n")}return[t].join("\n")}},3708:function(e,t,n){"use strict";function o(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===r(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var o=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(2596)(e.__opts__),o=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||o.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),o.push(t.src_xn),t.src_tlds=o.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var o={validate:null,link:null};if(e.__compiled__[t]=o,"[object Object]"===r(n))return"[object RegExp]"!==r(n.validate)?i(n.validate)?o.validate=n.validate:c(t,n):o.validate=function(e){return function(t,n){var o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}(n.validate),void(i(n.normalize)?o.normalize=n.normalize:n.normalize?c(t,n):o.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===r(e)}(n)?c(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function _(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,t){if(!(this instanceof d))return new d(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=o({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=o({},l,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},u(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},d.prototype.set=function(e){return this.__opts__=o(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,o,r,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(r=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(o=e.match(this.re.email_fuzzy))&&(i=o.index+o[1].length,a=o.index+o[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(_(this,t)),t=this.__last_index__);for(var o=t?e.slice(t):e;this.test(o);)n.push(_(this,t)),o=o.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,_(this,0)):null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d},2596:function(e,t,n){"use strict";e.exports=function(e){var t={};return e=e||{},t.src_Any=n(8287).source,t.src_Cc=n(699).source,t.src_Z=n(9338).source,t.src_P=n(6924).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},7538:function(e,t,n){var o=n(1892),r=n(6298);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},7998:function(e,t,n){var o=n(1892),r=n(2707);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},73:function(e,t,n){var o=n(1892),r=n(3861);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},3278:function(e,t,n){var o=n(1892),r=n(6469);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},6502:function(e,t,n){var o=n(1892),r=n(5588);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},9480:function(e,t,n){var o=n(1892),r=n(9882);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},4367:function(e,t,n){var o=n(1892),r=n(1355);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},4022:function(e,t,n){var o=n(1892),r=n(8931);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},181:function(e,t,n){var o=n(1892),r=n(9318);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},5579:function(e,t,n){var o=n(1892),r=n(3346);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},1892:function(e,t,n){"use strict";var o,r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function a(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},o=[],r=0;r<e.length;r++){var s=e[r],l=t.base?s[0]+t.base:s[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var p=a(u),_={css:s[1],media:s[2],sourceMap:s[3]};-1!==p?(i[p].references++,i[p].updater(_)):i.push({identifier:u,updater:A(_,t),references:1}),o.push(u)}return o}function l(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var i=n.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function p(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=u(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function _(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var d=null,h=0;function A(e,t){var n,o,r;if(t.singleton){var i=h++;n=d||(d=l(t)),o=p.bind(null,n,i,!1),r=p.bind(null,n,i,!0)}else n=l(t),o=_.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=a(n[o]);i[r].references--}for(var l=s(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=l}}}},5360:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(4522),s=n(573),l={position:"absolute",display:"table",boxSizing:"border-box"},c={position:"relative",width:"100%",height:"100%",appearance:"none",border:"none",display:"table-cell",verticalAlign:"middle",textAlign:"center",cursor:"pointer",wordBreak:"break-all",textRendering:"geometricPrecision"},u={styles:{}};function p(e){return e.match(/^https?:\/\//i)||(e="http://"+e),e}var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={disableClick:!0,isReady:!1},t.isClickable=function(){var e=t.props.hotspot.onClick;if(!e)return!1;switch(e.type){case"jumpToTime":return void 0!==e.jumpToTime;case"openUrl":case"openUrlInNewTab":return!!e.url;default:return!1}},t.handleClick=function(){var e=t.props.hotspot,n=t.state.disableClick;if(e.onClick&&!n)switch(e.onClick.type){case"jumpToTime":if(void 0===e.onClick.jumpToTime)return;t.props.seekTo(e.onClick.jumpToTime/1e3);break;case"openUrl":if(!e.onClick.url)return;var o=p(e.onClick.url);window.open(o,"_top"),t.props.sendAnalytics({eventNumber:47,target:o,hotspotId:e.id});break;case"openUrlInNewTab":if(!e.onClick.url)return;t.props.pauseVideo(),o=p(e.onClick.url);try{window.open(o,"_blank"),t.props.sendAnalytics({eventNumber:47,target:o,hotspotId:e.id})}catch(e){}}},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this.props.hotspot;e&&e.onClick?this.setState({isReady:!0,disableClick:!this.isClickable()}):this.setState({isReady:!0})},t.prototype.render=function(){var e=this.props.hotspot,t=e.layout,n=e.label,o=this.state,r=o.isReady,u=o.disableClick;if(!r||!this.props.visible)return null;var p=i(i({},l),{top:t.y,left:t.x,height:t.height,width:t.width}),_=i(i(i({},c),e.styles),{cursor:u?"default":"pointer"});return(0,a.h)(s.A11yWrapper,{onClick:this.handleClick},(0,a.h)("div",{tabIndex:0,"aria-label":n,"aria-disabled":u,style:p,"data-testid":"hotspots_hotspot"},(0,a.h)("div",{style:_},n)))},t.defaultProps=u,t}(a.Component);t.default=_},6658:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(4522),a=n(6912),s=n(5360),l={position:"absolute",display:"block",overflow:"visible",top:0,left:0,width:0,height:0},c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderHotspots=function(e){if(!e)return null;var n=t.props,o=n.seekTo,r=n.pauseVideo,a=n.sendAnalytics;return e.map((function(e){return(0,i.h)(s.default,{pauseVideo:r,seekTo:o,key:e.id,visible:!0,hotspot:e,sendAnalytics:a})}))},t}return r(t,e),t.prototype.shouldComponentUpdate=function(e){return!(0,a.shallowCompareHotspots)(this.props.hotspots,e.hotspots)},t.prototype.render=function(){var e=this.props.hotspots,t=this.renderHotspots(e);return(0,i.h)("div",{style:l,"data-testid":"hotspots_hotspotsContainer"},t)},t}(i.Component);t.default=c},1624:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.HotspotsPlugin=void 0;var a=n(4522),s=n(573),l=n(6658),c=n(8263),u=function(e){function t(t,n,o){var r=e.call(this,t,n,o)||this;return r._hotspots=[],r._floatingItem=null,r._canvas=null,r._isHotspotType=function(e){var t=e.metadata,n=r.cuePointManager,o=n.KalturaCuePointType,i=n.KalturaCuePointTags;return(null==t?void 0:t.cuePointType)===o.ANNOTATION&&(null==t?void 0:t.tags)===i.HOTSPOT},r._filterHotspotCues=function(e){return e.filter(r._isHotspotType)},r._prepareHotspots=function(e){var t=[];return e.forEach((function(e){var n=e.metadata.partnerData;n&&n.schemaVersion&&t.push({id:e.id,startTime:e.startTime,endTime:e.endTime,label:e.metadata.text,styles:n.styles,onClick:n.onClick,rawLayout:i({},n.layout)})})),t},r._recalculateCuepointLayout=function(e){var t,n;if(r.logger.debug("calculating cuepoint layout based on video/player sizes"),!(null===(t=r._canvas)||void 0===t?void 0:t.playerSize)||!(null===(n=r._canvas)||void 0===n?void 0:n.videoSize))return r.logger.warn("missing video/player sizes, hide all cuepoint"),[];var o=r._canvas.playerSize,a=o.width,s=o.height,l=r._canvas.videoSize,u=l.width,p=l.height;if(!(a&&s&&u&&p))return r.logger.warn("missing video/player sizes, hide all cuepoint"),[];var _=(0,c.scaleVideo)(u,p,a,s,!0);return r.logger.debug("recalculate cuepoint layout based on new sizes"),e.map((function(e){return i(i({},e),{layout:r._calculateLayout(e,_)})}))},r._onTimedMetadataChange=function(e){var t=e.payload,n=r._filterHotspotCues(t.cues);if(n.length||r._hotspots.length){var o=r._prepareHotspots(n);r._hotspots=r._recalculateCuepointLayout(o),r._updateHotspotsContainer()}},r._pauseVideo=function(){r._player.pause()},r._seekTo=function(e){r._player.currentTime=e},r._checkIfResizeHappened=function(e){if(!r._canvas)return r._canvas=e,!0;var t=r._canvas.playerSize,n=r._canvas.videoSize,o=e.playerSize,i=e.videoSize;return(t.width!==o.width||t.height!==o.height||n.width!==i.width||n.height!==i.height)&&(r._canvas=e,!0)},r._renderRoot=function(e){return r._checkIfResizeHappened(e.canvas)&&(r._hotspots=r._recalculateCuepointLayout(r._hotspots)),(0,a.h)(l.default,{key:"hotspotWrapper",hotspots:r._hotspots,pauseVideo:r._pauseVideo,seekTo:r._seekTo,sendAnalytics:function(){}})},r._player=n,r._contribServices=s.ContribServices.get({kalturaPlayer:r._player}),r}return r(t,e),t.isValid=function(){return!0},Object.defineProperty(t.prototype,"cuePointManager",{get:function(){return this._player.getService("kalturaCuepoints")},enumerable:!1,configurable:!0}),t.prototype.getUIComponents=function(){return this._contribServices.register()},t.prototype.loadMedia=function(){this.cuePointManager&&!this._player.isLive()?(this._addHotspotsContainer(),this.cuePointManager.registerTypes([this.cuePointManager.CuepointType.HOTSPOT]),this.eventManager.listen(this._player,this._player.Event.TIMED_METADATA_CHANGE,this._onTimedMetadataChange)):this.logger.warn("kalturaCuepoints haven't registered or current entry is live")},t.prototype._calculateLayout=function(e,t){var n=e.rawLayout;return{x:t.left+n.relativeX*t.width,y:t.top+n.relativeY*t.height,width:n.relativeWidth*t.width,height:n.relativeHeight*t.height}},t.prototype._addHotspotsContainer=function(){this._floatingItem=this._contribServices.floatingManager.add({label:"Hotspots",mode:s.FloatingUIModes.MediaLoaded,position:s.FloatingPositions.VideoArea,renderContent:this._renderRoot})},t.prototype._updateHotspotsContainer=function(){this._floatingItem&&this._floatingItem.update()},t.prototype.reset=function(){this.eventManager.removeAll(),this._hotspots=[],this._canvas=null,this._floatingItem&&(this._contribServices.floatingManager.remove(this._floatingItem),this._floatingItem=null)},t.prototype.destroy=function(){},t.defaultConfig={},t}(KalturaPlayer.core.BasePlugin);t.HotspotsPlugin=u},6912:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shallowCompareHotspots=void 0,t.shallowCompareHotspots=function(e,t){var n=e.length;if(t.length!==n)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}},8263:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scaleVideo=void 0,t.scaleVideo=function(e,t,n,o,r){var i={width:0,height:0,left:0,top:0,scaleToTargetWidth:!0};if(e<=0||t<=0||n<=0||o<=0)return i;var a=n,s=t*n/e,l=e*o/t,c=o,u=l>n;return(u=u?r:!r)?(i.width=Math.abs(a),i.height=Math.abs(s),i.scaleToTargetWidth=!0):(i.width=Math.abs(l),i.height=Math.abs(c),i.scaleToTargetWidth=!1),i.left=Math.abs((n-i.width)/2),i.top=Math.abs((o-i.height)/2),i}},699:function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},6924:function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},9338:function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},8287:function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},2052:function(e){"use strict";e.exports=KalturaPlayer},4522:function(e){"use strict";e.exports=KalturaPlayer.ui.preact}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};!function(){"use strict";var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.NAME=e.VERSION=e.Plugin=void 0;var t=n(1624);Object.defineProperty(e,"Plugin",{enumerable:!0,get:function(){return t.HotspotsPlugin}}),e.VERSION="3.1.5",e.NAME="@playkit-js/hotspots",KalturaPlayer.core.registerPlugin("playkit-js-hotspots",t.HotspotsPlugin)}(),((KalturaPlayer=void 0===KalturaPlayer?{}:KalturaPlayer).plugins=KalturaPlayer.plugins||{}).hotspots=o}();

(()=>{"use strict";var t,e,n={55:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultThumbnailApiParams=void 0,e.defaultThumbnailApiParams={quality:100}},438:function(t,e,n){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ImagePlayer=void 0;var u=n(11),c=n(55),p=n(119),l=function(t){function e(e,n){var r=t.call(this)||this;return r.eventManager=new u.EventManager,r._playbackRate=1,r.timer=new p.Timer,r.isFirstPlay=!0,r.isLoadingStart=!1,r.isReloadedOnfullscreen=!1,r.createImageElement(),r.init(e,n),r}return i(e,t),e.prototype.init=function(t,e){this.source=t,this.config=e,this.setDefaultConfig(),this.concatenateThumbnailParams(t),this.attach()},e.prototype.setDefaultConfig=function(){this.config.playback.autoplay=!0},e.prototype.createImageElement=function(){this.el=document.createElement("img"),this.el.id=u.Utils.Generator.uniqueId(5)},e.prototype.load=function(t){return a(this,void 0,void 0,(function(){var t=this;return s(this,(function(n){return this.isLoadingStart=!0,[2,new Promise((function(n,r){t.el.onload=function(){n({tracks:[]}),t.onImageLoaded()},t.el.onerror=function(n){e._logger.error("The image failed to load, img url:".concat(t.source.url),n),r(n)},t.dispatchEvent(new u.FakeEvent(u.EventType.LOAD_START)),t.el.src=t.source.url}))]}))}))},e.prototype.attach=function(){var t=this;this.eventManager.listen(this.timer,u.EventType.ENDED,(function(e){return t.dispatchEvent(e)})),this.eventManager.listen(this.timer,u.EventType.TIME_UPDATE,(function(e){return t.dispatchEvent(e)})),this.eventManager.listen(document.getElementById(this.config.targetId),"fullscreenchange",(function(e){t.reloadHigherQualityOnFullscreen()}))},e.prototype.play=function(){return this.isTimedImage()&&this.timer.start(this.duration),this.dispatchEvent(new u.FakeEvent(u.EventType.PLAYBACK_START)),this.dispatchEvent(new u.FakeEvent(u.EventType.PLAY)),this.isFirstPlay&&(this.dispatchEvent(new u.FakeEvent(u.EventType.FIRST_PLAY)),this.isFirstPlay=!1),this.dispatchEvent(new u.FakeEvent(u.EventType.DURATION_CHANGE)),this.dispatchEvent(new u.FakeEvent(u.EventType.PLAYING)),this.isFirstPlay&&this.dispatchEvent(new u.FakeEvent(u.EventType.FIRST_PLAYING)),Promise.resolve()},e.prototype.isTimedImage=function(){return this.config.sources.duration>0},e.prototype.onImageLoaded=function(){this.dispatchEvent(new u.FakeEvent(u.EventType.LOADED_METADATA)),this.dispatchEvent(new u.FakeEvent(u.EventType.LOADED_DATA))},e.prototype.concatenateThumbnailParams=function(t){var e,n,r=o(o(o({width:this.getPlayerWidth()},this.shouldAddKs()&&{ks:this.config.session.ks}),c.defaultThumbnailApiParams),null===(n=null===(e=this.config)||void 0===e?void 0:e.imageSourceOptions)||void 0===n?void 0:n.thumbnailAPIParams);Object.keys(r).forEach((function(e){t.url+="/".concat(e,"/").concat(r[e])}))},e.prototype.shouldAddKs=function(){var t;return"boolean"==typeof(null===(t=this.config.session)||void 0===t?void 0:t.isAnonymous)&&!this.config.session.isAnonymous},e.prototype.getPlayerWidth=function(){return document.getElementById(this.config.targetId).offsetWidth},e.prototype.reloadHigherQualityOnFullscreen=function(){document.fullscreenElement&&!this.isReloadedOnfullscreen&&this.getPlayerWidth()<document.body.offsetWidth&&(this.source.url=this.source.url.replace(/\/width\/([0-9]+)\//,"/width/".concat(document.body.offsetWidth,"/")),this.load(0).then((function(){e._logger.debug("Entering fullscreen mode - image reloaded")})),this.isReloadedOnfullscreen=!0)},e.isSupported=function(){return!0},e.createEngine=function(t,e){return new this(t,e)},e.canPlaySource=function(t){return!0},e.runCapabilities=function(){},e.getCapabilities=function(){var t,n=((t={})[e.id]={autoplay:!0},t);return Promise.resolve(n)},e.prepareVideoElement=function(){e._logger.debug("Prepare the Image element")},e.prototype.attachMediaSource=function(){},e.prototype.detach=function(){},e.prototype.detachMediaSource=function(){},e.prototype.enableAdaptiveBitrate=function(){},e.prototype.enterPictureInPicture=function(){},e.prototype.exitPictureInPicture=function(){},e.prototype.getStartTimeOfDvrWindow=function(){return 0},e.prototype.getVideoElement=function(){return this.el},e.prototype.hideTextTrack=function(){},e.prototype.isAdaptiveBitrateEnabled=function(){return!1},e.prototype.isLive=function(){return!1},e.prototype.isPictureInPictureSupported=function(){return!1},e.prototype.pause=function(){this.timer.end(),this.dispatchEvent(new u.FakeEvent(u.EventType.PAUSE))},e.prototype.resetAllCues=function(){},e.prototype.restore=function(t,e){this.reset(),this.init(t,e)},e.prototype.seekToLiveEdge=function(){},e.prototype.selectAudioTrack=function(t){},e.prototype.selectTextTrack=function(t){},e.prototype.selectVideoTrack=function(t){},Object.defineProperty(e.prototype,"src",{get:function(){return this.isLoadingStart&&this.source?this.source.url:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return e.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playbackRates",{get:function(){return[.5,1,1.5,2]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playbackRate",{get:function(){return this._playbackRate},set:function(t){this._playbackRate=t,this.timer.speed(t),this.dispatchEvent(new u.FakeEvent(u.EventType.RATE_CHANGE))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this.config.sources.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.timer.currentTime},set:function(t){this.timer.seek(t),this.dispatchEvent(new u.FakeEvent(u.EventType.SEEKED))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return{start:function(t){return 0},end:function(t){return 0},length:0}},enumerable:!1,configurable:!0}),e.prototype.getThumbnail=function(t){return null},e.prototype.getDrmInfo=function(){return null},e.prototype.reset=function(){this.eventManager.removeAll(),this.isFirstPlay=!0,this.isLoadingStart=!1,this.isReloadedOnfullscreen=!1,this.playbackRate=1,this.timer.reset()},e.prototype.destroy=function(){this.reset(),this.el.remove()},e._logger=(0,u.getLogger)("Image"),e.id="image",e}(u.FakeEventTarget);e.ImagePlayer=l},119:function(t,e,n){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var o=n(11),a=function(t){function e(){var e=t.call(this)||this;return e.TIME_UPDATE_RATE=250,e._currentTime=0,e.playbackRate=1,e.duration=0,e}return i(e,t),e.prototype.start=function(t){var e=this;this.duration=t,this.handleRestart(),this.intervalID=setInterval((function(){e._currentTime+=e.TIME_UPDATE_RATE/1e3,e.dispatchEvent(new o.FakeEvent(o.EventType.TIME_UPDATE)),e.isTimeUp()&&e.onTimeIsUp()}),this.TIME_UPDATE_RATE/this.playbackRate)},e.prototype.end=function(){clearInterval(this.intervalID),this.intervalID=null},e.prototype.handleRestart=function(){this.isTimeUp()&&this.reset()},e.prototype.seek=function(t){this._currentTime=t},e.prototype.speed=function(t){this.playbackRate=t,this.intervalID&&(this.end(),this.start(this.duration))},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._currentTime},enumerable:!1,configurable:!0}),e.prototype.isTimeUp=function(){return this._currentTime>=this.duration},e.prototype.onTimeIsUp=function(){this.end(),this.dispatchEvent(new o.FakeEvent(o.EventType.ENDED))},e.prototype.reset=function(){this.end(),this._currentTime=0},e}(o.FakeEventTarget);e.Timer=a},11:t=>{t.exports=KalturaPlayer.core}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={exports:{}};return n[t].call(o.exports,o,o.exports,i),o.exports}t=i(11),e=i(438),(0,t.registerEngine)(e.ImagePlayer.id,e.ImagePlayer)})();

var KalturaPlayer;(()=>{var e={979:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.A11yWrapper=n.isKeyboardEvent=void 0;var o=t(4522),r=t(2052).ui.utils.KeyMap,i=r.ENTER,a=r.SPACE,s=r.UP,l=r.DOWN,u=r.LEFT,c=r.RIGHT,p=function(e){e.preventDefault(),e.stopPropagation()};n.isKeyboardEvent=function(e){return e instanceof KeyboardEvent||[e.offsetX,e.offsetY].every((function(e){return 0===e}))},n.A11yWrapper=function(e){var t=e.children,r=e.onClick,_=e.onUpKeyPressed,d=e.onDownKeyPressed,A=e.onLeftKeyPressed,b=e.onRightKeyPressed,h=e.role,f=e.type,v={onKeyDown:function(e){e.keyCode===a||e.keyCode===i?(p(e),r(e,!0)):e.keyCode===s&&_?(p(e),_(e)):e.keyCode===l&&d?(p(e),d(e)):e.keyCode===u&&A?(p(e),A(e)):e.keyCode===c&&b&&(p(e),b(e))},onClick:function(e){e.stopPropagation(),r(e,(0,n.isKeyboardEvent)(e))},role:h};return"button"===t.type&&(v.type=f||"button"),(0,o.cloneElement)(t,v)},n.A11yWrapper.defaultProps={role:"button"}},1365:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.BannerContainer=void 0;var i=t(4522),a=t(6502),s=t(8482),l=t(334),u=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.render=function(e){var n=this.props.theme,t=n.backgroundColor,o=n.blur;return(0,i.h)("div",{className:a.bannerContainerRoot,"aria-live":"polite"},(0,i.h)("div",{style:"\n                background-color:".concat(t,"; \n                backdrop-filter: blur(").concat(o,");\n             "),className:a.bannerContainer},(0,i.h)("button",{className:a.closeButton,onClick:e.onClose},(0,i.h)(s.CloseSmall,{className:a.small}),(0,i.h)(l.CloseLarge,{className:a.large})),this.props.children))},n}(i.Component);n.BannerContainer=u},334:function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.CloseLarge=void 0;var r=t(4522);n.CloseLarge=function(e){return(0,r.h)("svg",o({width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,r.h)("g",{id:"Icons/32x32/Menu-Player-Close",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("path",{d:"M17.4142136,16 L22.363961,20.9497475 C22.7544853,21.3402718 22.7544853,21.9734367 22.363961,22.363961 C21.9734367,22.7544853 21.3402718,22.7544853 20.9497475,22.363961 L16,17.4142136 L11.0502525,22.363961 C10.6597282,22.7544853 10.0265633,22.7544853 9.63603897,22.363961 C9.24551468,21.9734367 9.24551468,21.3402718 9.63603897,20.9497475 L14.5857864,16 L9.63603897,11.0502525 C9.24551468,10.6597282 9.24551468,10.0265633 9.63603897,9.63603897 C10.0265633,9.24551468 10.6597282,9.24551468 11.0502525,9.63603897 L16,14.5857864 L20.9497475,9.63603897 C21.3402718,9.24551468 21.9734367,9.24551468 22.363961,9.63603897 C22.7544853,10.0265633 22.7544853,10.6597282 22.363961,11.0502525 L17.4142136,16 Z",id:"Path",fill:"#FFFFFF"})))}},8482:function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.CloseSmall=void 0;var r=t(4522);n.CloseSmall=function(e){return(0,r.h)("svg",o({xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10"},e),(0,r.h)("path",{fill:"#FFF","fill-rule":"evenodd",d:"M5.956 5l3.348-3.348A.674.674 0 0 0 9.3.7a.672.672 0 0 0-.952-.004L5 4.044 1.652.696A.674.674 0 0 0 .7.7a.672.672 0 0 0-.004.952L4.044 5 .696 8.348A.674.674 0 0 0 .7 9.3c.265.266.69.266.952.004L5 5.956l3.348 3.348c.262.262.689.26.952-.004a.672.672 0 0 0 .004-.952L5.956 5z",opacity:".9"}))}},5827:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.BannerContainer=void 0;var o=t(1365);Object.defineProperty(n,"BannerContainer",{enumerable:!0,get:function(){return o.BannerContainer}})},9673:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.BannerManager=n.VisibilityMode=void 0;var o,r=t(7720),i=t(4522),a=t(4570),s=t(5827),l=t(7863),u=t(8853);!function(e){e.VISIBLE="VISIBLE",e.HIDDEN="HIDDEN"}(o=n.VisibilityMode||(n.VisibilityMode={}));var c={theme:{backgroundColor:"rgba(0, 0, 0, .7)",blur:"10px"}},p=function(){function e(e){this.options=e,this._floatingItem=null,this._timerSubscription=void 0,this._options=e,this._bannerConfig=(0,u.getContribConfig)(this._options.kalturaPlayer,"ui.banner",c)}return e.prototype.add=function(e){return this._floatingItem&&this.remove(),this._floatingItem=this._options.floatingManager.add({label:"Banner",mode:r.FloatingUIModes.Immediate,position:r.FloatingPositions.InteractiveArea,renderContent:this._createRenderBanner(e,{onClose:this._handleCloseEvent.bind(this),theme:this._bannerConfig.theme})}),e.autoClose&&this._startDurationTimer(e.duration),this._getState()},e.prototype.remove=function(){this._floatingItem&&(this._timerSubscription&&clearTimeout(this._timerSubscription),this._options.floatingManager.remove(this._floatingItem),this._floatingItem=null)},e.prototype.reset=function(){this.remove()},e.prototype._createRenderBanner=function(e,n){var t=e.content,o=e.renderContent,r=n.onClose,l=n.theme;return function(e){return(0,i.h)(s.BannerContainer,{onClose:r,theme:l},o?o(t,e):(0,i.h)(a.Banner,{content:t}))}},e.prototype._handleCloseEvent=function(){this.remove()},e.prototype._startDurationTimer=function(e){void 0===e&&(e=6e4),this._timerSubscription=setTimeout(this.remove.bind(this),Math.max(5e3,e))},e.prototype._getState=function(){var e=(0,l.getPlayerSize)(this._options.kalturaPlayer);return{visibilityMode:!e||e.width<480?o.HIDDEN:o.VISIBLE}},e}();n.BannerManager=p},6797:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.Banner=void 0;var i=t(4522),a=t(9480),s=t(5316),l=t(6339),u=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.render=function(e){var n=e.content,t=n.text,o=n.title,r=void 0===o?"Audience asks:":o,s=n.icon,l=void 0===s?this._defaultIcon():s;return(0,i.h)("div",{className:a.defaultBannerRoot+" "+a.bannerWrapper},(0,i.h)("div",{className:a.iconContainer},(0,i.h)("div",{className:a.iconWrapper},l)),(0,i.h)("div",{className:a.bannerBody},(0,i.h)("div",{className:a.title},r),(0,i.h)("div",{className:a.text},t)))},n.prototype._defaultIcon=function(){return(0,i.h)("div",{className:a.iconImage},(0,i.h)(s.SomeoneAsksLarge,{className:a.large}),(0,i.h)(l.SomeoneAsksSmall,{className:a.small}))},n}(i.Component);n.Banner=u},4570:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Banner=void 0;var o=t(6797);Object.defineProperty(n,"Banner",{enumerable:!0,get:function(){return o.Banner}})},5316:function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.SomeoneAsksLarge=void 0;var r=t(4522);n.SomeoneAsksLarge=function(e){return(0,r.h)("svg",o({width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,r.h)("g",{id:"Icons/32/Someone-asks",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{id:"Group",transform:"translate(4.000000, 5.000000)",fill:"#B2D238"},(0,r.h)("ellipse",{id:"Oval",cx:"12",cy:"5.5",rx:"6",ry:"5.5"}),(0,r.h)("path",{d:"M12,13 C7.995,13 0,15.01 0,19 L0,20.5 C0,21.325 0.675,22 1.5,22 L22.5,22 C23.325,22 24,21.325 24,20.5 L24,19 C24,15.01 16.005,13 12,13 Z",id:"Path"}))))}},6339:function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.SomeoneAsksSmall=void 0;var r=t(4522);n.SomeoneAsksSmall=function(e){return(0,r.h)("svg",o({width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,r.h)("g",{id:"Icons/20/Someone-asks",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{id:"Group",transform:"translate(2.000000, 2.000000)",fill:"#B2D238"},(0,r.h)("circle",{id:"Oval",cx:"8",cy:"4",r:"4"}),(0,r.h)("path",{d:"M8,9 C5.33,9 0,10.5633333 0,13.6666667 L0,14.8333333 C0,15.475 0.45,16 1,16 L15,16 C15.55,16 16,15.475 16,14.8333333 L16,13.6666667 C16,10.5633333 10.67,9 8,9 Z",id:"Path"}))))}},6908:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ContribServices=n.getPlayerContribRegistry=void 0;var o=t(8717),r=t(3199),i=t(5753),a=t(8529),s=t(9673);function l(e){return o.PlayerContribRegistry.get(e)}n.getPlayerContribRegistry=l;var u=function(){function e(e,n){var t=this;this._playerContribRegistry=e,this._options=n,this._registered=!1,this._addListeners=function(){var e=t._options.kalturaPlayer;e.addEventListener(e.Event.PLAYER_RESET,t.reset),e.addEventListener(e.Event.PLAYER_DESTROY,t._removeListeners)},this._removeListeners=function(){var e=t._options.kalturaPlayer;e.removeEventListener(e.Event.PLAYER_RESET,t.reset),e.removeEventListener(e.Event.PLAYER_DESTROY,t._removeListeners)},this.register=function(){return t._registered?[]:(t._registered=!0,t._presetManager.registerComponents())},this.reset=function(){t._toastManager.reset(),t._floatingManager.reset(),t._bannerManager.reset()},this.destroy=function(){t._registered=!1};var o=this._options.kalturaPlayer,l=new r.PresetManager({kalturaPlayer:o}),u=new a.FloatingManager({kalturaPlayer:o,presetManager:l}),c=new i.ToastManager({floatingManager:u}),p=new s.BannerManager({kalturaPlayer:o,floatingManager:u});this._toastManager=c,this._floatingManager=u,this._presetManager=l,this._bannerManager=p,this._addListeners()}return e.get=function(n){var t=l(n.kalturaPlayer);return t.register("ContribServices",(function(){return new e(t,n)}))},Object.defineProperty(e.prototype,"presetManager",{get:function(){return this._presetManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"floatingManager",{get:function(){return this._floatingManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toastManager",{get:function(){return this._toastManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bannerManager",{get:function(){return this._bannerManager},enumerable:!1,configurable:!0}),e}();n.ContribServices=u},8853:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getContribConfig=void 0;var o=t(5816);n.getContribConfig=function(e,n,t,r){return o.KalturaPlayerUtils.getPlayerConfig(e,"contrib.".concat(n),t,r)}},5092:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(4522);n.default=function(e,n,t){return(0,o.h)("a",{href:e,key:t,target:"_blank",rel:"noopener noreferrer"},n)}},8842:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.EventsManager=void 0;var t=function(){function e(){this._eventListeners={},this._wildcardEventListeners=[]}return e.prototype.on=function(e,n){"*"!==e?(this._eventListeners[e]||(this._eventListeners[e]=[])).push(n):this._wildcardEventListeners.push(n)},e.prototype.off=function(e,n){if("*"!==e){var t=this._eventListeners[e];t&&t.splice(t.indexOf(n)>>>0,1)}else this._wildcardEventListeners.splice(this._wildcardEventListeners.indexOf(n)>>>0,1)},e.prototype.emit=function(e){(this._eventListeners[e.type]||[]).slice().map((function(n){n(e)})),this._wildcardEventListeners.slice().map((function(n){n(e)}))},e}();n.EventsManager=t},7720:(e,n)=>{"use strict";var t,o;Object.defineProperty(n,"__esModule",{value:!0}),n.FloatingPositions=n.FloatingUIModes=void 0,(o=n.FloatingUIModes||(n.FloatingUIModes={})).MediaLoaded="MediaLoaded",o.OnDemand="OnDemand",o.Immediate="Immediate",o.FirstPlay="FirstPlay",(t=n.FloatingPositions||(n.FloatingPositions={})).VideoArea="VideoArea",t.PresetArea="PresetArea",t.InteractiveArea="InteractiveArea"},5921:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FloatingItem=void 0;var o=t(4522),r=t(7720),i=t(9017),a=function(){function e(e){var n=this;this._destroyed=!1,this._isShown=!1,this._componentRef=null,this.remove=function(){n._isShown=!1,n._componentRef&&n._componentRef.update()},this.add=function(){n._isShown=!0,n._componentRef&&n._componentRef.update()},this._handleMediaLoaded=function(){var e=n._options.kalturaPlayer;e.removeEventListener(e.Event.MEDIA_LOADED,n._handleMediaLoaded),n.add()},this._handleFirstPlay=function(){var e=n._options.kalturaPlayer;e.removeEventListener(e.Event.FIRST_PLAY,n._handleFirstPlay),n.add()},this._options=e,this._addPlayerBindings()}return Object.defineProperty(e.prototype,"data",{get:function(){return this._options.data},enumerable:!1,configurable:!0}),e.prototype.update=function(){this._componentRef&&this._componentRef.update()},e.prototype.destroy=function(){this._destroyed=!0,this.remove()},e.prototype.renderFloatingChild=function(e){var n=this,t=this._options.data.label;return(0,o.h)(i.ManagedComponent,{label:t,renderChildren:function(){return n._options.data.renderContent(e)},isShown:function(){return n._isShown},ref:function(e){return n._componentRef=e}})},e.prototype._addPlayerBindings=function(){var e=this._options,n=e.kalturaPlayer,t=e.data;t.mode===r.FloatingUIModes.MediaLoaded&&n.addEventListener(n.Event.MEDIA_LOADED,this._handleMediaLoaded),t.mode===r.FloatingUIModes.FirstPlay&&n.addEventListener(n.Event.FIRST_PLAY,this._handleFirstPlay),t.mode===r.FloatingUIModes.Immediate&&this.add()},e}();n.FloatingItem=a},8529:function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)},r=this&&this.__spreadArray||function(e,n,t){if(t||2===arguments.length)for(var o,r=0,i=n.length;r<i;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.FloatingManager=void 0;var i=t(5921),a=t(7720),s=t(3199),l=t(4522),u=t(7863),c=t(9017),p=t(7417),_=t(8853),d={presetAreasMapping:{Playback:{VideoArea:"VideoArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea"},Live:{VideoArea:"VideoArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea"}}},A=["VideoArea","PresetArea","InteractiveArea"],b=function(){function e(e){var n,t,o=this;this._options=e,this._items=((n={})[a.FloatingPositions.VideoArea]=[],n[a.FloatingPositions.InteractiveArea]=[],n[a.FloatingPositions.PresetArea]=[],n),this._componentRef=((t={})[a.FloatingPositions.InteractiveArea]=null,t[a.FloatingPositions.VideoArea]=null,t[a.FloatingPositions.PresetArea]=null,t),this._cache={canvas:{playerSize:{width:0,height:0},videoSize:{width:0,height:0}}},this._renderItems=function(e){var n=o._getRendererProps({});return o._items[e].map((function(e){return e.renderFloatingChild(n)}))},this._renderChild=function(e){return(0,l.h)(c.ManagedComponent,{label:"floating-manager",renderChildren:function(){return o._renderItems(e)},isShown:function(){return!0},ref:function(n){return o._componentRef[e]=n}})},this._floatingConfig=(0,_.getContribConfig)(this._options.kalturaPlayer,"ui.floating",d,{explicitMerge:["presetAreasMapping"]});var r=p.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._floatingConfig.presetAreasMapping,acceptableTypes:A});Object.keys(r).forEach((function(e){o._options.presetManager.add({label:"floating-manager",presetAreas:r[e],renderChild:function(){return o._renderChild(a.FloatingPositions[e])}})})),this._addPlayerBindings(),this._updateCachedCanvas()}return e.prototype.add=function(e){var n=this._options.presetManager,t=o(o({presetManager:n},this._options),{data:e}),r=new i.FloatingItem(t);return this._items[e.position].push(r),r},e.prototype.remove=function(e){var n=this._items[e.data.position],t=n.indexOf(e);t>-1?(n[t].destroy(),n.splice(t,1)):console.warn("couldn't remove ".concat(e," since it wasn't found"))},e.prototype.reset=function(){r(r(r([],this._items.VideoArea,!0),this._items.InteractiveArea,!0),this._items.PresetArea,!0).forEach((function(e){try{e.destroy()}catch(e){console.warn(e)}})),this._items.VideoArea=[],this._items.PresetArea=[],this._items.InteractiveArea=[]},e.prototype._getRendererProps=function(e){var n=this._options.kalturaPlayer;return{currentTime:void 0!==e.currentTime?e.currentTime:1e3*n.currentTime,canvas:this._cache.canvas}},e.prototype._updateCachedCanvas=function(){this._cache.canvas={playerSize:(0,u.getPlayerSize)(this._options.kalturaPlayer),videoSize:(0,u.getVideoSize)(this._options.kalturaPlayer)}},e.prototype._updateComponents=function(){this._componentRef.InteractiveArea&&this._componentRef.InteractiveArea.update(),this._componentRef.PresetArea&&this._componentRef.PresetArea.update(),this._componentRef.VideoArea&&this._componentRef.VideoArea.update()},e.prototype._addPlayerBindings=function(){var e=this,n=this._options.kalturaPlayer;n.addEventListener(n.Event.TIME_UPDATE,(function(){e._updateComponents()})),n.addEventListener(n.Event.MEDIA_LOADED,(function(){e._updateCachedCanvas(),e._updateComponents()})),n.addEventListener(n.Event.LOADED_DATA,(function(){e._updateCachedCanvas(),e._updateComponents()})),this._options.presetManager.on(s.PresetManagerEventTypes.VideoResizeEvent,(function(){e._updateCachedCanvas(),e._updateComponents()})),this._options.presetManager.on(s.PresetManagerEventTypes.PresetResizeEvent,(function(){e._updateCachedCanvas(),e._updateComponents()}))},e}();n.FloatingManager=b},197:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkifyString=n.VisibilityMode=n.BannerManager=n.FloatingUIModes=n.FloatingPositions=n.FloatingItem=n.ToastSeverity=n.ContribServices=void 0;var o=t(6908);Object.defineProperty(n,"ContribServices",{enumerable:!0,get:function(){return o.ContribServices}});var r=t(5753);Object.defineProperty(n,"ToastSeverity",{enumerable:!0,get:function(){return r.ToastSeverity}});var i=t(5921);Object.defineProperty(n,"FloatingItem",{enumerable:!0,get:function(){return i.FloatingItem}});var a=t(7720);Object.defineProperty(n,"FloatingPositions",{enumerable:!0,get:function(){return a.FloatingPositions}}),Object.defineProperty(n,"FloatingUIModes",{enumerable:!0,get:function(){return a.FloatingUIModes}});var s=t(9673);Object.defineProperty(n,"BannerManager",{enumerable:!0,get:function(){return s.BannerManager}}),Object.defineProperty(n,"VisibilityMode",{enumerable:!0,get:function(){return s.VisibilityMode}});var l=t(8849);Object.defineProperty(n,"LinkifyString",{enumerable:!0,get:function(){return l.LinkifyString}})},5161:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.InjectedComponent=void 0;var o=t(413);Object.defineProperty(n,"InjectedComponent",{enumerable:!0,get:function(){return o.InjectedComponent}})},413:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.InjectedComponent=void 0;var i=t(4522),a=t(4367),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._root=null,n}return r(n,e),n.prototype.shouldComponentUpdate=function(){return!1},n.prototype.componentDidMount=function(){var e=this.props,n=e.onCreate;if(e.label,n){var t=this._root;t&&n({parent:t})}},n.prototype.componentWillUnmount=function(){var e=this.props,n=e.onDestroy,t=(e.label,this._root);t&&n&&n({parent:t})},n.prototype.render=function(){var e=this,n=this.props,t=n.label,o=n.fillContainer?a.fillContainer:"";return(0,i.h)("div",{"data-contrib-injected":t,className:o,ref:function(n){return e._root=n}})},n}(i.Component);n.InjectedComponent=s},5816:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaPlayerUtils=void 0;var o=t(9442),r=function(){function e(){}return e.getPlayerConfig=function(e,n,t,r){var i=o.ObjectUtils.get(e.config,n,{});return o.ObjectUtils.mergeDefaults(i,t,r)},e}();n.KalturaPlayerUtils=r},8849:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.LinkifyString=void 0;var i=t(4522),a=t(3708),s=t(5092),l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._linkify=new a,n}return r(n,e),n.prototype._parseString=function(e){var n=this;if(0===(e||"").trim().length)return"";var t=this._linkify.match(e);if(!t)return e;var o=[],r=0;return t.forEach((function(t,i){t.index>r&&o.push(e.substring(r,t.index));var a=t.url,s=t.text,l=n.props.componentRenderer(a,s,i);o.push(l),r=t.lastIndex})),e.length>r&&o.push(e.substring(r)),1===o.length?o[0]:o},n.prototype.render=function(){return(0,i.h)("span",null,this._parseString(this.props.text))},n.defaultProps={componentRenderer:s.default},n}(i.Component);n.LinkifyString=l},9017:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(3692),n)},3692:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),i=this&&this.__decorate||function(e,n,t,o){var r,i=arguments.length,a=i<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(n,t,a):r(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a};Object.defineProperty(n,"__esModule",{value:!0}),n.ManagedComponent=void 0;var a=t(4522),s=t(4022),l=KalturaPlayer.ui.redux.connect,u=function(e){return{playerSize:e.shell.playerSize}},c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.update=function(){this.setState((function(e){return{toggler:!e.toggler}}))},n.prototype.shouldComponentUpdate=function(e){var n=this.props,t=n.updateOnPlayerSizeChanged,o=n.playerSize;return t&&e.playerSize!==o||e.playerSize===o},n.prototype.componentDidMount=function(){this.setState({toggler:!1})},n.prototype.render=function(){var e=this.props,n=e.fillContainer,t=e.isShown,o=e.playerSize;return t()?(0,a.h)("div",{"data-contrib-item":this.props.label,className:"".concat(n?s.fillContainer:"")},this.props.renderChildren(o)):null},n.defaultProps={fillContainer:!1},i([l(u,null,null,{forwardRef:!0})],n)}(a.Component);n.ManagedComponent=c},9442:function(e,n){"use strict";var t=this&&this.__assign||function(){return t=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},t.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.ObjectUtils=void 0;var o=function(){function e(){}return e.copyDeep=function(n){var t;return Array.isArray(n)?(t=n.length>0?n.slice(0):[]).forEach((function(n,o){("object"==typeof n&&n!=={}||Array.isArray(n)&&n.length>0)&&(t[o]=e.copyDeep(n))})):"object"==typeof n?(t=Object.assign({},n),Object.keys(t).forEach((function(n){("object"==typeof t[n]&&t[n]!=={}||Array.isArray(t[n])&&t[n].length>0)&&(t[n]=e.copyDeep(t[n]))}))):t=n,t},e.isObject=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},e.mergeDeep=function(n,t,o){var r,i;if(!t.length)return n;var a=(o?o.explicitMerge:null)||[],s=t.shift();if(e.isObject(n)&&e.isObject(s))for(var l in s)e.isObject(s[l])?(n[l]||Object.assign(n,((r={})[l]={},r)),-1!==a.indexOf(l)?n[l]=e.explicitFlatMerge(n[l],s[l]):e.mergeDeep(n[l],[s[l]],o)):Object.assign(n,((i={})[l]=s[l],i));return e.mergeDeep(n,t,o)},e.mergeDefaults=function(n,t,o){return e.mergeDeep({},[t,n],o)},e.explicitFlatMerge=function(e,n){var o=t({},e);return Object.keys(n).forEach((function(e){null===n[e]||0===Object.keys(n[e]).length?delete o[e]:o[e]=n[e]})),o},e.get=function(e,n,t){for(var o=function(e){var n=[];return e.split(".").forEach((function(e){e.split(/\[([^}]+)\]/g).forEach((function(e){e.length>0&&n.push(e)}))})),n}(n),r=e,i=0;i<o.length;i++){if(!r[o[i]])return t;r=r[o[i]]}return r},e}();n.ObjectUtils=o},8717:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PlayerContribRegistry=void 0;var t=function(){function e(){this._cache={}}return e.get=function(n){return n.__contrib__=n.__contrib__||{},n.__contrib__.services=n.__contrib__.services||new e,n.__contrib__.services},e.prototype.get=function(e){var n=this._cache[e];if(!n)throw new Error("cannot find resource with token ".concat(e));return n},e.prototype.register=function(e,n){var t=this._cache[e];return t||(t=this._cache[e]={instance:n()}),t.instance},e}();n.PlayerContribRegistry=t},7863:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getVideoSize=n.getPlayerSize=void 0,n.getPlayerSize=function(e){return e?e.dimensions:{width:0,height:0}},n.getVideoSize=function(e){if(!e)return{width:0,height:0};var n=e.getActiveTracks().video;return n&&void 0!==n.width&&void 0!==n.height?{width:n.width,height:n.height}:e.getVideoElement()?{width:e.getVideoElement().videoWidth,height:e.getVideoElement().videoHeight}:{width:0,height:0}}},6109:(e,n)=>{"use strict";var t,o,r;Object.defineProperty(n,"__esModule",{value:!0}),n.RelativeToTypes=n.ReservedPresetAreas=n.ReservedPresetNames=void 0,(r=n.ReservedPresetNames||(n.ReservedPresetNames={})).Playback="Playback",r.Live="Live",(o=n.ReservedPresetAreas||(n.ReservedPresetAreas={})).PresetFloating="PresetFloating",o.BottomBarLeftControls="BottomBarLeftControls",o.BottomBarRightControls="BottomBarRightControls",o.TopBarLeftControls="TopBarLeftControls",o.TopBarRightControls="TopBarRightControls",o.SidePanelTop="SidePanelTop",o.SidePanelLeft="SidePanelLeft",o.SidePanelRight="SidePanelRight",o.SidePanelBottom="SidePanelBottom",o.PresetArea="PresetArea",o.InteractiveArea="InteractiveArea",o.PlayerArea="PlayerArea",o.VideoArea="VideoArea",(t=n.RelativeToTypes||(n.RelativeToTypes={})).Before="Before",t.After="After",t.Replace="Replace"},6513:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PresetItem=void 0;var o=t(4522),r=t(6109),i=t(5161),a=function(){function e(e){var n=this;this._render=function(){if(n._options.data.isolateComponent){var e=n._options.data,t=e.label,r=e.fillContainer;return(0,o.h)(i.InjectedComponent,{label:t,fillContainer:r||!1,onCreate:n._onCreate,onDestroy:n._onDestroy})}return n._options.data.renderChild()},this._onDestroy=function(e){e.parent&&(0,o.render)(null,e.parent)},this._onCreate=function(e){try{if(!e.parent)return;var t=n._options.data.renderChild();if(!t)return;(0,o.render)(t,e.parent)}catch(e){}},this._options=e}return Object.defineProperty(e.prototype,"playerConfig",{get:function(){var e=[];for(var n in this._options.data.presetAreas){var t=this._options.data.presetAreas[n],o=this._options.data.relativeTo;if(t){var i={label:this._options.data.label,presets:[n],container:t,get:this._render};if(o)switch(o.type){case r.RelativeToTypes.After:i.afterComponent=o.name;break;case r.RelativeToTypes.Before:i.beforeComponent=o.name;break;case r.RelativeToTypes.Replace:i.replaceComponent=o.name}e.push(i)}}return e},enumerable:!1,configurable:!0}),e}();n.PresetItem=a},3199:function(e,n,t){"use strict";var o=this&&this.__spreadArray||function(e,n,t){if(t||2===arguments.length)for(var o,r=0,i=n.length;r<i;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.PresetManager=n.PresetManagerEventTypes=void 0;var r,i=t(4522),a=t(6513),s=t(8842),l=t(6227),u=t(7417),c=t(8853);!function(e){e.PresetResizeEvent="PresetResizeEvent",e.VideoResizeEvent="VideoResizeEvent"}(r=n.PresetManagerEventTypes||(n.PresetManagerEventTypes={}));var p=["PlayerArea"],_={presetAreasMapping:{Playback:{PlayerArea:"PlayerArea"},Live:{PlayerArea:"PlayerArea"}}},d=function(){function e(e){var n=this;this._events=new s.EventsManager,this._isLocked=!1,this._items=[],this._pendingItems=[],this._registerToPlayer=function(e){e.addEventListener(KalturaPlayer.ui.EventType.UI_PRESET_RESIZE,n._notifyUIPresetResize),e.addEventListener(KalturaPlayer.ui.EventType.VIDEO_RESIZE,n._notifyVideoResize)},this._notifyVideoResize=function(){n._events.emit({type:r.VideoResizeEvent})},this._notifyUIPresetResize=function(){n._events.emit({type:r.PresetResizeEvent})},this._unregisterToPlayer=function(e){e.removeEventListener(KalturaPlayer.ui.EventType.UI_PRESET_RESIZE,n._notifyUIPresetResize),e.removeEventListener(KalturaPlayer.ui.EventType.VIDEO_RESIZE,n._notifyVideoResize)},this.on=this._events.on.bind(this._events),this.off=this._events.off.bind(this._events),this._options=e,this._presetConfig=(0,c.getContribConfig)(this._options.kalturaPlayer,"ui.preset",_,{explicitMerge:["presetAreasMapping"]});var t=u.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._presetConfig.presetAreasMapping,acceptableTypes:p});this.add({label:"preset-manager",presetAreas:t.PlayerArea,renderChild:function(){return(0,i.h)(l.UIPlayerAdapter,{onMount:n._registerToPlayer,onUnmount:n._unregisterToPlayer})}})}return e.prototype.add=function(e){if(this._isLocked)return console.warn("cannot add new preset items once player completed its' setup phase"),null;var n=new a.PresetItem({kalturaPlayer:this._options.kalturaPlayer,data:e});this._pendingItems.push(n)},e.prototype.lockManager=function(){this._isLocked=!0},e.prototype.registerComponents=function(){var e=[];return this._pendingItems.forEach((function(n){e=o(o([],e,!0),n.playerConfig,!0)})),this._items=o(o([],this._items,!0),this._pendingItems,!0),this._pendingItems=[],e.filter(Boolean)},e}();n.PresetManager=d},7417:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PresetsUtils=void 0;var t=function(){function e(){}return e.groupPresetAreasByType=function(e){var n=e.presetAreasMapping,t=e.acceptableTypes,o={};return t.forEach((function(e){return o[e]={}})),Object.keys(n).forEach((function(e){Object.keys(n[e]).forEach((function(r){-1===t.indexOf(r)||(o[r][e]=n[e][r])}))})),o},e}();n.PresetsUtils=t},5753:function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.ToastManager=n.ToastSeverity=void 0;var i,a=t(4144),s=t(7720),l=t(4617),u=t(4522);(i=n.ToastSeverity||(n.ToastSeverity={})).Info="Info",i.Success="Success",i.Warn="Warn",i.Error="Error";var c=function(){function e(e){var n=this;this.options=e,this._toasts=[],this._floatingItem=null,this._remove=function(e){var t=n._findToastIndexById(e);-1!==t&&(clearTimeout(n._toasts[t].timerSubscription),n._toasts.splice(t,1),n._updateToastsUI(),0===n._toasts.length&&n._removeToastsContainer())},this._options=e}return e.prototype.add=function(e){var n=e.duration,t=r(e,["duration"]);this._floatingItem||this._addToastsContainer();var i={toastProps:o(o({},t),{id:a.UUID.uuidV1(),onClose:this._remove}),duration:n,timerSubscription:null};this._toasts.push(i),this._updateToastsUI(),this._startDurationTimer(i)},e.prototype.reset=function(){var e=this;this._toasts.forEach((function(n){e._remove(n.toastProps.id)}))},e.prototype._startDurationTimer=function(e){var n=this;e.timerSubscription=setTimeout((function(){n._remove(e.toastProps.id)}),e.duration)},e.prototype._addToastsContainer=function(){var e=this;this._floatingItem=this._options.floatingManager.add({label:"Toasts",mode:s.FloatingUIModes.Immediate,position:s.FloatingPositions.InteractiveArea,renderContent:function(){return(0,u.h)(l.ToastsContainer,{toasts:e._toasts.map((function(e){return e.toastProps}))})}})},e.prototype._removeToastsContainer=function(){this._floatingItem&&(this._options.floatingManager.remove(this._floatingItem),this._floatingItem=null)},e.prototype._updateToastsUI=function(){this._floatingItem&&this._floatingItem.update()},e.prototype._findToastIndexById=function(e){for(var n=0;n<this._toasts.length;){if(this._toasts[n].toastProps.id===e)return n;n++}return-1},e}();n.ToastManager=c},1569:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CloseIcon=void 0;var o=t(4522);n.CloseIcon=function(){return(0,o.h)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},(0,o.h)("g",{id:"Icons/16/Close",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,o.h)("path",{d:"M8.8497789,8 L11.824005,10.9742261 C12.058665,11.2088861 12.058665,11.5893451 11.824005,11.824005 C11.5893451,12.058665 11.2088861,12.058665 10.9742261,11.824005 L8,8.8497789 L5.02577387,11.824005 C4.7911139,12.058665 4.41065493,12.058665 4.17599497,11.824005 C3.94133501,11.5893451 3.94133501,11.2088861 4.17599497,10.9742261 L7.1502211,8 L4.17599497,5.02577387 C3.94133501,4.7911139 3.94133501,4.41065493 4.17599497,4.17599497 C4.41065493,3.94133501 4.7911139,3.94133501 5.02577387,4.17599497 L8,7.1502211 L10.9742261,4.17599497 C11.2088861,3.94133501 11.5893451,3.94133501 11.824005,4.17599497 C12.058665,4.41065493 12.058665,4.7911139 11.824005,5.02577387 L8.8497789,8 Z",id:"Path",fill:"#cccccc"})))}},3810:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.Toast=void 0;var i=t(4522),a=t(181),s=t(5753),l=t(1569),u=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={isShown:!0},n._onClick=function(e){n.props.onClick(),n._onClose(e)},n._onClose=function(e){e.stopPropagation(),n.setState({isShown:!1}),n.props.onClose(n.props.id)},n}return r(n,e),n.prototype._getToastSeverityClass=function(){switch(this.props.severity){case s.ToastSeverity.Success:return a.successToast;case s.ToastSeverity.Warn:return a.warnToast;case s.ToastSeverity.Error:return a.errorToast;default:return a.infoToast}},n.prototype.render=function(){var e=this.props,n=e.text,t=e.title,o=e.icon;return(0,i.h)("div",{className:a.toastWrapper+" "+this._getToastSeverityClass(),onClick:this._onClick},(0,i.h)("button",{className:a.closeButton,onClick:this._onClose},(0,i.h)(l.CloseIcon,null)),(0,i.h)("div",{className:a.title},t),(0,i.h)("div",{className:a.toastBody},(0,i.h)("div",{className:a.iconContainer},(0,i.h)("div",{className:a.iconWrapper},o)),(0,i.h)("div",{className:a.text},n)))},n}(i.Component);n.Toast=u},4617:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ToastsContainer=void 0;var o=t(7371);Object.defineProperty(n,"ToastsContainer",{enumerable:!0,get:function(){return o.ToastsContainer}})},7371:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.ToastsContainer=void 0;var a=t(4522),s=t(3810),l=t(5579),u=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.render=function(){return(0,a.h)("div",{className:l.toastsContainer,"aria-live":"polite"},this.props.toasts.map((function(e){return(0,a.h)("div",{className:l.toastRow,key:e.id},(0,a.h)(s.Toast,i({},e)))})))},n}(a.Component);n.ToastsContainer=u},6227:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(9873),n)},9873:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),i=this&&this.__decorate||function(e,n,t,o){var r,i=arguments.length,a=i<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(n,t,a):r(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a};Object.defineProperty(n,"__esModule",{value:!0}),n.UIPlayerAdapter=void 0;var a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.componentDidMount=function(){this.props.onMount(this.props.player)},n.prototype.componentWillUnmount=function(){this.props.onUnmount(this.props.player)},n.prototype.render=function(e){return null},n.defaultProps={player:null},i([KalturaPlayer.ui.components.withPlayer],n)}(t(4522).Component);n.UIPlayerAdapter=a},4144:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UUID=void 0;var t=function(){function e(){}return e.uuidV1=function(){return"".concat(Date.now(),"-").concat(Math.random())},e}();n.UUID=t},5588:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,"._banner-container__bannerContainerRoot___xakgR{position:absolute;max-width:100%;min-width:270px;padding:0 16px 8px;height:88px;bottom:0;left:0;transition:all .5s ease}._banner-container__bannerContainer___Qm02i{position:relative;width:100%;height:100%;border-radius:4px;transition:all .5s ease}._banner-container__closeButton___WVWto{position:absolute;background-color:rgba(0,0,0,0);padding:0;border:none;top:0;right:0;width:32px;height:32px;padding:0}._banner-container__closeButton___WVWto ._banner-container__small___Tgp11{display:none}._banner-container__closeButton___WVWto:hover,._banner-container__closeButton___WVWto:active{cursor:pointer}.playkit-size-md ._banner-container__bannerContainerRoot___xakgR{height:68px;min-width:230px}.playkit-size-md ._banner-container__closeButton___WVWto{top:8px;right:8px;width:10px;height:10px}.playkit-size-md ._banner-container__closeButton___WVWto ._banner-container__large___aw4QR{display:none}.playkit-size-md ._banner-container__closeButton___WVWto ._banner-container__small___Tgp11{display:block}.playkit-size-sm ._banner-container__bannerContainerRoot___xakgR,.playkit-size-xs ._banner-container__bannerContainerRoot___xakgR,.playkit-size-ty ._banner-container__bannerContainerRoot___xakgR{display:none;width:0;height:0}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/banner-container/_banner-container.scss"],names:[],mappings:"AAAA,gDACE,iBAAA,CACA,cAAA,CACA,eAAA,CACA,kBAAA,CACA,WAAA,CACA,QAAA,CACA,MAAA,CACA,uBAAA,CAGF,4CACE,iBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,uBAAA,CAGF,wCACE,iBAAA,CACA,8BAAA,CACA,SAAA,CACA,WAAA,CACA,KAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,SAAA,CACA,0EACE,YAAA,CAIJ,6FAEE,cAAA,CAMI,iEACE,WAAA,CACA,eAAA,CAEF,yDACE,OAAA,CACA,SAAA,CACA,UAAA,CACA,WAAA,CACA,2FACE,YAAA,CAEF,2FACE,aAAA,CAWN,mMACE,YAAA,CACA,OAAA,CACA,QAAA",sourcesContent:[".bannerContainerRoot {\n  position: absolute;\n  max-width: 100%;\n  min-width: 270px;\n  padding: 0 16px 8px;\n  height: 88px;\n  bottom: 0;\n  left: 0;\n  transition: all 0.5s ease;\n}\n\n.bannerContainer {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  border-radius: 4px;\n  transition: all 0.5s ease;\n}\n\n.closeButton {\n  position: absolute;\n  background-color: transparent;\n  padding: 0;\n  border: none;\n  top: 0;\n  right: 0;\n  width: 32px;\n  height: 32px;\n  padding: 0;\n  .small {\n    display: none;\n  }\n}\n\n.closeButton:hover,\n.closeButton:active {\n  cursor: pointer;\n}\n\n:global {\n  .playkit-size-md {\n    :local {\n      .bannerContainerRoot {\n        height: 68px;\n        min-width: 230px;\n      }\n      .closeButton {\n        top: 8px;\n        right: 8px;\n        width: 10px;\n        height: 10px;\n        .large {\n          display: none;\n        }\n        .small {\n          display: block;\n        }\n      }\n    }\n  }\n}\n\n:global {\n  .playkit-size-sm,\n  .playkit-size-xs,\n  .playkit-size-ty {\n    :local .bannerContainerRoot {\n      display: none;\n      width: 0;\n      height: 0;\n    }\n  }\n}\n"],sourceRoot:""}]),a.locals={bannerContainerRoot:"_banner-container__bannerContainerRoot___xakgR",bannerContainer:"_banner-container__bannerContainer___Qm02i",closeButton:"_banner-container__closeButton___WVWto",small:"_banner-container__small___Tgp11",large:"_banner-container__large___aw4QR"};const s=a},9882:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,"._banner__defaultBannerRoot___NepFO{display:flex;max-width:100%;height:100%;transition:all .5s ease;text-align:left}._banner__bannerWrapper___Rs8hK{padding:18px 17px 17px 16px}._banner__iconContainer___wyKRN{height:100%;width:64px}._banner__iconWrapper___duGbT{position:relative;height:48px;width:48px;background-color:rgba(255,255,255,.14);border-radius:50%;transition:all .5s ease}._banner__iconImage___I0LAA{position:absolute;width:32px;height:32px;left:calc(50% - 16px);top:calc(50% - 16px);transition:all .5s ease;padding:0}._banner__iconImage___I0LAA ._banner__small___mrxMV{display:none}._banner__bannerBody___ISEP1{height:100%;flex:1 1 auto;overflow:hidden}._banner__title___LCkfF{opacity:.9;font-size:14px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:normal;color:#ebebeb}._banner__text___UyS4n{opacity:.9;font-size:24px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.21;letter-spacing:normal;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .5s ease}.playkit-size-md ._banner__bannerWrapper___Rs8hK{padding:14px 16px 14px}.playkit-size-md ._banner__iconContainer___wyKRN{width:44px}.playkit-size-md ._banner__iconWrapper___duGbT{height:32px;width:32px}.playkit-size-md ._banner__iconImage___I0LAA{width:20px;height:20px;left:calc(50% - 10px);top:calc(50% - 10px)}.playkit-size-md ._banner__iconImage___I0LAA ._banner__small___mrxMV{display:block}.playkit-size-md ._banner__iconImage___I0LAA ._banner__large___q5r6u{display:none}.playkit-size-md ._banner__bannerBody___ISEP1{flex:1 1 auto}.playkit-size-md ._banner__title___LCkfF{font-size:12px;font-weight:bold;line-height:1.17}.playkit-size-md ._banner__text___UyS4n{font-size:15px;line-height:1.27}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/banner/_banner.scss"],names:[],mappings:"AAAA,oCACE,YAAA,CACA,cAAA,CACA,WAAA,CACA,uBAAA,CACA,eAAA,CAGF,gCACE,2BAAA,CAGF,gCACE,WAAA,CACA,UAAA,CAGF,8BACE,iBAAA,CACA,WAAA,CACA,UAAA,CACA,sCAAA,CACA,iBAAA,CACA,uBAAA,CAGF,4BACE,iBAAA,CACA,UAAA,CACA,WAAA,CACA,qBAAA,CACA,oBAAA,CACA,uBAAA,CACA,SAAA,CACA,oDACE,YAAA,CAIJ,6BACE,WAAA,CACA,aAAA,CACA,eAAA,CAGF,wBACE,UAAA,CACA,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,aAAA,CACA,qBAAA,CACA,aAAA,CAGF,uBACE,UAAA,CACA,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CACA,uBAAA,CAMI,iDACE,sBAAA,CAEF,iDACE,UAAA,CAEF,+CACE,WAAA,CACA,UAAA,CAEF,6CACE,UAAA,CACA,WAAA,CACA,qBAAA,CACA,oBAAA,CACA,qEACE,aAAA,CAEF,qEACE,YAAA,CAGJ,8CACE,aAAA,CAEF,yCACE,cAAA,CACA,gBAAA,CACA,gBAAA,CAEF,wCACE,cAAA,CACA,gBAAA",sourcesContent:[".defaultBannerRoot {\n  display: flex;\n  max-width: 100%;\n  height: 100%;\n  transition: all 0.5s ease;\n  text-align: left;\n}\n\n.bannerWrapper {\n  padding: 18px 17px 17px 16px;\n}\n\n.iconContainer {\n  height: 100%;\n  width: 64px;\n}\n\n.iconWrapper {\n  position: relative;\n  height: 48px;\n  width: 48px;\n  background-color: rgba(255, 255, 255, 0.14);\n  border-radius: 50%;\n  transition: all 0.5s ease;\n}\n\n.iconImage {\n  position: absolute;\n  width: 32px;\n  height: 32px;\n  left: calc(50% - 16px);\n  top: calc(50% - 16px);\n  transition: all 0.5s ease;\n  padding: 0;\n  .small {\n    display: none;\n  }\n}\n\n.bannerBody {\n  height: 100%;\n  flex: 1 1 auto;\n  overflow: hidden;\n}\n\n.title {\n  opacity: 0.9;\n  font-size: 14px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1;\n  letter-spacing: normal;\n  color: #ebebeb;\n}\n\n.text {\n  opacity: 0.9;\n  font-size: 24px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1.21;\n  letter-spacing: normal;\n  color: #ffffff;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  transition: all 0.5s ease;\n}\n\n:global {\n  .playkit-size-md {\n    :local {\n      .bannerWrapper {\n        padding: 14px 16px 14px;\n      }\n      .iconContainer {\n        width: 44px;\n      }\n      .iconWrapper {\n        height: 32px;\n        width: 32px;\n      }\n      .iconImage {\n        width: 20px;\n        height: 20px;\n        left: calc(50% - 10px);\n        top: calc(50% - 10px);\n        .small {\n          display: block;\n        }\n        .large {\n          display: none;\n        }\n      }\n      .bannerBody {\n        flex: 1 1 auto;\n      }\n      .title {\n        font-size: 12px;\n        font-weight: bold;\n        line-height: 1.17;\n      }\n      .text {\n        font-size: 15px;\n        line-height: 1.27;\n      }\n    }\n  }\n}\n"],sourceRoot:""}]),a.locals={defaultBannerRoot:"_banner__defaultBannerRoot___NepFO",bannerWrapper:"_banner__bannerWrapper___Rs8hK",iconContainer:"_banner__iconContainer___wyKRN",iconWrapper:"_banner__iconWrapper___duGbT",iconImage:"_banner__iconImage___I0LAA",small:"_banner__small___mrxMV",bannerBody:"_banner__bannerBody___ISEP1",title:"_banner__title___LCkfF",text:"_banner__text___UyS4n",large:"_banner__large___q5r6u"};const s=a},1355:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".injected-component__fill-container___mNczr{width:100%;height:100%;overflow:hidden}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/injected-component/injected-component.scss"],names:[],mappings:"AAAA,4CACE,UAAA,CACA,WAAA,CACA,eAAA",sourcesContent:[".fill-container {\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n}\n"],sourceRoot:""}]),a.locals={"fill-container":"injected-component__fill-container___mNczr",fillContainer:"injected-component__fill-container___mNczr"};const s=a},8931:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,"._managed-component__fill-container___BZ9jB{width:100%;height:100%}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/managed-component/_managed-component.scss"],names:[],mappings:"AAAA,4CACE,UAAA,CACA,WAAA",sourcesContent:[".fill-container {\n  width: 100%;\n  height: 100%;\n}\n"],sourceRoot:""}]),a.locals={"fill-container":"_managed-component__fill-container___BZ9jB",fillContainer:"_managed-component__fill-container___BZ9jB"};const s=a},9318:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,"._toast__toastWrapper___WvdiK{position:relative;min-width:120px;max-width:310px;height:100%;border-radius:4px;background-color:#222;border-left-style:solid;border-left-width:4px;text-align:left}._toast__infoToast___GSdk1{border-left-color:#01accd}._toast__successToast___dyb3J{border-left-color:#009e48}._toast__warnToast___vCnBw{border-left-color:#f9a71b}._toast__errorToast___GAr1R{border-left-color:#e7585d}._toast__closeButton___kXqZM{position:absolute;background-color:rgba(0,0,0,0);top:0;right:0;width:16px;height:16px;object-fit:contain;background-repeat:no-repeat;border:none;padding:0}._toast__closeButton___kXqZM:hover{cursor:pointer}._toast__title___aQCgz{font-size:12px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.17;letter-spacing:normal;color:#ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:4px;padding-right:16px;padding-left:12px}._toast__toastBody___aP3ij{position:relative;width:100%;padding:2px 16px 5px 12px}._toast__iconContainer___S5hMD{position:relative;height:16px;width:16px;float:left;margin-right:7px}._toast__iconWrapper___kqam1{height:16px;width:16px}._toast__text___EdqX7{font-size:14px;font-weight:bold;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/toast/_toast.scss"],names:[],mappings:"AAAA,8BACE,iBAAA,CACA,eAAA,CACA,eAAA,CACA,WAAA,CACA,iBAAA,CACA,qBAAA,CACA,uBAAA,CACA,qBAAA,CACA,eAAA,CAGF,2BACE,yBAAA,CAGF,8BACE,yBAAA,CAGF,2BACE,yBAAA,CAGF,4BACE,yBAAA,CAGF,6BACE,iBAAA,CACA,8BAAA,CACA,KAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,2BAAA,CACA,WAAA,CACA,SAAA,CAEA,mCACE,cAAA,CAIJ,uBACE,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CACA,eAAA,CACA,kBAAA,CACA,iBAAA,CAGF,2BACE,iBAAA,CACA,UAAA,CACA,yBAAA,CAGF,+BACE,iBAAA,CACA,WAAA,CACA,UAAA,CACA,UAAA,CACA,gBAAA,CAGF,6BACE,WAAA,CACA,UAAA,CAGF,sBACE,cAAA,CACA,gBAAA,CACA,iBAAA,CACA,mBAAA,CACA,kBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA",sourcesContent:[".toastWrapper {\n  position: relative;\n  min-width: 120px;\n  max-width: 310px;\n  height: 100%;\n  border-radius: 4px;\n  background-color: #222222;\n  border-left-style: solid;\n  border-left-width: 4px;\n  text-align: left;\n}\n\n.infoToast {\n  border-left-color: #01ACCD;\n}\n\n.successToast {\n  border-left-color: #009E48;\n}\n\n.warnToast {\n  border-left-color: #F9A71B;\n}\n\n.errorToast {\n  border-left-color: #E7585D;\n}\n\n.closeButton {\n  position: absolute;\n  background-color: transparent;\n  top: 0;\n  right: 0;\n  width: 16px;\n  height: 16px;\n  object-fit: contain;\n  background-repeat: no-repeat;\n  border: none;\n  padding: 0;\n\n  &:hover {\n    cursor: pointer;\n  }\n}\n\n.title {\n  font-size: 12px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1.17;\n  letter-spacing: normal;\n  color: #cccccc;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  padding-top: 4px;\n  padding-right: 16px;\n  padding-left: 12px;\n}\n\n.toastBody {\n  position: relative;\n  width: 100%;\n  padding: 2px 16px 5px 12px;\n}\n\n.iconContainer {\n  position: relative;\n  height: 16px;\n  width: 16px;\n  float: left;\n  margin-right: 7px;\n}\n\n.iconWrapper {\n  height: 16px;\n  width: 16px;\n}\n\n.text {\n  font-size: 14px;\n  font-weight: bold;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: normal;\n  letter-spacing: normal;\n  color: #cccccc;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n"],sourceRoot:""}]),a.locals={toastWrapper:"_toast__toastWrapper___WvdiK",infoToast:"_toast__infoToast___GSdk1",successToast:"_toast__successToast___dyb3J",warnToast:"_toast__warnToast___vCnBw",errorToast:"_toast__errorToast___GAr1R",closeButton:"_toast__closeButton___kXqZM",title:"_toast__title___aQCgz",toastBody:"_toast__toastBody___aP3ij",iconContainer:"_toast__iconContainer___S5hMD",iconWrapper:"_toast__iconWrapper___kqam1",text:"_toast__text___EdqX7"};const s=a},3346:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,"._toasts-container__toastsContainer___ep0ad{position:absolute;right:0;top:0;padding:8px 16px 0;min-width:120px;max-width:310px;display:flex;flex-direction:column}._toasts-container__toastRow___J1NQa{height:42px;min-width:120px;max-width:310px;margin-bottom:8px;overflow:hidden;overflow-wrap:break-word;text-overflow:ellipsis;align-self:flex-end}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/toasts-container/_toasts-container.scss"],names:[],mappings:"AAAA,4CACE,iBAAA,CACA,OAAA,CACA,KAAA,CACA,kBAAA,CACA,eAAA,CACA,eAAA,CACA,YAAA,CACA,qBAAA,CAGF,qCACE,WAAA,CACA,eAAA,CACA,eAAA,CACA,iBAAA,CACA,eAAA,CACA,wBAAA,CACA,sBAAA,CACA,mBAAA",sourcesContent:[".toastsContainer {\n  position: absolute;\n  right: 0;\n  top: 0;\n  padding: 8px 16px 0;\n  min-width: 120px;\n  max-width: 310px;\n  display: flex;\n  flex-direction: column;\n}\n\n.toastRow {\n  height: 42px;\n  min-width: 120px;\n  max-width: 310px;\n  margin-bottom: 8px;\n  overflow: hidden;\n  overflow-wrap: break-word;\n  text-overflow: ellipsis;\n  align-self: flex-end;\n}\n"],sourceRoot:""}]),a.locals={toastsContainer:"_toasts-container__toastsContainer___ep0ad",toastRow:"_toasts-container__toastRow___J1NQa"};const s=a},7269:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".ivq-bottom-bar__ivqBottomBar___OgD7M{position:relative;height:100%;max-height:60px;padding:0 16px 4px;flex-shrink:0}.ivq-bottom-bar__ivqBottomBar___OgD7M>.playkit-seek-bar{pointer-events:none}.ivq-bottom-bar__ivqBottomBar___OgD7M .ivq-bottom-bar__ivqNavigationWrapper___sPiXy{width:100%;height:32px;display:flex;justify-content:center;align-items:center;margin-top:-2px}.ivq-bottom-bar__ivqBottomBar___OgD7M .ivq-bottom-bar__ivqNavigationWrapper___sPiXy .ivq-bottom-bar__navigationButton___mhHQ4{background:rgba(0,0,0,0);padding:0;margin:0 12px;border:none;width:20px;height:32px;text-align:center}.ivq-bottom-bar__ivqBottomBar___OgD7M .ivq-bottom-bar__ivqNavigationWrapper___sPiXy .ivq-bottom-bar__navigationButton___mhHQ4:hover:not(.ivq-bottom-bar__disabled___UIHkq){cursor:pointer}.ivq-bottom-bar__ivqBottomBar___OgD7M .ivq-bottom-bar__ivqNavigationWrapper___sPiXy .ivq-bottom-bar__navigationButton___mhHQ4.ivq-bottom-bar__disabled___UIHkq{opacity:.4}.ivq-bottom-bar__ivqBottomBar___OgD7M .ivq-bottom-bar__ivqNavigationWrapper___sPiXy .ivq-bottom-bar__questionIndex___HSjdH{padding-bottom:1px;margin-right:8px;line-height:18px;font-size:14px;text-align:center;color:#fff}","",{version:3,sources:["webpack://./components/ivq-bottom-bar/ivq-bottom-bar.scss","webpack://./theme.scss"],names:[],mappings:"AAEA,sCACE,iBAAA,CACA,WAAA,CACA,eCmJkB,CDlJlB,kBAAA,CACA,aAAA,CAEA,wDACE,mBAAA,CAGF,oFACE,UAAA,CACA,WAAA,CACA,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,8HACE,wBAAA,CACA,SAAA,CACA,aAAA,CACA,WAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,2KACE,cAAA,CAEF,+JACE,UAAA,CAGJ,2HACE,kBAAA,CACA,gBAAA,CACA,gBAAA,CACA,cAAA,CACA,iBAAA,CACA,UAAA",sourcesContent:["@import '../../theme.scss';\n\n.ivqBottomBar {\n  position: relative;\n  height: 100%;\n  max-height: $bottom-bar-height;\n  padding: 0 16px 4px;\n  flex-shrink: 0;\n\n  > :global(.playkit-seek-bar) {\n    pointer-events: none;\n  }\n\n  .ivqNavigationWrapper {\n    width: 100%;\n    height: 32px;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    margin-top: -2px;\n    .navigationButton {\n      background: transparent;\n      padding: 0;\n      margin: 0 12px;\n      border: none;\n      width: 20px;\n      height: 32px;\n      text-align: center;\n      &:hover:not(.disabled) {\n        cursor: pointer;\n      }\n      &.disabled {\n        opacity: 0.4;\n      }\n    }\n    .questionIndex {\n      padding-bottom: 1px;\n      margin-right: 8px;\n      line-height: 18px;\n      font-size: 14px;\n      text-align: center;\n      color: #ffffff;\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n"],sourceRoot:""}]),a.locals={ivqBottomBar:"ivq-bottom-bar__ivqBottomBar___OgD7M",ivqNavigationWrapper:"ivq-bottom-bar__ivqNavigationWrapper___sPiXy",navigationButton:"ivq-bottom-bar__navigationButton___mhHQ4",disabled:"ivq-bottom-bar__disabled___UIHkq",questionIndex:"ivq-bottom-bar__questionIndex___HSjdH"};const s=a},3688:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,'.ivq div,.ivq span,.ivq applet,.ivq object,.ivq iframe,.ivq h1,.ivq h2,.ivq h3,.ivq h4,.ivq h5,.ivq h6,.ivq p,.ivq blockquote,.ivq pre,.ivq a,.ivq abbr,.ivq acronym,.ivq address,.ivq big,.ivq cite,.ivq code,.ivq del,.ivq dfn,.ivq em,.ivq img,.ivq ins,.ivq kbd,.ivq q,.ivq s,.ivq samp,.ivq small,.ivq strike,.ivq strong,.ivq sub,.ivq sup,.ivq tt,.ivq var,.ivq b,.ivq u,.ivq i,.ivq center,.ivq dl,.ivq dt,.ivq dd,.ivq ol,.ivq ul,.ivq li,.ivq fieldset,.ivq form,.ivq label,.ivq legend,.ivq table,.ivq caption,.ivq tbody,.ivq tfoot,.ivq thead,.ivq tr,.ivq th,.ivq td,.ivq article,.ivq aside,.ivq canvas,.ivq details,.ivq embed,.ivq figure,.ivq figcaption,.ivq footer,.ivq header,.ivq hgroup,.ivq menu,.ivq nav,.ivq output,.ivq ruby,.ivq section,.ivq summary,.ivq time,.ivq mark,.ivq audio,.ivq video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.ivq article,.ivq aside,.ivq details,.ivq figcaption,.ivq figure,.ivq footer,.ivq header,.ivq hgroup,.ivq menu,.ivq nav,.ivq section{display:block}.ivq ol,.ivq ul{list-style:none}.ivq blockquote,.ivq q{quotes:none}.ivq blockquote:before,.ivq blockquote:after,.ivq q:before,.ivq q:after{content:"";content:none}.ivq table{border-collapse:collapse;border-spacing:0}.ivq-overlay__ivqOverlay___Xq8Nh>.playkit-overlay .playkit-overlay-contents{display:flex;flex-direction:column;padding:0 !important;overflow:hidden}.playkit-player.has-ivq-plugin-overlay .playkit-playlist-next-screen-overlay{display:none}',"",{version:3,sources:["webpack://./theme.scss","webpack://./components/ivq-overlay/ivq-overlay.scss"],names:[],mappings:"AA2JE,4xBA+EE,QAAA,CACA,SAAA,CACA,QAAA,CACA,cAAA,CACA,YAAA,CACA,uBAAA,CAGF,qIAWE,aAAA,CAEF,gBAEE,eAAA,CAEF,uBAEE,WAAA,CAEF,wEAIE,UAAA,CACA,YAAA,CAEF,WACE,wBAAA,CACA,gBAAA,CCzQF,4EACE,YAAA,CACA,qBAAA,CACA,oBAAA,CACA,eAAA,CAIJ,6EACE,YAAA",sourcesContent:["@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n","@import '../../theme.scss';\n\n:global(.ivq) {\n  @include reset-css();\n}\n\n.ivqOverlay {\n  > :global(.playkit-overlay .playkit-overlay-contents) {\n    display: flex;\n    flex-direction: column;\n    padding: 0 !important; // overwrite responsive overlay styles\n    overflow: hidden;\n  }\n}\n\n:global(.playkit-player.has-ivq-plugin-overlay .playkit-playlist-next-screen-overlay) {\n  display: none;\n}\n"],sourceRoot:""}]),a.locals={ivqOverlay:"ivq-overlay__ivqOverlay___Xq8Nh"};const s=a},5546:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".ivq-pupup__popupRoot___QPeBt{position:absolute;display:block;right:0;bottom:0;padding:16px;background:rgba(0,0,0,.7);backdrop-filter:blur(8px);border-radius:4px;font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;z-index:2}.ivq-pupup__popupRoot___QPeBt.ivq-pupup__submit___FMXFH{width:282px;height:148px}.ivq-pupup__popupRoot___QPeBt.ivq-pupup__completed___JZnvG{width:282px;height:78px}.ivq-pupup__popupRoot___QPeBt.ivq-pupup__almostDone___pAjl7{width:282px;height:114px}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__closeButton___eD0EC{position:absolute;width:32px;height:32px;right:0px;top:0px;border-radius:4px;outline-offset:-1px;cursor:pointer}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__closeButton___eD0EC:hover{background:rgba(0,0,0,.7)}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__title___ULnft{width:100%;font-weight:700;font-size:18px;line-height:20px}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__description___ZNWIT{width:100%;margin-top:8px;font-weight:400;font-size:14px;line-height:18px}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje{width:100%;margin-top:16px;display:flex;justify-content:flex-start}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje .ivq-pupup__primaryButton___dMQXc{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:32px;border-radius:4px;border-width:1px;border-color:rgba(0,0,0,0);font-style:normal;font-weight:bold;font-size:14px;line-height:17px;text-align:left;color:#fff;box-sizing:border-box;color:var(--playkit-primary-text-contrast-color);background:var(--playkit-primary-color);min-width:66px;margin-left:8px}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje .ivq-pupup__primaryButton___dMQXc:hover:not(.ivq-pupup__disabled___AsYvx){cursor:pointer}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje .ivq-pupup__primaryButton___dMQXc:hover:not(.ivq-pupup__disabled___AsYvx){background:var(--playkit-primary-darker-color)}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje .ivq-pupup__primaryButton___dMQXc:focus:not(.ivq-pupup__disabled___AsYvx){background:var(--playkit-primary-brighter-color)}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje .ivq-pupup__primaryButton___dMQXc.ivq-pupup__disabled___AsYvx{border-width:1px;border-style:solid;border-color:var(--playkit-tone-4-color);color:var(--playkit-tone-4-color);background:rgba(0,0,0,0)}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje .ivq-pupup__secondaryButton___vKeuC{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:32px;border-radius:4px;border-width:1px;border-color:rgba(0,0,0,0);font-style:normal;font-weight:bold;font-size:14px;line-height:17px;text-align:left;color:#fff;box-sizing:border-box;color:var(--playkit-tone-1-color);background:rgba(0,0,0,0)}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje .ivq-pupup__secondaryButton___vKeuC:hover:not(.ivq-pupup__disabled___AsYvx){cursor:pointer}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje .ivq-pupup__secondaryButton___vKeuC:hover:not(.ivq-pupup__disabled___AsYvx){background:var(--playkit-tone-4-color)}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje .ivq-pupup__secondaryButton___vKeuC:focus:not(.ivq-pupup__disabled___AsYvx){background:var(--playkit-tone-6-color)}.ivq-pupup__popupRoot___QPeBt .ivq-pupup__buttonsWrapper___Wjoje .ivq-pupup__secondaryButton___vKeuC.ivq-pupup__disabled___AsYvx{color:var(--playkit-tone-4-color)}","",{version:3,sources:["webpack://./components/ivq-popup/ivq-pupup.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,8BACE,iBAAA,CACA,aAAA,CACA,OAAA,CACA,QAAA,CACA,YAAA,CACA,yBAAA,CACA,yBAAA,CACA,iBAAA,CCFA,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CAAA,SAAA,CDCA,wDACE,WAAA,CACA,YAAA,CAEF,2DACE,WAAA,CACA,WAAA,CAEF,4DACE,WAAA,CACA,YAAA,CAEF,8DACE,iBAAA,CACA,UAAA,CACA,WAAA,CACA,SAAA,CACA,OAAA,CACA,iBAAA,CACA,mBAAA,CACA,cAAA,CACA,oEACE,yBAAA,CAGJ,wDACE,UAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CAEF,8DACE,UAAA,CACA,cAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CAEF,iEACE,UAAA,CACA,eAAA,CACA,YAAA,CACA,0BAAA,CACA,mGC9BF,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iBA7BY,CA8BZ,gBAAA,CACA,0BAAA,CACA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CACA,UAAA,CACA,qBAAA,CAQA,gDC1C4B,CD2C5B,uCC9Cc,CFuDV,cAAA,CACA,eAAA,CClBJ,2IACE,cAAA,CAQF,2IACE,8CC/CmB,CDiDrB,2IACE,gDCjDqB,CDmDvB,+HACE,gBAAA,CACA,kBAAA,CACA,wCC1BW,CD2BX,iCC3BW,CD4BX,wBAAA,CAAA,qGAnCF,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iBA7BY,CA8BZ,gBAAA,CACA,0BAAA,CACA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CACA,UAAA,CACA,qBAAA,CA2BA,iCCrCa,CDsCb,wBAAA,CA3BA,6IACE,cAAA,CA2BF,6IACE,sCCrCW,CDuCb,6IACE,sCCtCW,CDwCb,iIACE,iCC3CW",sourcesContent:["@import '../../theme.scss';\n\n.popupRoot {\n  position: absolute;\n  display: block;\n  right: 0;\n  bottom: 0;\n  padding: 16px;\n  background: rgba(0, 0, 0, 0.7);\n  backdrop-filter: blur(8px);\n  border-radius: 4px;\n  @include ivq-text;\n  z-index: 2;\n  &.submit {\n    width: 282px;\n    height: 148px;\n  }\n  &.completed {\n    width: 282px;\n    height: 78px;\n  }\n  &.almostDone {\n    width: 282px;\n    height: 114px;\n  }\n  .closeButton {\n    position: absolute;\n    width: 32px;\n    height: 32px;\n    right: 0px;\n    top: 0px;\n    border-radius: 4px;\n    outline-offset: -1px;\n    cursor: pointer;\n    &:hover {\n      background: rgba(0, 0, 0, 0.7);\n    }\n  }\n  .title {\n    width: 100%;\n    font-weight: 700;\n    font-size: 18px;\n    line-height: 20px;\n  }\n  .description {\n    width: 100%;\n    margin-top: 8px;\n    font-weight: 400;\n    font-size: 14px;\n    line-height: 18px;\n  }\n  .buttonsWrapper {\n    width: 100%;\n    margin-top: 16px;\n    display: flex;\n    justify-content: flex-start;\n    .primaryButton {\n      @include ivq-primary-button;\n      min-width: 66px;\n      margin-left: 8px;\n    }\n    .secondaryButton {\n      @include ivq-secondary-button;\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={popupRoot:"ivq-pupup__popupRoot___QPeBt",submit:"ivq-pupup__submit___FMXFH",completed:"ivq-pupup__completed___JZnvG",almostDone:"ivq-pupup__almostDone___pAjl7",closeButton:"ivq-pupup__closeButton___eD0EC",title:"ivq-pupup__title___ULnft",description:"ivq-pupup__description___ZNWIT",buttonsWrapper:"ivq-pupup__buttonsWrapper___Wjoje",primaryButton:"ivq-pupup__primaryButton___dMQXc",disabled:"ivq-pupup__disabled___AsYvx",secondaryButton:"ivq-pupup__secondaryButton___vKeuC"};const s=a},5039:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".multi-choice__multiChoiceWrapper___FcYR_{display:flex;flex-direction:column;text-align:left;width:100%;max-height:100%}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__questionText___g3ED0{font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;flex-shrink:0;font-weight:bold;line-height:normal;overflow-wrap:break-word;overflow:initial}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__questionText___g3ED0:focus{outline:none !important}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__questionText___g3ED0 .multi-choice__visuallyHidden___QZiSC{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9{display:flex;flex-direction:row;overflow:hidden;margin-top:16px}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9::-webkit-scrollbar{width:4px}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9::-webkit-scrollbar-track{background:rgba(33,33,33,.9)}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9::-webkit-scrollbar-thumb{border-radius:3px;background-color:rgba(255,255,255,.3)}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9:hover{overflow:auto}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9{display:flex;flex-direction:column;max-width:100%}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9{display:flex;flex-shrink:0;height:32px;align-items:center;padding:5px 16px;background:rgba(255,255,255,.12);border-style:solid;border-width:1px;border-radius:4px;border-color:rgba(0,0,0,0);font-size:16px;line-height:normal;color:#fff;cursor:pointer;box-sizing:border-box;outline-offset:-1px;height:auto;min-height:32px;margin:4px 0;padding:0;background:rgba(0,0,0,0);overflow:hidden}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9:hover:not(.multi-choice__disabled___U8ody){background:rgba(255,255,255,.2)}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9.multi-choice__active___yVgSe{border-color:var(--playkit-tone-1-color);background:rgba(255,255,255,.2)}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9.multi-choice__disabled___U8ody{cursor:default}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9:first-child{margin-top:0}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9:last-child{margin-bottom:0}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9>div{height:100%}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9:not(.multi-choice__active___yVgSe)>div{background:rgba(255,255,255,.12)}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9:not(.multi-choice__active___yVgSe) .multi-choice__questionLabel___a3dC4{border-right-width:1px;border-right-color:rgba(0,0,0,0);background-clip:padding-box}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9 .multi-choice__questionLabel___a3dC4{display:flex;justify-content:center;align-items:flex-start;flex-shrink:0;flex-basis:32px;padding:5px 8px;border-right-style:solid;border-right-width:1px;border-right-color:var(--playkit-tone-1-color)}.multi-choice__multiChoiceWrapper___FcYR_ .multi-choice__optionalAnswersWrapper___qBdk9 .multi-choice__optionalAnswersContainer___yfPx9 .multi-choice__multiSelectAnswer___CE8k9 .multi-choice__questionContent___aJGAi{flex-grow:1;padding:5px 16px 5px 8px;min-width:0}","",{version:3,sources:["webpack://./components/quiz-question/multi-choice/multi-choice.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,0CACE,YAAA,CACA,qBAAA,CACA,eAAA,CACA,UAAA,CACA,eAAA,CACA,8EAAA,iBAAA,CCCA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CAIA,aAAA,CACA,gBAAA,CACA,kBAAA,CACA,wBAAA,CDRE,gBAAA,CCSF,oFACE,uBAAA,CDTA,oHCiIF,4BAAA,CACA,oBAAA,CACA,qBAAA,CACA,oBAAA,CACA,sBAAA,CACA,0BAAA,CACA,gCAAA,CACA,6BAAA,CACA,mBAAA,CDpIA,wFACE,YAAA,CACA,kBAAA,CACA,eAAA,CACA,eAAA,CCoGF,2GACE,SAAA,CAEF,iHACE,4BAAA,CAEF,iHACE,iBAAA,CACA,qCAAA,CD1GA,8FACE,aAAA,CAGF,wIACE,YAAA,CACA,qBAAA,CACA,cAAA,CACA,iLCkDJ,YAAA,CACA,aAAA,CACA,WAAA,CACA,kBAAA,CACA,gBAAA,CAEA,gCAnFkB,CAoFlB,kBAAA,CACA,gBAAA,CACA,iBAxFY,CAyFZ,0BAAA,CACA,cAAA,CACA,kBAAA,CACA,UAAA,CACA,cAAA,CACA,qBAAA,CACA,mBAAA,CDhEM,WAAA,CACA,eAAA,CACA,YAAA,CACA,SAAA,CACA,wBAAA,CACA,eAAA,CC4DN,4NACE,+BA9FuB,CAgGzB,8MACE,wCCxEW,CDyEX,+BAlGuB,CAoGzB,gNACE,cAAA,CDnEI,6LACE,YAAA,CAEF,4LACE,eAAA,CAEF,qLACE,WAAA,CAGA,wNACE,gCC9CQ,CDgDV,yPACE,sBAAA,CACA,gCAAA,CACA,2BAAA,CAGJ,sNACE,YAAA,CACA,sBAAA,CACA,sBAAA,CACA,aAAA,CACA,eAAA,CACA,eAAA,CACA,wBAAA,CACA,sBAAA,CACA,8CErCK,CFuCP,wNACE,WAAA,CACA,wBAAA,CACA,WAAA",sourcesContent:["@import '../../../theme.scss';\n\n.multiChoiceWrapper {\n  display: flex;\n  flex-direction: column;\n  text-align: left;\n  width: 100%;\n  max-height: 100%;\n  .questionText {\n    @include ivq-text;\n    @include ivq-question-content;\n    overflow: initial;\n    .visuallyHidden {\n      @include visually-hidden;\n    }\n  }\n\n  .optionalAnswersWrapper {\n    display: flex;\n    flex-direction: row;\n    overflow: hidden;\n    margin-top: 16px;\n    @include ivq-scrollbar;\n    &:hover {\n      overflow: auto;\n    }\n\n    .optionalAnswersContainer {\n      display: flex;\n      flex-direction: column;\n      max-width: 100%;\n      .multiSelectAnswer {\n        @include optional-answer;\n        height: auto;\n        min-height: 32px;\n        margin: 4px 0;\n        padding: 0;\n        background: transparent;\n        overflow: hidden;\n        &:first-child {\n          margin-top: 0;\n        }\n        &:last-child {\n          margin-bottom: 0;\n        }\n        > div {\n          height: 100%;\n        }\n        &:not(.active) {\n          > div {\n            background: $button-background;\n          }\n          .questionLabel {\n            border-right-width: 1px;\n            border-right-color: transparent;\n            background-clip: padding-box;\n          }\n        }\n        .questionLabel {\n          display: flex;\n          justify-content: center;\n          align-items: flex-start;\n          flex-shrink: 0;\n          flex-basis: 32px;\n          padding: 5px 8px;\n          border-right-style: solid;\n          border-right-width: 1px;\n          border-right-color: $tone-1-color;\n        }\n        .questionContent {\n          flex-grow: 1;\n          padding: 5px 16px 5px 8px;\n          min-width: 0;\n        }\n      }\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={multiChoiceWrapper:"multi-choice__multiChoiceWrapper___FcYR_",questionText:"multi-choice__questionText___g3ED0",visuallyHidden:"multi-choice__visuallyHidden___QZiSC",optionalAnswersWrapper:"multi-choice__optionalAnswersWrapper___qBdk9",optionalAnswersContainer:"multi-choice__optionalAnswersContainer___yfPx9",multiSelectAnswer:"multi-choice__multiSelectAnswer___CE8k9",disabled:"multi-choice__disabled___U8ody",active:"multi-choice__active___yVgSe",questionLabel:"multi-choice__questionLabel___a3dC4",questionContent:"multi-choice__questionContent___aJGAi"};const s=a},7291:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".open-question__openQuestionWrapper___heMx2{display:flex;flex-direction:column;text-align:left;width:100%;max-height:100%}.open-question__openQuestionWrapper___heMx2 .open-question__questionText___g9DLv{font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;flex-shrink:0;font-weight:bold;line-height:normal;overflow-wrap:break-word}.open-question__openQuestionWrapper___heMx2 .open-question__questionText___g9DLv:focus{outline:none !important}.open-question__openQuestionWrapper___heMx2 .open-question__questionText___g9DLv .open-question__visuallyHidden___mL8t0{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.open-question__openQuestionWrapper___heMx2 .open-question__textAreaWrapper____DIdm{position:relative;flex-shrink:0;width:100%;margin-top:16px}.open-question__openQuestionWrapper___heMx2 .open-question__textAreaWrapper____DIdm .open-question__questionAnswer___oitjK{width:100%;resize:vertical;padding:8px;border-width:1px;border-style:solid;border-color:var(--playkit-tone-4-color);border-radius:4px;box-sizing:border-box;background:rgba(0,0,0,.3);color:var(--playkit-tone-1-color);font-family:inherit;min-height:80px;max-height:120px;font-size:14px;line-height:18px;outline-offset:-1px}.open-question__openQuestionWrapper___heMx2 .open-question__textAreaWrapper____DIdm .open-question__questionAnswer___oitjK::-webkit-scrollbar{width:4px}.open-question__openQuestionWrapper___heMx2 .open-question__textAreaWrapper____DIdm .open-question__questionAnswer___oitjK::-webkit-scrollbar-track{background:rgba(33,33,33,.9)}.open-question__openQuestionWrapper___heMx2 .open-question__textAreaWrapper____DIdm .open-question__questionAnswer___oitjK::-webkit-scrollbar-thumb{border-radius:3px;background-color:rgba(255,255,255,.3)}.open-question__openQuestionWrapper___heMx2 .open-question__textAreaWrapper____DIdm .open-question__charCounter___RAQ5A{font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;position:relative;text-align:right;margin-top:4px;font-size:14px}.open-question__openQuestionWrapper___heMx2 .open-question__textAreaWrapper____DIdm ::selection{background-color:var(--playkit-primary-brighter-color)}","",{version:3,sources:["webpack://./components/quiz-question/open-question/open-question.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,4CACE,YAAA,CACA,qBAAA,CACA,eAAA,CACA,UAAA,CACA,eAAA,CACA,iFAAA,iBAAA,CCCA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CAIA,aAAA,CACA,gBAAA,CACA,kBAAA,CACA,wBAAA,CACA,uFACE,uBAAA,CDVA,wHCkIF,4BAAA,CACA,oBAAA,CACA,qBAAA,CACA,oBAAA,CACA,sBAAA,CACA,0BAAA,CACA,gCAAA,CACA,6BAAA,CACA,mBAAA,CDtIA,oFACE,iBAAA,CACA,aAAA,CACA,UAAA,CACA,eAAA,CACA,2HACE,UAAA,CACA,eAAA,CACA,WAAA,CACA,gBAAA,CACA,kBAAA,CACA,wCEOS,CFNT,iBCzBQ,CD0BR,qBAAA,CACA,yBAAA,CACA,iCAAA,CACA,mBAAA,CACA,eAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,mBAAA,CCqFJ,8IACE,SAAA,CAEF,oJACE,4BAAA,CAEF,oJACE,iBAAA,CACA,qCAAA,CD1FA,wHC/BF,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CD6BI,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,cAAA,CAEF,gGACE,sDE1CmB",sourcesContent:["@import '../../../theme.scss';\n\n.openQuestionWrapper {\n  display: flex;\n  flex-direction: column;\n  text-align: left;\n  width: 100%;\n  max-height: 100%;\n  .questionText {\n    @include ivq-text;\n    @include ivq-question-content;\n    .visuallyHidden {\n      @include visually-hidden;\n    }\n  }\n  .textAreaWrapper {\n    position: relative;\n    flex-shrink: 0;\n    width: 100%;\n    margin-top: 16px;\n    .questionAnswer {\n      width: 100%;\n      resize: vertical;\n      padding: 8px;\n      border-width: 1px;\n      border-style: solid;\n      border-color: $tone-4-color;\n      border-radius: $roundness-1;\n      box-sizing: border-box;\n      background: rgba(0, 0, 0, 0.3);\n      color: $tone-1-color;\n      font-family: inherit;\n      min-height: 80px;\n      max-height: 120px;\n      font-size: 14px;\n      line-height: 18px;\n      outline-offset: -1px;\n      @include ivq-scrollbar;\n    }\n    .charCounter {\n      @include ivq-text;\n      position: relative;\n      text-align: right;\n      margin-top: 4px;\n      font-size: 14px;\n    }\n    ::selection {\n      background-color: $primary-brighter-color;\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={openQuestionWrapper:"open-question__openQuestionWrapper___heMx2",questionText:"open-question__questionText___g9DLv",visuallyHidden:"open-question__visuallyHidden___mL8t0",textAreaWrapper:"open-question__textAreaWrapper____DIdm",questionAnswer:"open-question__questionAnswer___oitjK",charCounter:"open-question__charCounter___RAQ5A"};const s=a},1727:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".question-addons__questionAddonsWrapper___ZG6HT{margin-top:6px}.question-addons__questionAddonsWrapper___ZG6HT .question-addons__questionAddonsButton___aofj5{display:flex;width:fit-content;font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;font-style:italic;font-size:14px;outline-offset:-1px;cursor:pointer}.question-addons__questionAddonsWrapper___ZG6HT .question-addons__questionAddonsButton___aofj5 .question-addons__iconWrapper___TOyqa{width:16px;height:16px;margin-left:4px;line-height:10px;display:none}.question-addons__questionAddonsWrapper___ZG6HT .question-addons__questionAddonsButton___aofj5 .question-addons__iconWrapper___TOyqa.question-addons__active___setXE{display:inline-block}.question-addons__questionAddonsWrapper___ZG6HT .question-addons__questionAddonsContent___N4AT5{font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;margin-top:6px;font-style:italic;font-size:14px}","",{version:3,sources:["webpack://./components/quiz-question/question-addons/question-addons.scss","webpack://./theme.scss"],names:[],mappings:"AAEA,gDACE,cAAA,CACA,+FACE,YAAA,CACA,iBAAA,CCEF,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CDJE,iBAAA,CACA,cAAA,CACA,mBAAA,CACA,cAAA,CACA,qIACE,UAAA,CACA,WAAA,CACA,eAAA,CACA,gBAAA,CACA,YAAA,CACA,qKACE,oBAAA,CAIN,gGCfA,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CDaE,cAAA,CACA,iBAAA,CACA,cAAA",sourcesContent:["@import '../../../theme.scss';\n\n.questionAddonsWrapper {\n  margin-top: 6px;\n  .questionAddonsButton {\n    display: flex;\n    width: fit-content;\n    @include ivq-text;\n    font-style: italic;\n    font-size: 14px;\n    outline-offset: -1px;\n    cursor: pointer;\n    .iconWrapper {\n      width: 16px;\n      height: 16px;\n      margin-left: 4px;\n      line-height: 10px;\n      display: none;\n      &.active {\n        display: inline-block;\n      }\n    }\n  }\n  .questionAddonsContent {\n    @include ivq-text;\n    margin-top: 6px;\n    font-style: italic;\n    font-size: 14px;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n"],sourceRoot:""}]),a.locals={questionAddonsWrapper:"question-addons__questionAddonsWrapper___ZG6HT",questionAddonsButton:"question-addons__questionAddonsButton___aofj5",iconWrapper:"question-addons__iconWrapper___TOyqa",active:"question-addons__active___setXE",questionAddonsContent:"question-addons__questionAddonsContent___N4AT5"};const s=a},6957:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".quiz-question-wrapper__ivqQuestionContainer___ooMEe{display:flex;flex-direction:column;justify-content:center;flex-grow:1;max-height:calc(100% - 60px);padding:32px 32px 12px 32px}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqQuestionWrapper___Tig55{display:flex;flex-direction:column;justify-content:center;width:100%;overflow:hidden}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqQuestionWrapper___Tig55:focus{outline:none !important}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqQuestionWrapper___Tig55::-webkit-scrollbar{width:4px}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqQuestionWrapper___Tig55::-webkit-scrollbar-track{background:rgba(33,33,33,.9)}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqQuestionWrapper___Tig55::-webkit-scrollbar-thumb{border-radius:3px;background-color:rgba(255,255,255,.3)}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqQuestionWrapper___Tig55:hover{overflow:auto}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ{display:flex;width:100%;margin-top:16px}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ .quiz-question-wrapper__continueButton___LScEl{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:32px;border-radius:4px;border-width:1px;border-color:rgba(0,0,0,0);font-style:normal;font-weight:bold;font-size:14px;line-height:17px;text-align:left;color:#fff;box-sizing:border-box;color:var(--playkit-primary-text-contrast-color);background:var(--playkit-primary-color);min-width:80px;margin-right:8px}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ .quiz-question-wrapper__continueButton___LScEl:hover:not(.quiz-question-wrapper__disabled___SQMW6){cursor:pointer}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ .quiz-question-wrapper__continueButton___LScEl:hover:not(.quiz-question-wrapper__disabled___SQMW6){background:var(--playkit-primary-darker-color)}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ .quiz-question-wrapper__continueButton___LScEl:focus:not(.quiz-question-wrapper__disabled___SQMW6){background:var(--playkit-primary-brighter-color)}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ .quiz-question-wrapper__continueButton___LScEl.quiz-question-wrapper__disabled___SQMW6{border-width:1px;border-style:solid;border-color:var(--playkit-tone-4-color);color:var(--playkit-tone-4-color);background:rgba(0,0,0,0)}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ .quiz-question-wrapper__skipButton___KKLzN{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:32px;border-radius:4px;border-width:1px;border-color:rgba(0,0,0,0);font-style:normal;font-weight:bold;font-size:14px;line-height:17px;text-align:left;color:#fff;box-sizing:border-box;color:var(--playkit-tone-1-color);background:rgba(0,0,0,0)}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ .quiz-question-wrapper__skipButton___KKLzN:hover:not(.quiz-question-wrapper__disabled___SQMW6){cursor:pointer}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ .quiz-question-wrapper__skipButton___KKLzN:hover:not(.quiz-question-wrapper__disabled___SQMW6){background:var(--playkit-tone-4-color)}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ .quiz-question-wrapper__skipButton___KKLzN:focus:not(.quiz-question-wrapper__disabled___SQMW6){background:var(--playkit-tone-6-color)}.quiz-question-wrapper__ivqQuestionContainer___ooMEe .quiz-question-wrapper__ivqButtonsWrapper___i5AlZ .quiz-question-wrapper__skipButton___KKLzN.quiz-question-wrapper__disabled___SQMW6{color:var(--playkit-tone-4-color)}","",{version:3,sources:["webpack://./components/quiz-question/quiz-question-wrapper.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,qDACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,WAAA,CACA,4BAAA,CACA,2BAAA,CAEA,wGACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,UAAA,CACA,eAAA,CCuHF,8GACE,uBAAA,CAdF,2HACE,SAAA,CAEF,iIACE,4BAAA,CAEF,iIACE,iBAAA,CACA,qCAAA,CD/GA,8GACE,aAAA,CAIJ,uGACE,YAAA,CACA,UAAA,CACA,eAAA,CACA,sJCDF,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iBA7BY,CA8BZ,gBAAA,CACA,0BAAA,CACA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CACA,UAAA,CACA,qBAAA,CAQA,gDC1C4B,CD2C5B,uCC9Cc,CF0BV,cAAA,CACA,gBAAA,CCWJ,0MACE,cAAA,CAQF,0MACE,8CC/CmB,CDiDrB,0MACE,gDCjDqB,CDmDvB,8LACE,gBAAA,CACA,kBAAA,CACA,wCC1BW,CD2BX,iCC3BW,CD4BX,wBAAA,CD7BA,kJCNF,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iBA7BY,CA8BZ,gBAAA,CACA,0BAAA,CACA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CACA,UAAA,CACA,qBAAA,CA2BA,iCCrCa,CDsCb,wBAAA,CA3BA,sMACE,cAAA,CA2BF,sMACE,sCCrCW,CDuCb,sMACE,sCCtCW,CDwCb,0LACE,iCC3CW",sourcesContent:["@import '../../theme.scss';\n\n.ivqQuestionContainer {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  flex-grow: 1;\n  max-height: calc(100% - #{$bottom-bar-height});\n  padding: 32px 32px 12px 32px;\n\n  .ivqQuestionWrapper {\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    width: 100%;\n    overflow: hidden;\n    @include outline-fix;\n    @include ivq-scrollbar;\n    &:hover {\n      overflow: auto;\n    }\n  }\n\n  .ivqButtonsWrapper {\n    display: flex;\n    width: 100%;\n    margin-top: 16px;\n    .continueButton {\n      @include ivq-primary-button;\n      min-width: 80px;\n      margin-right: 8px;\n    }\n    .skipButton {\n      @include ivq-secondary-button;\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={ivqQuestionContainer:"quiz-question-wrapper__ivqQuestionContainer___ooMEe",ivqQuestionWrapper:"quiz-question-wrapper__ivqQuestionWrapper___Tig55",ivqButtonsWrapper:"quiz-question-wrapper__ivqButtonsWrapper___i5AlZ",continueButton:"quiz-question-wrapper__continueButton___LScEl",disabled:"quiz-question-wrapper__disabled___SQMW6",skipButton:"quiz-question-wrapper__skipButton___KKLzN"};const s=a},6374:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".reflection-point__reflectionPointWrapper___WRnWb{display:flex;flex-direction:column;text-align:left;width:100%;max-height:100%}.reflection-point__reflectionPointWrapper___WRnWb .reflection-point__reflectionText___OHjbd{font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;flex-shrink:0;font-weight:bold;line-height:normal;overflow-wrap:break-word;font-size:16px;font-weight:normal}.reflection-point__reflectionPointWrapper___WRnWb .reflection-point__reflectionText___OHjbd:focus{outline:none !important}.reflection-point__reflectionPointWrapper___WRnWb .reflection-point__reflectionText___OHjbd .reflection-point__visuallyHidden___uZVVM{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}","",{version:3,sources:["webpack://./components/quiz-question/reflection-point/reflection-point.scss","webpack://./theme.scss"],names:[],mappings:"AAEA,kDACE,YAAA,CACA,qBAAA,CACA,eAAA,CACA,UAAA,CACA,eAAA,CACA,4FAAA,iBAAA,CCCA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CAIA,aAAA,CACA,gBAAA,CACA,kBAAA,CACA,wBAAA,CDRE,cAAA,CACA,kBAAA,CCQF,kGACE,uBAAA,CDRA,sICgIF,4BAAA,CACA,oBAAA,CACA,qBAAA,CACA,oBAAA,CACA,sBAAA,CACA,0BAAA,CACA,gCAAA,CACA,6BAAA,CACA,mBAAA",sourcesContent:["@import '../../../theme.scss';\n\n.reflectionPointWrapper {\n  display: flex;\n  flex-direction: column;\n  text-align: left;\n  width: 100%;\n  max-height: 100%;\n  .reflectionText {\n    @include ivq-text;\n    @include ivq-question-content;\n    font-size: 16px;\n    font-weight: normal;\n    .visuallyHidden {\n      @include visually-hidden;\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n"],sourceRoot:""}]),a.locals={reflectionPointWrapper:"reflection-point__reflectionPointWrapper___WRnWb",reflectionText:"reflection-point__reflectionText___OHjbd",visuallyHidden:"reflection-point__visuallyHidden___uZVVM"};const s=a},4071:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".true-false__trueFalseWrapper___kfIY9{display:flex;flex-direction:column;text-align:left;width:100%;max-height:100%}.true-false__trueFalseWrapper___kfIY9 .true-false__questionText___GvKWd{font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;flex-shrink:0;font-weight:bold;line-height:normal;overflow-wrap:break-word}.true-false__trueFalseWrapper___kfIY9 .true-false__questionText___GvKWd:focus{outline:none !important}.true-false__trueFalseWrapper___kfIY9 .true-false__questionText___GvKWd .true-false__visuallyHidden___L9EEz{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.true-false__trueFalseWrapper___kfIY9 .true-false__optionalAnswersWrapper___rtapO{display:flex;margin-top:16px}.true-false__trueFalseWrapper___kfIY9 .true-false__optionalAnswersWrapper___rtapO .true-false__trueFalseAnswer___n4a6B{display:flex;flex-shrink:0;height:32px;align-items:center;padding:5px 16px;background:rgba(255,255,255,.12);border-style:solid;border-width:1px;border-radius:4px;border-color:rgba(0,0,0,0);font-size:16px;line-height:normal;color:#fff;cursor:pointer;box-sizing:border-box;outline-offset:-1px;flex-shrink:1;width:100%;max-width:300px}.true-false__trueFalseWrapper___kfIY9 .true-false__optionalAnswersWrapper___rtapO .true-false__trueFalseAnswer___n4a6B:hover:not(.true-false__disabled___kx2gp){background:rgba(255,255,255,.2)}.true-false__trueFalseWrapper___kfIY9 .true-false__optionalAnswersWrapper___rtapO .true-false__trueFalseAnswer___n4a6B.true-false__active___iBhfA{border-color:var(--playkit-tone-1-color);background:rgba(255,255,255,.2)}.true-false__trueFalseWrapper___kfIY9 .true-false__optionalAnswersWrapper___rtapO .true-false__trueFalseAnswer___n4a6B.true-false__disabled___kx2gp{cursor:default}.true-false__trueFalseWrapper___kfIY9 .true-false__optionalAnswersWrapper___rtapO .true-false__trueFalseAnswer___n4a6B:first-child{margin-right:8px}","",{version:3,sources:["webpack://./components/quiz-question/true-false/true-false.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,sCACE,YAAA,CACA,qBAAA,CACA,eAAA,CACA,UAAA,CACA,eAAA,CACA,wEAAA,iBAAA,CCCA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CAIA,aAAA,CACA,gBAAA,CACA,kBAAA,CACA,wBAAA,CACA,8EACE,uBAAA,CDVA,4GCkIF,4BAAA,CACA,oBAAA,CACA,qBAAA,CACA,oBAAA,CACA,sBAAA,CACA,0BAAA,CACA,gCAAA,CACA,6BAAA,CACA,mBAAA,CDtIA,kFACE,YAAA,CACA,eAAA,CACA,uHC+DF,YAAA,CACA,aAAA,CACA,WAAA,CACA,kBAAA,CACA,gBAAA,CAEA,gCAnFkB,CAoFlB,kBAAA,CACA,gBAAA,CACA,iBAxFY,CAyFZ,0BAAA,CACA,cAAA,CACA,kBAAA,CACA,UAAA,CACA,cAAA,CACA,qBAAA,CACA,mBAAA,CD7EI,aAAA,CACA,UAAA,CACA,eAAA,CC4EJ,gKACE,+BA9FuB,CAgGzB,kJACE,wCCxEW,CDyEX,+BAlGuB,CAoGzB,oJACE,cAAA,CDnFE,mIACE,gBAAA",sourcesContent:["@import '../../../theme.scss';\n\n.trueFalseWrapper {\n  display: flex;\n  flex-direction: column;\n  text-align: left;\n  width: 100%;\n  max-height: 100%;\n  .questionText {\n    @include ivq-text;\n    @include ivq-question-content;\n    .visuallyHidden {\n      @include visually-hidden;\n    }\n  }\n  .optionalAnswersWrapper {\n    display: flex;\n    margin-top: 16px;\n    .trueFalseAnswer {\n      @include optional-answer;\n      flex-shrink: 1;\n      width: 100%;\n      max-width: 300px;\n      &:first-child {\n        margin-right: 8px;\n      }\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={trueFalseWrapper:"true-false__trueFalseWrapper___kfIY9",questionText:"true-false__questionText___GvKWd",visuallyHidden:"true-false__visuallyHidden___L9EEz",optionalAnswersWrapper:"true-false__optionalAnswersWrapper___rtapO",trueFalseAnswer:"true-false__trueFalseAnswer___n4a6B",disabled:"true-false__disabled___kx2gp",active:"true-false__active___iBhfA"};const s=a},5037:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,"div.question-icon__questionIcon___ivH7Z{width:32px;height:32px;display:flex;padding:8px;flex-shrink:0;justify-content:center;align-items:center;color:var(--playkit-primary-text-contrast-color)}div.question-icon__questionIcon___ivH7Z.question-icon__defaultIcon___AeZmK{background:rgba(68,68,68,.5)}div.question-icon__questionIcon___ivH7Z.question-icon__correctAnswer___UXBSD{background:rgba(0,135,101,.5)}div.question-icon__questionIcon___ivH7Z.question-icon__incorrectAnswer___JG9Aa{background:rgba(225,36,55,.5)}","",{version:3,sources:["webpack://./components/quiz-review/question-icon/question-icon.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,wCACE,UAAA,CACA,WAAA,CACA,YAAA,CACA,WAAA,CACA,aAAA,CACA,sBAAA,CACA,kBAAA,CACA,gDCJ4B,CDK5B,2EACE,4BAAA,CAEF,6EACE,6BAAA,CAEF,+EACE,6BAAA",sourcesContent:["@import '../../../theme.scss';\n\ndiv.questionIcon {\n  width: 32px;\n  height: 32px;\n  display: flex;\n  padding: 8px;\n  flex-shrink: 0;\n  justify-content: center;\n  align-items: center;\n  color: $primary-text-contrast-color;\n  &.defaultIcon {\n    background: rgba(68, 68, 68, 0.5);\n  }\n  &.correctAnswer {\n    background: rgba(0, 135, 101, 0.5);\n  }\n  &.incorrectAnswer {\n    background: rgba(225, 36, 55, 0.5);\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={questionIcon:"question-icon__questionIcon___ivH7Z",defaultIcon:"question-icon__defaultIcon___AeZmK",correctAnswer:"question-icon__correctAnswer___UXBSD",incorrectAnswer:"question-icon__incorrectAnswer___JG9Aa"};const s=a},862:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".question-list-review__quizReviewWrapper___DtXAD{display:flex;flex-direction:column;justify-content:center;text-align:left;width:100%;height:100%;padding:48px 64px}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__quizScore___uJql1{flex-shrink:0;font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;font-size:32px;margin-bottom:24px}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq{display:flex;flex-direction:row;overflow:hidden;width:100%}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq::-webkit-scrollbar{width:4px}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq::-webkit-scrollbar-track{background:rgba(33,33,33,.9)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq::-webkit-scrollbar-thumb{border-radius:3px;background-color:rgba(255,255,255,.3)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq:hover{overflow:auto}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk{display:flex;flex-direction:column;width:100%}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk:focus{outline:none !important}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM{display:flex;flex-shrink:0;height:32px;align-items:center;padding:5px 16px;background:rgba(255,255,255,.12);border-style:solid;border-width:1px;border-radius:4px;border-color:rgba(0,0,0,0);font-size:16px;line-height:normal;color:#fff;cursor:pointer;box-sizing:border-box;outline-offset:-1px;min-height:32px;margin:4px 0;padding:0;background:rgba(0,0,0,0);overflow:hidden}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM:hover:not(.question-list-review__disabled___vR2bj){background:rgba(255,255,255,.2)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM.question-list-review__active___Wk0_P{border-color:var(--playkit-tone-1-color);background:rgba(255,255,255,.2)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM.question-list-review__disabled___vR2bj{cursor:default}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM:first-child{margin-top:0}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM:last-child{margin-bottom:0}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM .question-list-review__questionLabel___fHnIo,.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM .question-list-review__questionContent___RDRY3{height:100%;background:rgba(255,255,255,.12)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM .question-list-review__questionLabel___fHnIo{display:flex;justify-content:center;align-items:flex-start;flex-shrink:0;flex-basis:32px;padding:5px 8px;border-right-style:solid;border-right-width:1px;border-right-color:rgba(0,0,0,0);background-clip:padding-box}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM .question-list-review__questionContent___RDRY3{flex-grow:1;padding:5px 16px 5px 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__questionsWrapper___yJqrq .question-list-review__questionsContainer___cMpIk .question-list-review__reviewAnswer___p7epM .question-list-review__visuallyHidden___dmDjQ{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb{display:flex;margin-top:24px}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb .question-list-review__primaryButton___hEgwe{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:32px;border-radius:4px;border-width:1px;border-color:rgba(0,0,0,0);font-style:normal;font-weight:bold;font-size:14px;line-height:17px;text-align:left;color:#fff;box-sizing:border-box;color:var(--playkit-primary-text-contrast-color);background:var(--playkit-primary-color);min-width:64px;margin-right:16px}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb .question-list-review__primaryButton___hEgwe:hover:not(.question-list-review__disabled___vR2bj){cursor:pointer}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb .question-list-review__primaryButton___hEgwe:hover:not(.question-list-review__disabled___vR2bj){background:var(--playkit-primary-darker-color)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb .question-list-review__primaryButton___hEgwe:focus:not(.question-list-review__disabled___vR2bj){background:var(--playkit-primary-brighter-color)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb .question-list-review__primaryButton___hEgwe.question-list-review__disabled___vR2bj{border-width:1px;border-style:solid;border-color:var(--playkit-tone-4-color);color:var(--playkit-tone-4-color);background:rgba(0,0,0,0)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb .question-list-review__secondaryButton___jk1ti{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:32px;border-radius:4px;border-width:1px;border-color:rgba(0,0,0,0);font-style:normal;font-weight:bold;font-size:14px;line-height:17px;text-align:left;color:#fff;box-sizing:border-box;color:var(--playkit-tone-1-color);background:rgba(0,0,0,0)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb .question-list-review__secondaryButton___jk1ti:hover:not(.question-list-review__disabled___vR2bj){cursor:pointer}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb .question-list-review__secondaryButton___jk1ti:hover:not(.question-list-review__disabled___vR2bj){background:var(--playkit-tone-4-color)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb .question-list-review__secondaryButton___jk1ti:focus:not(.question-list-review__disabled___vR2bj){background:var(--playkit-tone-6-color)}.question-list-review__quizReviewWrapper___DtXAD .question-list-review__buttonWrapper___DKhyb .question-list-review__secondaryButton___jk1ti.question-list-review__disabled___vR2bj{color:var(--playkit-tone-4-color)}","",{version:3,sources:["webpack://./components/quiz-review/question-list-review/question-list-review.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,iDACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,eAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,0FACE,aAAA,CCHF,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CDCE,cAAA,CACA,kBAAA,CAEF,iGACE,YAAA,CACA,kBAAA,CACA,eAAA,CACA,UAAA,CCqGF,oHACE,SAAA,CAEF,0HACE,4BAAA,CAEF,0HACE,iBAAA,CACA,qCAAA,CD3GA,uGACE,aAAA,CAGF,mJACE,YAAA,CACA,qBAAA,CACA,UAAA,CCyGJ,yJACE,uBAAA,CDxGE,+LCkDJ,YAAA,CACA,aAAA,CACA,WAAA,CACA,kBAAA,CACA,gBAAA,CAEA,gCAnFkB,CAoFlB,kBAAA,CACA,gBAAA,CACA,iBAxFY,CAyFZ,0BAAA,CACA,cAAA,CACA,kBAAA,CACA,UAAA,CACA,cAAA,CACA,qBAAA,CACA,mBAAA,CDhEM,eAAA,CACA,YAAA,CACA,SAAA,CACA,wBAAA,CACA,eAAA,CC6DN,kPACE,+BA9FuB,CAgGzB,oOACE,wCCxEW,CDyEX,+BAlGuB,CAoGzB,sOACE,cAAA,CDpEI,2MACE,YAAA,CAEF,0MACE,eAAA,CAEF,0dAEE,WAAA,CACA,gCC3CU,CD6CZ,4OACE,YAAA,CACA,sBAAA,CACA,sBAAA,CACA,aAAA,CACA,eAAA,CACA,eAAA,CACA,wBAAA,CACA,sBAAA,CACA,gCAAA,CACA,2BAAA,CAEF,8OACE,WAAA,CACA,wBAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CAEF,6OCyEN,4BAAA,CACA,oBAAA,CACA,qBAAA,CACA,oBAAA,CACA,sBAAA,CACA,0BAAA,CACA,gCAAA,CACA,6BAAA,CACA,mBAAA,CD3EA,8FACE,YAAA,CACA,eAAA,CACA,2ICnDF,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iBA7BY,CA8BZ,gBAAA,CACA,0BAAA,CACA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CACA,UAAA,CACA,qBAAA,CAQA,gDC1C4B,CD2C5B,uCC9Cc,CF4EV,cAAA,CACA,iBAAA,CCvCJ,8LACE,cAAA,CAQF,8LACE,8CC/CmB,CDiDrB,8LACE,gDCjDqB,CDmDvB,kLACE,gBAAA,CACA,kBAAA,CACA,wCC1BW,CD2BX,iCC3BW,CD4BX,wBAAA,CDqBA,6ICxDF,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iBA7BY,CA8BZ,gBAAA,CACA,0BAAA,CACA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CACA,UAAA,CACA,qBAAA,CA2BA,iCCrCa,CDsCb,wBAAA,CA3BA,gMACE,cAAA,CA2BF,gMACE,sCCrCW,CDuCb,gMACE,sCCtCW,CDwCb,oLACE,iCC3CW",sourcesContent:["@import '../../../theme.scss';\n\n.quizReviewWrapper {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  text-align: left;\n  width: 100%;\n  height: 100%;\n  padding: 48px 64px;\n  .quizScore {\n    flex-shrink: 0;\n    @include ivq-text;\n    font-size: 32px;\n    margin-bottom: 24px;\n  }\n  .questionsWrapper {\n    display: flex;\n    flex-direction: row;\n    overflow: hidden;\n    width: 100%;\n    @include ivq-scrollbar;\n    &:hover {\n      overflow: auto;\n    }\n\n    .questionsContainer {\n      display: flex;\n      flex-direction: column;\n      width: 100%;\n      @include outline-fix;\n      .reviewAnswer {\n        @include optional-answer;\n        min-height: 32px;\n        margin: 4px 0;\n        padding: 0;\n        background: transparent;\n        overflow: hidden;\n        &:first-child {\n          margin-top: 0;\n        }\n        &:last-child {\n          margin-bottom: 0;\n        }\n        .questionLabel,\n        .questionContent {\n          height: 100%;\n          background: $button-background;\n        }\n        .questionLabel {\n          display: flex;\n          justify-content: center;\n          align-items: flex-start;\n          flex-shrink: 0;\n          flex-basis: 32px;\n          padding: 5px 8px;\n          border-right-style: solid;\n          border-right-width: 1px;\n          border-right-color: transparent;\n          background-clip: padding-box;\n        }\n        .questionContent {\n          flex-grow: 1;\n          padding: 5px 16px 5px 8px;\n          overflow: hidden;\n          white-space: nowrap;\n          text-overflow: ellipsis;\n        }\n        .visuallyHidden {\n          @include visually-hidden;\n        }\n      }\n    }\n  }\n  .buttonWrapper {\n    display: flex;\n    margin-top: 24px;\n    .primaryButton {\n      @include ivq-primary-button;\n      min-width: 64px;\n      margin-right: 16px;\n    }\n    .secondaryButton {\n      @include ivq-secondary-button;\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={quizReviewWrapper:"question-list-review__quizReviewWrapper___DtXAD",quizScore:"question-list-review__quizScore___uJql1",questionsWrapper:"question-list-review__questionsWrapper___yJqrq",questionsContainer:"question-list-review__questionsContainer___cMpIk",reviewAnswer:"question-list-review__reviewAnswer___p7epM",disabled:"question-list-review__disabled___vR2bj",active:"question-list-review__active___Wk0_P",questionLabel:"question-list-review__questionLabel___fHnIo",questionContent:"question-list-review__questionContent___RDRY3",visuallyHidden:"question-list-review__visuallyHidden___dmDjQ",buttonWrapper:"question-list-review__buttonWrapper___DKhyb",primaryButton:"question-list-review__primaryButton___hEgwe",secondaryButton:"question-list-review__secondaryButton___jk1ti"};const s=a},485:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".question-review__questionReviewWrapper___FOTbA{display:flex;flex-direction:column;flex-grow:1;max-height:calc(100% - 60px);padding:32px 32px 12px 32px}.question-review__questionReviewWrapper___FOTbA .question-review__backButtonContainer___Zwube{display:flex;justify-content:flex-start}.question-review__questionReviewWrapper___FOTbA .question-review__backButtonContainer___Zwube .question-review__backButton___VkTfr{display:flex;align-items:center;background:rgba(0,0,0,0);padding:0 12px;border:none;width:fit-content;height:32px;cursor:pointer;font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;font-size:14px;font-weight:700}.question-review__questionReviewWrapper___FOTbA .question-review__backButtonContainer___Zwube .question-review__backButton___VkTfr .question-review__iconContainer___OUM6D{width:24px;height:24px;padding:3px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU{display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;overflow:hidden;text-align:left}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU::-webkit-scrollbar{width:4px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU::-webkit-scrollbar-track{background:rgba(33,33,33,.9)}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU::-webkit-scrollbar-thumb{border-radius:3px;background-color:rgba(255,255,255,.3)}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU:hover{overflow:auto}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__questionText___pONFe{font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;flex-shrink:0;overflow-wrap:break-word;font-weight:bold;margin-bottom:4px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__questionText___pONFe .question-review__visuallyHidden___wey_h{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__correctAnswerIs___M2jQr{font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;flex-shrink:0;font-size:16px;margin-bottom:10px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__yourAnswer___0Njea,.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__openQuestionAnswer___mg4hy{font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto;flex-shrink:0;overflow-wrap:break-word;font-size:14px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__yourAnswer___0Njea{margin-top:16px;margin-bottom:4px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__yourAnswer___0Njea .question-review__visuallyHidden___wey_h{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__openQuestionAnswer___mg4hy{margin-top:12px;margin-bottom:10px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__trueFalseAnswerWrapper___xXB0x{display:flex;margin-top:4px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__trueFalseAnswerWrapper___xXB0x .question-review__trueFalseAnswer___Gmj5V{display:flex;flex-shrink:0;height:32px;align-items:center;padding:5px 16px;background:rgba(255,255,255,.12);border-style:solid;border-width:1px;border-radius:4px;border-color:rgba(0,0,0,0);font-size:16px;line-height:normal;color:#fff;cursor:pointer;box-sizing:border-box;outline-offset:-1px;justify-content:space-between;padding-right:0;flex-shrink:1;width:100%;max-width:300px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__trueFalseAnswerWrapper___xXB0x .question-review__trueFalseAnswer___Gmj5V:hover:not(.question-review__disabled___I02Zu){background:rgba(255,255,255,.2)}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__trueFalseAnswerWrapper___xXB0x .question-review__trueFalseAnswer___Gmj5V.question-review__active___fhVw1{border-color:var(--playkit-tone-1-color);background:rgba(255,255,255,.2)}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__trueFalseAnswerWrapper___xXB0x .question-review__trueFalseAnswer___Gmj5V.question-review__disabled___I02Zu{cursor:default}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__trueFalseAnswerWrapper___xXB0x .question-review__trueFalseAnswer___Gmj5V:first-child{margin-right:8px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp{display:flex;flex-direction:row;overflow:hidden;margin-top:4px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp::-webkit-scrollbar{width:4px}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp::-webkit-scrollbar-track{background:rgba(33,33,33,.9)}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp::-webkit-scrollbar-thumb{border-radius:3px;background-color:rgba(255,255,255,.3)}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp:hover{overflow:auto}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw{display:flex;flex-direction:column;flex-grow:1;flex-shrink:0;max-width:100%;overflow:hidden}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF{display:flex;flex-shrink:0;height:32px;align-items:center;padding:5px 16px;background:rgba(255,255,255,.12);border-style:solid;border-width:1px;border-radius:4px;border-color:rgba(0,0,0,0);font-size:16px;line-height:normal;color:#fff;cursor:pointer;box-sizing:border-box;outline-offset:-1px;height:auto;min-height:32px;margin:4px 0;padding:0;background:rgba(0,0,0,0)}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF:hover:not(.question-review__disabled___I02Zu){background:rgba(255,255,255,.2)}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF.question-review__active___fhVw1{border-color:var(--playkit-tone-1-color);background:rgba(255,255,255,.2)}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF.question-review__disabled___I02Zu{cursor:default}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF:first-child{margin-top:0}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF:last-child{margin-bottom:0}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF .question-review__questionLabel___xsnZq,.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF .question-review__questionContent___kjK83,.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF .question-review__iconPlaceholder___p8Q_W{background:rgba(255,255,255,.12)}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF .question-review__questionLabel___xsnZq{display:flex;justify-content:center;align-items:flex-start;height:100%;flex-shrink:0;flex-basis:32px;padding:5px 8px;border-right-style:solid;border-right-width:1px;border-right-color:rgba(0,0,0,0);background-clip:padding-box}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF .question-review__questionContent___kjK83{min-width:0;max-width:calc(100% - 64px);height:100%;width:max-content;flex-grow:1;flex-shrink:0;padding:5px 16px 5px 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__multiAnswersContainer___vKoOw .question-review__multiSelectAnswer___tu4gF .question-review__iconPlaceholder___p8Q_W{height:100%;flex-basis:32px;flex-shrink:0}.question-review__questionReviewWrapper___FOTbA .question-review__quizQuestionContainer___b9WwU .question-review__multiAnswersWrapper___ILSTp .question-review__rightDivider___Vmcyg{flex-grow:50}","",{version:3,sources:["webpack://./components/quiz-review/question-review/question-review.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,gDACE,YAAA,CACA,qBAAA,CACA,WAAA,CACA,4BAAA,CACA,2BAAA,CACA,8FACE,YAAA,CACA,0BAAA,CACA,mIACE,YAAA,CACA,kBAAA,CACA,wBAAA,CACA,cAAA,CACA,WAAA,CACA,iBAAA,CACA,WAAA,CACA,cAAA,CCXJ,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CDSI,cAAA,CACA,eAAA,CACA,2KACE,UAAA,CACA,WAAA,CACA,WAAA,CAIN,gGACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CACA,eAAA,CCoFF,mHACE,SAAA,CAEF,yHACE,4BAAA,CAEF,yHACE,iBAAA,CACA,qCAAA,CD1FA,sGACE,aAAA,CAGF,uICnCF,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CDiCI,aAAA,CACA,wBAAA,CACA,gBAAA,CACA,iBAAA,CACA,gLC4FJ,4BAAA,CACA,oBAAA,CACA,qBAAA,CACA,oBAAA,CACA,sBAAA,CACA,0BAAA,CACA,gCAAA,CACA,6BAAA,CACA,mBAAA,CDhGE,0IC7CF,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CD2CI,aAAA,CACA,cAAA,CACA,kBAAA,CAGF,kRCpDF,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CDmDI,aAAA,CACA,wBAAA,CACA,cAAA,CAGF,qIACE,eAAA,CACA,iBAAA,CACA,8KCsEJ,4BAAA,CACA,oBAAA,CACA,qBAAA,CACA,oBAAA,CACA,sBAAA,CACA,0BAAA,CACA,gCAAA,CACA,6BAAA,CACA,mBAAA,CDzEE,6IACE,eAAA,CACA,kBAAA,CAGF,iJACE,YAAA,CACA,cAAA,CACA,2LCHJ,YAAA,CACA,aAAA,CACA,WAAA,CACA,kBAAA,CACA,gBAAA,CAEA,gCAnFkB,CAoFlB,kBAAA,CACA,gBAAA,CACA,iBAxFY,CAyFZ,0BAAA,CACA,cAAA,CACA,kBAAA,CACA,UAAA,CACA,cAAA,CACA,qBAAA,CACA,mBAAA,CDXM,6BAAA,CACA,eAAA,CACA,aAAA,CACA,UAAA,CACA,eAAA,CCQN,yOACE,+BA9FuB,CAgGzB,2NACE,wCCxEW,CDyEX,+BAlGuB,CAoGzB,6NACE,cAAA,CDfI,uMACE,gBAAA,CAKN,8IACE,YAAA,CACA,kBAAA,CACA,eAAA,CACA,cAAA,CCoBJ,iKACE,SAAA,CAEF,uKACE,4BAAA,CAEF,uKACE,iBAAA,CACA,qCAAA,CD1BE,oJACE,aAAA,CAGF,8LACE,YAAA,CACA,qBAAA,CACA,WAAA,CACA,aAAA,CACA,cAAA,CACA,eAAA,CACA,0OCjCN,YAAA,CACA,aAAA,CACA,WAAA,CACA,kBAAA,CACA,gBAAA,CAEA,gCAnFkB,CAoFlB,kBAAA,CACA,gBAAA,CACA,iBAxFY,CAyFZ,0BAAA,CACA,cAAA,CACA,kBAAA,CACA,UAAA,CACA,cAAA,CACA,qBAAA,CACA,mBAAA,CDmBQ,WAAA,CACA,eAAA,CACA,YAAA,CACA,SAAA,CACA,wBAAA,CCtBR,wRACE,+BA9FuB,CAgGzB,0QACE,wCCxEW,CDyEX,+BAlGuB,CAoGzB,4QACE,cAAA,CDeM,sPACE,YAAA,CAEF,qPACE,eAAA,CAEF,0zBAGE,gCC9HQ,CDgIV,kRACE,YAAA,CACA,sBAAA,CACA,sBAAA,CACA,WAAA,CACA,aAAA,CACA,eAAA,CACA,eAAA,CACA,wBAAA,CACA,sBAAA,CACA,gCAAA,CACA,2BAAA,CAEF,oRACE,WAAA,CACA,2BAAA,CACA,WAAA,CACA,iBAAA,CACA,WAAA,CACA,aAAA,CACA,wBAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CAEF,oRACE,WAAA,CACA,eAAA,CACA,aAAA,CAIN,qLACE,YAAA",sourcesContent:["@import '../../../theme.scss';\n\n.questionReviewWrapper {\n  display: flex;\n  flex-direction: column;\n  flex-grow: 1;\n  max-height: calc(100% - #{$bottom-bar-height});\n  padding: 32px 32px 12px 32px;\n  .backButtonContainer {\n    display: flex;\n    justify-content: flex-start;\n    .backButton {\n      display: flex;\n      align-items: center;\n      background: transparent;\n      padding: 0 12px;\n      border: none;\n      width: fit-content;\n      height: 32px;\n      cursor: pointer;\n      @include ivq-text;\n      font-size: 14px;\n      font-weight: 700;\n      .iconContainer {\n        width: 24px;\n        height: 24px;\n        padding: 3px;\n      }\n    }\n  }\n  .quizQuestionContainer {\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    width: 100%;\n    height: 100%;\n    overflow: hidden;\n    text-align: left;\n    @include ivq-scrollbar;\n    &:hover {\n      overflow: auto;\n    }\n\n    .questionText {\n      @include ivq-text;\n      flex-shrink: 0;\n      overflow-wrap: break-word;\n      font-weight: bold;\n      margin-bottom: 4px;\n      .visuallyHidden {\n        @include visually-hidden;\n      }\n    }\n    .correctAnswerIs {\n      @include ivq-text;\n      flex-shrink: 0;\n      font-size: 16px;\n      margin-bottom: 10px;\n    }\n\n    .yourAnswer,\n    .openQuestionAnswer {\n      @include ivq-text;\n      flex-shrink: 0;\n      overflow-wrap: break-word;\n      font-size: 14px;\n    }\n\n    .yourAnswer {\n      margin-top: 16px;\n      margin-bottom: 4px;\n      .visuallyHidden {\n        @include visually-hidden;\n      }\n    }\n\n    .openQuestionAnswer {\n      margin-top: 12px;\n      margin-bottom: 10px;\n    }\n\n    .trueFalseAnswerWrapper {\n      display: flex;\n      margin-top: 4px;\n      .trueFalseAnswer {\n        @include optional-answer;\n        justify-content: space-between;\n        padding-right: 0;\n        flex-shrink: 1;\n        width: 100%;\n        max-width: 300px;\n        &:first-child {\n          margin-right: 8px;\n        }\n      }\n    }\n\n    .multiAnswersWrapper {\n      display: flex;\n      flex-direction: row;\n      overflow: hidden;\n      margin-top: 4px;\n      @include ivq-scrollbar;\n      &:hover {\n        overflow: auto;\n      }\n\n      .multiAnswersContainer {\n        display: flex;\n        flex-direction: column;\n        flex-grow: 1;\n        flex-shrink: 0;\n        max-width: 100%;\n        overflow: hidden;\n        .multiSelectAnswer {\n          @include optional-answer;\n          height: auto;\n          min-height: 32px;\n          margin: 4px 0;\n          padding: 0;\n          background: transparent;\n          &:first-child {\n            margin-top: 0;\n          }\n          &:last-child {\n            margin-bottom: 0;\n          }\n          .questionLabel,\n          .questionContent,\n          .iconPlaceholder {\n            background: $button-background;\n          }\n          .questionLabel {\n            display: flex;\n            justify-content: center;\n            align-items: flex-start;\n            height: 100%;\n            flex-shrink: 0;\n            flex-basis: 32px;\n            padding: 5px 8px;\n            border-right-style: solid;\n            border-right-width: 1px;\n            border-right-color: transparent;\n            background-clip: padding-box;\n          }\n          .questionContent {\n            min-width: 0;\n            max-width: calc(100% - 64px); // question label + icon or placeholder\n            height: 100%;\n            width: max-content;\n            flex-grow: 1;\n            flex-shrink: 0;\n            padding: 5px 16px 5px 8px;\n            overflow: hidden;\n            white-space: nowrap;\n            text-overflow: ellipsis;\n          }\n          .iconPlaceholder {\n            height: 100%;\n            flex-basis: 32px;\n            flex-shrink: 0;\n          }\n        }\n      }\n      .rightDivider {\n        flex-grow: 50;\n      }\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={questionReviewWrapper:"question-review__questionReviewWrapper___FOTbA",backButtonContainer:"question-review__backButtonContainer___Zwube",backButton:"question-review__backButton___VkTfr",iconContainer:"question-review__iconContainer___OUM6D",quizQuestionContainer:"question-review__quizQuestionContainer___b9WwU",questionText:"question-review__questionText___pONFe",visuallyHidden:"question-review__visuallyHidden___wey_h",correctAnswerIs:"question-review__correctAnswerIs___M2jQr",yourAnswer:"question-review__yourAnswer___0Njea",openQuestionAnswer:"question-review__openQuestionAnswer___mg4hy",trueFalseAnswerWrapper:"question-review__trueFalseAnswerWrapper___xXB0x",trueFalseAnswer:"question-review__trueFalseAnswer___Gmj5V",disabled:"question-review__disabled___I02Zu",active:"question-review__active___fhVw1",multiAnswersWrapper:"question-review__multiAnswersWrapper___ILSTp",multiAnswersContainer:"question-review__multiAnswersContainer___vKoOw",multiSelectAnswer:"question-review__multiSelectAnswer___tu4gF",questionLabel:"question-review__questionLabel___xsnZq",questionContent:"question-review__questionContent___kjK83",iconPlaceholder:"question-review__iconPlaceholder___p8Q_W",rightDivider:"question-review__rightDivider___Vmcyg"};const s=a},5539:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".quiz-submit__quizSubmitWrapper___rW273{display:flex;flex-direction:column;justify-content:center;text-align:left;width:100%;height:100%;padding:48px 120px}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__title___CWLKo,.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__description___jOnj2{font-style:normal;line-height:normal;font-size:18px;color:#fff;overflow:auto}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__title___CWLKo{flex-shrink:0;font-size:32px;line-height:normal;font-weight:700}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__description___jOnj2{margin-top:16px;font-size:16px}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz{display:flex;margin-top:24px}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz .quiz-submit__primaryButton___fdXhM{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:32px;border-radius:4px;border-width:1px;border-color:rgba(0,0,0,0);font-style:normal;font-weight:bold;font-size:14px;line-height:17px;text-align:left;color:#fff;box-sizing:border-box;color:var(--playkit-primary-text-contrast-color);background:var(--playkit-primary-color);min-width:66px;margin-right:16px}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz .quiz-submit__primaryButton___fdXhM:hover:not(.quiz-submit__disabled___TSHcW){cursor:pointer}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz .quiz-submit__primaryButton___fdXhM:hover:not(.quiz-submit__disabled___TSHcW){background:var(--playkit-primary-darker-color)}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz .quiz-submit__primaryButton___fdXhM:focus:not(.quiz-submit__disabled___TSHcW){background:var(--playkit-primary-brighter-color)}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz .quiz-submit__primaryButton___fdXhM.quiz-submit__disabled___TSHcW{border-width:1px;border-style:solid;border-color:var(--playkit-tone-4-color);color:var(--playkit-tone-4-color);background:rgba(0,0,0,0)}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz .quiz-submit__secondaryButton___MjGfR{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:32px;border-radius:4px;border-width:1px;border-color:rgba(0,0,0,0);font-style:normal;font-weight:bold;font-size:14px;line-height:17px;text-align:left;color:#fff;box-sizing:border-box;color:var(--playkit-tone-1-color);background:rgba(0,0,0,0)}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz .quiz-submit__secondaryButton___MjGfR:hover:not(.quiz-submit__disabled___TSHcW){cursor:pointer}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz .quiz-submit__secondaryButton___MjGfR:hover:not(.quiz-submit__disabled___TSHcW){background:var(--playkit-tone-4-color)}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz .quiz-submit__secondaryButton___MjGfR:focus:not(.quiz-submit__disabled___TSHcW){background:var(--playkit-tone-6-color)}.quiz-submit__quizSubmitWrapper___rW273 .quiz-submit__buttonWrapper___sRTXz .quiz-submit__secondaryButton___MjGfR.quiz-submit__disabled___TSHcW{color:var(--playkit-tone-4-color)}.playkit-size-md .quiz-submit__quizSubmitWrapper___rW273{padding-left:84px;padding-right:84px}","",{version:3,sources:["webpack://./components/quiz-submit/quiz-submit.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,wCACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,eAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CAEA,8ICHA,iBAAA,CACA,kBAAA,CACA,cAAA,CACA,UAAA,CACA,aAAA,CDGA,oEACE,aAAA,CACA,cAAA,CACA,kBAAA,CACA,eAAA,CAEF,0EACE,eAAA,CACA,cAAA,CAEF,4EACE,YAAA,CACA,eAAA,CACA,gHCFF,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iBA7BY,CA8BZ,gBAAA,CACA,0BAAA,CACA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CACA,UAAA,CACA,qBAAA,CAQA,gDC1C4B,CD2C5B,uCC9Cc,CF2BV,cAAA,CACA,iBAAA,CCUJ,0JACE,cAAA,CAQF,0JACE,8CC/CmB,CDiDrB,0JACE,gDCjDqB,CDmDvB,8IACE,gBAAA,CACA,kBAAA,CACA,wCC1BW,CD2BX,iCC3BW,CD4BX,wBAAA,CD5BA,kHCPF,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iBA7BY,CA8BZ,gBAAA,CACA,0BAAA,CACA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CACA,UAAA,CACA,qBAAA,CA2BA,iCCrCa,CDsCb,wBAAA,CA3BA,4JACE,cAAA,CA2BF,4JACE,sCCrCW,CDuCb,4JACE,sCCtCW,CDwCb,gJACE,iCC3CW,CFOb,yDACE,iBAAA,CACA,kBAAA",sourcesContent:["@import '../../theme.scss';\n\n.quizSubmitWrapper {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  text-align: left;\n  width: 100%;\n  height: 100%;\n  padding: 48px 120px;\n\n  .title,\n  .description {\n    @include ivq-text;\n  }\n  .title {\n    flex-shrink: 0;\n    font-size: 32px;\n    line-height: normal;\n    font-weight: 700;\n  }\n  .description {\n    margin-top: 16px;\n    font-size: 16px;\n  }\n  .buttonWrapper {\n    display: flex;\n    margin-top: 24px;\n    .primaryButton {\n      @include ivq-primary-button;\n      min-width: 66px;\n      margin-right: 16px;\n    }\n    .secondaryButton {\n      @include ivq-secondary-button;\n    }\n  }\n}\n\n:global(.playkit-size-md) {\n  .quizSubmitWrapper {\n    padding-left: 84px;\n    padding-right: 84px;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={quizSubmitWrapper:"quiz-submit__quizSubmitWrapper___rW273",title:"quiz-submit__title___CWLKo",description:"quiz-submit__description___jOnj2",buttonWrapper:"quiz-submit__buttonWrapper___sRTXz",primaryButton:"quiz-submit__primaryButton___fdXhM",disabled:"quiz-submit__disabled___TSHcW",secondaryButton:"quiz-submit__secondaryButton___MjGfR"};const s=a},7586:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,"div.spinner__ivqLoader___PeHQm{margin:auto;border:3px solid rgba(255,255,255,.2);border-radius:50%;border-top:3px solid var(--playkit-tone-1-color);animation:spinner__spinner___ihMDA 1s linear infinite}@keyframes spinner__spinner___ihMDA{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}","",{version:3,sources:["webpack://./components/spinner/spinner.scss"],names:[],mappings:"AAEA,+BACE,WAAA,CACA,qCAAA,CACA,iBAAA,CACA,gDAAA,CACA,qDAAA,CAEF,oCACE,GACE,sBAAA,CAEF,KACE,wBAAA,CAAA",sourcesContent:["@import '../../theme.scss';\n\ndiv.ivqLoader {\n  margin: auto;\n  border: 3px solid rgba(255, 255, 255, 0.2);\n  border-radius: 50%;\n  border-top: 3px solid $tone-1-color;\n  animation: spinner 1s linear infinite;\n}\n@keyframes spinner {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n"],sourceRoot:""}]),a.locals={ivqLoader:"spinner__ivqLoader___PeHQm",spinner:"spinner__spinner___ihMDA"};const s=a},4091:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".timeline-marker__markerWrapper___mtANe{display:flex;justify-content:center;width:12px;height:8px;transform:translateY(-2px);background-color:rgba(0,0,0,0);outline-offset:1px}.timeline-marker__markerWrapper___mtANe.timeline-marker__hover___n2HjX{height:12px;transition:height 200ms ease,transform 200ms ease}.timeline-marker__markerWrapper___mtANe .timeline-marker__marker___jE9ks{width:4px;height:100%;border-radius:4px;background-color:#fff}","",{version:3,sources:["webpack://./components/timeline/timeline-marker.scss","webpack://./theme.scss"],names:[],mappings:"AAEA,wCACE,YAAA,CACA,sBAAA,CACA,UAAA,CACA,UAAA,CACA,0BAAA,CACA,8BAAA,CACA,kBAAA,CACA,uEACE,WAAA,CACA,iDAAA,CAEF,yEACE,SAAA,CACA,WAAA,CACA,iBCfU,CDgBV,qBAAA",sourcesContent:["@import '../../theme.scss';\n\n.markerWrapper {\n  display: flex;\n  justify-content: center;\n  width: 12px;\n  height: 8px;\n  transform: translateY(-2px);\n  background-color: transparent;\n  outline-offset: 1px;\n  &.hover {\n    height: 12px;\n    transition: height 200ms ease, transform 200ms ease;\n  }\n  .marker {\n    width: 4px;\n    height: 100%;\n    border-radius: $roundness-1;\n    background-color: #ffffff;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n"],sourceRoot:""}]),a.locals={markerWrapper:"timeline-marker__markerWrapper___mtANe",hover:"timeline-marker__hover___n2HjX",marker:"timeline-marker__marker___jE9ks"};const s=a},9821:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".timeline-preview__container___XkOHv{background:rgba(0,0,0,.7);background-clip:content-box;border:2px solid rgba(255,255,255,.2);border-radius:4px;width:auto;height:auto;cursor:default}.timeline-preview__container___XkOHv .timeline-preview__header___a7xq2{display:flex;align-items:center;padding:7px;height:100%;min-height:32px;color:#fff;font-size:14px}.timeline-preview__container___XkOHv .timeline-preview__header___a7xq2>i{width:16px;height:16px}.timeline-preview__container___XkOHv .timeline-preview__header___a7xq2 .timeline-preview__title___W77fD{flex-grow:1;margin:0 2px 0 6px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-preview__container___XkOHv .timeline-preview__header___a7xq2 .timeline-preview__questionLink___rSqVo{display:flex;padding:0;background:rgba(0,0,0,0);border:none;cursor:pointer}.timeline-preview__container___XkOHv .timeline-preview__header___a7xq2 .timeline-preview__questionLink___rSqVo i{width:18px;height:18px}","",{version:3,sources:["webpack://./components/timeline/timeline-preview.scss","webpack://./theme.scss"],names:[],mappings:"AAEA,qCACE,yBAAA,CACA,2BAAA,CACA,qCAAA,CACA,iBCJY,CDKZ,UAAA,CACA,WAAA,CACA,cAAA,CACA,uEACE,YAAA,CACA,kBAAA,CACA,WAAA,CACA,WAAA,CACA,eAAA,CACA,UAAA,CACA,cAAA,CACA,yEACE,UAAA,CACA,WAAA,CAEF,wGACE,WAAA,CACA,kBAAA,CACA,eAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CAEF,+GACE,YAAA,CACA,SAAA,CACA,wBAAA,CACA,WAAA,CACA,cAAA,CACA,iHACE,UAAA,CACA,WAAA",sourcesContent:["@import '../../theme.scss';\n\n.container {\n  background: rgba(0, 0, 0, 0.7);\n  background-clip: content-box;\n  border: 2px solid rgba(255, 255, 255, 0.2);\n  border-radius: $roundness-1;\n  width: auto;\n  height: auto;\n  cursor: default;\n  .header {\n    display: flex;\n    align-items: center;\n    padding: 7px;\n    height: 100%;\n    min-height: 32px;\n    color: #ffffff;\n    font-size: 14px;\n    > i {\n      width: 16px;\n      height: 16px;\n    }\n    .title {\n      flex-grow: 1;\n      margin: 0 2px 0 6px;\n      text-align: left;\n      white-space: nowrap;\n      overflow: hidden;\n      text-overflow: ellipsis;\n    }\n    .questionLink {\n      display: flex;\n      padding: 0;\n      background: transparent;\n      border: none;\n      cursor: pointer;\n      i {\n        width: 18px;\n        height: 18px;\n      }\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n"],sourceRoot:""}]),a.locals={container:"timeline-preview__container___XkOHv",header:"timeline-preview__header___a7xq2",title:"timeline-preview__title___W77fD",questionLink:"timeline-preview__questionLink___rSqVo"};const s=a},1940:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".welcome-screen__welcomeScreenWrapper___jGNP3{position:absolute;left:0;top:0;width:100%;height:100%;text-align:left}.welcome-screen__welcomeScreenWrapper___jGNP3.welcome-screen__withPoster___e3DYq{background-size:contain;background-position:center center;background-repeat:no-repeat}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__background___EP22S{position:absolute;left:0;top:0;width:100%;height:100%;background:linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);transform:rotate(-180deg)}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_{color:#fff;font-size:14px;position:absolute;bottom:0px;padding:32px}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_>div:focus{outline:none !important}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__title___tpiPJ{font-weight:700;font-size:32px}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__desc___F2VCr{font-weight:400;font-size:14px;padding-top:16px}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__tip___rgZo1,.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__attempts___GoBwT{font-weight:400;font-size:14px;padding-top:5px}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ{display:flex;width:100%;justify-content:flex-start;margin-top:16px}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__startQuizButton___VujBD{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:32px;border-radius:4px;border-width:1px;border-color:rgba(0,0,0,0);font-style:normal;font-weight:bold;font-size:14px;line-height:17px;text-align:left;color:#fff;box-sizing:border-box;color:var(--playkit-primary-text-contrast-color);background:var(--playkit-primary-color);min-width:80px;margin-right:8px}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__startQuizButton___VujBD:hover:not(.welcome-screen__disabled___XD_Lw){cursor:pointer}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__startQuizButton___VujBD:hover:not(.welcome-screen__disabled___XD_Lw){background:var(--playkit-primary-darker-color)}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__startQuizButton___VujBD:focus:not(.welcome-screen__disabled___XD_Lw){background:var(--playkit-primary-brighter-color)}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__startQuizButton___VujBD.welcome-screen__disabled___XD_Lw{border-width:1px;border-style:solid;border-color:var(--playkit-tone-4-color);color:var(--playkit-tone-4-color);background:rgba(0,0,0,0)}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__download___xA8Q4{display:flex;justify-content:center;align-items:center;padding:4px 8px;height:32px;border-radius:4px;border-width:1px;border-color:rgba(0,0,0,0);font-style:normal;font-weight:bold;font-size:14px;line-height:17px;text-align:left;color:#fff;box-sizing:border-box;color:var(--playkit-tone-1-color);background:rgba(0,0,0,0);padding:8px 12px 8px 8px;width:fit-content}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__download___xA8Q4:hover:not(.welcome-screen__disabled___XD_Lw){cursor:pointer}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__download___xA8Q4:hover:not(.welcome-screen__disabled___XD_Lw){background:var(--playkit-tone-4-color)}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__download___xA8Q4:focus:not(.welcome-screen__disabled___XD_Lw){background:var(--playkit-tone-6-color)}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__download___xA8Q4.welcome-screen__disabled___XD_Lw{color:var(--playkit-tone-4-color)}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__download___xA8Q4 .welcome-screen__spinnerContainer___cIFLe{margin:2px}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__download___xA8Q4 .welcome-screen__icon___TrrT6{height:24px;width:24px}.welcome-screen__welcomeScreenWrapper___jGNP3 .welcome-screen__content___ewee_ .welcome-screen__buttonWrapper___e9aZJ .welcome-screen__download___xA8Q4>span{margin-left:4px}","",{version:3,sources:["webpack://./components/welcome-screen/welcome-screen.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,8CACE,iBAAA,CACA,MAAA,CACA,KAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CAEA,iFACE,uBAAA,CACA,iCAAA,CACA,2BAAA,CAGF,kFACE,iBAAA,CACA,MAAA,CACA,KAAA,CACA,UAAA,CACA,WAAA,CACA,gFAAA,CACA,yBAAA,CAEF,+EACE,UAAA,CACA,cAAA,CACA,iBAAA,CACA,UAAA,CACA,YAAA,CACA,yFACE,uBAAA,CAGF,8GACE,eAAA,CACA,cAAA,CAEF,6GACE,eAAA,CACA,cAAA,CACA,gBAAA,CAEF,6NACE,eAAA,CACA,cAAA,CACA,eAAA,CAEF,sHACE,YAAA,CACA,UAAA,CACA,0BAAA,CACA,eAAA,CAEA,+JC7BJ,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iBA7BY,CA8BZ,gBAAA,CACA,0BAAA,CACA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CACA,UAAA,CACA,qBAAA,CAQA,gDC1C4B,CD2C5B,uCC9Cc,CFsDR,cAAA,CACA,gBAAA,CCjBN,4MACE,cAAA,CAQF,4MACE,8CC/CmB,CDiDrB,4MACE,gDCjDqB,CDmDvB,gMACE,gBAAA,CACA,kBAAA,CACA,wCC1BW,CD2BX,iCC3BW,CD4BX,wBAAA,CAAA,wJAnCF,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iBA7BY,CA8BZ,gBAAA,CACA,0BAAA,CACA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CACA,UAAA,CACA,qBAAA,CA2BA,iCCrCa,CDsCb,wBAAA,CDKM,wBAAA,CACA,iBAAA,CCjCN,qMACE,cAAA,CA2BF,qMACE,sCCrCW,CDuCb,qMACE,sCCtCW,CDwCb,yLACE,iCC3CW,CF8BP,kMACE,UAAA,CAEF,sLACE,WAAA,CACA,UAAA,CAEF,6JACE,eAAA",sourcesContent:["@import '../../theme.scss';\n\n.welcomeScreenWrapper {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 100%;\n  text-align: left;\n\n  &.withPoster {\n    background-size: contain;\n    background-position: center center;\n    background-repeat: no-repeat;\n  }\n\n  .background {\n    position: absolute;\n    left: 0;\n    top: 0;\n    width: 100%;\n    height: 100%;\n    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);\n    transform: rotate(-180deg);\n  }\n  .content {\n    color: #ffffff;\n    font-size: 14px;\n    position: absolute;\n    bottom: 0px;\n    padding: 32px;\n    & > div:focus {\n      outline: none !important; // overwride player styles\n    }\n\n    .title {\n      font-weight: 700;\n      font-size: 32px;\n    }\n    .desc {\n      font-weight: 400;\n      font-size: 14px;\n      padding-top: 16px;\n    }\n    .tip, .attempts{\n      font-weight: 400;\n      font-size: 14px;\n      padding-top: 5px;\n    }\n    .buttonWrapper {\n      display: flex;\n      width: 100%;\n      justify-content: flex-start;\n      margin-top: 16px;\n\n      .startQuizButton {\n        @include ivq-primary-button;\n        min-width: 80px;\n        margin-right: 8px;\n      }\n\n      .download {\n        @include ivq-secondary-button;\n        .spinnerContainer {\n          margin: 2px;\n        }\n        .icon {\n          height: 24px;\n          width: 24px;\n        }\n        > span {\n          margin-left: 4px;\n        }\n        padding: 8px 12px 8px 8px;\n        width: fit-content;\n      }\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n$button-background: rgba(255, 255, 255, 0.12);\n$button-background-active: rgba(255, 255, 255, 0.2);\n\n@mixin ivq-text {\n  font-style: normal;\n  line-height: normal;\n  font-size: 18px;\n  color: #ffffff;\n  overflow: auto;\n}\n\n@mixin ivq-question-content {\n  flex-shrink: 0;\n  font-weight: bold;\n  line-height: normal;\n  overflow-wrap: break-word;\n  &:focus {\n    outline: none !important; // overwride player styles\n  }\n}\n\n@mixin ivq-button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 4px 8px;\n  height: 32px;\n  border-radius: $roundness-1;\n  border-width: 1px;\n  border-color: transparent;\n  font-style: normal;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 17px;\n  text-align: left;\n  color: #ffffff;\n  box-sizing: border-box;\n  &:hover:not(.disabled) {\n    cursor: pointer;\n  }\n}\n\n@mixin ivq-primary-button {\n  @include ivq-button;\n  color: $primary-text-contrast-color;\n  background: $primary-color;\n  &:hover:not(.disabled) {\n    background: $primary-darker-color;\n  }\n  &:focus:not(.disabled) {\n    background: $primary-brighter-color;\n  }\n  &.disabled {\n    border-width: 1px;\n    border-style: solid;\n    border-color: $tone-4-color;\n    color: $tone-4-color;\n    background: transparent;\n  }\n}\n\n@mixin ivq-secondary-button {\n  @include ivq-button;\n  color: $tone-1-color;\n  background: transparent;\n  &:hover:not(.disabled) {\n    background: $tone-4-color;\n  }\n  &:focus:not(.disabled) {\n    background: $tone-6-color;\n  }\n  &.disabled {\n    color: $tone-4-color;\n  }\n}\n\n@mixin optional-answer {\n  display: flex;\n  flex-shrink: 0;\n  height: 32px;\n  align-items: center;\n  padding: 5px 16px;\n\n  background: $button-background;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: $roundness-1;\n  border-color: transparent;\n  font-size: 16px;\n  line-height: normal;\n  color: #ffffff;\n  cursor: pointer;\n  box-sizing: border-box;\n  outline-offset: -1px;\n  &:hover:not(.disabled) {\n    background: $button-background-active;\n  }\n  &.active {\n    border-color: $tone-1-color;\n    background: $button-background-active;\n  }\n  &.disabled {\n    cursor: default;\n  }\n}\n\n@mixin without-scrollbar {\n  /* Hide scrollbar for Chrome, Safari and Opera */\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  /* Hide scrollbar for IE, Edge and Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n  scrollbar-width: none; /* Firefox */\n}\n\n@mixin ivq-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n\n@mixin outline-fix {\n  &:focus {\n    outline: none !important; // overwrite player !important styles\n  }\n}\n\n// solution taken from bootstrap lib (https://github.com/twbs/bootstrap/blob/v5.0.2/site/content/docs/5.0/helpers/visually-hidden.md)\n@mixin visually-hidden() {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n\n$bottom-bar-height: 60px;\n\n@mixin reset-css {\n  div,\n  span,\n  applet,\n  object,\n  iframe,\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6,\n  p,\n  blockquote,\n  pre,\n  a,\n  abbr,\n  acronym,\n  address,\n  big,\n  cite,\n  code,\n  del,\n  dfn,\n  em,\n  img,\n  ins,\n  kbd,\n  q,\n  s,\n  samp,\n  small,\n  strike,\n  strong,\n  sub,\n  sup,\n  tt,\n  var,\n  b,\n  u,\n  i,\n  center,\n  dl,\n  dt,\n  dd,\n  ol,\n  ul,\n  li,\n  fieldset,\n  form,\n  label,\n  legend,\n  table,\n  caption,\n  tbody,\n  tfoot,\n  thead,\n  tr,\n  th,\n  td,\n  article,\n  aside,\n  canvas,\n  details,\n  embed,\n  figure,\n  figcaption,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  output,\n  ruby,\n  section,\n  summary,\n  time,\n  mark,\n  audio,\n  video {\n    margin: 0;\n    padding: 0;\n    border: 0;\n    font-size: 100%;\n    font: inherit;\n    vertical-align: baseline;\n  }\n  /* HTML5 display-role reset for older browsers */\n  article,\n  aside,\n  details,\n  figcaption,\n  figure,\n  footer,\n  header,\n  hgroup,\n  menu,\n  nav,\n  section {\n    display: block;\n  }\n  ol,\n  ul {\n    list-style: none;\n  }\n  blockquote,\n  q {\n    quotes: none;\n  }\n  blockquote:before,\n  blockquote:after,\n  q:before,\n  q:after {\n    content: '';\n    content: none;\n  }\n  table {\n    border-collapse: collapse;\n    border-spacing: 0;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={welcomeScreenWrapper:"welcome-screen__welcomeScreenWrapper___jGNP3",withPoster:"welcome-screen__withPoster___e3DYq",background:"welcome-screen__background___EP22S",content:"welcome-screen__content___ewee_",title:"welcome-screen__title___tpiPJ",desc:"welcome-screen__desc___F2VCr",tip:"welcome-screen__tip___rgZo1",attempts:"welcome-screen__attempts___GoBwT",buttonWrapper:"welcome-screen__buttonWrapper___e9aZJ",startQuizButton:"welcome-screen__startQuizButton___VujBD",disabled:"welcome-screen__disabled___XD_Lw",download:"welcome-screen__download___xA8Q4",spinnerContainer:"welcome-screen__spinnerContainer___cIFLe",icon:"welcome-screen__icon___TrrT6"};const s=a},3476:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",o=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),o&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),o&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);o&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),t&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=t):c[2]=t),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),n.push(c))}},n}},559:e=>{"use strict";e.exports=function(e){var n=e[1],t=e[3];if(!t)return n;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(r," */"),a=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}},3708:(e,n,t)=>{"use strict";function o(e){var n=Array.prototype.slice.call(arguments,1);return n.forEach((function(n){n&&Object.keys(n).forEach((function(t){e[t]=n[t]}))})),e}function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===r(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,n,t){var o=e.slice(n);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(o)?o.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,n,t){var o=e.slice(n);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(o)?n>=3&&":"===e[n-3]||n>=3&&"/"===e[n-3]?0:o.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(e,n,t){var o=e.slice(n);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(o)?o.match(t.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function c(e){var n=e.re=t(2596)(e.__opts__),o=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",n.src_tlds)}e.onCompile(),e.__tlds_replaced__||o.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),o.push(n.src_xn),n.src_tlds=o.join("|"),n.email_fuzzy=RegExp(s(n.tpl_email_fuzzy),"i"),n.link_fuzzy=RegExp(s(n.tpl_link_fuzzy),"i"),n.link_no_ip_fuzzy=RegExp(s(n.tpl_link_no_ip_fuzzy),"i"),n.host_fuzzy_test=RegExp(s(n.tpl_host_fuzzy_test),"i");var l=[];function u(e,n){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+n)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(n){var t=e.__schemas__[n];if(null!==t){var o={validate:null,link:null};if(e.__compiled__[n]=o,"[object Object]"===r(t))return"[object RegExp]"!==r(t.validate)?i(t.validate)?o.validate=t.validate:u(n,t):o.validate=function(e){return function(n,t){var o=n.slice(t);return e.test(o)?o.match(e)[0].length:0}}(t.validate),void(i(t.normalize)?o.normalize=t.normalize:t.normalize?u(n,t):o.normalize=function(e,n){n.normalize(e)});!function(e){return"[object String]"===r(e)}(t)?u(n,t):l.push(n)}})),l.forEach((function(n){e.__compiled__[e.__schemas__[n]]&&(e.__compiled__[n].validate=e.__compiled__[e.__schemas__[n]].validate,e.__compiled__[n].normalize=e.__compiled__[e.__schemas__[n]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,n){n.normalize(e)}};var c=Object.keys(e.__compiled__).filter((function(n){return n.length>0&&e.__compiled__[n]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+n.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+n.src_ZPCc+"))("+c+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,n){var t=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(t,o);this.schema=e.__schema__.toLowerCase(),this.index=t+n,this.lastIndex=o+n,this.raw=r,this.text=r,this.url=r}function _(e,n){var t=new p(e,n);return e.__compiled__[t.schema].normalize(t,e),t}function d(e,n){if(!(this instanceof d))return new d(e,n);var t;n||(t=e,Object.keys(t||{}).reduce((function(e,n){return e||s.hasOwnProperty(n)}),!1)&&(n=e,e={})),this.__opts__=o({},s,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=o({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},c(this)}d.prototype.add=function(e,n){return this.__schemas__[e]=n,c(this),this},d.prototype.set=function(e){return this.__opts__=o(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,t,o,r,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(n=s.exec(e));)if(r=this.testSchemaAt(e,n[2],s.lastIndex)){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(t=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=t.index+t[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=t.index+t[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(o=e.match(this.re.email_fuzzy))&&(i=o.index+o[1].length,a=o.index+o[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,n,t){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,t,this):0},d.prototype.match=function(e){var n=0,t=[];this.__index__>=0&&this.__text_cache__===e&&(t.push(_(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)t.push(_(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},d.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var t=this.testSchemaAt(e,n[2],n[0].length);return t?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+t,_(this,0)):null},d.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,n,t){return e!==t[n-1]})).reverse(),c(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,c(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d},2596:(e,n,t)=>{"use strict";e.exports=function(e){var n={};return e=e||{},n.src_Any=t(8287).source,n.src_Cc=t(699).source,n.src_Z=t(9338).source,n.src_P=t(6924).source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|"),n.src_pseudo_letter="(?:(?![><｜]|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|[><｜]|"+n.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+n.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+n.src_ZCc+"|$)|;(?!"+n.src_ZCc+"|$)|\\!+(?!"+n.src_ZCc+"|[!]|$)|\\?(?!"+n.src_ZCc+"|[?]|$))+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+n.src_ZPCc+"))((?![$+<=>^`|｜])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+n.src_ZPCc+"))((?![$+<=>^`|｜])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}},5792:(e,n,t)=>{"use strict";t.r(n),t.d(n,{useCallback:()=>y,useContext:()=>w,useDebugValue:()=>x,useEffect:()=>f,useErrorBoundary:()=>q,useImperativeHandle:()=>m,useLayoutEffect:()=>v,useMemo:()=>g,useReducer:()=>h,useRef:()=>C,useState:()=>b});var o,r,i,a=t(4522),s=0,l=[],u=a.options.__b,c=a.options.__r,p=a.options.diffed,_=a.options.__c,d=a.options.unmount;function A(e,n){a.options.__h&&a.options.__h(r,e,s||n),s=0;var t=r.__H||(r.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function b(e){return s=1,h(O,e)}function h(e,n,t){var i=A(o++,2);return i.t=e,i.__c||(i.__=[t?t(n):O(void 0,n),function(e){var n=i.t(i.__[0],e);i.__[0]!==n&&(i.__=[n,i.__[1]],i.__c.setState({}))}],i.__c=r),i.__}function f(e,n){var t=A(o++,3);!a.options.__s&&P(t.__H,n)&&(t.__=e,t.__H=n,r.__H.__h.push(t))}function v(e,n){var t=A(o++,4);!a.options.__s&&P(t.__H,n)&&(t.__=e,t.__H=n,r.__h.push(t))}function C(e){return s=5,g((function(){return{current:e}}),[])}function m(e,n,t){s=6,v((function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))}function g(e,n){var t=A(o++,7);return P(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function y(e,n){return s=8,g((function(){return e}),n)}function w(e){var n=r.context[e.__c],t=A(o++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(r)),n.props.value):e.__}function x(e,n){a.options.useDebugValue&&a.options.useDebugValue(n?n(e):e)}function q(e){var n=A(o++,10),t=b();return n.__=e,r.componentDidCatch||(r.componentDidCatch=function(e){n.__&&n.__(e),t[1](e)}),[t[0],function(){t[1](void 0)}]}function k(){for(var e;e=l.shift();)if(e.__P)try{e.__H.__h.forEach(E),e.__H.__h.forEach(z),e.__H.__h=[]}catch(n){e.__H.__h=[],a.options.__e(n,e.__v)}}a.options.__b=function(e){r=null,u&&u(e)},a.options.__r=function(e){c&&c(e),o=0;var n=(r=e.__c).__H;n&&(n.__h.forEach(E),n.__h.forEach(z),n.__h=[])},a.options.diffed=function(e){p&&p(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==l.push(n)&&i===a.options.requestAnimationFrame||((i=a.options.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(o),B&&cancelAnimationFrame(n),setTimeout(e)},o=setTimeout(t,100);B&&(n=requestAnimationFrame(t))})(k)),r=null},a.options.__c=function(e,n){n.some((function(e){try{e.__h.forEach(E),e.__h=e.__h.filter((function(e){return!e.__||z(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],a.options.__e(t,e.__v)}})),_&&_(e,n)},a.options.unmount=function(e){d&&d(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{E(e)}catch(e){n=e}})),n&&a.options.__e(n,t.__v))};var B="function"==typeof requestAnimationFrame;function E(e){var n=r,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),r=n}function z(e){var n=r;e.__c=e.__(),r=n}function P(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function O(e,n){return"function"==typeof n?n(e):n}},6502:(e,n,t)=>{var o=t(1892),r=t(5588);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},9480:(e,n,t)=>{var o=t(1892),r=t(9882);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},4367:(e,n,t)=>{var o=t(1892),r=t(1355);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},4022:(e,n,t)=>{var o=t(1892),r=t(8931);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},181:(e,n,t)=>{var o=t(1892),r=t(9318);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},5579:(e,n,t)=>{var o=t(1892),r=t(3346);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},3697:(e,n,t)=>{var o=t(1892),r=t(7269);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},2466:(e,n,t)=>{var o=t(1892),r=t(3688);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},7600:(e,n,t)=>{var o=t(1892),r=t(5546);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},2813:(e,n,t)=>{var o=t(1892),r=t(5039);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},2453:(e,n,t)=>{var o=t(1892),r=t(7291);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},1482:(e,n,t)=>{var o=t(1892),r=t(1727);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},139:(e,n,t)=>{var o=t(1892),r=t(6957);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},8613:(e,n,t)=>{var o=t(1892),r=t(6374);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},329:(e,n,t)=>{var o=t(1892),r=t(4071);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},6909:(e,n,t)=>{var o=t(1892),r=t(5037);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},6573:(e,n,t)=>{var o=t(1892),r=t(862);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},7448:(e,n,t)=>{var o=t(1892),r=t(485);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},7320:(e,n,t)=>{var o=t(1892),r=t(5539);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},2340:(e,n,t)=>{var o=t(1892),r=t(7586);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},437:(e,n,t)=>{var o=t(1892),r=t(4091);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},4908:(e,n,t)=>{var o=t(1892),r=t(9821);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},4761:(e,n,t)=>{var o=t(1892),r=t(1940);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},1892:(e,n,t)=>{"use strict";var o,r=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function a(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function s(e,n){for(var t={},o=[],r=0;r<e.length;r++){var s=e[r],l=n.base?s[0]+n.base:s[0],u=t[l]||0,c="".concat(l," ").concat(u);t[l]=u+1;var p=a(c),_={css:s[1],media:s[2],sourceMap:s[3]};-1!==p?(i[p].references++,i[p].updater(_)):i.push({identifier:c,updater:b(_,n),references:1}),o.push(c)}return o}function l(e){var n=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var i=t.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(e){n.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(n);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}return n}var u,c=(u=[],function(e,n){return u[e]=n,u.filter(Boolean).join("\n")});function p(e,n,t,o){var r=t?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=c(n,r);else{var i=document.createTextNode(r),a=e.childNodes;a[n]&&e.removeChild(a[n]),a.length?e.insertBefore(i,a[n]):e.appendChild(i)}}function _(e,n,t){var o=t.css,r=t.media,i=t.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var d=null,A=0;function b(e,n){var t,o,r;if(n.singleton){var i=A++;t=d||(d=l(n)),o=p.bind(null,t,i,!1),r=p.bind(null,t,i,!0)}else t=l(n),o=_.bind(null,t,n),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return o(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;o(e=n)}else r()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=(void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o));var t=s(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<t.length;o++){var r=a(t[o]);i[r].references--}for(var l=s(e,n),u=0;u<t.length;u++){var c=a(t[u]);0===i[c].references&&(i[c].updater(),i.splice(c,1))}t=l}}}},1293:(e,n)=>{"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0}),n.icons=void 0,(t=n.icons||(n.icons={})).CHEVRON_RIGHT="M0.792893 0.292893C0.432409 0.653377 0.40468 1.22061 0.709705 1.6129L0.792893 1.70711L6.085 7L0.792893 12.2929C0.432409 12.6534 0.40468 13.2206 0.709705 13.6129L0.792893 13.7071C1.15338 14.0676 1.72061 14.0953 2.1129 13.7903L2.20711 13.7071L8.20711 7.70711C8.56759 7.34662 8.59532 6.77939 8.2903 6.3871L8.20711 6.29289L2.20711 0.292893C1.81658 -0.0976311 1.18342 -0.0976311 0.792893 0.292893Z",t.CHEVRON_LEFT="M8.20711 0.292893C8.56759 0.653377 8.59532 1.22061 8.2903 1.6129L8.20711 1.70711L2.915 7L8.20711 12.2929C8.56759 12.6534 8.59532 13.2206 8.2903 13.6129L8.20711 13.7071C7.84662 14.0676 7.27939 14.0953 6.8871 13.7903L6.79289 13.7071L0.792893 7.70711C0.432409 7.34662 0.40468 6.77939 0.709705 6.3871L0.792893 6.29289L6.79289 0.292893C7.18342 -0.0976311 7.81658 -0.0976311 8.20711 0.292893Z",t.QUIZ_ICON="M8.49857 2.11499L12.7442 4.2052C12.9162 4.28987 12.9812 4.48721 12.8895 4.64597C12.8594 4.69807 12.8145 4.74163 12.7597 4.77201L8.54484 7.10634C8.20953 7.29205 7.79063 7.29205 7.45532 7.10634L3.2405 4.77202C3.07335 4.67945 3.01915 4.47933 3.11944 4.32505C3.15235 4.27441 3.19956 4.23299 3.256 4.2052L7.50203 2.11498C7.81345 1.96167 8.18715 1.96168 8.49857 2.11499ZM14 6.02878V10.7642C14 11.1075 13.8049 11.4256 13.486 11.6022L9.24043 13.9536C9.07328 14.0461 8.85649 13.9961 8.7562 13.8418C8.72329 13.7912 8.7059 13.7333 8.7059 13.6742V8.93882C8.7059 8.59551 8.90104 8.27738 9.21997 8.10075L13.4655 5.74942C13.6326 5.65685 13.8494 5.70688 13.9497 5.86116C13.9826 5.91179 14 5.96973 14 6.02878ZM6.5145 8.31192L2.50483 6.04476C2.45303 6.01547 2.39375 6 2.33333 6C2.14924 6 2 6.14064 2 6.31412V10.88C2 11.211 2.1843 11.5178 2.4855 11.6881L6.49517 13.9552C6.54697 13.9845 6.60625 14 6.66667 14C6.85076 14 7 13.8594 7 13.6859V9.12C7 8.78898 6.8157 8.48223 6.5145 8.31192Z",t.QUESTION_LINK="M13.5001 0C15.9853 0 18.0001 2.01472 18.0001 4.5V13.5C18.0001 15.9853 15.9853 18 13.5001 18H4.50006C2.01478 18 6.10352e-05 15.9853 6.10352e-05 13.5V4.5C6.10352e-05 2.01472 2.01478 0 4.50006 0H13.5001ZM12.3751 3.375H6.75006L6.61886 3.38257C6.05936 3.44755 5.62506 3.92306 5.62506 4.5C5.62506 5.12132 6.12874 5.625 6.75006 5.625H10.7821L3.70457 12.7045L3.61098 12.8105C3.26783 13.2518 3.29902 13.89 3.70457 14.2955C4.14391 14.7348 4.85622 14.7348 5.29556 14.2955L12.3751 7.21575V11.25L12.3826 11.3812C12.4476 11.9407 12.9231 12.375 13.5001 12.375C14.1214 12.375 14.6251 11.8713 14.6251 11.25V5.625L14.6189 5.45708C14.533 4.29286 13.5612 3.375 12.3751 3.375Z",t.DOWNLOAD="M12 3C12.5128 3 12.9355 3.38604 12.9933 3.88338L13 4V11.5852L15.2929 9.29289C15.6534 8.93241 16.2206 8.90468 16.6129 9.20971L16.7071 9.2929C17.0676 9.65339 17.0953 10.2206 16.7903 10.6129L16.7071 10.7071L12.7151 14.699C12.6845 14.7304 12.6518 14.7597 12.6173 14.7868C12.5589 14.8327 12.4965 14.8713 12.4315 14.9024C12.3009 14.9649 12.1545 15 12 15L11.9845 14.9999C11.8694 14.9981 11.759 14.9769 11.6564 14.9394C11.5612 14.9047 11.4702 14.8549 11.387 14.7903L11.3856 14.789C11.3533 14.7638 11.3225 14.7367 11.2936 14.7078L11.2928 14.7071L7.29289 10.7071C6.90237 10.3166 6.90237 9.6834 7.2929 9.29289C7.65339 8.93241 8.22062 8.90468 8.61291 9.20971L8.70711 9.2929L11 11.5852V4C11 3.44772 11.4477 3 12 3Z M4 18C3.44772 18 3 18.4477 3 19C3 19.5523 3.44772 20 4 20H20C20.5523 20 21 19.5523 21 19C21 18.4477 20.5523 18 20 18H4Z",t.INCORRECT_ANSWER="M12.5356 3.96477C12.9261 4.35529 12.9261 4.98846 12.5356 5.37898L9.41427 8.5003L12.5356 11.6216C12.9261 12.0121 12.9261 12.6453 12.5356 13.0358C12.1451 13.4264 11.5119 13.4264 11.1214 13.0358L8.00006 9.91452L4.87874 13.0358C4.48821 13.4264 3.85505 13.4264 3.46452 13.0358C3.074 12.6453 3.074 12.0121 3.46452 11.6216L6.58584 8.5003L3.46452 5.37898C3.074 4.98846 3.074 4.35529 3.46452 3.96477C3.85505 3.57424 4.48821 3.57424 4.87874 3.96477L8.00006 7.08609L11.1214 3.96477C11.5119 3.57424 12.1451 3.57424 12.5356 3.96477Z",t.CORRCT_ANSWER="M12.6402 4.7318C13.0645 5.08537 13.1218 5.71593 12.7682 6.14021L7.76822 12.1402C7.58835 12.356 7.32599 12.4863 7.04531 12.499C6.76464 12.5117 6.49156 12.4058 6.29289 12.2071L4.29289 10.2071C3.90237 9.81661 3.90237 9.18344 4.29289 8.79292C4.68342 8.40239 5.31658 8.40239 5.70711 8.79292L6.9328 10.0186L11.2318 4.85984C11.5853 4.43556 12.2159 4.37824 12.6402 4.7318Z",t.OPEN_QUESTION_ICON="M2 7.16699C2 4.95785 3.79086 3.16699 6 3.16699H10C12.2091 3.16699 14 4.95785 14 7.16699V9.83366C14 12.0428 12.2091 13.8337 10 13.8337H3.33333C2.59695 13.8337 2 13.2367 2 12.5003V7.16699ZM4.66667 7.16699C4.66667 6.7988 4.96514 6.50033 5.33333 6.50033H10C10.3682 6.50033 10.6667 6.7988 10.6667 7.16699C10.6667 7.53518 10.3682 7.83366 10 7.83366H5.33333C4.96514 7.83366 4.66667 7.53518 4.66667 7.16699ZM5.33333 9.16699C4.96514 9.16699 4.66667 9.46547 4.66667 9.83366C4.66667 10.2018 4.96514 10.5003 5.33333 10.5003H7.33333C7.70152 10.5003 8 10.2018 8 9.83366C8 9.46547 7.70152 9.16699 7.33333 9.16699H5.33333Z",t.REFLECTION_POINT_ICON="M2 4.5C2 3.94772 2.44772 3.5 3 3.5H13C13.5523 3.5 14 3.94772 14 4.5C14 5.05228 13.5523 5.5 13 5.5H3C2.44772 5.5 2 5.05228 2 4.5ZM2 8.5C2 7.94772 2.44772 7.5 3 7.5H13C13.5523 7.5 14 7.94772 14 8.5C14 9.05228 13.5523 9.5 13 9.5H3C2.44772 9.5 2 9.05228 2 8.5ZM3 11.5C2.44772 11.5 2 11.9477 2 12.5C2 13.0523 2.44772 13.5 3 13.5H9C9.55228 13.5 10 13.0523 10 12.5C10 11.9477 9.55228 11.5 9 11.5H3Z",t.RIGHT="M5.79271 12.2071C5.40219 11.8166 5.40219 11.1834 5.79271 10.7929L8.0856 8.5L5.79271 6.20711C5.40219 5.81658 5.40219 5.18342 5.79271 4.79289C6.18323 4.40237 6.8164 4.40237 7.20692 4.79289L10.2069 7.79289C10.5974 8.18342 10.5974 8.81658 10.2069 9.20711L7.20692 12.2071C6.8164 12.5976 6.18323 12.5976 5.79271 12.2071Z",t.DOWN="M4.29289 7.06194C4.68342 6.67141 5.31658 6.67141 5.70711 7.06194L8 9.35483L10.2929 7.06194C10.6834 6.67141 11.3166 6.67141 11.7071 7.06194C12.0976 7.45246 12.0976 8.08563 11.7071 8.47615L8.70711 11.4762C8.31658 11.8667 7.68342 11.8667 7.29289 11.4762L4.29289 8.47615C3.90237 8.08563 3.90237 7.45246 4.29289 7.06194Z",t.CLOSE="M11.6592 10.245L6.70483 5.29061C6.31701 4.9028 5.68581 4.90476 5.29528 5.29528C4.90204 5.68853 4.90267 6.31688 5.29061 6.70483L10.245 11.6592L5.29061 16.6137C4.9028 17.0015 4.90476 17.6327 5.29528 18.0232C5.68853 18.4165 6.31688 18.4158 6.70483 18.0279L11.6592 13.0735L16.6137 18.0279C17.0015 18.4157 17.6327 18.4137 18.0232 18.0232C18.4165 17.63 18.4158 17.0016 18.0279 16.6137L13.0735 11.6592L18.0279 6.70483C18.4157 6.31701 18.4137 5.68581 18.0232 5.29528C17.63 4.90204 17.0016 4.90267 16.6137 5.29061L11.6592 10.245Z",t.MediumSize=24,t.SmallSize=16},5333:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(2917),n)},2917:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.IvqBottomBar=void 0;var r=t(4522),i=t(5792),a=t(979),s=t(1293),l=t(3697),u=KalturaPlayer.ui.components.Icon,c=KalturaPlayer.ui.preacti18n,p=c.withText,_=c.Text,d={nextQuestionButtonAriaLabel:(0,r.h)(_,{id:"ivq.next_question_area_label"},"Next Question"),prevQuestionButtonAriaLabel:(0,r.h)(_,{id:"ivq.prev_question_area_label"},"Previous Question")};n.IvqBottomBar=p(d)((function(e){var n=e.onPrev,t=e.onNext,c=e.questionCounter,p=e.getSeekBarNode,_=o(e,["onPrev","onNext","questionCounter","getSeekBarNode"]),d=(0,i.useRef)(null);(0,i.useEffect)((function(){var e=p();d.current&&e&&d.current.prepend(e)}),[]);var A=(0,i.useMemo)((function(){return(0,r.h)("div",{className:l.ivqNavigationWrapper},(0,r.h)(a.A11yWrapper,{onClick:n||function(){}},(0,r.h)("div",{tabIndex:0,disabled:!n,"aria-disabled":!n,className:[l.navigationButton,n?"":l.disabled].join(" "),"aria-label":_.prevQuestionButtonAriaLabel},(0,r.h)(u,{id:"ivq-chevron-left",height:14,width:9,viewBox:"0 0 ".concat(s.icons.SmallSize," ").concat(s.icons.SmallSize),path:s.icons.CHEVRON_LEFT}))),(0,r.h)("div",{className:l.questionIndex},c),(0,r.h)(a.A11yWrapper,{onClick:t||function(){}},(0,r.h)("div",{tabIndex:0,disabled:!t,"aria-disabled":!t,className:[l.navigationButton,t?"":l.disabled].join(" "),"aria-label":_.nextQuestionButtonAriaLabel},(0,r.h)(u,{id:"ivq-chevron-right",height:14,width:9,viewBox:"0 0 ".concat(s.icons.SmallSize," ").concat(s.icons.SmallSize),path:s.icons.CHEVRON_RIGHT}))))}),[t,n,c]);return(0,r.h)("div",{className:l.ivqBottomBar,ref:d},A)}))},6740:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(5003),n)},5003:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.IvqOverlay=void 0;var o=t(4522),r=t(2466),i=KalturaPlayer.ui.components.Overlay;n.IvqOverlay=function(e){var n=e.children;return(0,o.h)("div",{className:r.ivqOverlay,"aria-live":"polite"},(0,o.h)(i,{open:!0,permanent:!0},n))}},962:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(99),n)},99:function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.IvqPopup=n.IvqPopupTypes=void 0;var i,a=t(979),s=t(5792),l=t(4522),u=t(1293),c=t(1797),p=t(7600),_=KalturaPlayer.ui.preacti18n,d=_.withText,A=_.Text,b=KalturaPlayer.ui.components.Icon;!function(e){e[e.none=0]="none",e[e.almostDone=1]="almostDone",e[e.submit=2]="submit",e[e.completed=3]="completed",e[e.submitted=4]="submitted"}(i=n.IvqPopupTypes||(n.IvqPopupTypes={})),n.IvqPopup=d((function(e){var n=e.type,t=e.score,r={closeButton:(0,l.h)(A,{id:"ivq.close_button"},"Close"),submitButton:(0,l.h)(A,{id:"ivq.submit_button"},"Submit"),submitButtonAriaLabel:(0,l.h)(A,{id:"ivq.submit_button_area_label"},"Click to submit quiz"),reviewButton:(0,l.h)(A,{id:"ivq.review_button"},"Review"),reviewButtonAriaLabel:(0,l.h)(A,{id:"ivq.review_button_area_label"},"Click to review quiz")};return n===i.almostDone?o(o({},r),{title:(0,l.h)(A,{id:"ivq.quiz_almost_done_title"},"You’re almost done"),description:(0,l.h)(A,{id:"ivq.quiz_almost_done_description"},"It appears that some questions remained unanswered. Please complete the quiz to submit.")}):n===i.submit?o(o({},r),{title:(0,l.h)(A,{id:"ivq.submit_title"},"Quiz completed"),description:(0,l.h)(A,{id:"ivq.quiz_submit_description"},"Take a moment to review your answers or go ahead to submit your answers.")}):n===i.completed?o(o({},r),{title:(0,l.h)(A,{id:"ivq.submit_title"},"Quiz completed"),description:(0,l.h)(A,{id:"ivq.quiz_completed_description"},"Watch the video until the end to submit.")}):o(o({},r),{title:(0,l.h)(A,{id:"ivq.quiz_submitted_title"},"Quiz submitted"),description:(0,l.h)(A,{id:"ivq.quiz_score",fields:{quizScore:"".concat(t,"/100")}},"Your score is ".concat(t,"/100"))})}))((function(e){var n=e.type,t=e.onClose,o=e.onSubmit,_=e.onReview,d=r(e,["type","onClose","onSubmit","onReview"]),A=(0,s.useState)(!1),h=A[0],f=A[1],v=(0,s.useCallback)((function(){o&&(f(!0),o().finally((function(){f(!1)})))}),[]),C=[p.popupRoot];return n===i.submit?C.push(p.submit):n===i.almostDone?C.push(p.almostDone):C.push(p.completed),(0,l.h)("div",{className:C.join(" "),"data-testid":"ivqPopupRoot"},(0,l.h)(a.A11yWrapper,{onClick:t},(0,l.h)("div",{tabIndex:0,className:p.closeButton,"aria-label":d.closeButton,"data-testid":"ivqPopupCloseButton"},(0,l.h)(b,{id:"ivq-close","data-testid":"closeIvqPopup",height:u.icons.MediumSize,width:u.icons.MediumSize,viewBox:"0 0 ".concat(u.icons.MediumSize," ").concat(u.icons.MediumSize),path:u.icons.CLOSE}))),(0,l.h)("div",{className:p.title,"data-testid":"ivqPopupTitle"},d.title),(0,l.h)("div",{className:p.description,"data-testid":"ivqPopupDescription"},d.description),n===i.submit&&(0,l.h)("div",{className:p.buttonsWrapper},(0,l.h)(a.A11yWrapper,{onClick:_},(0,l.h)("div",{tabIndex:0,className:p.secondaryButton,"aria-label":d.reviewButtonAriaLabel,"data-testid":"ivqPopupReviewButton"},d.reviewButton)),(0,l.h)(a.A11yWrapper,{onClick:v},(0,l.h)("div",{tabIndex:0,className:p.primaryButton,"aria-label":d.submitButtonAriaLabel,disabled:h,"data-testid":"ivqPopupSubmitButton"},h?(0,l.h)(c.Spinner,null):d.submitButton))))}))},359:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(9683),n)},3106:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(6729),n)},6729:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t},r=this&&this.__spreadArray||function(e,n,t){if(t||2===arguments.length)for(var o,r=0,i=n.length;r<i;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))};Object.defineProperty(n,"__esModule",{value:!0}),n.MultiChoice=void 0;var i=t(4522),a=t(5792),s=t(7610),l=t(6713),u=t(979),c=t(2813),p=KalturaPlayer.ui.preacti18n,_=p.withText,d=p.Text,A=(0,s.makeQuestionLabels)();n.MultiChoice=_((function(){return{answerNumber:(0,i.h)(d,{id:"ivq.answer_number"},"answer number"),yourAnswer:(0,i.h)(d,{id:"ivq.your_answer"},"Your answer"),questionLabel:(0,i.h)(d,{id:"ivq.question"},"Question")}}))((function(e){var n=e.question,t=e.optionalAnswers,s=e.selected,p=e.onSelect,_=e.hint,d=e.multiAnswer,b=e.questionIndex,h=o(e,["question","optionalAnswers","selected","onSelect","hint","multiAnswer","questionIndex"]),f=s?s.split(","):[],v=!p,C=(0,a.useRef)(null),m=new Map;(0,a.useEffect)((function(){var e;v||null===(e=C.current)||void 0===e||e.focus()}),[n]),(0,a.useEffect)((function(){return function(){m=new Map}}),[]);var g=(0,a.useCallback)((function(e,n){return function(t,o){var i=e;d&&(i=n?f.filter((function(n){return n!==e})).toString():r(r([],f,!0),[e],!1).toString()),p&&p(i,o)}}),[p,f]),y=function(e){return m.get(e)};return(0,i.h)("div",{className:c.multiChoiceWrapper,"data-testid":"multipleChoiceContainer"},(0,i.h)("legend",{className:c.questionText,"data-testid":"multipleChoiceQuestionTitle",tabIndex:0,role:"text",ref:C},(0,i.h)("span",{className:c.visuallyHidden},"".concat(h.questionLabel," #").concat(b,":")),n),_&&(0,i.h)(l.QuestionAddons,{hint:_}),(0,i.h)("div",{className:c.optionalAnswersWrapper,"data-testid":"multipleChoiceAnswersWrapper"},(0,i.h)("div",{className:c.optionalAnswersContainer,role:"listbox","data-testid":"multipleChoiceAnswersContainer"},t.map((function(e,n){var t=e.key,o=e.text,r=f.includes(t);return(0,i.h)(u.A11yWrapper,{onClick:g(t,r),onUpKeyPressed:function(){return function(e){var n;null===(n=y(e-1))||void 0===n||n.focus()}(n)},onDownKeyPressed:function(){return function(e){var n;null===(n=y(e+1))||void 0===n||n.focus()}(n)},role:"option"},(0,i.h)("div",{ref:function(e){!function(e,n){m.set(e,n)}(n,e)},key:t,tabIndex:0,"data-testid":"multipleChoiceSelectAnswer","aria-selected":r,"aria-disabled":v,"aria-multiselectable":Boolean(d),"aria-label":"".concat(h.answerNumber," ").concat(n+1,", ").concat(o).concat(r?". ".concat(h.yourAnswer):""),className:[c.multiSelectAnswer,r?c.active:"",v?c.disabled:""].join(" ")},(0,i.h)("div",{className:c.questionLabel,"data-testid":"multipleChoiceQuestionLabel",role:"text"},A[n]),(0,i.h)("div",{className:c.questionContent,"data-testid":"multipleChoiceQuestionContent",role:"text"},o)))}))),(0,i.h)("div",null)))}))},3138:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(8144),n)},8144:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.OpenQuestion=void 0;var r=t(4522),i=t(5792),a=t(6713),s=t(2453),l=KalturaPlayer.ui.preacti18n,u=l.withText,c=l.Text;n.OpenQuestion=u((function(){return{openQuestionPlaceHolder:(0,r.h)(c,{id:"ivq.open_question_placeholder"},"Type your answer here..."),questionLabel:(0,r.h)(c,{id:"ivq.question"},"Question")}}))((function(e){var n=e.question,t=e.selected,l=e.onSelect,u=e.hint,c=e.questionIndex,p=o(e,["question","selected","onSelect","hint","questionIndex"]),_=!l,d=(0,i.useCallback)((function(e){l&&l(e.target.value)}),[l]),A=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;_||null===(e=A.current)||void 0===e||e.focus()}),[n]),(0,r.h)("div",{className:s.openQuestionWrapper,"data-testid":"openQuestionContainer"},(0,r.h)("legend",{className:s.questionText,"data-testid":"openQuestionTitle",tabIndex:0,role:"text",ref:A},(0,r.h)("span",{className:s.visuallyHidden},"".concat(p.questionLabel," #").concat(c,":")),n),u&&(0,r.h)(a.QuestionAddons,{hint:u}),(0,r.h)("div",{className:s.textAreaWrapper},(0,r.h)("textarea",{tabIndex:0,className:s.questionAnswer,value:t,placeholder:p.openQuestionPlaceHolder,"aria-label":p.openQuestionPlaceHolder,maxLength:250,onChange:d,disabled:_,"data-testid":"openQuestionAnswerInput"}),(0,r.h)("div",{className:s.charCounter},"".concat(t.length,"/").concat(250))))}))},6713:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(9192),n)},9192:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.QuestionAddons=void 0;var r=t(4522),i=t(5792),a=t(1293),s=t(979),l=t(1482),u=KalturaPlayer.ui.preacti18n,c=u.withText,p=u.Text,_=KalturaPlayer.ui.components.Icon;n.QuestionAddons=c((function(e){var n=e.hint,t=e.explanation;return n?{show:(0,r.h)(p,{id:"ivq.show_hint"},"Show hint"),hide:(0,r.h)(p,{id:"ivq.hide_hint"},"Hide hint")}:t?{show:(0,r.h)(p,{id:"ivq.show_why"},"Show why"),hide:(0,r.h)(p,{id:"ivq.hide_why"},"Hide why")}:{show:(0,r.h)(p,{id:"ivq.show_feedback"},"Show feedback"),hide:(0,r.h)(p,{id:"ivq.hide_feedback"},"Hide feedback")}}))((function(e){var n=e.hint,t=e.explanation,u=e.feedback,c=o(e,["hint","explanation","feedback"]),p=(0,i.useState)(!1),d=p[0],A=p[1],b=(0,i.useMemo)((function(){if(n)return n;if(t)return t;if(u){var e=u.split("||");return e[e.length-1]}}),[n,t,u]),h=(0,i.useCallback)((function(){A(!d)}),[d]);return(0,r.h)("div",{className:l.questionAddonsWrapper},(0,r.h)(s.A11yWrapper,{onClick:h},(0,r.h)("div",{tabIndex:0,className:l.questionAddonsButton,"data-testid":"showHintButton"},d?c.hide:c.show,(0,r.h)("div",{className:[l.iconWrapper,d?l.active:""].join(" "),"aria-hidden":"true"},(0,r.h)(_,{id:"ivq-down-icon",height:a.icons.SmallSize,width:a.icons.SmallSize,viewBox:"0 0 ".concat(a.icons.SmallSize," ").concat(a.icons.SmallSize),path:a.icons.DOWN})),(0,r.h)("div",{className:[l.iconWrapper,d?"":l.active].join(" "),"aria-hidden":"true"},(0,r.h)(_,{id:"ivq-right-icon",height:a.icons.SmallSize,width:a.icons.SmallSize,viewBox:"0 0 ".concat(a.icons.SmallSize," ").concat(a.icons.SmallSize),path:a.icons.RIGHT})))),d&&(0,r.h)("div",{className:l.questionAddonsContent,"data-testid":"questionAddonsContent","aria-live":"polite",role:"text"},b))}))},9683:function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.QuizQuestionWrapper=void 0;var r=t(4522),i=t(5792),a=t(7865),s=t(3106),l=t(586),u=t(3138),c=t(2085),p=t(6740),_=t(1797),d=t(5333),A=t(979),b=t(139),h=KalturaPlayer.ui.preacti18n,f=h.withText,v=h.Text,C=KalturaPlayer.ui.redux.useSelector,m=function(e){var n,t;return e.q.questionType===c.KalturaQuizQuestionTypes.Reflection?"1":e.q.questionType===c.KalturaQuizQuestionTypes.OpenQuestion?(null===(n=e.a)||void 0===n?void 0:n.openAnswer)||"":(null===(t=e.a)||void 0===t?void 0:t.answerKey)||""};n.QuizQuestionWrapper=f((function(e){var n=e.qui;return{continueButton:(0,r.h)(v,{id:"ivq.continue_button"},"Continue"),continueButtonAriaLabel:(0,r.h)(v,{id:"ivq.continue_button_area_label"},"Continue quiz with the selected answer"),skipButton:(0,r.h)(v,{id:"ivq.skip_button"},"Skip"),skipButtonAriaLabel:(0,r.h)(v,{id:"ivq.skip_button_area_label"},"Skip for now"),questionCounter:(0,r.h)(v,{id:"ivq.question_counter",fields:{current:n.questionIndex[0],total:n.questionIndex[1]}},"Question ".concat(n.questionIndex[0]," of ").concat(n.questionIndex[1]))}}))((function(e){var n=e.qui,t=e.getSeekBarNode,h=(0,i.useState)(m(n)),f=h[0],v=h[1],g=(0,i.useState)(!1),y=g[0],w=g[1],x=(0,i.useRef)(null);(0,i.useEffect)((function(){setTimeout((function(){var e;C((function(e){return e.shell.playerNav}))&&n.a&&(null===(e=x.current)||void 0===e||e.focus())}))}),[n]),(0,i.useEffect)((function(){v(m(n)),w(!1)}),[n]);var q=(0,i.useCallback)((function(){var e,t,o;if(f){var r=f;(n.q.questionType===c.KalturaQuizQuestionTypes.Reflection&&(null===(e=n.a)||void 0===e?void 0:e.answerKey)||n.q.questionType===c.KalturaQuizQuestionTypes.OpenQuestion&&(null===(t=n.a)||void 0===t?void 0:t.openAnswer)===f||[c.KalturaQuizQuestionTypes.TrueFalse,c.KalturaQuizQuestionTypes.MultiAnswer,c.KalturaQuizQuestionTypes.MultiChoice].includes(n.q.questionType)&&(null===(o=n.a)||void 0===o?void 0:o.answerKey)===f)&&(r=null),r&&w(!0),n.onContinue(r).finally((function(){w(!1)}))}}),[n,f]),k=(0,i.useCallback)((function(){n.onSkip()}),[n]),B=(0,i.useCallback)((function(e,n){v(e),n&&setTimeout((function(){var e;null===(e=x.current)||void 0===e||e.focus()}))}),[f,x]),E=(0,i.useMemo)((function(){var e=n.q,t=e.question,i=e.optionalAnswers,p=e.hint,_={question:t,questionIndex:n.questionIndex[0],optionalAnswers:i,hint:p,selected:f};switch(n.disabled||y||(_.onSelect=B),n.q.questionType){case c.KalturaQuizQuestionTypes.TrueFalse:return(0,r.h)(a.TrueFalse,o({},_));case c.KalturaQuizQuestionTypes.MultiChoice:return(0,r.h)(s.MultiChoice,o({},_));case c.KalturaQuizQuestionTypes.Reflection:return(0,r.h)(l.ReflectionPoint,o({},_));case c.KalturaQuizQuestionTypes.OpenQuestion:return(0,r.h)(u.OpenQuestion,o({},_));case c.KalturaQuizQuestionTypes.MultiAnswer:return(0,r.h)(s.MultiChoice,o({},_,{multiAnswer:!0}))}}),[n.q,f,y]),z=(0,i.useMemo)((function(){var t=!f.length,o=n.q.questionType===c.KalturaQuizQuestionTypes.Reflection?e.continueButton:e.continueButtonAriaLabel;return(0,r.h)("div",{className:b.ivqButtonsWrapper},(0,r.h)(A.A11yWrapper,{onClick:q},(0,r.h)("div",{tabIndex:0,ref:x,"data-testid":"continueButton",disabled:t,"aria-disabled":t,"aria-label":o,className:[b.continueButton,t?b.disabled:""].join(" ")},y?(0,r.h)(_.Spinner,null):e.continueButton)),n.onSkip&&(0,r.h)(A.A11yWrapper,{onClick:k},(0,r.h)("div",{tabIndex:0,"data-testid":"skipButton","aria-label":e.skipButtonAriaLabel,className:[b.skipButton,y?b.disabled:""].join(" "),disabled:y},e.skipButton)))}),[n,f,y,x]);return(0,r.h)(p.IvqOverlay,null,(0,r.h)("div",{className:["ivq",b.ivqQuestionContainer].join(" "),"data-testid":"ivqQuestionContainer"},(0,r.h)("div",{className:b.ivqQuestionWrapper,"data-testid":"ivqQuestionWrapper"},E),z),(0,r.h)(d.IvqBottomBar,{questionCounter:e.questionCounter,onPrev:n.onPrev,onNext:n.onNext,getSeekBarNode:t}))}))},586:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(4513),n)},4513:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.ReflectionPoint=void 0;var r=t(4522),i=t(5792),a=t(8613),s=KalturaPlayer.ui.preacti18n,l=s.withText,u=s.Text;n.ReflectionPoint=l((function(){return{reflectionPoint:(0,r.h)(u,{id:"ivq.reflection_point"},"Reflection Point"),questionLabel:(0,r.h)(u,{id:"ivq.question"},"Question")}}))((function(e){var n=e.question,t=e.questionIndex,s=o(e,["question","questionIndex"]),l=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;null===(e=l.current)||void 0===e||e.focus()}),[n]),(0,r.h)("div",{className:a.reflectionPointWrapper},(0,r.h)("legend",{className:a.reflectionText,"data-testid":"reflectionPointTitle",tabIndex:0,role:"text",ref:l},(0,r.h)("span",{className:a.visuallyHidden},"".concat(s.questionLabel,"# ").concat(t,", ").concat(s.reflectionPoint,":")),n))}))},7865:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(1337),n)},1337:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.TrueFalse=void 0;var r=t(4522),i=t(5792),a=t(6713),s=t(979),l=t(329),u=KalturaPlayer.ui.preacti18n,c=u.withText,p=u.Text;n.TrueFalse=c((function(){return{answerNumber:(0,r.h)(p,{id:"ivq.answer_number"},"Answer number"),yourAnswer:(0,r.h)(p,{id:"ivq.your_answer"},"Your answer"),questionLabel:(0,r.h)(p,{id:"ivq.question"},"Question")}}))((function(e){var n=e.question,t=e.optionalAnswers,u=e.selected,c=e.onSelect,p=e.hint,_=e.questionIndex,d=o(e,["question","optionalAnswers","selected","onSelect","hint","questionIndex"]),A=!c,b=(0,i.useCallback)((function(e){return function(n,t){c&&c(e,t)}}),[c]),h=(0,i.useRef)(null);(0,i.useEffect)((function(){var e;A||null===(e=h.current)||void 0===e||e.focus()}),[n]);var f=new Map;(0,i.useEffect)((function(){return function(){f=new Map}}),[]);var v=function(e){return f.get(e)};return(0,r.h)("div",{className:l.trueFalseWrapper,"data-testid":"trueFalseContainer"},(0,r.h)("legend",{className:l.questionText,"data-testid":"trueFalseQuestionTitle",tabIndex:0,role:"text",ref:h},(0,r.h)("span",{className:l.visuallyHidden},"".concat(d.questionLabel," #").concat(_,":")),n),p&&(0,r.h)(a.QuestionAddons,{hint:p}),(0,r.h)("div",{className:l.optionalAnswersWrapper,role:"listbox","data-testid":"trueFalseAnswersContainer"},t.map((function(e,n){var t=e.key,o=e.text,i=u.includes(t),a=[l.trueFalseAnswer,i?l.active:"",A?l.disabled:""].join(" ");return(0,r.h)(s.A11yWrapper,{onClick:b(t),onUpKeyPressed:function(){},onDownKeyPressed:function(){},onLeftKeyPressed:function(){return function(e){var n;null===(n=v(e-1))||void 0===n||n.focus()}(n)},onRightKeyPressed:function(){return function(e){var n;null===(n=v(e+1))||void 0===n||n.focus()}(n)},role:"option"},(0,r.h)("div",{ref:function(e){!function(e,n){f.set(e,n)}(n,e)},key:t,tabIndex:0,"data-testid":"trueFalseAnswerContent","aria-selected":i,"aria-disabled":A,className:a,"aria-label":"".concat(d.answerNumber," ").concat(n+1,", ").concat(o).concat(i?". ".concat(d.yourAnswer):"")},o))}))))}))},2376:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(6080),n)},9810:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(342),n)},342:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuestionIcon=void 0;var o=t(4522),r=t(2085),i=t(1293),a=t(6909),s=KalturaPlayer.ui.components.Icon;n.QuestionIcon=function(e){var n=function(e,n){switch(e){case r.KalturaQuizQuestionTypes.OpenQuestion:return[(0,o.h)(s,{id:"ivq-open-question",height:i.icons.SmallSize,width:i.icons.SmallSize,viewBox:"0 0 ".concat(i.icons.SmallSize," ").concat(i.icons.SmallSize),path:i.icons.OPEN_QUESTION_ICON}),a.defaultIcon];case r.KalturaQuizQuestionTypes.Reflection:return[(0,o.h)(s,{id:"ivq-reflectin-point",height:i.icons.SmallSize,width:i.icons.SmallSize,viewBox:"0 0 ".concat(i.icons.SmallSize," ").concat(i.icons.SmallSize),path:i.icons.REFLECTION_POINT_ICON}),a.defaultIcon];default:return n?[(0,o.h)(s,{id:"ivq-question-correct-answer",height:i.icons.SmallSize,width:i.icons.SmallSize,viewBox:"0 0 ".concat(i.icons.SmallSize," ").concat(i.icons.SmallSize),path:i.icons.CORRCT_ANSWER}),a.correctAnswer]:[(0,o.h)(s,{id:"ivq-question-incorrect-answer",height:i.icons.SmallSize,width:i.icons.SmallSize,viewBox:"0 0 ".concat(i.icons.SmallSize," ").concat(i.icons.SmallSize),path:i.icons.INCORRECT_ANSWER}),a.incorrectAnswer]}}(e.questionType,e.isCorrect),t=n[0],l=n[1];return(0,o.h)("div",{className:[a.questionIcon,l].join(" "),"data-testid":"reviewQuestionIcon"},t)}},8734:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(2254),n)},2254:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.QuestionListReview=void 0;var r=t(4522),i=t(5792),a=t(1797),s=t(2085),l=t(9810),u=t(979),c=t(6573),p=KalturaPlayer.ui.preacti18n,_=p.withText,d=p.Text;n.QuestionListReview=_((function(e){var n=e.score;return{quizScore:(0,r.h)(d,{id:"ivq.quiz_score",fields:{quizScore:"".concat(n,"/100")}},"Your score is ".concat(n,"/100")),retakeButton:(0,r.h)(d,{id:"ivq.retake_button"},"Retake"),retakeButtonAreaLabel:(0,r.h)(d,{id:"ivq.retake_button_area_label"},"Click to retake the quiz"),closeButton:(0,r.h)(d,{id:"ivq.close_button"},"Close"),closeButtonAriaLabel:(0,r.h)(d,{id:"ivq.close_button_aria_label"},"Click to close the review"),quizCompleted:(0,r.h)(d,{id:"ivq.quiz_completed"},"You completed the quiz"),reviewQuestion:(0,r.h)(d,{id:"ivq.review_question"},"Click to review the question"),correctAnswer:(0,r.h)(d,{id:"ivq.correct_answer"},"Correct answer"),wrongAnswer:(0,r.h)(d,{id:"ivq.wrong_answer"},"Wrong answer"),reflectionPointTranslate:(0,r.h)(d,{id:"ivq.reflection_point"},"Reflection Point"),questionLabel:(0,r.h)(d,{id:"ivq.question"},"Question")}}))((function(e){var n=e.onRetake,t=(e.score,e.reviewDetails),p=e.showAnswers,_=e.showScores,d=e.onClose,A=e.onQuestionClick,b=o(e,["onRetake","score","reviewDetails","showAnswers","showScores","onClose","onQuestionClick"]),h=(0,i.useState)(!1),f=h[0],v=h[1],C=(0,i.useCallback)((function(){v(!0),n&&n().finally((function(){v(!1)}))}),[n]),m=function(e){return"".concat(b.questionLabel," #").concat(e.index+1)},g=(0,i.useMemo)((function(){return(0,r.h)("div",{className:c.questionsContainer,"data-testid":"reviewQuestionsContainer",role:"listbox"},t.map((function(e,n){var t;return(0,r.h)(u.A11yWrapper,{onClick:A(e,n),role:"listitem"},(0,r.h)("div",{key:e.id,tabIndex:0,className:c.reviewAnswer,"data-testid":"reviewAnswer"},(0,r.h)("div",{className:c.questionLabel,"data-testid":"reviewQuestionLabel","aria-hidden":"true"},e.index+1),(0,r.h)("div",{className:c.questionContent,"data-testid":"reviewQuestionContent","aria-hidden":"true"},e.q.question),(0,r.h)("span",{className:c.visuallyHidden},function(e){var n;return e.q.questionType===s.KalturaQuizQuestionTypes.Reflection?"".concat(m(e),", ").concat(b.reflectionPointTranslate,": ").concat(e.q.question):e.q.questionType===s.KalturaQuizQuestionTypes.OpenQuestion?"".concat(m(e),", ").concat(e.q.question,". ").concat(b.reviewQuestion):"".concat(m(e),": ").concat((null===(n=e.a)||void 0===n?void 0:n.isCorrect)?b.correctAnswer:b.wrongAnswer,", ").concat(e.q.question,". ").concat(b.reviewQuestion)}(e)),(0,r.h)(l.QuestionIcon,{questionType:e.q.questionType,isCorrect:null===(t=e.a)||void 0===t?void 0:t.isCorrect})))})))}),[t]);return(0,r.h)("div",{className:["ivq",c.quizReviewWrapper].join(" "),role:"dialog","aria-live":"polite","data-testid":"quizReviewWrapper"},_?(0,r.h)("legend",{"data-testid":"quizScoreTitle",className:c.quizScore,tabIndex:0,role:"text"},b.quizScore):(0,r.h)("div",{className:c.quizScore,"data-testid":"quizScoreTitle",tabIndex:0,role:"text"},b.quizCompleted),(0,r.h)("div",{className:c.questionsWrapper},p&&g),(0,r.h)("div",{className:c.buttonWrapper,"data-testid":"reviewButtonWrapper"},n&&(0,r.h)(u.A11yWrapper,{onClick:C},(0,r.h)("div",{tabIndex:0,className:c.primaryButton,"aria-label":b.retakeButtonAreaLabel,"data-testid":"reviewRetakeButton",disabled:f},f?(0,r.h)(a.Spinner,null):b.retakeButton)),(0,r.h)(u.A11yWrapper,{onClick:d},(0,r.h)("div",{tabIndex:0,"data-testid":"reviewCloseButton",className:[n?c.secondaryButton:c.primaryButton,f?c.disabled:""].join(" "),"aria-label":b.closeButtonAriaLabel},b.closeButton))))}))},9816:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(7386),n)},7386:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.QuestionReview=void 0;var r=t(4522),i=t(5792),a=t(979),s=t(2085),l=t(7610),u=t(1293),c=t(5333),p=t(9810),_=t(6713),d=t(7448),A=KalturaPlayer.ui.preacti18n,b=A.withText,h=A.Text,f=KalturaPlayer.ui.components.Icon;n.QuestionReview=b((function(e){var n=e.questionsAmount,t=e.reviewQuestion;return{backButton:(0,r.h)(h,{id:"ivq.back_button"},"Back"),questionCounter:(0,r.h)(h,{id:"ivq.question_counter",fields:{current:t.index+1,total:n}},"Question ".concat(t.index+1," of ").concat(n)),correctAnswerIs:(0,r.h)(h,{id:"ivq.correct_answer_is"},"The correct answer is:"),yourAnswer:(0,r.h)(h,{id:"ivq.your_answer"},"Your answer"),questionLabel:(0,r.h)(h,{id:"ivq.question"},"Question")}}))((function(e){var n=e.onBack,t=e.onNext,A=e.onPrev,b=e.questionCounter,h=e.reviewQuestion,v=e.getSeekBarNode,C=o(e,["onBack","onNext","onPrev","questionCounter","reviewQuestion","getSeekBarNode"]),m=(0,i.useRef)(null),g=h.qq,y=g.q,w=g.a;(0,i.useEffect)((function(){var e;h.byKeyboard&&(null===(e=m.current)||void 0===e||e.focus())}),[h]);var x=(0,i.useMemo)((function(){var e;if(y.questionType===s.KalturaQuizQuestionTypes.TrueFalse){var n=null===(e=null==w?void 0:w.correctAnswerKeys[0])||void 0===e?void 0:e.value,t=null==y?void 0:y.optionalAnswers.find((function(e){return e.key===n})),o=null==y?void 0:y.optionalAnswers.find((function(e){return e.key===(null==w?void 0:w.answerKey)}));return(0,r.h)(r.Fragment,null,(0,r.h)("div",{className:d.correctAnswerIs,"data-testid":"reviewCorrectAnswerIs"},"".concat(C.correctAnswerIs," ").concat(null==t?void 0:t.text)),(null==w?void 0:w.explanation)&&(0,r.h)(_.QuestionAddons,{explanation:w.explanation}),(0,r.h)("div",{className:d.yourAnswer,"data-testid":"reviewYourAnswer"},C.yourAnswer,(0,r.h)("span",{className:d.visuallyHidden},": ".concat(null==o?void 0:o.text))),(0,r.h)("div",{className:d.trueFalseAnswerWrapper,role:"listbox","aria-hidden":"true"},y.optionalAnswers.map((function(e){var n=e.key,o=e.text;return(0,r.h)("div",{key:n,className:[d.trueFalseAnswer,d.disabled].join(" "),"data-testid":"reviewTrueFalseAnswer",role:"option"},o,(null==w?void 0:w.answerKey)===n&&(0,r.h)(p.QuestionIcon,{questionType:y.questionType,isCorrect:n===(null==t?void 0:t.key)}))}))))}if([s.KalturaQuizQuestionTypes.MultiAnswer,s.KalturaQuizQuestionTypes.MultiChoice].includes(y.questionType)){var i=(0,l.makeQuestionLabels)(),a=null==w?void 0:w.correctAnswerKeys.map((function(e){return e.value})),u=[],c=[],A=[],b=(null==w?void 0:w.answerKey.split(","))||[],h=[];return y.optionalAnswers.forEach((function(e,n){var t=null==a?void 0:a.includes(e.key);t&&u.push(i[n]),b.includes(e.key)&&(t?(c.push(e.key),h.push(i[n])):(A.push(e.key),h.push(i[n])))})),(0,r.h)(r.Fragment,null,(0,r.h)("div",{className:d.correctAnswerIs,"data-testid":"reviewCorrectMultiChoiceAnswer"},"".concat(C.correctAnswerIs," ").concat(u.join(","))),(null==w?void 0:w.explanation)&&(0,r.h)(_.QuestionAddons,{explanation:w.explanation}),(0,r.h)("div",{className:d.yourAnswer,"data-testid":"reviewYourMultiChoiceAnswer"},C.yourAnswer,(0,r.h)("span",{className:d.visuallyHidden},": ".concat(h.join(",")))),(0,r.h)("div",{className:d.multiAnswersWrapper,"aria-hidden":"true"},(0,r.h)("div",{className:d.multiAnswersContainer,role:"listbox"},y.optionalAnswers.map((function(e,n){var t=e.key,o=e.text,a=A.includes(t),s=c.includes(t);return(0,r.h)("div",{key:t,className:[d.multiSelectAnswer,d.disabled].join(" "),"data-testid":"multiSelectAnswer",role:"option"},(0,r.h)("div",{className:d.questionLabel,"data-testid":"questionLabel"},i[n]),(0,r.h)("div",{className:d.questionContent,"data-testid":"questionContent"},o),s&&(0,r.h)(p.QuestionIcon,{questionType:y.questionType,isCorrect:!0}),a&&(0,r.h)(p.QuestionIcon,{questionType:y.questionType,isCorrect:!1}),!(s||a)&&(0,r.h)("div",{className:d.iconPlaceholder}))}))),(0,r.h)("div",{className:d.rightDivider})))}return y.questionType===s.KalturaQuizQuestionTypes.OpenQuestion?(0,r.h)(r.Fragment,null,(0,r.h)("div",{className:d.openQuestionAnswer,"data-testid":"openQuestionAnswer"},null==w?void 0:w.openAnswer),(null==w?void 0:w.explanation)&&(0,r.h)(_.QuestionAddons,{explanation:w.explanation}),(null==w?void 0:w.feedback)&&(0,r.h)(_.QuestionAddons,{feedback:null==w?void 0:w.feedback})):null}),[h]);return(0,r.h)(r.Fragment,null,(0,r.h)("div",{className:["ivq",d.questionReviewWrapper].join(" "),role:"dialog","aria-live":"polite","data-testid":"questionReviewWrapper"},(0,r.h)("div",{className:d.backButtonContainer},(0,r.h)(a.A11yWrapper,{onClick:n},(0,r.h)("div",{tabIndex:0,className:d.backButton,ref:m,"data-testid":"backButton"},(0,r.h)("div",{className:d.iconContainer,"aria-hidden":"true"},(0,r.h)(f,{id:"ivq-chevron-left",height:14,width:9,viewBox:"0 0 ".concat(u.icons.SmallSize," ").concat(u.icons.SmallSize),path:u.icons.CHEVRON_LEFT})),C.backButton))),(0,r.h)("div",{className:d.quizQuestionContainer},(0,r.h)("legend",{className:d.questionText,"data-testid":"reviewQuestionText"},(0,r.h)("span",{className:d.visuallyHidden},"".concat(C.questionLabel," #").concat(h.index+1,":")),y.question),x)),(0,r.h)(c.IvqBottomBar,{questionCounter:b,onPrev:A,onNext:t,getSeekBarNode:v}))}))},6080:function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.QuizReview=void 0;var i=t(4522),a=t(5792),s=t(6740),l=t(9816),u=t(8734);n.QuizReview=function(e){var n=e.reviewDetails,t=e.preparePlayer,c=e.getSeekBarNode,p=e.restoreSeekBar,_=r(e,["reviewDetails","preparePlayer","getSeekBarNode","restoreSeekBar"]),d=(0,a.useState)(null),A=d[0],b=d[1],h=(0,a.useCallback)((function(e,n){return function(o,r){t(e,!0,!1),b({qq:e,index:n,byKeyboard:r})}}),[]),f=(0,a.useCallback)((function(){b(null),p()}),[p]),v=(0,a.useCallback)((function(e){var o=A&&n[A.index+e];if(o)return function(){t(o,!0,!1),b({qq:o,index:A.index+e})}}),[A,n]),C=(0,a.useMemo)((function(){return(0,i.h)(l.QuestionReview,{onBack:f,onNext:v(1),onPrev:v(-1),reviewQuestion:A,questionsAmount:n.length,getSeekBarNode:c})}),[A,n,c]),m=(0,a.useMemo)((function(){return(0,i.h)(u.QuestionListReview,o({onQuestionClick:h,reviewDetails:n},_))}),[_,n]);return(0,i.h)(s.IvqOverlay,null,A?C:m)}},5794:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(8501),n)},8501:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.QuizSubmit=void 0;var r=t(4522),i=t(5792),a=t(979),s=t(6740),l=t(1797),u=t(7320),c=KalturaPlayer.ui.preacti18n,p=c.withText,_=c.Text,d=KalturaPlayer.ui.redux.useSelector;n.QuizSubmit=p((function(e){var n=e.onSubmit;return{submitButton:(0,r.h)(_,{id:"ivq.submit_button"},"Submit"),submitButtonAriaLabel:(0,r.h)(_,{id:"ivq.submit_button_area_label"},"Click to submit quiz"),reviewButton:(0,r.h)(_,{id:"ivq.review_button"},"Review"),reviewButtonAriaLabel:(0,r.h)(_,{id:"ivq.review_button_area_label"},"Click to review quiz"),title:n?(0,r.h)(_,{id:"ivq.submit_title"},"Quiz completed"):(0,r.h)(_,{id:"ivq.review_title"},"You are almost done"),description:n?(0,r.h)(_,{id:"ivq.submit_description"},"Take a moment to review your answers or go ahead to submit your answers."):(0,r.h)(_,{id:"ivq.review_description"},"It appears that some questions remained unanswered. Please complete the quiz to submit.")}}))((function(e){var n=e.onReview,t=e.onSubmit,c=o(e,["onReview","onSubmit"]),p=(0,i.useState)(!1),_=p[0],A=p[1],b=(0,i.useRef)(null),h=(0,i.useRef)(null);(0,i.useEffect)((function(){var e,n;d((function(e){return e.shell.playerNav}))&&(t?null===(e=b.current)||void 0===e||e.focus():null===(n=h.current)||void 0===n||n.focus())}),[t]);var f=(0,i.useCallback)((function(){n()}),[n]),v=(0,i.useCallback)((function(){t&&(A(!0),t().finally((function(){A(!1)})))}),[]);return(0,r.h)(s.IvqOverlay,null,(0,r.h)("div",{className:["ivq",u.quizSubmitWrapper].join(" "),"data-testid":"submitContainer"},(0,r.h)("div",{tabIndex:0,role:"text"},(0,r.h)("div",{className:u.title},c.title),(0,r.h)("div",{className:u.description},c.description)),(0,r.h)("div",{className:u.buttonWrapper,"data-testid":"submitButton"},t&&(0,r.h)(a.A11yWrapper,{onClick:v},(0,r.h)("div",{tabIndex:0,className:u.primaryButton,"aria-label":c.submitButtonAriaLabel,disabled:_,ref:b},_?(0,r.h)(l.Spinner,null):c.submitButton)),(0,r.h)(a.A11yWrapper,{onClick:f},(0,r.h)("div",{tabIndex:0,disabled:_,className:[t?u.secondaryButton:u.primaryButton,_?u.disabled:""].join(" "),"aria-label":c.reviewButtonAriaLabel,ref:h},c.reviewButton)))))}))},1797:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(4350),n)},4350:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Spinner=void 0;var o=t(4522),r=t(2340);n.Spinner=function(e){return(0,o.h)("div",{style:{height:e.height,width:e.width},className:r.ivqLoader,"data-testid":"ivqSpinner"})},n.Spinner.defaultProps={height:"22px",width:"22px"}},6503:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(4516),n),r(t(608),n)},4516:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.TimelineMarker=void 0;var r=t(4522),i=t(5792),a=t(437),s=t(979),l=KalturaPlayer.ui.preacti18n,u=l.withText,c=l.Text,p=KalturaPlayer.ui.redux.useSelector;n.TimelineMarker=u((function(e){var n=e.questionIndex+1;return{markerAriaLabel:(0,r.h)(c,{id:"ivq.marker_area_label",fields:{questionIndex:n}},"Jump to Question ".concat(n))}}))((function(e){var n=e.isDisabled,t=e.onClick,l=e.getSeekBarNode,u=o(e,["isDisabled","onClick","getSeekBarNode"]),c=p((function(e){return e.seekbar.hoverActive}));p((function(e){return e.seekbar}));var _=n();return(0,i.useMemo)((function(){return(0,r.h)(s.A11yWrapper,{onClick:t},(0,r.h)("div",{onFocus:function(){var e=l();e&&e.setAttribute("role","none")},onBlur:function(){var e=l();e&&e.setAttribute("role","slider")},title:u.markerAriaLabel,tabIndex:_?-1:0,"data-testid":"cuePointContainer",className:"".concat(a.markerWrapper," ").concat(c?a.hover:"")},(0,r.h)("div",{className:"".concat(a.marker)})))}),[_,c])}))},608:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TimelinePreview=void 0;var o=t(4522),r=t(5792),i=t(4908),a=t(1293),s=t(2085),l=KalturaPlayer.ui.components.Icon,u=KalturaPlayer.ui.preacti18n,c=u.withText,p=u.Text,_={questionTranslate:(0,o.h)(p,{id:"ivq.question"},"Question"),reflectionPointTranslate:(0,o.h)(p,{id:"ivq.reflection_point"},"Reflection Point")},d=function(e){return e?{height:"".concat(e.height,"px"),width:"".concat(e.width,"px")}:{}},A=function(e){return e?"height: 100%; width: 100%; background: url(".concat(e.url,");")+"background-position: -".concat(e.x,"px -").concat(e.y,"px;"):""};n.TimelinePreview=c(_)((function(e){var n=e.onQuestionLinkClick,t=e.thumbnailInfo,u=e.questionBunch,c=e.questionType,p=e.questionTranslate,_=e.reflectionPointTranslate,b=(0,r.useMemo)((function(){var e=u[0]+1;return u.length>1?{type:p,firstIndex:e,lastIndex:"-".concat(u[u.length-1]+1)}:{type:c===s.KalturaQuizQuestionTypes.Reflection?_:p,firstIndex:e,lastIndex:""}}),[u]);return(0,o.h)("div",{className:i.container},(0,o.h)("div",{className:i.header},(0,o.h)(l,{id:"ivq-quiz-question",height:a.icons.SmallSize,width:a.icons.SmallSize,viewBox:"0 0 ".concat(a.icons.SmallSize," ").concat(a.icons.SmallSize),path:a.icons.QUIZ_ICON}),(0,o.h)("span",{className:i.title},"".concat(b.type," ").concat(b.firstIndex).concat(b.lastIndex)),(0,o.h)("button",{className:i.questionLink,onClick:n},(0,o.h)(l,{id:"ivq-question-link",height:18,width:18,viewBox:"0 0 ".concat(18," ").concat(18),path:a.icons.QUESTION_LINK}))),(0,o.h)("div",{style:d(t)},(0,o.h)("div",{style:A(t)})))}))},8912:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(614),n)},614:function(e,n,t){"use strict";var o=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.WelcomeScreen=void 0;var r=t(4522),i=t(5792),a=t(4761),s=t(1293),l=t(1797),u=t(979),c=KalturaPlayer.ui.preacti18n,p=c.withText,_=c.Text,d=KalturaPlayer.ui.components.Icon,A=KalturaPlayer.ui.components.Overlay;n.WelcomeScreen=p((function(e){var n=e.availableAttempts;return{welcomeTitle:(0,r.h)(_,{id:"ivq.welcome_title"},"Start your video quiz!"),tip:(0,r.h)(_,{id:"ivq.tip"},"All questions must be answered. The quiz will be submitted at the end."),availableAttemptsMessage:(0,r.h)(_,{id:"ivq.available_attempts",fields:{availableAttempts:n}},"Total attempts available for this quiz: ".concat(n)),welcomeDownload:(0,r.h)(_,{id:"ivq.welcome_download"},"Download Pre-Test"),startQuiz:(0,r.h)(_,{id:"ivq.start_quiz"},"Start Quiz")}}))((function(e){var n=e.welcomeMessage,t=e.inVideoTip,c=e.onDownload,p=e.poster,_=e.onClose,b=e.availableAttempts,h=o(e,["welcomeMessage","inVideoTip","onDownload","poster","onClose","availableAttempts"]),f=(0,i.useState)(!1),v=f[0],C=f[1],m=(0,i.useCallback)((function(){v||(C(!0),c().finally((function(){C(!1)})))}),[c,v]),g=(0,i.useMemo)((function(){return(0,r.h)("div",{"data-testid":"welcomeScreenRoot",className:["ivq",a.welcomeScreenWrapper,p?a.withPoster:""].join(" "),style:{backgroundImage:p?"url(".concat(p,")"):"none"}},(0,r.h)("div",{className:a.background}),(0,r.h)("div",{className:a.content,"data-testid":"welcomeScreenContent"},(0,r.h)("div",{title:"".concat(h.welcomeTitle,". ").concat(n,". ").concat(h.tip," ").concat(h.availableAttemptsMessage),tabIndex:0,role:"text","aria-live":"polite"},(0,r.h)("div",{className:a.title,"data-testid":"welcomeScreenTitle"},h.welcomeTitle),(0,r.h)("div",{className:a.desc,"data-testid":"welcomeScreenDescription"},n),t?(0,r.h)("div",{className:a.tip,"data-testid":"welcomeScreenTip"},h.tip):"",b&&b>0?(0,r.h)("div",{className:a.attempts,"data-testid":"welcomeScreenAttempts"},h.availableAttemptsMessage):""),(0,r.h)("div",{className:a.buttonWrapper},_&&(0,r.h)(u.A11yWrapper,{onClick:_},(0,r.h)("div",{"data-testid":"startQuiz","aria-label":h.startQuiz,className:a.startQuizButton,tabIndex:0},h.startQuiz)),c&&(0,r.h)(u.A11yWrapper,{onClick:m},(0,r.h)("div",{tabIndex:0,"aria-label":h.welcomeDownload,"data-testid":"downloadPreTestContainer",className:[a.download,v?a.disabled:""].join(" ")},v&&(0,r.h)("div",{className:a.spinnerContainer},(0,r.h)(l.Spinner,{height:"20px",width:"20px"})),!v&&(0,r.h)("div",{className:a.icon,"data-testid":"downloadPreTestIcon"},(0,r.h)(d,{id:"ivq-download","data-testid":"downloadPreTestIcon",height:s.icons.MediumSize,width:s.icons.MediumSize,viewBox:"0 0 ".concat(s.icons.MediumSize," ").concat(s.icons.MediumSize),path:s.icons.DOWNLOAD})),(0,r.h)("span",null,h.welcomeDownload))))))}),[]);return _?(0,r.h)(A,{open:!0,permanent:!0,children:g}):g}))},6598:function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.DataSyncManager=void 0;var r=t(2052),i=t(7610),a=t(2085),s=t(5294),l=t(6099),u=r.core.TimedMetadata;n.DataSyncManager=function(e,n,t,r,c,p,_,d,A){var b=this;this._onQuestionsLoad=e,this._onQuestionBecomeActive=n,this._enableSeekControl=t,this._eventManager=r,this._player=c,this._logger=p,this._dispatchIvqEvent=_,this._manageIvqPopup=d,this._filterQuestionChanged=A,this.quizData=null,this.quizUserEntry=null,this.quizQuestionsMap=new Map,this._quizCuePoints=[],this._quizAnswers=[],this._syncEvents=function(){b._eventManager.listen(b._player,b._player.Event.TIMED_METADATA_CHANGE,b._onTimedMetadataChange),b._eventManager.listen(b._player,b._player.Event.TIMED_METADATA_ADDED,b._onTimedMetadataAdded)},this.setQuizData=function(e){b._logger.debug("setQuizData",e),b.quizData=o(o({},e),{welcomeMessage:(0,i.getKeyValue)(e.uiAttributes,"welcomeMessage"),noSeekAlertText:(0,i.getKeyValue)(e.uiAttributes,"noSeekAlertText"),inVideoTip:(0,i.stringToBoolean)((0,i.getKeyValue)(e.uiAttributes,"inVideoTip")),showWelcomePage:(0,i.stringToBoolean)((0,i.getKeyValue)(e.uiAttributes,"showWelcomePage")),canSkip:(0,i.stringToBoolean)((0,i.getKeyValue)(e.uiAttributes,"canSkip")),preventSeek:(0,i.stringToBoolean)((0,i.getKeyValue)(e.uiAttributes,"banSeek"))})},this.setQuizUserEntry=function(e){b._logger.debug("setQuizUserEntry",e),b.quizUserEntry=e},this.setQuizAnswers=function(e){void 0===e&&(e=[]),b._logger.debug("setQuizAnswers",e),b._quizAnswers=e},this.initDataManager=function(){var e;b.quizData&&b.quizUserEntry?(b.quizData.preventSeek&&b._enableSeekControl(),b._syncEvents(),b._dispatchIvqEvent(a.IvqEventTypes.QUIZ_STARTED,{allowedAttempts:b.quizData.attemptsAllowed,allowSeekForward:!b.quizData.preventSeek,scoreType:b.quizData.scoreType,allowAnswerUpdate:null===(e=b.quizData)||void 0===e?void 0:e.allowAnswerUpdate})):b._logger.warn("initDataManager: quizData or quizUserEntry absent")},this.dispatchQuestionChanged=function(){var e=b.isQuizSubmitted(),n=[];b._filterQuestionChanged(b.quizQuestionsMap).forEach((function(t){var o,r=l.QuestionStateTypes.UNANSWERED;e&&b.quizData.showCorrectAfterSubmission?r=(null===(o=t.a)||void 0===o?void 0:o.isCorrect)?l.QuestionStateTypes.CORRECT:l.QuestionStateTypes.INCORRECT:t.a&&(r=l.QuestionStateTypes.ANSWERED);var i={id:t.id,index:t.index,type:t.q.questionType,question:t.q.question,startTime:t.startTime,state:r};n.push(i)})),b._dispatchIvqEvent(a.IvqEventTypes.QUIZ_QUESTION_CHANGED,{qqa:n})},this.submitQuiz=function(){var e,n={entryId:b._player.sources.id,quizUserEntryId:null===(e=b.quizUserEntry)||void 0===e?void 0:e.id};return b._player.provider.doRequest([{loader:s.QuizSubmitLoader,params:n}]).then((function(e){var n;if(e&&e.has(s.QuizSubmitLoader.id)){var t=e.get(s.QuizSubmitLoader.id),r=null===(n=null==t?void 0:t.response)||void 0===n?void 0:n.userEntry;if(r)return b.quizUserEntry=r,b._dispatchIvqEvent(a.IvqEventTypes.QUIZ_SUBMITTED,r.id),b.getQuizAnswers().then((function(e){b._quizAnswers=e,b.prepareQuizData(),b.quizQuestionsMap.forEach((function(e){b.quizQuestionsMap.set(e.id,o(o({},e),{disabled:!0,skipAvailable:!1}))}))}));b._logger.warn("submit quiz failed")}}))},this.getUnansweredQuestions=function(){var e=[];return b.quizQuestionsMap.forEach((function(n){n.a||e.push(n)})),e},this.getQuizAnswers=function(){var e;return b._player.provider.doRequest([{loader:s.QuizAnswerLoader,params:{entryId:b._player.sources.id,quizUserEntryId:null===(e=b.quizUserEntry)||void 0===e?void 0:e.id}}]).then((function(e){var n;if(e&&e.has(s.QuizAnswerLoader.id)){var t=e.get(s.QuizAnswerLoader.id);return null===(n=null==t?void 0:t.response)||void 0===n?void 0:n.quizAnswers}})).catch((function(e){b._logger.warn(e)}))},this.createNewQuizUserEntry=function(){return b._player.provider.doRequest([{loader:s.QuizUserEntryIdLoader,params:{entryId:b._player.sources.id}}]).then((function(e){var n;if(e&&e.has(s.QuizUserEntryIdLoader.id)){var t=e.get(s.QuizUserEntryIdLoader.id);return null===(n=null==t?void 0:t.response)||void 0===n?void 0:n.userEntry}})).catch((function(e){b._logger.warn(e)}))},this.isQuizSubmitted=function(){var e;return(0,i.isNumber)(null===(e=b.quizUserEntry)||void 0===e?void 0:e.score)},this.isSubmitAllowed=function(){return!b.getUnansweredQuestions().length},this._getSubmittedAttempts=function(){var e;return(0,i.isNumber)(null===(e=b.quizUserEntry)||void 0===e?void 0:e.version)?b.isQuizSubmitted()?b.quizUserEntry.version+1:b.quizUserEntry.version:0},this.getQuizScore=function(){return b.isQuizSubmitted()?(100*b.quizUserEntry.score).toFixed(0):"0"},this.getAvailableAttempts=function(){var e;return((null===(e=b.quizData)||void 0===e?void 0:e.attemptsAllowed)||0)-b._getSubmittedAttempts()},this.isRetakeAllowed=function(){return b.getAvailableAttempts()>0},this.prepareQuizData=function(){b._quizCuePoints.forEach((function(e,n){var t=b._quizAnswers.find((function(n){return e.id===n.parentId})),r=b._quizCuePoints[n-1],i=b._quizCuePoints[n+1];r&&(r={id:r.id,startTime:r.startTime}),i&&(i={id:i.id,startTime:i.startTime});var s=b.isQuizSubmitted(),l={id:e.id,index:n,startTime:e.startTime,q:e.metadata,a:t,next:i,prev:r,skipAvailable:b.quizData.canSkip&&!s,seekAvailable:!b.quizData.preventSeek,allowAnswerUpdate:b.quizData.allowAnswerUpdate,disabled:s,onContinue:function(t){var r=b.quizQuestionsMap.get(e.id).a;return b._sendQuizAnswer(t,e.metadata.questionType,null==r?void 0:r.id,e.id).then((function(r){var s;b._dispatchIvqEvent(a.IvqEventTypes.QUESTION_ANSWERED,{questionIndex:n,questionType:e.metadata.questionType,questionText:e.metadata.question,answer:t,attemptNumber:null===(s=b.quizData)||void 0===s?void 0:s.version}),b.quizQuestionsMap.set(e.id,o(o({},b.quizQuestionsMap.get(e.id)),{a:r})),b.dispatchQuestionChanged(),i&&!b.isSubmitAllowed()||b._manageIvqPopup()})).catch((function(e){throw b._logger.warn(e),e}))}};b.quizQuestionsMap.set(e.id,l)})),b.dispatchQuestionChanged()},this.retakeQuiz=function(e){b.setQuizUserEntry(e),b.setQuizAnswers([]),b.prepareQuizData()},this._sendQuizAnswer=function(e,n,t,o){var r,i="1";[a.KalturaQuizQuestionTypes.TrueFalse,a.KalturaQuizQuestionTypes.MultiAnswer,a.KalturaQuizQuestionTypes.MultiChoice].includes(n)&&(i=e);var l={entryId:b._player.sources.id,quizUserEntryId:null===(r=b.quizUserEntry)||void 0===r?void 0:r.id,parentId:o,answerKey:i,id:t};return n===a.KalturaQuizQuestionTypes.OpenQuestion&&(l.openAnswer=e),b._player.provider.doRequest([{loader:s.QuizAnswerSubmitLoader,params:l}]).then((function(e){var n;if(e&&e.has(s.QuizAnswerSubmitLoader.id)){var t=e.get(s.QuizAnswerSubmitLoader.id),o=null===(n=null==t?void 0:t.response)||void 0===n?void 0:n.quizAnswer;if(o)return o;b._logger.warn("submit answer failed")}}))},this._getQuizQuePoints=function(e){return e.filter((function(e){var n;return(null==e?void 0:e.type)===u.TYPE.CUE_POINT&&"quiz.QUIZ_QUESTION"===(null===(n=e.metadata)||void 0===n?void 0:n.cuePointType)}))},this._onTimedMetadataChange=function(e){var n=e.payload,t=b._getQuizQuePoints(n.cues).filter((function(e){return e.endTime!==b._player.currentTime}));t.length&&b._onQuestionBecomeActive(t[0])},this._onTimedMetadataAdded=function(e){var n=e.payload,t=b._getQuizQuePoints(n.cues);t.length&&(b._quizCuePoints=t,b.prepareQuizData(),b._onQuestionsLoad(b.quizQuestionsMap))},this.reset=function(){b.quizData=null,b.quizUserEntry=null,b.quizQuestionsMap=new Map,b._quizCuePoints=[],b._quizAnswers=[]}}},5195:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Ivq=void 0;var a=t(4522),s=t(2052),l=t(197),u=t(5294),c=t(2085),p=t(6598),_=t(2152),d=t(8912),A=t(5794),b=t(2376),h=t(962),f=t(6503),v=t(9454),C=t(7406),m=s.core.EventType,g="has-ivq-plugin-overlay",y=function(e){function n(n,t,o){var r=e.call(this,n,t,o)||this;return r._resolveQuizDataPromise=function(){},r._resolveQuizQuestionsPromise=function(e){},r._maxCurrentTime=0,r._seekControlEnabled=!1,r._removeActiveOverlay=null,r._ivqPopup=null,r._playlistOptions=null,r._getBottomBarNode=function(){var e,n;return(null===(n=null===(e=r._player.getView().parentNode)||void 0===e?void 0:e.parentNode)||void 0===n?void 0:n.querySelector(c.KalturaPlayerBottomBarSelector))||null},r._getSeekBarNode=function(){var e,n;return(null===(n=null===(e=r._player.getView().parentNode)||void 0===e?void 0:e.parentNode)||void 0===n?void 0:n.querySelector(c.KalturaPlayerSeekBarSelector))||null},r._restoreSeekBar=function(){var e=r._getBottomBarNode();if(e&&!(null==e?void 0:e.querySelector(c.KalturaPlayerSeekBarSelector))){var n=r._getSeekBarNode();n&&(e.append(n),n.setAttribute("role","slider"))}},r._makeQuizDataPromise=function(){return new Promise((function(e){r._resolveQuizDataPromise=e}))},r._makeQuizQuestionsPromise=function(){return new Promise((function(e){r._resolveQuizQuestionsPromise=e}))},r._handleEndEvent=function(){r._dataManager.isQuizSubmitted()?r._displayQuizReview():r._displayQuizSubmit()},r._manageIvqPopup=function(e){var n,t;void 0===e&&(e=!0),r.logger.debug("show 'IVQ Banner'"),r._removeIvqBanner();var o=r._questionsVisualManager.getSubmissionDetails(),s=h.IvqPopupTypes.none;if(e&&r._dataManager.isQuizSubmitted()&&!r._dataManager.isRetakeAllowed()?s=h.IvqPopupTypes.submitted:e||o.submitAllowed?o.submitAllowed&&(null===(n=r._dataManager.quizData)||void 0===n?void 0:n.preventSeek)?s=h.IvqPopupTypes.completed:o.submitAllowed&&!(null===(t=r._dataManager.quizData)||void 0===t?void 0:t.preventSeek)&&(s=h.IvqPopupTypes.submit):s=h.IvqPopupTypes.almostDone,s!==h.IvqPopupTypes.none){var u={score:r._dataManager.getQuizScore(),type:s,onClose:r._removeIvqBanner,onReview:o.onReview,onSubmit:function(){return r._player.pause(),r._submitQuiz()}};r._ivqPopup=r._contribServices.floatingManager.add({label:"IVQ popup",mode:l.FloatingUIModes.Immediate,position:l.FloatingPositions.InteractiveArea,renderContent:function(){return(0,a.h)(h.IvqPopup,i({},u))}})}},r._removeIvqBanner=function(){r._ivqPopup&&r._contribServices.floatingManager.remove(r._ivqPopup)},r._setOverlay=function(e){var n;r._player.pause(),r._removeOverlay(),r._removeActiveOverlay=e,null===(n=r._player.ui.store)||void 0===n||n.dispatch(KalturaPlayer.ui.reducers.shell.actions.addPlayerClass(g))},r._removeOverlay=function(){var e;r._restoreSeekBar(),r._removeActiveOverlay&&(r._removeActiveOverlay(),r._removeActiveOverlay=null,null===(e=r._player.ui.store)||void 0===e||e.dispatch(KalturaPlayer.ui.reducers.shell.actions.removePlayerClass(g)))},r._showWelcomeScreen=function(e){var n,t,o;void 0===e&&(e=!1),r.logger.debug("show 'Welcome Screen'");var s={welcomeMessage:null===(n=r._dataManager.quizData)||void 0===n?void 0:n.welcomeMessage,inVideoTip:null===(t=r._dataManager.quizData)||void 0===t?void 0:t.inVideoTip};s.availableAttempts=r._dataManager.getAvailableAttempts(),(null===(o=r._dataManager.quizData)||void 0===o?void 0:o.allowDownload)&&(s.onDownload=function(){return r._player.provider.doRequest([{loader:v.QuizDownloadLoader,params:{entryId:r._player.sources.id}}]).then((function(e){e&&e.has(v.QuizDownloadLoader.id)&&window.location.assign(e.get(v.QuizDownloadLoader.id).response)}))}),e?r.eventManager.listenOnce(r._player,m.PLAY,(function(){r._removeOverlay(),r._manageIvqPopup()})):(s.poster=r._player.poster||"",s.onClose=function(){r._player.play(),r._removeOverlay(),r._manageIvqPopup()}),r._setOverlay(r._player.ui.addComponent({label:"kaltura-ivq-welcome-screen",presets:c.PresetAreas,container:c.UiComponentArea,get:function(){return(0,a.h)(d.WelcomeScreen,i({},s))}}))},r._displayQuizReview=function(){var e=r._questionsVisualManager.getReviewDetails();if(e){var n=r._dataManager.quizData,t=n.showGradeAfterSubmission,o=n.showCorrectAfterSubmission;r._setOverlay(r._player.ui.addComponent({label:"kaltura-ivq-review-screen",presets:c.PresetAreas,container:c.UiComponentArea,replaceComponent:"PrePlaybackPlayOverlay",get:function(){var n={score:r._dataManager.getQuizScore(),onClose:function(){var e,n;r._removeOverlay();var t=r._player.playlist;((null===(e=r._playlistOptions)||void 0===e?void 0:e.loop)||(null===(n=r._playlistOptions)||void 0===n?void 0:n.autoContinue)&&t.next)&&t.playNext()},reviewDetails:e,showAnswers:o,showScores:t,preparePlayer:r._questionsVisualManager.preparePlayer,getSeekBarNode:r._getSeekBarNode,restoreSeekBar:r._restoreSeekBar};return r._dataManager.isRetakeAllowed()&&(n.onRetake=function(){return r._onQuizRetake().then(r._removeOverlay).catch((function(e){r.logger.warn(e)}))}),(0,a.h)(b.QuizReview,i({},n))}}))}},r._submitQuiz=function(){return r._dataManager.submitQuiz().then((function(){var e;r._removeIvqBanner(),r._removeOverlay(),(null===(e=r._dataManager.quizData)||void 0===e?void 0:e.showGradeAfterSubmission)&&r._displayQuizReview()})).catch((function(e){r.logger.warn(e)}))},r._displayQuizSubmit=function(){var e=r._questionsVisualManager.getSubmissionDetails();e&&r._setOverlay(r._player.ui.addComponent({label:"kaltura-ivq-submit-screen",presets:c.PresetAreas,container:c.UiComponentArea,replaceComponent:"PrePlaybackPlayOverlay",get:function(){var n={onReview:function(){r._removeOverlay(),e.onReview()}};return e.submitAllowed&&(n.onSubmit=r._submitQuiz),(0,a.h)(A.QuizSubmit,i({},n))}}))},r._seekControl=function(){r._seekControlEnabled=!0,r.eventManager.listen(r._player,r._player.Event.TIME_UPDATE,(function(){r._maxCurrentTime<r._player.currentTime&&(r._maxCurrentTime=r._player.currentTime)}))},r._shouldPreventSeek=function(e){return r._seekControlEnabled&&!r._questionsVisualManager.quizQuestionJumping&&e>r._maxCurrentTime},r._onQuizRetake=function(){return r._dataManager.createNewQuizUserEntry().then((function(e){if(!e)throw"QuizRetake: quizNewUserEntry absent";r.dispatchEvent(c.IvqEventTypes.QUIZ_RETAKE),r._maxCurrentTime=0,r._dataManager.retakeQuiz(e),r._player.currentTime=0,r._manageWelcomeScreen(!0),r._player.play()}))},r._manageWelcomeScreen=function(e){var n;void 0===e&&(e=!1),(null===(n=r._dataManager.quizData)||void 0===n?void 0:n.showWelcomePage)?r._player.config.playback.autoplay||e?r.eventManager.listenOnce(r.player,r.player.Event.PLAY,(function(){r._showWelcomeScreen()})):r._showWelcomeScreen(r._isFirstPlay()):r.eventManager.listenOnce(r.player,r.player.Event.PLAY,(function(){r._manageIvqPopup()}))},r._isFirstPlay=function(){return Number.isNaN(r._player.duration)},r._filterQuestionChanged=function(e){if(r._seekControlEnabled){var n=[];return e.forEach((function(e){e.startTime<=r._maxCurrentTime&&n.push(e)})),n}return Array.from(e.values())},r._player=t,r._quizDataPromise=r._makeQuizDataPromise(),r._quizQuestionsPromise=r._makeQuizQuestionsPromise(),r._dataManager=new p.DataSyncManager((function(e){return r._resolveQuizQuestionsPromise(e)}),(function(e){return r._questionsVisualManager.onQuestionCuepointActive(e)}),r._seekControl,r.eventManager,r.player,r.logger,(function(e,n){return r.dispatchEvent(e,n)}),(function(){return r._manageIvqPopup(!1)}),(function(e){return r._filterQuestionChanged(e)})),r._questionsVisualManager=new _.QuestionsVisualManager((function(){return r._dataManager.quizQuestionsMap}),r._dataManager.getUnansweredQuestions,r._player,r.eventManager,r._setOverlay,r._removeOverlay,(function(){return Boolean(r._removeActiveOverlay)}),r._getSeekBarNode,r._dataManager.dispatchQuestionChanged),r._contribServices=l.ContribServices.get({kalturaPlayer:r._player}),r}return r(n,e),Object.defineProperty(n.prototype,"ready",{get:function(){return this._quizDataPromise},enumerable:!1,configurable:!0}),n.prototype.getUIComponents=function(){return this._contribServices.register()},n.prototype.getMiddlewareImpl=function(){return new C.KalturaIvqMiddleware(this._shouldPreventSeek)},n.prototype.loadMedia=function(){var e=this,n=this._player.getService("kalturaCuepoints");n&&!this._player.isLive()?(this._getQuestions(n),this._getQuiz(),this._quizQuestionsPromise.then((function(n){e._handleTimeline(n),e._handlePlaylistConfiguration(),e.eventManager.listen(e._player,e._player.Event.ENDED,e._handleEndEvent)}))):(this.logger.warn("kalturaCuepoints service is not registered or entry Live"),this._resolveQuizDataPromise())},n.prototype._handlePlaylistConfiguration=function(){var e=this._player.playlist,n=e.items,t=e.options;(null==n?void 0:n.length)&&((null==t?void 0:t.autoContinue)||(null==t?void 0:t.loop))&&(this._playlistOptions=i({},t),t.autoContinue=!1,t.loop=!1)},n.prototype._handleTimeline=function(e){var n=this,t=this._player.getService("timeline");if(t){var o=function(){return Boolean(n._removeActiveOverlay)},r=new Map,l=[];e.forEach((function(e){var u,c,p;if(e.startTime!==(null===(u=e.prev)||void 0===u?void 0:u.startTime)){var _=function(){var t=n._dataManager.quizQuestionsMap.get(e.id);t&&n._questionsVisualManager.preparePlayer(t,!0)};l.push(e.index),r.set(e.id,l);var d={time:e.startTime,marker:{width:124,height:32,get:function(t){return(0,a.h)(f.TimelineMarker,i({},t,{getSeekBarNode:n._getSeekBarNode,onClick:_,questionIndex:e.index,isDisabled:o}))}}};(null===(c=n._player.sources)||void 0===c?void 0:c.type)!==s.core.MediaType.AUDIO&&(d.preview={get:function(t){var o=t.defaultPreviewProps;return(0,a.h)(f.TimelinePreview,{onQuestionLinkClick:_,thumbnailInfo:n.player.getThumbnail(o.virtualTime),questionBunch:r.get(e.id),questionType:e.q.questionType})},props:{style:{paddingTop:"33%"}},className:"preview",width:null===(p=n._player.getThumbnail(0))||void 0===p?void 0:p.width,hideTime:!1,sticky:!0}),t.addCuePoint(d),l=[]}}))}else this.logger.warn("No timeline service available")},n.isValid=function(){return!0},n.prototype._getQuestions=function(e){null==e||e.registerTypes([e.CuepointType.QUIZ])},n.prototype._getQuiz=function(){var e=this;this._player.provider.doRequest([{loader:u.QuizLoader,params:{entryId:this._player.sources.id}}]).then((function(n){var t,o,r;if(n&&n.has(u.QuizLoader.id)){var i=n.get(u.QuizLoader.id),a=null===(t=null==i?void 0:i.response)||void 0===t?void 0:t.userEntries[0],s=null===(o=null==i?void 0:i.response)||void 0===o?void 0:o.quiz,l=null===(r=null==i?void 0:i.response)||void 0===r?void 0:r.quizAnswers;if(!s)return void e.logger.warn("quiz data absent");var c=e._dataManager,p=c.setQuizUserEntry,_=c.setQuizAnswers,d=c.setQuizData,A=c.isQuizSubmitted,b=c.isRetakeAllowed;if(d(s),a&&p(a),e._manageWelcomeScreen(),!a||A()&&b())return e._dataManager.createNewQuizUserEntry().then((function(n){if(!n)throw"quizUserEntryId absent";_([]),p(n),e._dataManager.initDataManager()}));l&&_(l),e._dataManager.initDataManager()}})).catch((function(n){e.logger.warn("can't process quiz data",n)})).finally((function(){e._resolveQuizDataPromise()}))},n.prototype.reset=function(){if(this._removeOverlay(),this._questionsVisualManager.reset(),this._dataManager.reset(),this._quizDataPromise=this._makeQuizDataPromise(),this._quizQuestionsPromise=this._makeQuizQuestionsPromise(),this.eventManager.removeAll(),this._seekControlEnabled=!1,this._maxCurrentTime=0,this._playlistOptions){var e=this._playlistOptions,n=e.autoContinue,t=e.loop;this._player.playlist.options.autoContinue=n,this._player.playlist.options.loop=t,this._playlistOptions=null}this._removeIvqBanner(),this._contribServices.reset()},n.prototype.destroy=function(){this.eventManager.destroy()},n.defaultConfig={},n}(KalturaPlayer.core.BasePlugin);n.Ivq=y},5294:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(1503),n),r(t(8519),n),r(t(5590),n),r(t(9943),n),r(t(918),n)},918:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuizAnswerLoader=void 0;var o=t(937),r=KalturaPlayer.providers.RequestBuilder,i=function(){function e(e){var n=e.entryId,t=e.quizUserEntryId;this._entryId="",this._quizUserEntryId=0,this._requests=[],this._response={quizAnswers:[]},this._entryId=n,this._quizUserEntryId=t;var o=new Map,i=new r(o);i.service="cuepoint_cuepoint",i.action="list",i.params={filter:{objectType:"KalturaAnswerCuePointFilter",entryIdEqual:this._entryId,cuePointTypeEqual:"quiz.QUIZ_ANSWER",quizUserEntryIdEqual:this._quizUserEntryId}},this.requests.push(i)}return Object.defineProperty(e,"id",{get:function(){return"answers"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var n,t=new o.KalturaQuizAnswerListResponse(null===(n=e[0])||void 0===n?void 0:n.data);t&&t.totalCount&&(this._response.quizAnswers=null==t?void 0:t.data)},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return Boolean(this._entryId&&this._quizUserEntryId)},e}();n.QuizAnswerLoader=i},9454:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuizDownloadLoader=void 0;var t=KalturaPlayer.providers.RequestBuilder,o=function(){function e(e){var n=e.entryId;this._entryId="",this._requests=[],this._response="",this._entryId=n;var o=new Map,r=new t(o);r.service="quiz_quiz",r.action="getUrl",r.params={entryId:this._entryId,quizOutputType:1},this.requests.push(r)}return Object.defineProperty(e,"id",{get:function(){return"quizDownload"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var n;this._response=null===(n=e[0])||void 0===n?void 0:n.data},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return!!this._entryId},e}();n.QuizDownloadLoader=o},1503:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuizLoader=void 0;var o=t(937),r=KalturaPlayer.providers.RequestBuilder,i=function(){function e(e){var n=e.entryId;this._entryId="",this._requests=[],this._response={userEntries:[],quiz:{}},this._entryId=n;var t=new Map,i=new r(t);i.service="userEntry",i.action="list",i.params={filter:{objectType:"KalturaQuizUserEntryFilter",typeEqual:o.KalturaUserEntryType.quiz,entryIdEqual:this._entryId,userIdEqualCurrent:1,orderBy:"-createdAt"}};var a=new r(t);a.service="quiz_quiz",a.action="get",a.params={entryId:this._entryId};var s=new r(t);s.service="cuepoint_cuepoint",s.action="list",s.params={filter:{objectType:"KalturaAnswerCuePointFilter",entryIdEqual:this._entryId,cuePointTypeEqual:"quiz.QUIZ_ANSWER",quizUserEntryIdEqual:"{1:result:objects:0:id}"}},this.requests.push(i),this.requests.push(a),this.requests.push(s)}return Object.defineProperty(e,"id",{get:function(){return"quiz"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var n,t,r,i=new o.KalturaUserEntryListResponse(null===(n=e[0])||void 0===n?void 0:n.data);i.totalCount&&(this._response.userEntries=null==i?void 0:i.data);var a=new o.KalturaQuizResponse(null===(t=e[1])||void 0===t?void 0:t.data);a&&(this._response.quiz=null==a?void 0:a.data);var s=new o.KalturaQuizAnswerListResponse(null===(r=e[2])||void 0===r?void 0:r.data);s&&s.totalCount&&(this._response.quizAnswers=null==s?void 0:s.data)},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return!!this._entryId},e}();n.QuizLoader=i},8519:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuizAnswerSubmitLoader=void 0;var o=t(937),r=KalturaPlayer.providers.RequestBuilder,i=function(){function e(e){var n=e.entryId,t=e.quizUserEntryId,o=e.parentId,i=e.answerKey,a=e.id,s=e.openAnswer;this._requests=[],this._response={},this._entryId=n,this._quizUserEntryId=t,this._parentId=o,this._answerKey=i,this._id=a;var l=new Map,u=new r(l);u.service="cuepoint_cuepoint",u.action=this._id?"update":"add",u.ignoreNull=1,u.format=1,u.params={cuePoint:{objectType:"KalturaAnswerCuePoint",answerKey:this._answerKey,quizUserEntryId:this._quizUserEntryId,entryId:this._entryId}},s&&(u.params.cuePoint.openAnswer=s),this._id?u.params.id=this._id:(u.params.cuePoint.parentId=this._parentId,u.params.cuePoint.startTime=0),this.requests.push(u)}return Object.defineProperty(e,"id",{get:function(){return"quizAnswerSubmit"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var n,t=new o.KalturaQuizSubmitAnswerResponse(null===(n=e[0])||void 0===n?void 0:n.data);t&&(this._response.quizAnswer=null==t?void 0:t.data)},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return Boolean(this._entryId&&this._answerKey&&this._quizUserEntryId&&(this._parentId||this._id))},e}();n.QuizAnswerSubmitLoader=i},9943:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuizSubmitLoader=void 0;var o=t(937),r=KalturaPlayer.providers.RequestBuilder,i=function(){function e(e){var n=e.entryId,t=e.quizUserEntryId;this._requests=[],this._response={},this._entryId=n;var o=new Map,i=new r(o);i.service="userEntry",i.action="submitQuiz",i.ignoreNull=1,i.format=1,i.params={id:t},this.requests.push(i)}return Object.defineProperty(e,"id",{get:function(){return"quizSubmit"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var n,t=new o.KalturaUserEntryResponse(null===(n=e[0])||void 0===n?void 0:n.data);t&&(this._response.userEntry=null==t?void 0:t.data)},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return Boolean(this._entryId)},e}();n.QuizSubmitLoader=i},5590:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuizUserEntryIdLoader=void 0;var o=t(937),r=KalturaPlayer.providers.RequestBuilder,i=function(){function e(e){var n=e.entryId;this._requests=[],this._response={},this._entryId=n;var t=new Map,o=new r(t);o.service="userEntry",o.action="add",o.ignoreNull=1,o.format=1,o.params={userEntry:{objectType:"KalturaQuizUserEntry",entryId:this._entryId}},this.requests.push(o)}return Object.defineProperty(e,"id",{get:function(){return"quizUserEntryId"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var n,t=new o.KalturaUserEntryResponse(null===(n=e[0])||void 0===n?void 0:n.data);t&&(this._response.userEntry=null==t?void 0:t.data)},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return Boolean(this._entryId)},e}();n.QuizUserEntryIdLoader=i},937:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(5479),n),r(t(4228),n),r(t(7226),n),r(t(2358),n),r(t(2786),n),r(t(947),n),r(t(2847),n),r(t(9954),n)},947:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaQuizAnswerListResponse=void 0;var i=t(2847),a=function(e){function n(n){var t=e.call(this,n)||this;return t.data=[],t.hasError||(t.totalCount=n.totalCount,t.totalCount>0&&(t.data=[],n.objects.map((function(e){return t.data.push(new i.KalturaQuizAnswer(e))})))),t}return r(n,e),n}(KalturaPlayer.providers.ResponseTypes.BaseServiceResult);n.KalturaQuizAnswerListResponse=a},2847:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaQuizAnswer=void 0;n.KalturaQuizAnswer=function(e){this.answerKey=e.answerKey,this.correctAnswerKeys=e.correctAnswerKeys,this.objectType=e.objectType,this.isCorrect=e.isCorrect,this.parentId=e.parentId,this.quizUserEntryId=e.quizUserEntryId,this.userId=e.userId,this.id=e.id,this.explanation=e.explanation,this.feedback=e.feedback,this.openAnswer=e.openAnswer,this.partnerId=e.partnerId,this.createdAt=e.createdAt,this.updatedAt=e.updatedAt}},5479:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaQuizResponse=void 0;var i=t(4228),a=function(e){function n(n){var t=e.call(this,n)||this;return t.hasError||(t.data=new i.KalturaQuiz(n)),t}return r(n,e),n}(KalturaPlayer.providers.ResponseTypes.BaseServiceResult);n.KalturaQuizResponse=a},9954:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaQuizSubmitAnswerResponse=void 0;var i=t(2847),a=function(e){function n(n){var t=e.call(this,n)||this;return t.hasError||(t.data=new i.KalturaQuizAnswer(n)),t}return r(n,e),n}(KalturaPlayer.providers.ResponseTypes.BaseServiceResult);n.KalturaQuizSubmitAnswerResponse=a},4228:(e,n)=>{"use strict";var t,o;Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaQuiz=n.KalturaScoreType=n.KalturaNullableBoolean=void 0,(o=n.KalturaNullableBoolean||(n.KalturaNullableBoolean={}))[o.falseValue=0]="falseValue",o[o.nullValue=-1]="nullValue",o[o.trueValue=1]="trueValue",(t=n.KalturaScoreType||(n.KalturaScoreType={}))[t.average=5]="average",t[t.first=4]="first",t[t.highest=1]="highest",t[t.latest=3]="latest",t[t.lowest=2]="lowest";n.KalturaQuiz=function(e){this.version=e.version,this.uiAttributes=e.uiAttributes,this.showResultOnAnswer=e.showResultOnAnswer,this.showCorrectKeyOnAnswer=e.showCorrectKeyOnAnswer,this.allowAnswerUpdate=e.allowAnswerUpdate,this.showCorrectAfterSubmission=e.showCorrectAfterSubmission,this.allowDownload=e.allowDownload,this.showGradeAfterSubmission=e.showGradeAfterSubmission,this.attemptsAllowed=e.attemptsAllowed,this.scoreType=e.scoreType}},2358:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaUserEntryListResponse=void 0;var i=t(2786),a=function(e){function n(n){var t=e.call(this,n)||this;return t.data=[],t.hasError||(t.totalCount=n.totalCount,t.totalCount>0&&(t.data=[],n.objects.map((function(e){return t.data.push(new i.KalturaUserEntry(e))})))),t}return r(n,e),n}(KalturaPlayer.providers.ResponseTypes.BaseServiceResult);n.KalturaUserEntryListResponse=a},7226:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaUserEntryResponse=void 0;var i=t(2786),a=function(e){function n(n){var t=e.call(this,n)||this;return t.hasError||(t.data=new i.KalturaUserEntry(n)),t}return r(n,e),n}(KalturaPlayer.providers.ResponseTypes.BaseServiceResult);n.KalturaUserEntryResponse=a},2786:(e,n)=>{"use strict";var t,o;Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaUserEntry=n.KalturaUserEntryStatus=n.KalturaUserEntryType=void 0,(o=n.KalturaUserEntryType||(n.KalturaUserEntryType={})).quiz="quiz.QUIZ",o.registration="registration.REGISTRATION",o.viewHistory="viewHistory.VIEW_HISTORY",o.watchLater="watchLater.WATCH_LATER",(t=n.KalturaUserEntryStatus||(n.KalturaUserEntryStatus={})).active="1",t.deleted="2",t.quizSubmitted="quiz.3";n.KalturaUserEntry=function(e){this.calculatedScore=e.calculatedScore,this.score=e.score,this.id=e.id,this.entryId=e.entryId,this.userId=e.userId,this.partnerId=e.partnerId,this.status=e.status,this.createdAt=e.createdAt,this.updatedAt=e.updatedAt,this.type=e.type,this.version=e.version}},2152:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QuestionsVisualManager=void 0;var o=t(2052),r=t(4522),i=t(5792),a=t(2085),s=t(359),l=o.core.EventType,u=function(){function e(e,n,t,o,u,c,p,_,d){var A=this;this._getQuizQuestionMap=e,this._getUnansweredQuestions=n,this._player=t,this._eventManager=o,this._setOverlay=u,this._removeOverlay=c,this._isOverlayExist=p,this._getSeekBarNode=_,this._dispatchQuestionChanged=d,this._updateQuestionComponent=function(e){},this.quizQuestionJumping=!1,this._lastQuizCuePointId=null,this.getSubmissionDetails=function(){var e=A._getUnansweredQuestions(),n=e[0]||A._getQuizQuestionMap().values().next().value;return{onReview:function(){return A.preparePlayer(n,!0)},submitAllowed:!e.length}},this.getReviewDetails=function(){return Array.from(A._getQuizQuestionMap().values())},this.preparePlayer=function(e,n,t){void 0===n&&(n=!1),void 0===t&&(t=!0),A._lastQuizCuePointId=e.id;var o=e.startTime,r=A._player.currentTime<o-.3||A._player.currentTime>o+.3;n&&r&&(A.quizQuestionJumping=!0,A._player.currentTime=o,A._eventManager.listenOnce(A._player,l.SEEKED,(function(){A.quizQuestionJumping=!1}))),t&&A._showQuestion(e,n)},this._resetLastQuizCuePointId=function(){A._isOverlayExist()||(A._lastQuizCuePointId=null)},this._renderUiComponent=function(e,n){n&&A._isOverlayExist()?A._updateQuestionComponent(e):A._setOverlay(A._player.ui.addComponent({label:"kaltura-ivq-question-wrapper",presets:a.PresetAreas,container:a.UiComponentArea,get:function(){var n=(0,i.useState)(null),t=n[0],o=n[1];return A._updateQuestionComponent=function(e){o(e)},(0,r.h)(s.QuizQuestionWrapper,{qui:t||e,getSeekBarNode:A._getSeekBarNode})}}))},this._showQuestion=function(e,n){var t,o,r=e.next,i=e.prev,s=e.q,l=e.a,u=e.disabled;if(r){var c=A._getQuizQuestionMap().get(r.id);(e.skipAvailable||l&&c.a)&&(t=function(){A.preparePlayer(c,!0)})}if(i){var p=A._getQuizQuestionMap().get(i.id);(e.skipAvailable||l&&p.a)&&(o=function(){A.preparePlayer(A._getQuizQuestionMap().get(i.id),!0)})}var _=function(){e.startTime===(null==r?void 0:r.startTime)?A.preparePlayer(A._getQuizQuestionMap().get(r.id),!0):(A._removeOverlay(),A._player.play())},d={q:s,a:l,questionIndex:[e.index+1,A._getQuizQuestionMap().size],onNext:t,onPrev:o,onContinue:function(n){return n?e.onContinue(n).then(_).catch((function(e){})):(_(),A._dispatchQuestionChanged(),Promise.resolve())},disabled:u||Boolean(!e.allowAnswerUpdate&&l)};e.skipAvailable&&e.q.questionType!==a.KalturaQuizQuestionTypes.Reflection&&(d.onSkip=_),A._renderUiComponent(d,n)},this.reset=function(){A.quizQuestionJumping=!1,A._lastQuizCuePointId=null},this._eventManager.listen(this._player,l.SEEKING,this._resetLastQuizCuePointId)}return e.prototype.onQuestionCuepointActive=function(e){var n=e.id;if(!this.quizQuestionJumping&&!this._player.paused&&n!==this._lastQuizCuePointId){var t=this._getQuizQuestionMap().get(n);t&&this.preparePlayer(t)}},e}();n.QuestionsVisualManager=u},7406:function(e,n){"use strict";var t,o=this&&this.__extends||(t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},t(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)});Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaIvqMiddleware=void 0;var r=function(e){function n(n){var t=e.call(this)||this;return t._shouldPreventSeek=n,t}return o(n,e),n.prototype.setCurrentTime=function(e,n){this._shouldPreventSeek(e)||this.callNext(n)},n}(KalturaPlayer.core.BaseMiddleware);n.KalturaIvqMiddleware=r},9905:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaPlayerBottomBarSelector=n.KalturaPlayerSeekBarSelector=n.UiComponentArea=n.PresetAreas=void 0,n.PresetAreas=["Playback"],n.UiComponentArea="GuiArea",n.KalturaPlayerSeekBarSelector=".playkit-seek-bar",n.KalturaPlayerBottomBarSelector=".playkit-bottom-bar-area"},2085:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(8838),n),r(t(3122),n),r(t(9905),n),r(t(3826),n)},3826:(e,n)=>{"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0}),n.IvqEventTypes=void 0,(t=n.IvqEventTypes||(n.IvqEventTypes={})).QUIZ_STARTED="QuizStarted",t.QUESTION_ANSWERED="QuestionAnswered",t.QUIZ_SUBMITTED="QuizSubmitted",t.QUIZ_RETAKE="QuizRetake",t.QUIZ_QUESTION_CHANGED="QuizQuestionChanged"},6099:(e,n)=>{"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0}),n.QuestionStateTypes=void 0,(t=n.QuestionStateTypes||(n.QuestionStateTypes={}))[t.UNANSWERED=1]="UNANSWERED",t[t.ANSWERED=2]="ANSWERED",t[t.INCORRECT=3]="INCORRECT",t[t.CORRECT=4]="CORRECT"},8838:(e,n)=>{"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0}),n.KalturaQuizQuestionTypes=void 0,(t=n.KalturaQuizQuestionTypes||(n.KalturaQuizQuestionTypes={}))[t.MultiChoice=1]="MultiChoice",t[t.TrueFalse=2]="TrueFalse",t[t.Reflection=3]="Reflection",t[t.MultiAnswer=4]="MultiAnswer",t[t.OpenQuestion=8]="OpenQuestion"},3122:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0})},7610:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.makeQuestionLabels=n.isNumber=n.stringToBoolean=n.getKeyValue=void 0,n.getKeyValue=function(e,n){var t=e.find((function(e){return e.key===n}));return(null==t?void 0:t.value)||""},n.stringToBoolean=function(e){return"true"===e},n.isNumber=function(e){return"number"==typeof e},n.makeQuestionLabels=function(){return Array.from(Array(26)).map((function(e,n){return n+"A".charCodeAt(0)})).map((function(e){return String.fromCharCode(e)}))}},699:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},6924:e=>{e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},9338:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},8287:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},2052:e=>{"use strict";e.exports=KalturaPlayer},4522:e=>{"use strict";e.exports=KalturaPlayer.ui.preact}},n={};function t(o){var r=n[o];if(void 0!==r)return r.exports;var i=n[o]={id:o,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.exports}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.EventType=e.NAME=e.VERSION=e.Plugin=void 0;var n=t(5195);Object.defineProperty(e,"Plugin",{enumerable:!0,get:function(){return n.Ivq}}),e.VERSION="3.3.0",e.NAME="@playkit-js/playkit-js-ivq";var r=t(2085);Object.defineProperty(e,"EventType",{enumerable:!0,get:function(){return r.IvqEventTypes}}),KalturaPlayer.core.registerPlugin("ivq",n.Ivq)})(),((KalturaPlayer=void 0===KalturaPlayer?{}:KalturaPlayer).plugins=KalturaPlayer.plugins||{}).ivq=o})();

var KalturaPlayer="object"==typeof KalturaPlayer?KalturaPlayer:{};KalturaPlayer.plugins=KalturaPlayer.plugins||{},KalturaPlayer.plugins.kalturaCuepoints=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=31)}([function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1),t),i(n(17),t),i(n(40),t),i(n(41),t),i(n(42),t),i(n(43),t),i(n(44),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaCuePoint=void 0;var r=function(){function e(e){this.partnerData="",this.id=e.id,this.intId=e.intId,this.cuePointType=e.cuePointType,this.status=e.status,this.entryId=e.entryId,this.partnerId=e.partnerId,this.createdAt=e.createdAt,this.updatedAt=e.updatedAt,this.triggeredAt=e.triggeredAt,this.startTime=e.startTime;try{this.partnerData=JSON.parse(e.partnerData)}catch(e){}}return e.KalturaCuePointType={AD:"adCuePoint.Ad",ANNOTATION:"annotation.Annotation",CODE:"codeCuePoint.Code",EVENT:"eventCuePoint.Event",QUIZ_QUESTION:"quiz.QUIZ_QUESTION",THUMB:"thumbCuePoint.Thumb",CAPTION:"kalturaCaption"},e.KalturaCuePointStatus={READY:1,DELETED:2,HANDLED:3,PENDING:4},e}();t.KalturaCuePoint=r},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){var r,i=n(73),o=n(25),s=n(75),a=n(76),u=n(77);"undefined"!=typeof ArrayBuffer&&(r=n(78));var c="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),h="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),p=c||h;t.protocol=3;var f=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},l=i(f),d={type:"error",data:"parser error"},y=n(79);function g(e,t,n){for(var r=new Array(e.length),i=a(e.length,n),o=function(e,n,i){t(n,(function(t,n){r[e]=n,i(t,r)}))},s=0;s<e.length;s++)o(s,e[s],i)}t.encodePacket=function(e,n,r,i){"function"==typeof n&&(i=n,n=!1),"function"==typeof r&&(i=r,r=null);var o=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var i=e.data,o=new Uint8Array(i),s=new Uint8Array(1+i.byteLength);s[0]=f[e.type];for(var a=0;a<o.length;a++)s[a+1]=o[a];return r(s.buffer)}(e,n,i);if(void 0!==y&&o instanceof y)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(p)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var i=new FileReader;return i.onload=function(){t.encodePacket({type:e.type,data:i.result},n,!0,r)},i.readAsArrayBuffer(e.data)}(e,n,r);var i=new Uint8Array(1);i[0]=f[e.type];var o=new y([i.buffer,e.data]);return r(o)}(e,n,i);if(o&&o.base64)return function(e,n){var r="b"+t.packets[e.type]+e.data.data;return n(r)}(e,i);var s=f[e.type];return void 0!==e.data&&(s+=r?u.encode(String(e.data),{strict:!1}):String(e.data)),i(""+s)},t.encodeBase64Packet=function(e,n){var r,i="b"+t.packets[e.type];if(void 0!==y&&e.data instanceof y){var o=new FileReader;return o.onload=function(){var e=o.result.split(",")[1];n(i+e)},o.readAsDataURL(e.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var s=new Uint8Array(e.data),a=new Array(s.length),u=0;u<s.length;u++)a[u]=s[u];r=String.fromCharCode.apply(null,a)}return i+=btoa(r),n(i)},t.decodePacket=function(e,n,r){if(void 0===e)return d;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=function(e){try{e=u.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return d;var i=e.charAt(0);return Number(i)==i&&l[i]?e.length>1?{type:l[i],data:e.substring(1)}:{type:l[i]}:d}i=new Uint8Array(e)[0];var o=s(e,1);return y&&"blob"===n&&(o=new y([o])),{type:l[i],data:o}},t.decodeBase64Packet=function(e,t){var n=l[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var i=r.decode(e.substr(1));return"blob"===t&&y&&(i=new y([i])),{type:n,data:i}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var i=o(e);if(n&&i)return y&&!p?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");g(e,(function(e,r){t.encodePacket(e,!!i&&n,!1,(function(e){r(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return r(t.join(""))}))},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var i;if("function"==typeof n&&(r=n,n=null),""===e)return r(d,0,1);for(var o,s,a="",u=0,c=e.length;u<c;u++){var h=e.charAt(u);if(":"===h){if(""===a||a!=(o=Number(a)))return r(d,0,1);if(a!=(s=e.substr(u+1,o)).length)return r(d,0,1);if(s.length){if(i=t.decodePacket(s,n,!1),d.type===i.type&&d.data===i.data)return r(d,0,1);if(!1===r(i,u+o,c))return}u+=o,a=""}else a+=h}return""!==a?r(d,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){return n(null,e)}))}),(function(e,t){var r=t.reduce((function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2}),0),i=new Uint8Array(r),o=0;return t.forEach((function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),s=0;s<e.length;s++)r[s]=e.charCodeAt(s);n=r.buffer}i[o++]=t?0:1;var a=n.byteLength.toString();for(s=0;s<a.length;s++)i[o++]=parseInt(a[s]);i[o++]=255;for(r=new Uint8Array(n),s=0;s<r.length;s++)i[o++]=r[s]})),n(i.buffer)}))},t.encodePayloadAsBlob=function(e,n){g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);e=r.buffer,t[0]=0}var o=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),s=new Uint8Array(o.length+1);for(i=0;i<o.length;i++)s[i]=parseInt(o[i]);if(s[o.length]=255,y){var a=new y([t.buffer,s.buffer,e]);n(null,a)}}))}),(function(e,t){return n(new y(t))}))},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var i=e,o=[];i.byteLength>0;){for(var a=new Uint8Array(i),u=0===a[0],c="",h=1;255!==a[h];h++){if(c.length>310)return r(d,0,1);c+=a[h]}i=s(i,2+c.length),c=parseInt(c);var p=s(i,0,c);if(u)try{p=String.fromCharCode.apply(null,new Uint8Array(p))}catch(e){var f=new Uint8Array(p);p="";for(h=0;h<f.length;h++)p+=String.fromCharCode(f[h])}o.push(p),i=s(i,c)}var l=o.length;o.forEach((function(e,i){r(t.decodePacket(e,n,!0),i,l)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CuePointTags=t.KalturaCuePointType=t.KalturaThumbCuePointSubType=void 0,function(e){e[e.SLIDE=1]="SLIDE",e[e.CHAPTER=2]="CHAPTER"}(t.KalturaThumbCuePointSubType||(t.KalturaThumbCuePointSubType={})),function(e){e.PUBLIC_QNA="publicqna",e.USER_QNA="userqna",e.CODE_QNA="codeqna",e.QUIZ="quiz",e.SLIDE="slide",e.VIEW_CHANGE="viewchange",e.CHAPTER="chapter",e.HOTSPOT="hotspot",e.CAPTION="caption"}(t.KalturaCuePointType||(t.KalturaCuePointType={})),function(e){e.ANSWERONAIR="qna",e.HOTSPOT="hotspots"}(t.CuePointTags||(t.CuePointTags={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortArrayBy=t.generateThumb=t.makeAssetUrl=t.getDomainFromUrl=t.isEmptyObject=void 0,t.isEmptyObject=function(e){return 0===Object.keys(e).length&&e.constructor===Object},t.getDomainFromUrl=function(e){return e.replace(/^(.*\/\/[^\/?#]*).*$/,"$1")},t.makeAssetUrl=function(e,t){var n="";return void 0!==t&&(n=e.replace(/thumbAssetId\/([^\/]+)/,"/thumbAssetId/"+t)),n},t.generateThumb=function(e,t,n,r,i){return void 0===t&&(t=""),void 0===i&&(i=""),e.split("api_v3")[0]+"/p/"+t+"/sp/"+t+"00/thumbnail/entry_id/"+n+"/width/400/vid_sec/"+(r/1e3).toFixed(2)+(i?"/ks/"+i:"")},t.sortArrayBy=function(e,t,n){return e.sort((function(e,r){return n?e[t]-r[t]||e[n]-r[n]:e[t]-r[t]}))}},function(e,t,n){(function(r){function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(59)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))})),e.splice(o,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}).call(this,n(10))},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}},function(e,t){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){(function(r){function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(80)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))})),e.splice(o,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}).call(this,n(10))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],h=!1,p=-1;function f(){h&&u&&(h=!1,u.length?c=u.concat(c):p=-1,c.length&&l())}function l(){if(!h){var e=a(f);h=!0;for(var t=c.length;t;){for(u=c,c=[];++p<t;)u&&u[p].run();p=-1,t=c.length}u=null,h=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new d(e,t)),1!==c.length||h||a(l)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r=n(61)("socket.io-parser"),i=n(2),o=n(64),s=n(20),a=n(21);function u(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=u,t.Decoder=p;var c=t.ERROR+'"encode error"';function h(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var i=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===i)return c;n+=i}return r("encoded %j as %s",e,n),n}function p(){this.reconstructor=null}function f(e){this.reconPack=e,this.buffers=[]}function l(e){return{type:t.ERROR,data:"parser error: "+e}}u.prototype.encode=function(e,n){(r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type)?function(e,t){o.removeBlobs(e,(function(e){var n=o.deconstructPacket(e),r=h(n.packet),i=n.buffers;i.unshift(r),t(i)}))}(e,n):n([h(e)])},i(p.prototype),p.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n=0,i={type:Number(e.charAt(0))};if(null==t.types[i.type])return l("unknown packet type "+i.type);if(t.BINARY_EVENT===i.type||t.BINARY_ACK===i.type){for(var o=n+1;"-"!==e.charAt(++n)&&n!=e.length;);var a=e.substring(o,n);if(a!=Number(a)||"-"!==e.charAt(n))throw new Error("Illegal attachments");i.attachments=Number(a)}if("/"===e.charAt(n+1)){for(o=n+1;++n;){if(","===(c=e.charAt(n)))break;if(n===e.length)break}i.nsp=e.substring(o,n)}else i.nsp="/";var u=e.charAt(n+1);if(""!==u&&Number(u)==u){for(o=n+1;++n;){var c;if(null==(c=e.charAt(n))||Number(c)!=c){--n;break}if(n===e.length)break}i.id=Number(e.substring(o,n+1))}if(e.charAt(++n)){var h=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(n));if(!(!1!==h&&(i.type===t.ERROR||s(h))))return l("invalid payload");i.data=h}return r("decoded %s as %j",e,i),i}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new f(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!a(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},p.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},f.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},f.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var r=n(66),i=n(67),o=n(68);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),i=(e=a(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|l(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(h(t),e=a(e,t<0?0:0|l(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|l(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function l(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return D(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var h=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===u)return h*s}else-1!==h&&(o-=o-h),h=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var p=!0,f=0;f<u;f++)if(c(e,o+f)!==c(t,f)){p=!1;break}if(p)return o}return-1}function _(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function C(e,t,n,r){return K(D(t,e.length-n),e,n,r)}function b(e,t,n,r){return K(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function P(e,t,n,r){return b(e,t,n,r)}function T(e,t,n,r){return K(q(t),e,n,r)}function w(e,t,n,r){return K(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,c=e[i],h=null,p=c>239?4:c>223?3:c>191?2:1;if(i+p<=n)switch(p){case 1:c<128&&(h=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(h=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(h=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(h=u)}null===h?(h=65533,p=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return h(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return p(null,e)},u.allocUnsafeSlow=function(e){return p(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(r,i),h=e.slice(t,n),p=0;p<a;++p)if(c[p]!==h[p]){o=c[p],s=h[p];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return P(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=j(e[o]);return i}function R(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function S(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function F(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function x(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,o){return o||B(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return o||B(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||S(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||S(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||S(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||S(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||S(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||S(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||S(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||S(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||S(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||S(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||S(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||S(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||S(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||S(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||S(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||S(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||S(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||S(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):F(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):F(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):F(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):F(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=u.isBuffer(e)?e:D(new u(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function D(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(65))},function(e,t,n){var r=n(71),i=n(14);e.exports=function(e){var t=e.xdomain,n=e.xscheme,o=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(e){}if(!t)try{return new(i[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(e,t){e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},function(e,t,n){var r=n(3),i=n(2);function o(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=o,i(o.prototype),o.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},o.prototype.onPacket=function(e){this.emit("packet",e)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.Provider=void 0;var i=n(35),o=function(){function e(e,t,n,r){this.cuePointManager=null,this._types=r,this._logger=n,this._player=e,this._eventManager=t,this._logger=n}return e.prototype._addCuePointToPlayer=function(e){var t=e.map((function(e){return{startTime:e.startTime,endTime:e.endTime,id:e.id,metadata:r(e,["startTime","endTime","id"])}}));"youtube"===this._player.engineType?(this.cuePointManager||(this.cuePointManager=new i.CuePointManager(this._player,this._eventManager)),this.cuePointManager.addCuePoints(t)):this._player.cuePointManager.addCuePoints(t)},e.prototype.destroy=function(){this.cuePointManager&&this.cuePointManager.destroy()},e}();t.Provider=o},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaCodeCuePoint=void 0;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.tags="",n.code=t.code,n.description=t.description,n.endTime=t.endTime,n.duration=t.duration,n.tags=t.tags,n}return i(t,e),t}(n(1).KalturaCuePoint);t.KalturaCodeCuePoint=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThumbUrlLoader=void 0;var r=KalturaPlayer.providers.RequestBuilder,i=function(){function e(e){this._thumbAssetId="",this._requests=[],this._response="";var t=new Map,n=new r(t);this._thumbAssetId=e.thumbAssetId,n.service="thumbAsset",n.action="getUrl",n.params={id:this._thumbAssetId},this.requests.push(n)}return Object.defineProperty(e,"id",{get:function(){return"thumburlloader"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var t;this._response=null===(t=e[0])||void 0===t?void 0:t.data},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return!!this._thumbAssetId},e}();t.ThumbUrlLoader=i},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,i=e.indexOf("["),o=e.indexOf("]");-1!=i&&-1!=o&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));for(var s,a,u=n.exec(e||""),c={},h=14;h--;)c[r[h]]=u[h]||"";return-1!=i&&-1!=o&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=function(e,t){var n=t.replace(/\/{2,9}/g,"/").split("/");"/"!=t.substr(0,1)&&0!==t.length||n.splice(0,1);"/"==t.substr(t.length-1,1)&&n.splice(n.length-1,1);return n}(0,c.path),c.queryKey=(s=c.query,a={},s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(a[t]=n)})),a),c}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t){e.exports=function(e){return n&&t.isBuffer(e)||r&&(e instanceof ArrayBuffer||function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}(e))};var n="function"==typeof t&&"function"==typeof t.isBuffer,r="function"==typeof ArrayBuffer}).call(this,n(12).Buffer)},function(e,t,n){var r=n(69),i=n(28),o=n(2),s=n(11),a=n(29),u=n(30),c=n(6)("socket.io-client:manager"),h=n(27),p=n(86),f=Object.prototype.hasOwnProperty;function l(e,t){if(!(this instanceof l))return new l(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=l,l.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)f.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},l.prototype.updateSocketIds=function(){for(var e in this.nsps)f.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},l.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},o(l.prototype),l.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},l.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},l.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},l.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},l.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},l.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},l.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},l.prototype.open=l.prototype.connect=function(e,t){if(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=a(n,"open",(function(){i.onopen(),e&&e()})),s=a(n,"error",(function(t){if(c("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else i.maybeReconnectOnOpen()}));if(!1!==this._timeout){var u=this._timeout;c("connect attempt will timeout after %d",u),0===u&&o.destroy();var h=setTimeout((function(){c("connect attempt timed out after %d",u),o.destroy(),n.close(),n.emit("error","timeout"),i.emitAll("connect_timeout",u)}),u);this.subs.push({destroy:function(){clearTimeout(h)}})}return this.subs.push(o),this.subs.push(s),this},l.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(a(e,"data",u(this,"ondata"))),this.subs.push(a(e,"ping",u(this,"onping"))),this.subs.push(a(e,"pong",u(this,"onpong"))),this.subs.push(a(e,"error",u(this,"onerror"))),this.subs.push(a(e,"close",u(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",u(this,"ondecoded")))},l.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},l.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},l.prototype.ondata=function(e){this.decoder.add(e)},l.prototype.ondecoded=function(e){this.emit("packet",e)},l.prototype.onerror=function(e){c("error",e),this.emitAll("error",e)},l.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new i(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",o),n.on("connect",(function(){n.id=r.generateId(e)})),this.autoConnect&&o()}function o(){~h(r.connecting,n)||r.connecting.push(n)}return n},l.prototype.destroy=function(e){var t=h(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},l.prototype.packet=function(e){c("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,(function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()})))},l.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},l.prototype.cleanup=function(){c("cleanup");for(var e=this.subs.length,t=0;t<e;t++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},l.prototype.close=l.prototype.disconnect=function(){c("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},l.prototype.onclose=function(e){c("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},l.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout((function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},l.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){var r=n(13),i=n(72),o=n(82),s=n(83);t.polling=function(e){var t=!1,n=!1,s=!1!==e.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,u=location.port;u||(u=a?443:80),t=e.hostname!==location.hostname||u!==e.port,n=e.secure!==a}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new i(e);if(!s)throw new Error("JSONP disabled");return new o(e)},t.websocket=s},function(e,t,n){var r=n(15),i=n(7),o=n(3),s=n(8),a=n(26),u=n(9)("engine.io-client:polling");e.exports=h;var c=null!=new(n(13))({xdomain:!1}).responseType;function h(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),r.call(this,e)}s(h,r),h.prototype.name="polling",h.prototype.doOpen=function(){this.poll()},h.prototype.pause=function(e){var t=this;function n(){u("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(u("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){u("pre-pause polling complete"),--r||n()}))),this.writable||(u("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){u("pre-pause writing complete"),--r||n()})))}else n()},h.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},h.prototype.onData=function(e){var t=this;u("polling got data %s",e);o.decodePayload(e,this.socket.binaryType,(function(e,n,r){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))},h.prototype.doClose=function(){var e=this;function t(){u("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(u("transport open - closing"),t()):(u("transport not open - deferring close"),this.once("open",t))},h.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};o.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},h.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=a()),this.supportsBinary||e.sid||(e.b64=1),e=i.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){(function(t){var r=n(74),i=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);e.exports=function e(n){if(!n||"object"!=typeof n)return!1;if(r(n)){for(var i=0,a=n.length;i<a;i++)if(e(n[i]))return!0;return!1}if("function"==typeof t&&t.isBuffer&&t.isBuffer(n)||"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||o&&n instanceof Blob||s&&n instanceof File)return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return e(n.toJSON(),!0);for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&e(n[u]))return!0;return!1}}).call(this,n(12).Buffer)},function(e,t,n){"use strict";var r,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={},s=0,a=0;function u(e){var t="";do{t=i[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function c(){var e=u(+new Date);return e!==r?(s=0,r=e):e+"."+u(s++)}for(;a<64;a++)o[i[a]]=a;c.encode=u,c.decode=function(e){var t=0;for(a=0;a<e.length;a++)t=64*t+o[e.charAt(a)];return t},e.exports=c},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(11),i=n(2),o=n(85),s=n(29),a=n(30),u=n(6)("socket.io-client:socket"),c=n(7),h=n(25);e.exports=l;var p={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},f=i.prototype.emit;function l(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}i(l.prototype),l.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[s(e,"open",a(this,"onopen")),s(e,"packet",a(this,"onpacket")),s(e,"close",a(this,"onclose"))]}},l.prototype.open=l.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},l.prototype.send=function(){var e=o(arguments);return e.unshift("message"),this.emit.apply(this,e),this},l.prototype.emit=function(e){if(p.hasOwnProperty(e))return f.apply(this,arguments),this;var t=o(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:h(t))?r.BINARY_EVENT:r.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(u("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},l.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},l.prototype.onopen=function(){if(u("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?c.encode(this.query):this.query;u("sending connect packet with query %s",e),this.packet({type:r.CONNECT,query:e})}else this.packet({type:r.CONNECT})},l.prototype.onclose=function(e){u("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},l.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===r.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",e.data)}},l.prototype.onevent=function(e){var t=e.data||[];u("emitting event %j",t),null!=e.id&&(u("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?f.apply(this,t):this.receiveBuffer.push(t)},l.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var i=o(arguments);u("sending ack %j",i),t.packet({type:h(i)?r.BINARY_ACK:r.ACK,id:e,data:i})}}},l.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(u("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):u("bad ack %s",e.id)},l.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},l.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)f.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},l.prototype.ondisconnect=function(){u("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},l.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},l.prototype.close=l.prototype.disconnect=function(){return this.connected&&(u("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},l.prototype.compress=function(e){return this.flags.compress=e,this},l.prototype.binary=function(e){return this.flags.binary=e,this}},function(e,t){e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},function(e,t){var n=[].slice;e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAME=t.VERSION=t.Plugin=void 0;var r=n(32);Object.defineProperty(t,"Plugin",{enumerable:!0,get:function(){return r.Cuepoints}});t.VERSION="3.0.5";t.NAME="@playkit-js/playkit-js-kaltura-cuepoints";KalturaPlayer.core.registerPlugin("kalturaCuepoints",r.Cuepoints)},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Cuepoints=void 0;var o=n(33),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._cuePointService=new o.CuepointService(n,r.eventManager,r.logger),n.registerService("kalturaCuepoints",r._cuePointService),r}return i(t,e),t.prototype.reset=function(){this._cuePointService.reset()},t.prototype.destroy=function(){this.eventManager.destroy(),this._cuePointService.reset()},t.isValid=function(){return!0},t.defaultConfig={},t}(KalturaPlayer.core.BasePlugin);t.Cuepoints=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CuepointService=void 0;var r=n(34),i=n(49),o=n(0),s=n(4),a=function(){function e(e,t,n){var r=this;this._types=new Map,this._mediaLoaded=!1,this._logger=n,this._player=e,this._eventManager=t,t.listen(this._player,this._player.Event.CHANGE_SOURCE_ENDED,(function(){r._initProvider()}))}return Object.defineProperty(e.prototype,"CuepointType",{get:function(){return s.KalturaCuePointType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"KalturaThumbCuePointSubType",{get:function(){return s.KalturaThumbCuePointSubType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"KalturaCuePointType",{get:function(){return o.KalturaCuePoint.KalturaCuePointType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"KalturaCuePointTags",{get:function(){return s.CuePointTags},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cuePointManager",{get:function(){var e;return(null===(e=this._provider)||void 0===e?void 0:e.cuePointManager)||null},enumerable:!1,configurable:!0}),e.prototype.registerTypes=function(e){var t=this;this._mediaLoaded?this._logger.warn("Cue point registration should occur on loadMedia (or before)"):e.forEach((function(e){Object.values(s.KalturaCuePointType).includes(e)?t._types.set(e,!0):t._logger.warn('"'+e+'" is not a valid cue point type for registration')}))},e.prototype._initProvider=function(){this._mediaLoaded=!0,0!=this._types.size?this._player.isLive()?this._provider=new i.LiveProvider(this._player,this._eventManager,this._logger,this._types):this._provider=new r.VodProvider(this._player,this._eventManager,this._logger,this._types):this._logger.warn("Cue points provider was not initialized because there are no registered types")},e.prototype.reset=function(){var e;this._mediaLoaded=!1,this._types.clear(),null===(e=this._provider)||void 0===e||e.destroy()},e}();t.CuepointService=a},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.VodProvider=void 0;var a=n(16),u=n(39),c=n(4),h=n(5),p=n(45),f=n(46),l=n(47),d=n(18),y=n(48),g=function(e){function t(t,n,r,i){var s=e.call(this,t,n,r,i)||this;return s._fetchedCaptionKeys=[],s._fetchingCaptionKey=null,s._handleLanguageChange=function(){var e=(s._player.getTracks(s._player.Track.TEXT)||[]).find((function(e){return e.active})),t=s._player.sources.captions;if(e&&Array.isArray(t)&&t.length){var n=t.find((function(t){return t.language===e.language&&t.label===e.label}))||t[0];s._loadCaptions(n)}},s._loadCaptions=function(e){var t=e.language+"-"+e.label;if(!s._fetchedCaptionKeys.includes(t)&&s._fetchingCaptionKey!==t){var n=e.url.match("/captionAssetId/(.*?)(/|$)");if(n&&n[1]){s._fetchingCaptionKey=t;var r=s._player.config.session,i=(null==r?void 0:r.isAnonymous)?s._player.config.session.ks:void 0;s._player.provider.doRequest([{loader:y.CaptionLoader,params:{captionAssetId:n[1]}}],i).then((function(n){if(n){if(n.has(y.CaptionLoader.id)){var r=n.get(y.CaptionLoader.id),i=null==r?void 0:r.response.captions;if(i.length){var a=i.map((function(t){return o(o({},t),{language:e.language,label:e.label,startTime:t.startTime/1e3,endTime:t.endTime/1e3,text:t.content.reduce((function(e,t){return""+e+t.text}),"")})}));a=a.filter((function(e){return e.text})),s._addCuePointToPlayer(a),s._fetchedCaptionKeys.push(t)}}}else s._logger.warn("CaptionLoader doRequest doesn't have data")})).catch((function(e){s._logger.warn("Fetching captions "+t+" has failed")})).finally((function(){s._fetchingCaptionKey=null}))}}},s._addListeners(),s._fetchVodData(),s}return i(t,e),t.prototype._addListeners=function(){this._types.has(c.KalturaCuePointType.CAPTION)&&(this._eventManager.listenOnce(this._player,this._player.Event.TEXT_TRACK_ADDED,this._handleLanguageChange),this._eventManager.listen(this._player,this._player.Event.TEXT_TRACK_CHANGED,this._handleLanguageChange))},t.prototype._removeListeners=function(){this._types.has(c.KalturaCuePointType.CAPTION)&&(this._eventManager.unlisten(this._player,this._player.Event.TEXT_TRACK_ADDED,this._handleLanguageChange),this._eventManager.unlisten(this._player,this._player.Event.TEXT_TRACK_CHANGED,this._handleLanguageChange))},t.prototype._fetchVodData=function(){var e=this,t="";this._types.has(c.KalturaCuePointType.SLIDE)&&(t=c.KalturaThumbCuePointSubType.SLIDE+","),this._types.has(c.KalturaCuePointType.CHAPTER)&&(t+=c.KalturaThumbCuePointSubType.CHAPTER+",");var n=[];t&&n.push({loader:u.ThumbLoader,params:{entryId:this._player.sources.id,subTypesFilter:t}}),this._types.has(c.KalturaCuePointType.VIEW_CHANGE)&&n.push({loader:p.ViewChangeLoader,params:{entryId:this._player.sources.id}}),this._types.has(c.KalturaCuePointType.QUIZ)&&n.push({loader:f.QuizQuestionLoader,params:{entryId:this._player.sources.id}}),this._types.has(c.KalturaCuePointType.HOTSPOT)&&n.push({loader:l.HotspotLoader,params:{entryId:this._player.sources.id}}),n.length&&this._player.provider.doRequest(n).then((function(t){t?(t.has(u.ThumbLoader.id)&&e._handleThumbResponse(t),t.has(p.ViewChangeLoader.id)&&e._handleViewChangeResponse(t),t.has(f.QuizQuestionLoader.id)&&e._handleQuizQustionResponse(t),t.has(l.HotspotLoader.id)&&e._handleHotspotResponse(t)):e._logger.warn("Provider cue points doRequest doesn't have data")})).catch((function(t){e._logger.warn("Provider cue points doRequest was rejected")}))},t.prototype._fixCuePointsEndTime=function(e){return e.map((function(t,n){if(t.endTime===Number.MAX_SAFE_INTEGER)for(var r=n+1;e[r];){if(e[r].startTime!==t.startTime)return o(o({},t),{endTime:e[r].startTime});r++}return t}))},t.prototype._handleViewChangeResponse=function(e){var t=e.get(p.ViewChangeLoader.id),n=(null==t?void 0:t.response.viewChangeCuePoints)||[];if(this._logger.debug("_fetchVodData viewChange response successful with "+n.length+" cue points"),n.length){var r=function(e){return e.map((function(e){return{id:e.id,startTime:e.startTime/1e3,endTime:e.endTime||Number.MAX_SAFE_INTEGER,cuePointType:e.cuePointType,partnerData:e.partnerData,tags:e.tags}}))}(n).reduce((function(e,t){var n;return(null===(n=t.partnerData)||void 0===n?void 0:n.viewModeLockState)?{lockedCuePoints:s(e.lockedCuePoints,[t]),viewChangeCuePoints:e.viewChangeCuePoints}:{lockedCuePoints:e.lockedCuePoints,viewChangeCuePoints:s(e.viewChangeCuePoints,[t])}}),{lockedCuePoints:[],viewChangeCuePoints:[]}),i=r.lockedCuePoints,o=r.viewChangeCuePoints;i=h.sortArrayBy(i,"startTime"),i=this._fixCuePointsEndTime(i),o=h.sortArrayBy(o,"startTime"),o=this._fixCuePointsEndTime(o),this._addCuePointToPlayer(o),this._addCuePointToPlayer(i)}},t.prototype._handleThumbResponse=function(e){var t,n=this,r=function(e){return function(t){return h.makeAssetUrl(e,t.assetId)}},i=function(e){var t,r=n._player.config.provider;return h.generateThumb(null===(t=null==r?void 0:r.env)||void 0===t?void 0:t.serviceUrl,null==r?void 0:r.partnerId,n._player.sources.id,e.startTime,null==r?void 0:r.ks)},a=function(e,t){var r=e.map((function(e){return{assetUrl:t(e),id:e.id,cuePointType:e.cuePointType,title:e.title,description:e.description,subType:e.subType,startTime:e.startTime/1e3,endTime:Number.MAX_SAFE_INTEGER}}));r=h.sortArrayBy(r,"startTime"),r=n._fixCuePointsEndTime(r),n._addCuePointToPlayer(r)},p=e.get(u.ThumbLoader.id),f=(null==p?void 0:p.response.thumbCuePoints)||[];if(this._logger.debug("_fetchVodData thumb response successful with "+f.length+" cue points"),f.length){var l=f.reduce((function(e,t){return t.subType===c.KalturaThumbCuePointSubType.SLIDE?o(o({},e),{slideCuePoints:s(e.slideCuePoints,[t])}):t.subType===c.KalturaThumbCuePointSubType.CHAPTER?o(o({},e),{chapterCuePoints:s(e.chapterCuePoints,[t])}):e}),{slideCuePoints:[],chapterCuePoints:[]}),y=l.slideCuePoints,g=l.chapterCuePoints,v=null===(t=f.find((function(e){return e.assetId})))||void 0===t?void 0:t.assetId;v?this._player.provider.doRequest([{loader:d.ThumbUrlLoader,params:{thumbAssetId:v}}]).then((function(e){if(e){if(e.has(d.ThumbUrlLoader.id)){var t=e.get(d.ThumbUrlLoader.id),o=null==t?void 0:t.response;if(o&&y.length&&a(y,r(o)),o&&g.length){a(g,(function(e){return e.assetId?r(o)(e):i(e)}))}}}else n._logger.warn("ThumbUrlLoader doRequest doesn't have data")})).catch((function(e){n._logger.warn("ThumbUrlLoader doRequest was rejected")})):g.length&&a(g,i)}},t.prototype._handleQuizQustionResponse=function(e){var t=e.get(f.QuizQuestionLoader.id),n=(null==t?void 0:t.response.quizQuestionCuePoints)||[];if(this._logger.debug("_fetchVodData quiz question response successful with "+n.length+" cue points"),n.length){var r=function(e){return e.map((function(e){var t=e.startTime/1e3;return o(o({},e),{startTime:t,endTime:t+.5})}))}(n);r=h.sortArrayBy(r,"startTime","createdAt"),this._addCuePointToPlayer(r)}},t.prototype._handleHotspotResponse=function(e){var t=e.get(l.HotspotLoader.id),n=(null==t?void 0:t.response.hotspotCuePoints)||[];if(this._logger.debug("_fetchVodData hotspots response successful with "+n.length+" cue points"),n.length){var r=function(e){return e.map((function(e){return{id:e.id,cuePointType:e.cuePointType,text:e.text,partnerData:e.partnerData,startTime:e.startTime/1e3,endTime:e.endTime?e.endTime/1e3:Number.MAX_SAFE_INTEGER,tags:e.tags}}))}(n);r=h.sortArrayBy(r,"startTime","createdAt"),this._addCuePointToPlayer(r)}},t.prototype.destroy=function(){this._fetchedCaptionKeys=[],this._fetchingCaptionKey=null,this._removeListeners()},t}(a.Provider);t.VodProvider=g},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(36),t)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.CuePointManager=void 0;var o=n(37),s=n(38),a=function(){function e(e,t){var n=this;this._player=e,this._eventManager=t,this._engine=null,this._activeCuePoints=[],this._allCuePoints=[],this.addCuePoints=function(e){e&&0!==e.length&&n._player.ready().then((function(){var t=e.map((function(e){return r(r({},e),{type:o.core.TimedMetadata.TYPE.CUE_POINT})}));n._player.dispatchEvent(new o.core.FakeEvent(o.core.EventType.TIMED_METADATA_ADDED,{cues:t})),n._allCuePoints=i(n._allCuePoints,t),n._engine=new s.CuepointEngine(n._allCuePoints),n._activeCuePoints=[],n._getActiveCuePoints(null,!0)}))},this._setActiveCuePoints=function(e){n._activeCuePoints=e,n._player.dispatchEvent(new o.core.FakeEvent(o.core.EventType.TIMED_METADATA_CHANGE,{cues:n._activeCuePoints}))},this._getActiveCuePoints=function(e,t){var r,o,s,a;if(void 0===t&&(t=!1),n._engine){var u=n._engine.updateTime(n._player.currentTime,t);if(u.snapshot&&u.snapshot.length>0&&(u.snapshot.length!==n._activeCuePoints.length||(null===(r=u.snapshot[0])||void 0===r?void 0:r.id)!==(null===(o=n._activeCuePoints[0])||void 0===o?void 0:o.id)||(null===(s=u.snapshot[u.snapshot.length-1])||void 0===s?void 0:s.id)!==(null===(a=n._activeCuePoints[n._activeCuePoints.length-1])||void 0===a?void 0:a.id))&&n._setActiveCuePoints(u.snapshot),u.delta){var c=u.delta,h=c.show,p=c.hide;(h.length>0||p.length>0)&&(n._activeCuePoints=n._activeCuePoints.filter((function(e){return!p.find((function(t){return e.id===t.id}))})),n._setActiveCuePoints(i(n._activeCuePoints,h)))}}},this._eventManager.listen(this._player,this._player.Event.TIME_UPDATE,this._getActiveCuePoints)}return Object.defineProperty(e.prototype,"allCuePoints",{get:function(){return this._allCuePoints},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeCuePoints",{get:function(){return this._activeCuePoints},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._engine=null,this._eventManager.unlisten(this._player,this._player.Event.TIME_UPDATE,this._getActiveCuePoints)},e}();t.CuePointManager=a},function(e,t){e.exports=KalturaPlayer},function(e,t,n){"use strict";var r,i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.CuepointEngine=void 0,function(e){e.Show="show",e.Hide="hide"}(r||(r={}));var o=function(){function e(e,t){this.isFirstTime=!0,this.enabled=!0,this.lastHandledTime=null,this.lastHandledTimeIndex=null,this.nextTimeToHandle=null,this.cuepointChanges=[],this.reasonableSeekThreshold=Math.max(2e3,t&&t.reasonableSeekThreshold||0),this._cuepoints=e,this.prepareCuepoint()}return Object.defineProperty(e.prototype,"cuepoints",{get:function(){return i(this._cuepoints)},enumerable:!1,configurable:!0}),e.prototype.getSnapshot=function(e){var t=this.findClosestLastIndexByTime(e);return this.createCuepointSnapshot(t)},e.prototype.updateTime=function(e,t,n){void 0===t&&(t=!1);var r=this.isFirstTime,i=this.lastHandledTime,o=this.nextTimeToHandle;if(0===this.cuepointChanges.length)return r&&(this.isFirstTime=!1),{snapshot:[]};var s=!r&&null!==i&&null!==o&&(i>e||e-o>this.reasonableSeekThreshold),a=r||null!==this.lastHandledTime&&this.lastHandledTime>e||null!=this.nextTimeToHandle&&e>=this.nextTimeToHandle,u=this.findClosestLastIndexByTime(e),c=u<0?0:this.cuepointChanges[u].time;if(!a)return t?{snapshot:this.createCuepointSnapshot(u,n)}:{delta:this.createEmptyDelta()};if(r||t||s){var h=this.createCuepointSnapshot(u,n);return this.updateInternals(c,u),{snapshot:h}}var p=this.createCuepointDelta(u,n);return this.updateInternals(c,u),{delta:p}},e.prototype.getCurrentCuepointSnapshot=function(){return this.lastHandledTimeIndex?this.createCuepointSnapshot(this.lastHandledTimeIndex):[]},e.prototype.createCuepointSnapshot=function(e,t){if(!this.enabled||e<0||!this.cuepointChanges||0===this.cuepointChanges.length)return[];for(var n=[],i=0;i<=e;i++){var o=this.cuepointChanges[i],s=n.indexOf(o.cuePoint);o.type===r.Show?-1===s&&n.push(o.cuePoint):-1!==s&&n.splice(s,1)}return t&&(n=n.filter(t)),n},e.prototype.createCuepointDelta=function(e,t){if(!this.enabled||!this.cuepointChanges||0===this.cuepointChanges.length)return this.createEmptyDelta();var n=this.lastHandledTimeIndex;if(null===n)return this.createEmptyDelta();for(var i=[],o=[],s=n+1;s<=e;s++){var a=this.cuepointChanges[s],u=i.indexOf(a.cuePoint);a.type===r.Show?-1===u&&i.push(a.cuePoint):-1!==u?i.splice(u,1):-1===o.indexOf(a.cuePoint)&&o.push(a.cuePoint)}return t&&(i=i.filter(t),o=o.filter(t)),{show:i,hide:o}},e.prototype.updateInternals=function(e,t){var n=this.cuepointChanges;if(n&&0!==n.length){var r=t>=n.length-1,i=null===t;this.lastHandledTime=e,this.lastHandledTimeIndex=t,this.nextTimeToHandle=i?n[0].time:r?n[n.length-1].time:n[t+1].time,this.isFirstTime=!1}},e.prototype.createEmptyDelta=function(){return{show:[],hide:[]}},e.prototype.binarySearch=function(e,t){if(!e||0===e.length)return null;if(t<e[0].time)return-1;if(t>e[e.length-1].time)return e.length-1;for(var n=0,r=e.length-1;n<=r;){var i=Math.floor((r+n+1)/2);if(t<e[i].time)r=i-1;else{if(!(t>e[i].time))return i;n=i+1}}return Math.min(n,r)},e.prototype.findClosestLastIndexByTime=function(e){var t=this.cuepointChanges,n=this.binarySearch(t,e);if(null===n)return-1;for(var r=t.length;n<r-1&&t[n+1].time===e;)n++;return n},e.prototype.prepareCuepoint=function(){var e=this;(this._cuepoints||[]).forEach((function(t){null!==t.startTime&&void 0!==t.startTime&&t.startTime>=0&&e.cuepointChanges.push({time:t.startTime,type:r.Show,cuePoint:t}),null!==t.endTime&&void 0!==t.endTime&&t.endTime>=0&&e.cuepointChanges.push({time:t.endTime,type:r.Hide,cuePoint:t})})),this.cuepointChanges.sort((function(e,t){return e.time<t.time?-1:e.time===t.time?0:1}))},e}();t.CuepointEngine=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThumbLoader=void 0;var r=n(0),i=KalturaPlayer.providers.RequestBuilder,o=function(){function e(e){this._entryId="",this._requests=[],this._response={thumbCuePoints:[]},this._entryId=e.entryId;var t=new Map,n=new i(t);n.service="cuepoint_cuepoint",n.action="list",n.params={filter:{objectType:"KalturaThumbCuePointFilter",entryIdEqual:this._entryId,cuePointTypeEqual:r.KalturaCuePoint.KalturaCuePointType.THUMB,subTypeIn:e.subTypesFilter},responseProfile:{type:1,fields:"id, assetId, startTime, cuePointType, title, description, subType"}},this.requests.push(n)}return Object.defineProperty(e,"id",{get:function(){return"thumb"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var t,n=new r.KalturaCuePointListResponse(null===(t=e[0])||void 0===t?void 0:t.data,r.KalturaThumbCuePoint);n.totalCount&&(this._response.thumbCuePoints=n.cuePoints)},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return!!this._entryId},e}();t.ThumbLoader=o},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaThumbCuePoint=void 0;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.assetId=t.assetId,n.description=t.description,n.title=t.title,n.subType=t.subType,n}return i(t,e),t}(n(1).KalturaCuePoint);t.KalturaThumbCuePoint=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaCuePointListResponse=void 0;var r=function(e,t){var n=this;this.totalCount=0,this.cuePoints=[],this.totalCount=e.totalCount,this.totalCount>0&&e.objects.map((function(e){var r=new t(e);n.cuePoints.push(r)}))};t.KalturaCuePointListResponse=r},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaQuizQuestionCuePoint=t.KalturaQuestionType=void 0;var o=n(1);!function(e){e[e.fillInBlank=5]="fillInBlank",e[e.goTo=7]="goTo",e[e.hotSpot=6]="hotSpot",e[e.multipleAnswerQuestion=4]="multipleAnswerQuestion",e[e.multipleChoiceAnswer=1]="multipleChoiceAnswer",e[e.openQuestion=8]="openQuestion",e[e.reflectionPoint=3]="reflectionPoint",e[e.trueFalse=2]="trueFalse"}(t.KalturaQuestionType||(t.KalturaQuestionType={}));var s=function(e){function t(t){var n=e.call(this,t)||this;return n.excludeFromScore=t.excludeFromScore,n.objectType=t.objectType,n.optionalAnswers=t.optionalAnswers,n.hint=t.hint,n.explanation=t.explanation,n.question=t.question,n.questionType=t.questionType,n.userId=t.userId,n}return i(t,e),t}(o.KalturaCuePoint);t.KalturaQuizQuestionCuePoint=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaHotspotCuePoint=void 0;var o=function(e){function t(t){var n=e.call(this,t)||this;return n.text=t.text,n.endTime=t.endTime,n.tags=t.tags,n}return i(t,e),t}(n(1).KalturaCuePoint);t.KalturaHotspotCuePoint=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaCaption=void 0;var r=n(1),i=function(e,t){this.cuePointType=r.KalturaCuePoint.KalturaCuePointType.CAPTION,this.id=t,this.startTime=e.startTime,this.endTime=e.endTime,this.content=e.content};t.KalturaCaption=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewChangeLoader=void 0;var r=n(0),i=n(17),o=KalturaPlayer.providers.RequestBuilder,s=function(){function e(e){this._entryId="",this._requests=[],this._response={viewChangeCuePoints:[]},this._entryId=e.entryId;var t=new Map,n=new o(t);n.service="cuepoint_cuepoint",n.action="list",n.params={filter:{objectType:"KalturaCodeCuePointFilter",entryIdEqual:this._entryId,cuePointTypeEqual:r.KalturaCuePoint.KalturaCuePointType.CODE},responseProfile:{type:1,fields:"id, startTime, endTime, partnerData, cuePointType, tags"}},this.requests.push(n)}return Object.defineProperty(e,"id",{get:function(){return"viewchange"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var t,n=new r.KalturaCuePointListResponse(null===(t=e[0])||void 0===t?void 0:t.data,i.KalturaCodeCuePoint);n.totalCount&&(this._response.viewChangeCuePoints=n.cuePoints)},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return!!this._entryId},e}();t.ViewChangeLoader=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuizQuestionLoader=void 0;var r=n(0),i=KalturaPlayer.providers.RequestBuilder,o=function(){function e(e){this._entryId="",this._requests=[],this._response={quizQuestionCuePoints:[]},this._entryId=e.entryId;var t=new Map,n=new i(t);n.service="cuepoint_cuepoint",n.action="list",n.params={filter:{objectType:"KalturaQuestionCuePointFilter",entryIdEqual:this._entryId,cuePointTypeEqual:r.KalturaCuePoint.KalturaCuePointType.QUIZ_QUESTION,orderBy:"+startTime"}},this.requests.push(n)}return Object.defineProperty(e,"id",{get:function(){return"quiz-question"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var t,n=new r.KalturaCuePointListResponse(null===(t=e[0])||void 0===t?void 0:t.data,r.KalturaQuizQuestionCuePoint);n.totalCount&&(this._response.quizQuestionCuePoints=n.cuePoints)},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return!!this._entryId},e}();t.QuizQuestionLoader=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HotspotLoader=void 0;var r=n(0),i=n(4),o=KalturaPlayer.providers.RequestBuilder,s=function(){function e(e){this._entryId="",this._requests=[],this._response={hotspotCuePoints:[]},this._entryId=e.entryId;var t=new Map,n=new o(t);n.service="cuepoint_cuepoint",n.action="list",n.params={filter:{objectType:"KalturaCuePointFilter",entryIdEqual:this._entryId,cuePointTypeEqual:r.KalturaCuePoint.KalturaCuePointType.ANNOTATION,tagsLike:i.CuePointTags.HOTSPOT},responseProfile:{type:1,fields:"id, startTime, endTime, cuePointType, partnerData, text, tags"}},this.requests.push(n)}return Object.defineProperty(e,"id",{get:function(){return"hotspot"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var t,n=new r.KalturaCuePointListResponse(null===(t=e[0])||void 0===t?void 0:t.data,r.KalturaHotspotCuePoint);n.totalCount&&(this._response.hotspotCuePoints=n.cuePoints)},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return!!this._entryId},e}();t.HotspotLoader=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionLoader=void 0;var r=n(0),i=KalturaPlayer.providers.RequestBuilder,o=function(){function e(e){this._captionAssetId="",this._requests=[],this._response={captions:[]},this._captionAssetId=e.captionAssetId;var t=new Map,n=new i(t);n.service="caption_captionasset",n.action="serveAsJson",n.params={captionAssetId:this._captionAssetId},this.requests.push(n)}return Object.defineProperty(e,"id",{get:function(){return"caption"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var t,n,i=this,o=null===(n=null===(t=e[0])||void 0===t?void 0:t.data)||void 0===n?void 0:n.objects;o&&Array.isArray(o)&&(this._response.captions=o.map((function(e,t){return new r.KalturaCaption(e,i._captionAssetId+"-"+t)})))},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return!!this._captionAssetId},e}();t.CaptionLoader=o},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.LiveProvider=void 0;var s=n(16),a=n(4),u=n(50),c=n(5),h=n(18),p=function(e){function t(t,n,r,i){var s=e.call(this,t,n,r,i)||this;return s._thumbCuePoints=[],s._slideViewChangeCuePoints=[],s._id3Timestamp=0,s._currentTime=0,s._currentTimeLive=0,s._seekDifference=0,s._currentTimeLiveResolvePromise=function(){},s._baseThumbAssetUrl="",s._thumbUrlLoaderResolvePromise=function(){},s._thumbUrlIsLoaderActive=!1,s._thumbUrlAssetIdQueue=[],s._makeCurrentTimeLiveReadyPromise=function(){return new Promise((function(e){s._currentTimeLiveResolvePromise=e}))},s._makeThumbUrlLoaderResolvePromise=function(){return new Promise((function(e){s._thumbUrlLoaderResolvePromise=e}))},s._onTimedMetadataLoaded=function(e){var t=e.payload.cues.filter((function(e){return e.value&&"TEXT"===e.value.key}));if(t.length)try{var n=Math.ceil(JSON.parse(t[t.length-1].value.data).timestamp/1e3);n&&(s._id3Timestamp=n)}catch(e){s._logger.debug("Failed retrieving id3 tag metadata")}},s._onTimeUpdate=function(){var e=Math.ceil(s._player.currentTime);if(e!==s._currentTime){if(s._currentTime=e,null!==s._seekDifference&&s._currentTimeLive)s._currentTimeLive=s._currentTimeLive-s._seekDifference;else if(s._id3Timestamp){if(s._id3Timestamp===s._currentTimeLive)return void(s._id3Timestamp=null);s._currentTimeLive=s._id3Timestamp}else s._currentTimeLive++;s._id3Timestamp&&s._currentTimeLiveResolvePromise(),s._id3Timestamp=null,s._seekDifference=null}},s._handleSeeking=function(){s._seekDifference=Math.ceil(s._currentTime-s._player.currentTime)},s._handleConnection=function(){s._logger.debug("Connected to push server")},s._handleConnectionError=function(){s._logger.error("Got an error during connection to push server")},s._makeCuePointStartEndTime=function(e,t){return{startTime:s._player.currentTime-(s._currentTimeLive-e),endTime:t?s._player.currentTime-(s._currentTimeLive-t):Number.MAX_SAFE_INTEGER}},s._isCueInvalid=function(e){return isNaN(e.startTime)||e.startTime<0},s._prepareThumbCuePoints=function(e){var t=o(o(o({},e),s._makeCuePointStartEndTime(e.createdAt)),{assetUrl:c.makeAssetUrl(s._baseThumbAssetUrl,e.assetId)});s._isCueInvalid(t)||(s._thumbCuePoints.push(t),s._thumbCuePoints=s._fixCuePointEndTime(s._thumbCuePoints),s._addCuePointToPlayer([t]))},s._prepareViewChangeCuePoints=function(e){try{var t=JSON.parse(e.partnerData),n=o(o(o({},e),s._makeCuePointStartEndTime(e.createdAt)),{partnerData:t});if(s._isCueInvalid(n))return;s._slideViewChangeCuePoints.push(n),s._slideViewChangeCuePoints=s._fixCuePointEndTime(s._slideViewChangeCuePoints),s._addCuePointToPlayer([n])}catch(e){s._logger.error("Unnable parse slide-view change cue-point")}},s._preparePublicQnaCuePoints=function(e){var t=o(o(o({},e),{cueType:a.KalturaCuePointType.PUBLIC_QNA}),s._makeCuePointStartEndTime(e.createdAt,e.endTime));s._isCueInvalid(t)||s._addCuePointToPlayer([t])},s._prepareUserQnaCuePoints=function(e){var t=o(o({},e),{cueType:a.KalturaCuePointType.USER_QNA,startTime:0,endTime:0});s._addCuePointToPlayer([t])},s._prepareCodeQnaCuePoints=function(e){try{var t=JSON.parse(e.partnerData),n=o(o({},e),{partnerData:t});s._addCuePointToPlayer([n])}catch(e){s._logger.error("Unnable parse code qna cue-point")}},s._getBaseThumbAssetUrl=function(){if(!s._thumbUrlIsLoaderActive){s._thumbUrlIsLoaderActive=!0;var e=s._thumbUrlAssetIdQueue.shift();s._player.provider.doRequest([{loader:h.ThumbUrlLoader,params:{thumbAssetId:e}}]).then((function(e){if(s._thumbUrlIsLoaderActive=!1,e.has(h.ThumbUrlLoader.id)){s._logger.debug("baseThumbAssetUrl fetched");var t=e.get(h.ThumbUrlLoader.id);s._baseThumbAssetUrl=null==t?void 0:t.response,s._thumbUrlAssetIdQueue=[],s._thumbUrlLoaderResolvePromise()}})).catch((function(e){s._thumbUrlIsLoaderActive=!1,s._logger.warn("can't get baseThumbAssetUrl"),s._thumbUrlAssetIdQueue.length&&(s._logger.debug("try get next thumbAssetId from queue"),s._getBaseThumbAssetUrl())}))}},s._handleThumbNotificationData=function(e){var t,n,r=e.thumbs;!s._baseThumbAssetUrl&&(null===(t=r[0])||void 0===t?void 0:t.assetId)&&(s._thumbUrlAssetIdQueue.push(null===(n=r[0])||void 0===n?void 0:n.assetId),s._getBaseThumbAssetUrl()),Promise.all([s._currentTimeLivePromise,s._thumbUrlLoaderPromise]).then((function(){r.forEach((function(e){return s._prepareThumbCuePoints(e)}))}))},s._handleSlideViewChangeNotificationData=function(e){var t=e.slideViewChanges;s._currentTimeLivePromise.then((function(){t.forEach((function(e){return s._prepareViewChangeCuePoints(e)}))}))},s._handlePublicQnaNotificationsData=function(e){var t=e.messages;s._currentTimeLivePromise.then((function(){t.forEach((function(e){return s._preparePublicQnaCuePoints(e)}))}))},s._handleUserQnaNotificationsData=function(e){var t=e.messages;s._currentTimeLivePromise.then((function(){t.forEach((function(e){return s._prepareUserQnaCuePoints(e)}))}))},s._handleCodeQnaNotificationsData=function(e){var t=e.settings;s._currentTimeLivePromise.then((function(){t.forEach((function(e){return s._prepareCodeQnaCuePoints(e)}))}))},s._pushNotification=new u.PushNotificationPrivider(s._player,s._logger),s._currentTimeLivePromise=s._makeCurrentTimeLiveReadyPromise(),s._thumbUrlLoaderPromise=s._makeThumbUrlLoaderResolvePromise(),s._pushNotification.init(),s._constructPushNotificationListener(),s._pushNotification.registerToPushServer(s._player.sources.id,i,s._handleConnection,s._handleConnectionError),s._addBindings(),s}return i(t,e),t.prototype._addBindings=function(){this._eventManager.listen(this._player,this._player.Event.TIMED_METADATA,this._onTimedMetadataLoaded),this._eventManager.listen(this._player,this._player.Event.SEEKING,this._handleSeeking),this._eventManager.listen(this._player,this._player.Event.TIME_UPDATE,this._onTimeUpdate)},t.prototype._fixCuePointEndTime=function(e){var t=this;return c.sortArrayBy(e,"createdAt").map((function(n,r){if(n.endTime===Number.MAX_SAFE_INTEGER&&r!==e.length-1){var i=o(o({},n),{endTime:e[r+1].startTime});return t._addCuePointToPlayer([i]),i}return n}))},t.prototype._handlePushNotificationsErrorData=function(e){this._logger.warn("Got an error from push notification server - ",e)},t.prototype._constructPushNotificationListener=function(){this._pushNotification.on(u.PushNotificationEventTypes.PushNotificationsError,this._handlePushNotificationsErrorData),this._types.has(a.KalturaCuePointType.SLIDE)&&this._pushNotification.on(u.PushNotificationEventTypes.ThumbNotification,this._handleThumbNotificationData),this._types.has(a.KalturaCuePointType.VIEW_CHANGE)&&this._pushNotification.on(u.PushNotificationEventTypes.SlideViewChangeNotification,this._handleSlideViewChangeNotificationData),this._types.has(a.KalturaCuePointType.PUBLIC_QNA)&&this._pushNotification.on(u.PushNotificationEventTypes.PublicNotifications,this._handlePublicQnaNotificationsData),this._types.has(a.KalturaCuePointType.USER_QNA)&&this._pushNotification.on(u.PushNotificationEventTypes.UserNotifications,this._handleUserQnaNotificationsData),this._types.has(a.KalturaCuePointType.CODE_QNA)&&this._pushNotification.on(u.PushNotificationEventTypes.CodeNotifications,this._handleCodeQnaNotificationsData)},t.prototype._removePushNotificationListener=function(){this._pushNotification.off(u.PushNotificationEventTypes.PushNotificationsError,this._handlePushNotificationsErrorData),this._types.has(a.KalturaCuePointType.SLIDE)&&this._pushNotification.off(u.PushNotificationEventTypes.ThumbNotification,this._handleThumbNotificationData),this._types.has(a.KalturaCuePointType.VIEW_CHANGE)&&this._pushNotification.off(u.PushNotificationEventTypes.SlideViewChangeNotification,this._handleSlideViewChangeNotificationData),this._types.has(a.KalturaCuePointType.PUBLIC_QNA)&&this._pushNotification.off(u.PushNotificationEventTypes.PublicNotifications,this._handlePublicQnaNotificationsData),this._types.has(a.KalturaCuePointType.USER_QNA)&&this._pushNotification.off(u.PushNotificationEventTypes.UserNotifications,this._handleUserQnaNotificationsData),this._types.has(a.KalturaCuePointType.CODE_QNA)&&this._pushNotification.off(u.PushNotificationEventTypes.CodeNotifications,this._handleCodeQnaNotificationsData)},t.prototype.destroy=function(){this._pushNotification.reset(),this._removePushNotificationListener(),this._currentTimeLivePromise=this._makeCurrentTimeLiveReadyPromise(),this._thumbUrlLoaderPromise=this._makeThumbUrlLoaderResolvePromise()},t}(s.Provider);t.LiveProvider=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushNotificationPrivider=t.PushNotificationEventTypes=void 0;var r,i=n(51),o=n(54),s=n(4);!function(e){e.PushNotificationsError="PUSH_NOTIFICATIONS_ERROR",e.ThumbNotification="THUMB_CUE_POINT_READY_NOTIFICATION",e.SlideViewChangeNotification="SLIDE_VIEW_CHANGE_CODE_CUE_POINT",e.PublicNotifications="PUBLIC_QNA_NOTIFICATIONS",e.UserNotifications="USER_QNA_NOTIFICATIONS",e.CodeNotifications="CODE_QNA_NOTIFICATIONS"}(r=t.PushNotificationEventTypes||(t.PushNotificationEventTypes={}));var a=function(){function e(e,t){this._player=e,this._logger=t,this._pushServerInstance=null,this._registeredToMessages=!1,this._events=new i.EventsManager,this._initialized=!1,this.on=this._events.on.bind(this._events),this.off=this._events.off.bind(this._events)}return e.prototype.init=function(){this._initialized||(this._initialized=!0,this._pushServerInstance=new o.PushNotifications(this._player,this._logger))},e.prototype.reset=function(){this._registeredToMessages=!1},e.prototype.registerToPushServer=function(e,t,n,o){var a=this;if(this._registeredToMessages)throw this._logger.error("Multiple registration error"),new Error("Already register to push server");if(this._logger.info("Registering for push notifications server"),!this._pushServerInstance)return this._logger.error("Can't register to notifications as _pushServerInstance doesn't exists"),void this._events.emit({type:r.PushNotificationsError,error:"Can't register to notifications as _pushServerInstance doesn't exists"});var u=[];if(t.has(s.KalturaCuePointType.SLIDE)&&u.push(this._createThumbRegistration(e)),t.has(s.KalturaCuePointType.VIEW_CHANGE)&&u.push(this._createSlideViewChangeRegistration(e)),t.has(s.KalturaCuePointType.PUBLIC_QNA)&&u.push(this._createPublicQnaRegistration(e)),t.has(s.KalturaCuePointType.USER_QNA)){var c=i.getQnaUserId(this._player);u.push(this._createUserQnaRegistration(e,c))}t.has(s.KalturaCuePointType.CODE_QNA)&&u.push(this._createCodeQnaRegistration(e)),this._pushServerInstance.registerNotifications({prepareRegisterRequestConfigs:u,onSocketReconnect:function(){}}).then((function(){a._logger.info("Registered push notification service"),a._registeredToMessages=!0,n()}),(function(e){a._logger.error("Registration for push notification error"),o(),a._events.emit({type:r.PushNotificationsError,error:e})}))},e.prototype._createThumbRegistration=function(e){var t=this;return this._logger.info("Register thumb notification"),{eventName:r.ThumbNotification,eventParams:{entryId:e},onMessage:function(e){t._events.emit({type:r.ThumbNotification,thumbs:e})}}},e.prototype._createSlideViewChangeRegistration=function(e){var t=this;return this._logger.info("Register slide notification"),{eventName:r.SlideViewChangeNotification,eventParams:{entryId:e},onMessage:function(e){t._events.emit({type:r.SlideViewChangeNotification,slideViewChanges:e})}}},e.prototype._createPublicQnaRegistration=function(e){var t=this;return this._logger.info("Register public qna notification"),{eventName:r.PublicNotifications,eventParams:{entryId:e},onMessage:function(e){t._events.emit({type:r.PublicNotifications,messages:e})}}},e.prototype._createUserQnaRegistration=function(e,t){var n=this;return this._logger.info("Register user qna notification"),{eventName:r.UserNotifications,eventParams:{entryId:e,userId:t},onMessage:function(e){n._events.emit({type:r.UserNotifications,messages:e})}}},e.prototype._createCodeQnaRegistration=function(e){var t=this;return this._logger.info("Register code qna notification"),{eventName:r.CodeNotifications,eventParams:{entryId:e},onMessage:function(e){t._events.emit({type:r.CodeNotifications,settings:e})}}},e}();t.PushNotificationPrivider=a},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(52),t),i(n(53),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsManager=void 0;var r=function(){function e(){this._eventListeners={},this._wildcardEventListeners=[]}return e.prototype.on=function(e,t){"*"!==e?(this._eventListeners[e]||(this._eventListeners[e]=[])).push(t):this._wildcardEventListeners.push(t)},e.prototype.off=function(e,t){if("*"!==e){var n=this._eventListeners[e];n&&n.splice(n.indexOf(t)>>>0,1)}else this._wildcardEventListeners.splice(this._wildcardEventListeners.indexOf(t)>>>0,1)},e.prototype.emit=function(e){(this._eventListeners[e.type]||[]).slice().map((function(t){t(e)})),this._wildcardEventListeners.slice().map((function(t){t(e)}))},e}();t.EventsManager=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=t.getQnaUserId=t.getUserId=t.generateId=void 0;t.generateId=function(){return(new Date).getTime().toString(36)+Math.random().toString(36).slice(2)};function r(){return"undefined"==typeof Storage?i():((e=localStorage.getItem("anonymousUserId"))||(e=i(),localStorage.setItem("anonymousUserId",e)),e);var e}t.getUserId=r;function i(){return"##".concat("Guest").concat("HashSeparator").concat(function(){for(var e=(0,t.generateId)(),n="",r=0;r<e.length;r++){var i=e.charAt(r);n+=Number.isNaN(+i)?i.charCodeAt(0):i}return n}(),"##")}t.getQnaUserId=function(e){var t,n,i,o,s=e,a=s.config,u=s.plugins,c=(null==a?void 0:a.session)||{},h=(null===(n=null===(t=null==u?void 0:u.qna)||void 0===t?void 0:t.config)||void 0===n?void 0:n.userRole)||c.userRole;return h&&"anonymousRole"!==h?(null===(o=null===(i=null==u?void 0:u.qna)||void 0===i?void 0:i.config)||void 0===o?void 0:o.userId)||c.userId:r()},t.debounce=function(e,t,n){var r;return void 0===t&&(t=50),void 0===n&&(n={isImmediate:!1}),function(){for(var i=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=function(){r=void 0,n.isImmediate||e.apply(i,o)},u=n.isImmediate&&void 0===r;void 0!==r&&clearTimeout(r),r=setTimeout(a,t),u&&e.apply(this,o)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushNotifications=t.isAPIErrorResponse=t.isAPINotificationResponse=void 0;var r=n(55),i=n(56),o=n(5);function s(e){return"KalturaPushNotificationData"===e.objectType}function a(e){return"KalturaAPIException"===e.objectType}t.isAPINotificationResponse=s,t.isAPIErrorResponse=a;var u=function(){function e(e,t){this._socketPool={},this._player=e,this._logger=t,this._onPlayerReset()}return e.prototype._onPlayerReset=function(){var e=this;this._player.addEventListener(this._player.Event.PLAYER_RESET,(function(){e.reset()}))},e.prototype.reset=function(){for(var e in this._socketPool)this._socketPool[e].destroy();this._socketPool={}},e.prototype.registerNotifications=function(e){var t=this,n=e.prepareRegisterRequestConfigs.map((function(e){return t._prepareRegisterRequest(e)}));return this._player.provider.doRequest([{loader:r.PushNotificationLoader,params:n}]).then((function(n){var i;if(n&&n.has(r.PushNotificationLoader.id)){var o=(null===(i=n.get(r.PushNotificationLoader.id))||void 0===i?void 0:i.response).map((function(n,r){return t._processResult(e.prepareRegisterRequestConfigs[r],n,e.onSocketDisconnect,e.onSocketReconnect)}));return Promise.all(o).then((function(){}))}})).catch((function(e){t._logger.warn("Error: failed to multirequest of register requests - ",e)}))},e.prototype._prepareRegisterRequest=function(e){var t={service:"eventnotification_eventnotificationtemplate",action:"register",notificationTemplateSystemName:e.eventName,pushNotificationParams:{objectType:"KalturaPushNotificationParams",userParams:{}}},n=0;for(var r in e.eventParams)t.pushNotificationParams.userParams["item"+n]={objectType:"KalturaPushNotificationParams",key:r,value:{objectType:"KalturaStringValue",value:e.eventParams[r]},sQueueKeyParam:1},n++;return t},e.prototype._processResult=function(e,t,n,r){if(a(t))return this._logger.error("Error fetching registration info from service "+e.eventName),Promise.reject(new Error(t.message));if(!s(t))return Promise.reject(new Error("invalid response structure"));var u=o.getDomainFromUrl(t.url),c=this._socketPool[u];return c||(c=new i.SocketWrapper({key:u,url:t.url,onSocketDisconnect:n,onSocketReconnect:r},this._logger),this._socketPool[u]=c),c.prepareForListening(e.eventName,t.queueName,t.queueKey,e.onMessage),Promise.resolve()},e}();t.PushNotifications=u},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.PushNotificationLoader=void 0;var o=KalturaPlayer.providers.RequestBuilder,s=function(){function e(e){var t=this;this._apiRequests=e,this._requests=[],this._response={};var n=new Map;e.forEach((function(e){var s=new o(n),a=e.action,u=e.service,c=i(e,["action","service"]);s.action=a,s.service=u,s.params=r({},c),t.requests.push(s)}))}return Object.defineProperty(e,"id",{get:function(){return"push-notification"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){this._response=e.map((function(e){return e.data}))},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return this._apiRequests.length>0},e}();t.PushNotificationLoader=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketWrapper=void 0;var r=n(57),i=n(5),o=function(){function e(e,t){this._logger=t,this._listenKeys={},this._messageKeyToQueueKeyMap={},this._connected=!1,this._logger.info("Connecting to socket"),this._connectAndListenToSocket(e)}return e.prototype.destroy=function(){this._socket&&(this._socket.disconnect(),this._socket=null),this._listenKeys={},this._messageKeyToQueueKeyMap={},this._connected=!1},e.prototype._connectAndListenToSocket=function(t){var n=this;this._logger.info("connect to socket"),this._socket=r(t.url,{forceNew:!0,timeout:e.CONNECTION_TIMEOUT}),this._socket.on("validated",(function(){for(var e in n._connected=!0,n._listenKeys)n._logger.info("Emit listen to url"),n._socket.emit("listen",n._listenKeys[e].queueNameHash,n._listenKeys[e].queueKeyHash)})),this._socket.on("connected",(function(e,t){n._listenKeys[t]?(n._messageKeyToQueueKeyMap[e]=t,n._logger.info("Listening to queue")):n._logger.error("Cannot listen to queue, queueKeyHash not recognized")})),this._socket.on("message",(function(e,t){n._logger.debug("Cannot listen to queue, queueKeyHash not recognized"),n._messageKeyToQueueKeyMap[e]&&n._listenKeys[n._messageKeyToQueueKeyMap[e]]?n._listenKeys[n._messageKeyToQueueKeyMap[e]].onMessage.forEach((function(e){e(t)})):n._logger.error("couldn't find queueKey in map")})),this._socket.on("disconnect",(function(e){if(n._logger.info("push server was disconnected"),!i.isEmptyObject(n._listenKeys)){var r=t.onSocketDisconnect;r&&r(e)}})),this._socket.on("reconnect",(function(e){if(n._logger.info("push server was reconnected"),!i.isEmptyObject(n._listenKeys)){var r=t.onSocketReconnect;r&&r(e)}})),this._socket.on("reconnect_error",(function(e){n._logger.error("reconnection error")})),this._socket.on("errorMsg",(function(e){n._logger.error("error message recieved")}))},e.prototype.prepareForListening=function(e,t,n,r){this._listenKeys[n]?this._listenKeys[n].onMessage.push(r):this._listenKeys[n]={eventName:e,queueNameHash:t,queueKeyHash:n,onMessage:[r]},this._connected&&(this._logger.info("Listening to "+e),this._socket.emit("listen",t,n))},e.CONNECTION_TIMEOUT=6e5,e}();t.SocketWrapper=o},function(e,t,n){var r=n(58),i=n(11),o=n(22),s=n(6)("socket.io-client");e.exports=t=u;var a=t.managers={};function u(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i=r(e),u=i.source,c=i.id,h=i.path,p=a[c]&&h in a[c].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||p?(s("ignoring socket cache for %s",u),n=o(u,t)):(a[c]||(s("new io instance for %s",u),a[c]=o(u,t)),n=a[c]),i.query&&!t.query&&(t.query=i.query),n.socket(i.path,t)}t.protocol=i.protocol,t.connect=u,t.Manager=n(22),t.Socket=n(28)},function(e,t,n){var r=n(19),i=n(6)("socket.io-client:url");e.exports=function(e,t){var n=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host);"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(i("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),i("parse %s",e),n=r(e));n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443"));n.path=n.path||"/";var o=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port,n.href=n.protocol+"://"+o+(t&&t.port===n.port?"":":"+n.port),n}},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,i=+new Date,o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var u=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;u++;var i=t.formatters[r];if("function"==typeof i){var o=s[u];n=i.call(e,o),s.splice(u,1),u--}return n})),t.formatArgs.call(e,s);var c=r.log||t.log||console.log.bind(console);c.apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(60),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){var n=1e3,r=6e4,i=60*r,o=24*i;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var a,u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===u&&!1===isNaN(e))return t.long?s(a=e,o,"day")||s(a,i,"hour")||s(a,r,"minute")||s(a,n,"second")||a+" ms":function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=i)return Math.round(e/i)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){(function(r){function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(62)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))})),e.splice(o,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}).call(this,n(10))},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,i=+new Date,o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var u=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;u++;var i=t.formatters[r];if("function"==typeof i){var o=s[u];n=i.call(e,o),s.splice(u,1),u--}return n})),t.formatArgs.call(e,s);var c=r.log||t.log||console.log.bind(console);c.apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(63),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){var n=1e3,r=6e4,i=60*r,o=24*i;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var a,u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===u&&!1===isNaN(e))return t.long?s(a=e,o,"day")||s(a,i,"hour")||s(a,r,"minute")||s(a,n,"second")||a+" ms":function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=i)return Math.round(e/i)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){var r=n(20),i=n(21),o=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);t.deconstructPacket=function(e){var t=[],n=e.data,o=e;return o.data=function e(t,n){if(!t)return t;if(i(t)){var o={_placeholder:!0,num:n.length};return n.push(t),o}if(r(t)){for(var s=new Array(t.length),a=0;a<t.length;a++)s[a]=e(t[a],n);return s}if("object"==typeof t&&!(t instanceof Date)){s={};for(var u in t)s[u]=e(t[u],n);return s}return t}(n,t),o.attachments=t.length,{packet:o,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(t,n){if(!t)return t;if(t&&t._placeholder)return n[t.num];if(r(t))for(var i=0;i<t.length;i++)t[i]=e(t[i],n);else if("object"==typeof t)for(var o in t)t[o]=e(t[o],n);return t}(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,o=e;!function e(u,c,h){if(!u)return u;if(s&&u instanceof Blob||a&&u instanceof File){n++;var p=new FileReader;p.onload=function(){h?h[c]=this.result:o=this.result,--n||t(o)},p.readAsArrayBuffer(u)}else if(r(u))for(var f=0;f<u.length;f++)e(u[f],f,u);else if("object"==typeof u&&!i(u))for(var l in u)e(u[l],l,u)}(o),n||t(o)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),s=r[0],a=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),h=0,p=a>0?s-4:s;for(n=0;n<p;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[h++]=t>>16&255,u[h++]=t>>8&255,u[h++]=255&t;2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[h++]=255&t);1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[h++]=t>>8&255,u[h++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(h(e,s,s+16383>a?a:s+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function h(e,t,n){for(var i,o,s=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,h=-7,p=n?i-1:0,f=n?-1:1,l=e[t+p];for(p+=f,o=l&(1<<-h)-1,l>>=-h,h+=a;h>0;o=256*o+e[t+p],p+=f,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=r;h>0;s=256*s+e[t+p],p+=f,h-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(l?-1:1);s+=Math.pow(2,r),o-=c}return(l?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,h=(1<<c)-1,p=h>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:o-1,d=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=h):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=h?(a=0,s=h):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+l]=255&a,l+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+l]=255&s,l+=d,s/=256,c-=8);e[n+l-d]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=n(70),e.exports.parser=n(3)},function(e,t,n){var r=n(23),i=n(2),o=n(9)("engine.io-client:socket"),s=n(27),a=n(3),u=n(19),c=n(7);function h(e,t){if(!(this instanceof h))return new h(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=u(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=u(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=!1!==t.withCredentials,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=h,h.priorWebsocketSuccess=!1,i(h.prototype),h.protocol=a.protocol,h.Socket=h,h.Transport=n(15),h.transports=n(23),h.parser=n(3),h.prototype.createTransport=function(e){o('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=a.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},h.prototype.open=function(){var e;if(this.rememberUpgrade&&h.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},h.prototype.setTransport=function(e){o("setting transport %s",e.name);var t=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},h.prototype.probe=function(e){o('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function i(){if(r.onlyBinaryUpgrades){var i=!this.supportsBinary&&r.transport.supportsBinary;n=n||i}n||(o('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(i){if(!n)if("pong"===i.type&&"probe"===i.data){if(o('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;h.priorWebsocketSuccess="websocket"===t.name,o('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(o("changing transport and sending upgrade packet"),f(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{o('probe transport "%s" failed',e);var s=new Error("probe error");s.transport=t.name,r.emit("upgradeError",s)}})))}function s(){n||(n=!0,f(),t.close(),t=null)}function a(n){var i=new Error("probe error: "+n);i.transport=t.name,s(),o('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",i)}function u(){a("transport closed")}function c(){a("socket closed")}function p(e){t&&e.name!==t.name&&(o('"%s" works - aborting "%s"',e.name,t.name),s())}function f(){t.removeListener("open",i),t.removeListener("error",a),t.removeListener("close",u),r.removeListener("close",c),r.removeListener("upgrading",p)}h.priorWebsocketSuccess=!1,t.once("open",i),t.once("error",a),t.once("close",u),this.once("close",c),this.once("upgrading",p),t.open()},h.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",h.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},h.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else o('packet received with socket readyState "%s"',this.readyState)},h.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},h.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout((function(){"closed"!==t.readyState&&t.onClose("ping timeout")}),e||t.pingInterval+t.pingTimeout)},h.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout((function(){o("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)}),e.pingInterval)},h.prototype.ping=function(){var e=this;this.sendPacket("ping",(function(){e.emit("ping")}))},h.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},h.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},h.prototype.write=h.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},h.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:e,data:t,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},h.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():t()})):this.upgrading?r():t()}function t(){e.onClose("forced close"),o("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return this},h.prototype.onError=function(e){o("socket error %j",e),h.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},h.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){o('socket close with reason: "%s"',e);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0}},h.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~s(this.transports,e[n])&&t.push(e[n]);return t}},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t,n){var r=n(13),i=n(24),o=n(2),s=n(8),a=n(9)("engine.io-client:polling-xhr"),u=n(14);function c(){}function h(e){if(i.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function p(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(e.exports=h,e.exports.Request=p,s(h,i),h.prototype.supportsBinary=!0,h.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new p(e)},h.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),i=this;r.on("success",t),r.on("error",(function(e){i.onError("xhr post error",e)})),this.sendXhr=r},h.prototype.doPoll=function(){a("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},o(p.prototype),p.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new r(e),n=this;try{a("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var i in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&t.setRequestHeader(i,this.extraHeaders[i])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof t.status?t.status:0)}),0))},a("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){n.onError(e)}),0)}"undefined"!=typeof document&&(this.index=p.requestsCount++,p.requests[this.index]=this)},p.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},p.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},p.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},p.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete p.requests[this.index],this.xhr=null}},p.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e=("application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},p.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},p.prototype.abort=function(){this.cleanup()},p.requestsCount=0,p.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",f);else if("function"==typeof addEventListener){addEventListener("onpagehide"in u?"pagehide":"unload",f,!1)}function f(){for(var e in p.requests)p.requests.hasOwnProperty(e)&&p.requests[e].abort()}},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(e),o=new Uint8Array(n-t),s=t,a=0;s<n;s++,a++)o[a]=i[s];return o.buffer}},function(e,t){function n(){}e.exports=function(e,t,r){var i=!1;return r=r||n,o.count=e,0===e?t():o;function o(e,n){if(o.count<=0)throw new Error("after called too many times");--o.count,e?(i=!0,t(e),t=r):0!==o.count||i||t(null,n)}}},function(e,t){
/*! https://mths.be/utf8js v2.1.2 by @mathias */
var n,r,i,o=String.fromCharCode;function s(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function a(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function u(e,t){return o(e>>t&63|128)}function c(e,t){if(0==(4294967168&e))return o(e);var n="";return 0==(4294965248&e)?n=o(e>>6&31|192):0==(4294901760&e)?(a(e,t)||(e=65533),n=o(e>>12&15|224),n+=u(e,6)):0==(4292870144&e)&&(n=o(e>>18&7|240),n+=u(e,12),n+=u(e,6)),n+=o(63&e|128)}function h(){if(i>=r)throw Error("Invalid byte index");var e=255&n[i];if(i++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function p(e){var t,o;if(i>r)throw Error("Invalid byte index");if(i==r)return!1;if(t=255&n[i],i++,0==(128&t))return t;if(192==(224&t)){if((o=(31&t)<<6|h())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&t)){if((o=(15&t)<<12|h()<<6|h())>=2048)return a(o,e)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(o=(7&t)<<18|h()<<12|h()<<6|h())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=s(e),i=r.length,o=-1,a="";++o<i;)a+=c(r[o],n);return a},decode:function(e,t){var a=!1!==(t=t||{}).strict;n=s(e),r=n.length,i=0;for(var u,c=[];!1!==(u=p(a));)c.push(u);return function(e){for(var t,n=e.length,r=-1,i="";++r<n;)(t=e[r])>65535&&(i+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=o(t);return i}(c)}}},function(e,t){!function(e){"use strict";t.encode=function(t){var n,r=new Uint8Array(t),i=r.length,o="";for(n=0;n<i;n+=3)o+=e[r[n]>>2],o+=e[(3&r[n])<<4|r[n+1]>>4],o+=e[(15&r[n+1])<<2|r[n+2]>>6],o+=e[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},t.decode=function(t){var n,r,i,o,s,a=.75*t.length,u=t.length,c=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var h=new ArrayBuffer(a),p=new Uint8Array(h);for(n=0;n<u;n+=4)r=e.indexOf(t[n]),i=e.indexOf(t[n+1]),o=e.indexOf(t[n+2]),s=e.indexOf(t[n+3]),p[c++]=r<<2|i>>4,p[c++]=(15&i)<<4|o>>2,p[c++]=(3&o)<<6|63&s;return h}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},function(e,t){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),i=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),o=n&&n.prototype.append&&n.prototype.getBlob;function s(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function a(e,t){t=t||{};var r=new n;return s(e).forEach((function(e){r.append(e)})),t.type?r.getBlob(t.type):r.getBlob()}function u(e,t){return new Blob(s(e),t||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,u.prototype=Blob.prototype),e.exports=r?i?Blob:u:o?a:void 0},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,i=+new Date,o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var u=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;u++;var i=t.formatters[r];if("function"==typeof i){var o=s[u];n=i.call(e,o),s.splice(u,1),u--}return n})),t.formatArgs.call(e,s);var c=r.log||t.log||console.log.bind(console);c.apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(81),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){var n=1e3,r=6e4,i=60*r,o=24*i;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var a,u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===u&&!1===isNaN(e))return t.long?s(a=e,o,"day")||s(a,i,"hour")||s(a,r,"minute")||s(a,n,"second")||a+" ms":function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=i)return Math.round(e/i)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){var r=n(24),i=n(8),o=n(14);e.exports=h;var s,a=/\n/g,u=/\\n/g;function c(){}function h(e){r.call(this,e),this.query=this.query||{},s||(s=o.___eio=o.___eio||[]),this.index=s.length;var t=this;s.push((function(e){t.onData(e)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){t.script&&(t.script.onerror=c)}),!1)}i(h,r),h.prototype.supportsBinary=!1,h.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},h.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)},h.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,i=document.createElement("form"),o=document.createElement("textarea"),s=this.iframeId="eio_iframe_"+this.index;i.className="socketio",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",i.target=s,i.method="POST",i.setAttribute("accept-charset","utf-8"),o.name="d",i.appendChild(o),document.body.appendChild(i),this.form=i,this.area=o}function c(){h(),t()}function h(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),h(),e=e.replace(u,"\\\n"),this.area.value=e.replace(a,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&c()}:this.iframe.onload=c}},function(e,t,n){(function(t){var r,i,o=n(15),s=n(3),a=n(7),u=n(8),c=n(26),h=n(9)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{i=n(84)}catch(e){}var p=r||i;function f(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=r&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(p=i),o.call(this,e)}e.exports=f,u(f,o),f.prototype.name="websocket",f.prototype.supportsBinary=!0,f.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new p(e,t):new p(e):new p(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},f.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},f.prototype.write=function(e){var n=this;this.writable=!1;for(var r=e.length,i=0,o=r;i<o;i++)!function(e){s.encodePacket(e,n.supportsBinary,(function(i){if(!n.usingBrowserWebSocket){var o={};if(e.options&&(o.compress=e.options.compress),n.perMessageDeflate)("string"==typeof i?t.byteLength(i):i.length)<n.perMessageDeflate.threshold&&(o.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(i):n.ws.send(i,o)}catch(e){h("websocket closed before onclose event")}--r||a()}))}(e[i]);function a(){n.emit("flush"),setTimeout((function(){n.writable=!0,n.emit("drain")}),0)}},f.prototype.onClose=function(){o.prototype.onClose.call(this)},f.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},f.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=c()),this.supportsBinary||(e.b64=1),(e=a.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},f.prototype.check=function(){return!(!p||"__initialize"in p&&this.name===f.prototype.name)}}).call(this,n(12).Buffer)},function(e,t){},function(e,t){e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}}]);

/*! For license information please see playkit-kaltura-live.js.LICENSE.txt */
var KalturaPlayer;(()=>{var e={1972:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonType=t.ButtonSize=void 0;var a,l,s=n(4522),c=n(42),p=n(2052),u=n(979),_=n(4820),d=n(7538),h=p.ui.Components.Tooltip;!function(e){e.small="small",e.medium="medium",e.large="large"}(a=t.ButtonSize||(t.ButtonSize={})),function(e){e.primary="primary",e.danger="danger",e.translucent="translucent",e.borderless="borderless"}(l=t.ButtonType||(t.ButtonType={}));var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonRef=(0,s.createRef)(),t.renderButton=function(){var e,n=t.props,r=c(d.button,d[n.size],d[n.type],n.className,((e={})[d.disabled]=n.disabled,e[d.withIcon]=n.children&&n.icon,e[d.iconOnly]=!n.children&&n.icon,e)),o=i(i({ref:t.buttonRef,disabled:n.disabled,"aria-disabled":n.disabled,tabIndex:n.tabIndex,className:r},n.ariaLabel?{"aria-label":n.ariaLabel}:{}),n.testId?{"data-testid":n.testId}:{}),a=(0,s.h)("button",i({},o),(0,s.h)(s.Fragment,null,n.icon&&(0,s.h)(_.Icon,{name:n.icon,size:_.IconSize[n.size]}),n.children&&(0,s.h)("span",null,n.children)));return n.onClick?(0,s.h)(u.A11yWrapper,{onClick:n.onClick},a):a},t}return o(t,e),t.prototype.componentDidMount=function(){var e;this.props.focusOnMount&&(null===(e=this.buttonRef.current)||void 0===e||e.focus())},t.prototype.render=function(e){if(e.tooltip){var t=i(i({label:e.tooltip.label},e.tooltip.type?{type:e.tooltip.type}:{}),e.tooltip.className?{classNames:e.tooltip.className}:{});return(0,s.h)(h,i({},t),this.renderButton())}return this.renderButton()},t}(s.Component);t.Button=f,f.defaultProps={disabled:!1,focusOnMount:!1,tabIndex:0,children:null,size:a.medium,icon:null,type:l.primary}},5454:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1972),t),o(n(178),t)},178:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InputField=void 0;var a=n(4522),l=n(979),s=n(7998),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={active:!1},n._inputRef=null,n.setFocus=function(e){var t;null===(t=n._inputRef)||void 0===t||t.focus(e)},n._handleOnChange=function(e){n.props.onChange(e.target.value)},n._onClear=function(){var e;null===(e=n._inputRef)||void 0===e||e.focus(),n.props.onChange("")},n._onFocus=function(){n.setState({active:!0})},n._onBlur=function(){n.setState({active:!1})},n._goToNextSearchResult=function(){var e=n.props.searchResults,t=e.activeSearchIndex,r=e.totalSearchResults,o=e.onSearchIndexChange;0!==r&&o(t!==r?t+1:1)},n._goToPrevSearchResult=function(){var e=n.props.searchResults,t=e.activeSearchIndex,r=e.totalSearchResults;(0,e.onSearchIndexChange)(1!==t?t-1:r)},n._renderSearchResults=function(){return(0,a.h)(a.Fragment,null,(0,a.h)("div",{className:s.searchResults,"aria-live":"polite","aria-label":n.props.searchResults.searchResultsLabel},"".concat(n.props.searchResults.totalSearchResults>0?"".concat(n.props.searchResults.activeSearchIndex,"/").concat(n.props.searchResults.totalSearchResults):"0/0")),(0,a.h)("div",{className:s.prevNextWrapper},n.props.value&&(0,a.h)(l.A11yWrapper,{onClick:n._goToPrevSearchResult},(0,a.h)("button",{tabIndex:0,className:"".concat(s.prevNextButton," ").concat(0===n.props.searchResults.totalSearchResults?s.disabled:""),"aria-label":n.props.searchResults.prevMatchLabel},(0,a.h)("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{d:"M0.292893 4.70711C0.653377 5.06759 1.22061 5.09532 1.6129 4.7903L1.70711 4.70711L4 2.415L6.29289 4.70711C6.65338 5.06759 7.22061 5.09532 7.6129 4.7903L7.70711 4.70711C8.06759 4.34662 8.09532 3.77939 7.7903 3.3871L7.70711 3.29289L4.70711 0.292893C4.34662 -0.0675907 3.77939 -0.0953203 3.3871 0.209705L3.29289 0.292893L0.292893 3.29289C-0.0976311 3.68342 -0.0976311 4.31658 0.292893 4.70711Z",fill:"white","fill-opacity":"0.7"})))),n.props.value&&(0,a.h)(l.A11yWrapper,{onClick:n._goToNextSearchResult},(0,a.h)("button",{tabIndex:0,className:"".concat(s.prevNextButton," ").concat(0===n.props.searchResults.totalSearchResults?s.disabled:""),"aria-label":n.props.searchResults.nextMatchLabel},(0,a.h)("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L4 2.58579L6.29289 0.292893C6.68342 -0.0976311 7.31658 -0.0976311 7.70711 0.292893C8.09763 0.683417 8.09763 1.31658 7.70711 1.70711L4.70711 4.70711C4.31658 5.09763 3.68342 5.09763 3.29289 4.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",fill:"white","fill-opacity":"0.7"}))))))},n._renderClearSearch=function(){return(0,a.h)(l.A11yWrapper,{onClick:n._onClear},(0,a.h)("button",{className:s.clearIcon,tabIndex:0,"aria-label":n.props.clearSearchLabel},(0,a.h)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12ZM3.38951 2.3502L3.46013 2.41264L5.99548 4.9504L8.53067 2.41264L8.60129 2.3502C8.89537 2.12125 9.32081 2.1418 9.59133 2.41199C9.8844 2.70471 9.88469 3.17958 9.59197 3.47265L7.05523 6.01165L9.59197 8.55189C9.88469 8.84496 9.8844 9.31983 9.59133 9.61255C9.32081 9.88275 8.89537 9.90329 8.60129 9.67434L8.53067 9.61191L5.99548 7.0729L3.46013 9.61191L3.38951 9.67434C3.09543 9.90329 2.66999 9.88275 2.39947 9.61255C2.1064 9.31983 2.10611 8.84496 2.39883 8.55189L4.93498 6.01165L2.39883 3.47265C2.10611 3.17958 2.1064 2.70471 2.39947 2.41199C2.66999 2.1418 3.09543 2.12125 3.38951 2.3502Z",fill:"white","fill-opacity":"0.7"}))))},n.state={active:!1},n}return o(t,e),t.prototype.render=function(){var e=this,t={className:s.inputElement,value:this.props.value,onInput:this._handleOnChange,onFocus:this._onFocus,onBlur:this._onBlur,tabIndex:0,ref:function(t){e._inputRef=t}};return this.props.placeholder&&(t["aria-label"]=this.props.placeholder,t.placeholder=this.props.placeholder),(0,a.h)("div",{className:[s.inputFieldWrapper,this.props.value||this.state.active?s.active:""].join(" ")},(0,a.h)("input",i({},t)),this.props.value&&this.props.clearSearchLabel&&this._renderClearSearch(),this.props.value&&this.props.searchResults&&this._renderSearchResults())},t}(a.Component);t.InputField=c},979:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.A11yWrapper=t.isKeyboardEvent=void 0;var r=n(4522),o=n(2052).ui.utils.KeyMap,i=o.ENTER,a=o.SPACE,l=o.UP,s=o.DOWN,c=o.LEFT,p=o.RIGHT,u=function(e){e.preventDefault(),e.stopPropagation()};t.isKeyboardEvent=function(e){return e instanceof KeyboardEvent||[e.offsetX,e.offsetY].every((function(e){return 0===e}))},t.A11yWrapper=function(e){var n=e.children,o=e.onClick,_=e.onUpKeyPressed,d=e.onDownKeyPressed,h=e.onLeftKeyPressed,f=e.onRightKeyPressed,A=e.role,C=e.type,g={onKeyDown:function(e){e.keyCode===a||e.keyCode===i?(u(e),o(e,!0)):e.keyCode===l&&_?(u(e),_(e)):e.keyCode===s&&d?(u(e),d(e)):e.keyCode===c&&h?(u(e),h(e)):e.keyCode===p&&f&&(u(e),f(e))},onClick:function(e){e.stopPropagation(),o(e,(0,t.isKeyboardEvent)(e))},role:A};return"button"===n.type&&(g.type=C||"button"),(0,r.cloneElement)(n,g)},t.A11yWrapper.defaultProps={role:"button"}},172:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(979),t),o(n(8579),t)},8579:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayPortal=void 0;var n=KalturaPlayer.ui.redux.useSelector,r=KalturaPlayer.ui.createPortal;t.OverlayPortal=function(e){var t=e.children,o=n((function(e){return e.config.targetId})),i=document.getElementById(o)||document;return r(t,i.querySelector(".overlay-portal"))}},9695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Add=void 0;var r=n(4522);t.Add=function(){return(0,r.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M21.8083 4C22.4665 4 23 4.55964 23 5.25V18.75C23 19.4404 22.4665 20 21.8083 20H2.19167C1.53353 20 1 19.4404 1 18.75V5.25C1 4.55964 1.53353 4 2.19167 4H21.8083ZM15 6H3V18H15V6ZM12.999 8.967L13 9L12.998 8.94L12.999 8.967L13 9V15C13 15.5523 12.5523 16 12 16C11.4872 16 11.0645 15.614 11.0067 15.1166L11 15V11.414L6.70711 15.7071C6.34662 16.0676 5.77939 16.0953 5.3871 15.7903L5.29289 15.7071C4.93241 15.3466 4.90468 14.7794 5.2097 14.3871L5.29289 14.2929L9.584 10H6C5.48716 10 5.06449 9.61396 5.00673 9.11662L5 9C5 8.44772 5.44772 8 6 8L12.0193 8.00018C12.0427 8.00063 12.066 8.00189 12.0893 8.00397C12.1097 8.00575 12.1294 8.0081 12.149 8.01102C12.1659 8.01363 12.1834 8.0167 12.2007 8.02024C12.2227 8.02464 12.2444 8.02983 12.2658 8.03572C12.2815 8.0401 12.2969 8.04473 12.3121 8.04974C12.3318 8.05612 12.3516 8.06332 12.3711 8.0711L12.4232 8.09367C12.4439 8.10338 12.4643 8.11379 12.4843 8.12488C12.4964 8.1315 12.5086 8.13861 12.5207 8.146C12.5463 8.16172 12.5711 8.17849 12.5952 8.19631L12.6525 8.24221L12.6167 8.21279C12.6802 8.26255 12.7374 8.31982 12.7872 8.38325C12.7927 8.39016 12.7982 8.3974 12.8037 8.40469C12.8215 8.42887 12.8383 8.45372 12.8539 8.47934L12.8753 8.51594C12.8862 8.53571 12.8966 8.55611 12.9063 8.5769L12.9288 8.62866C12.9367 8.64842 12.9439 8.6682 12.9505 8.68826C12.9553 8.70315 12.9599 8.71854 12.9642 8.73401C12.9702 8.75556 12.9754 8.77725 12.9798 8.79921C12.9833 8.81662 12.9864 8.83405 12.989 8.85153L12.9972 8.92482L12.998 8.94L12.999 8.967Z",fill:"white"}))}},5254:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Close=void 0;var r=n(4522);t.Close=function(){return(0,r.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M11.6592 10.245L6.70483 5.29061C6.31701 4.9028 5.68581 4.90476 5.29528 5.29528C4.90204 5.68853 4.90267 6.31688 5.29061 6.70483L10.245 11.6592L5.29061 16.6137C4.9028 17.0015 4.90476 17.6327 5.29528 18.0232C5.68853 18.4165 6.31688 18.4158 6.70483 18.0279L11.6592 13.0735L16.6137 18.0279C17.0015 18.4157 17.6327 18.4137 18.0232 18.0232C18.4165 17.63 18.4158 17.0016 18.0279 16.6137L13.0735 11.6592L18.0279 6.70483C18.4157 6.31701 18.4137 5.68581 18.0232 5.29528C17.63 4.90204 17.0016 4.90267 16.6137 5.29061L11.6592 10.245Z",fill:"white"}))}},1577:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Download=void 0;var r=n(4522);t.Download=function(){return(0,r.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M17.5 6C17.5 5.44772 17.0523 5 16.5 5L16.3834 5.00673C15.886 5.06449 15.5 5.48716 15.5 6L15.4997 17.693L9.71029 12.2702C9.30721 11.8926 8.67439 11.9133 8.29683 12.3164C7.91928 12.7195 7.93998 13.3523 8.34306 13.7298L15.8164 20.7298C15.8212 20.7343 15.826 20.7387 15.8308 20.7431L15.8164 20.7298L15.9035 20.8027C15.9034 20.8026 15.9037 20.8028 15.9035 20.8027C15.9135 20.8101 15.9231 20.817 15.9333 20.824C15.956 20.8397 15.9793 20.8544 16.0038 20.8684C16.0148 20.8747 16.0259 20.8808 16.0366 20.8864C16.0596 20.8984 16.0832 20.9096 16.1077 20.9201C16.1223 20.9263 16.1371 20.9322 16.1515 20.9376C16.1769 20.947 16.2028 20.9555 16.2299 20.963C16.2399 20.9658 16.25 20.9684 16.2595 20.9709C16.3365 20.9899 16.4171 21 16.5 21C16.5804 21 16.6585 20.9905 16.7336 20.9725C16.7521 20.968 16.7706 20.963 16.7889 20.9576C16.8097 20.9514 16.8303 20.9444 16.8507 20.9367C16.8632 20.932 16.8756 20.9271 16.8878 20.922C16.9121 20.9118 16.936 20.9006 16.9596 20.8883C16.9735 20.8812 16.9872 20.8736 17.0007 20.8658C17.0223 20.8533 17.0434 20.84 17.0636 20.8262C17.0764 20.8174 17.0891 20.8083 17.1021 20.7985C17.1224 20.7831 17.1422 20.767 17.161 20.7504C17.1685 20.7437 17.176 20.737 17.1834 20.7301L24.6619 13.7301C25.0651 13.3527 25.086 12.7198 24.7086 12.3166L24.6172 12.2304C24.2352 11.9126 23.6674 11.9215 23.2952 12.2699L17.4997 17.694L17.5 6Z",fill:"white"}),(0,r.h)("path",{d:"M27 26C27 26.5523 26.5523 27 26 27H7C6.44772 27 6 26.5523 6 26C6 25.4477 6.44772 25 7 25H26C26.5523 25 27 25.4477 27 26Z",fill:"white"}))}},2942:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Expand=void 0;var r=n(4522);t.Expand=function(){return(0,r.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M20.997 3.924L20.998 3.945L20.999 3.98L21 4V10C21 10.5523 20.5523 11 20 11C19.4872 11 19.0645 10.614 19.0067 10.1166L19 10V6.416L14.7071 10.7071C14.3466 11.0676 13.7794 11.0953 13.3871 10.7903L13.2929 10.7071C12.9324 10.3466 12.9047 9.77939 13.2097 9.3871L13.2929 9.29289L17.586 5H14C13.4872 5 13.0645 4.61396 13.0067 4.11662L13 4C13 3.48716 13.386 3.06449 13.8834 3.00673L14 3L20.0332 3.00054C20.0503 3.00109 20.0683 3.00216 20.0862 3.0037C20.1079 3.00553 20.1285 3.00797 20.149 3.01102C20.166 3.01363 20.1834 3.0167 20.2007 3.02024C20.2227 3.02464 20.2444 3.02983 20.2658 3.03572C20.2815 3.0401 20.2969 3.04473 20.3121 3.04974C20.3318 3.05612 20.3516 3.06332 20.3711 3.0711L20.4232 3.09367C20.4439 3.10338 20.4643 3.11379 20.4843 3.12488C20.4964 3.1315 20.5086 3.13861 20.5207 3.146C20.5463 3.16172 20.5711 3.17849 20.5952 3.19631L20.6525 3.24221L20.6168 3.21279C20.6802 3.26255 20.7374 3.31982 20.7872 3.38325C20.7927 3.39016 20.7982 3.3974 20.8037 3.40469C20.8215 3.42887 20.8383 3.45373 20.8539 3.47934L20.8753 3.51594C20.8862 3.53571 20.8966 3.55611 20.9063 3.5769L20.9288 3.62866C20.9367 3.64842 20.9439 3.6682 20.9505 3.68826C20.9553 3.70315 20.9599 3.71854 20.9642 3.73401C20.9702 3.75556 20.9754 3.77725 20.9798 3.79921C20.9833 3.81662 20.9864 3.83405 20.989 3.85153L20.996 3.91075L20.996 3.919L20.997 3.921V3.924ZM3.002 20.059V20.071L3.00175 20.0593C3.00122 20.0503 3.00081 20.0413 3.00052 20.0323L3 14C3 13.4477 3.44772 13 4 13C4.51284 13 4.93551 13.386 4.99327 13.8834L5 14V17.586L9.29289 13.2929C9.65338 12.9324 10.2206 12.9047 10.6129 13.2097L10.7071 13.2929C11.0676 13.6534 11.0953 14.2206 10.7903 14.6129L10.7071 14.7071L6.416 19H10C10.5128 19 10.9355 19.386 10.9933 19.8834L11 20C11 20.5128 10.614 20.9355 10.1166 20.9933L10 21H4C3.99354 21 3.98709 20.9999 3.98066 20.9998C3.95732 20.9994 3.93401 20.9981 3.91075 20.996C3.89031 20.9943 3.87058 20.9919 3.85104 20.989C3.83405 20.9864 3.81662 20.9833 3.79927 20.9798C3.77725 20.9754 3.75556 20.9702 3.73416 20.9643C3.71854 20.9599 3.70315 20.9553 3.68786 20.9503C3.6682 20.9439 3.64842 20.9367 3.62894 20.9289L3.57678 20.9063C3.55611 20.8966 3.53571 20.8862 3.51572 20.8751C3.50361 20.8685 3.49139 20.8614 3.47929 20.854C3.45373 20.8383 3.42887 20.8215 3.40484 20.8037L3.34745 20.7578L3.38325 20.7872C3.31982 20.7374 3.26255 20.6802 3.21279 20.6168C3.20728 20.6098 3.20175 20.6026 3.19633 20.5953C3.17849 20.5711 3.16172 20.5463 3.14607 20.5207L3.12467 20.4841C3.11379 20.4643 3.10338 20.4439 3.09365 20.4231L3.07123 20.3713C3.06332 20.3516 3.05612 20.3318 3.04955 20.3117C3.04473 20.2969 3.0401 20.2815 3.03585 20.266C3.02983 20.2444 3.02464 20.2227 3.02017 20.2008C3.0167 20.1834 3.01363 20.1659 3.01102 20.1485L3.0037 20.0862L3.002 20.059Z",fill:"white"}))}},1861:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Icons=void 0;var r=n(5254),o=n(9919),i=n(1577),a=n(7024),l=n(8835),s=n(1223),c=n(2456),p=n(6563),u=n(2489),_=n(9695),d=n(756),h=n(4726),f=n(2942);t.Icons={close:r.Close,print:o.Print,download:i.Download,related:a.Related,message:l.Message,share:s.Share,more:c.More,quiz:p.QuizIcon,switch:u.Switch,add:_.Add,minimizedVideo:d.MinimizedVideo,pictureInPicture:h.PictureInPicture,expand:f.Expand}},8835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=void 0;var r=n(4522);t.Message=function(){return(0,r.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M25 5C27.2091 5 29 6.75035 29 8.90952V18.6833C29 20.8425 27.2091 22.5928 25 22.5928H14.985L10.7019 26.7188C10.546 26.8689 10.3449 26.9641 10.1302 26.9917L10 27C9.44772 27 9 26.5624 9 26.0226V22.5928H7C4.79086 22.5928 3 20.8425 3 18.6833V8.90952C3 6.75035 4.79086 5 7 5H25ZM25 6.95476H7C5.89543 6.95476 5 7.82994 5 8.90952V18.6833C5 19.7629 5.89543 20.6381 7 20.6381H11V23.687L14.1651 20.6381H25C26.1046 20.6381 27 19.7629 27 18.6833V8.90952C27 7.82994 26.1046 6.95476 25 6.95476ZM19 14.7738C19.5523 14.7738 20 15.2114 20 15.7512C20 16.291 19.5523 16.7286 19 16.7286H10C9.44772 16.7286 9 16.291 9 15.7512C9 15.2114 9.44772 14.7738 10 14.7738H19ZM23 10.8643C23.5523 10.8643 24 11.3019 24 11.8417C24 12.3815 23.5523 12.819 23 12.819H10C9.44772 12.819 9 12.3815 9 11.8417C9 11.3019 9.44772 10.8643 10 10.8643H23Z",fill:"white"}))}},756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MinimizedVideo=void 0;var r=n(4522);t.MinimizedVideo=function(){return(0,r.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.25 4.5H18.75C19.9926 4.5 21 5.50736 21 6.75V17.25C21 18.4926 19.9926 19.5 18.75 19.5H5.25C4.00736 19.5 3 18.4926 3 17.25V6.75C3 5.50736 4.00736 4.5 5.25 4.5ZM5.25 6C4.83579 6 4.5 6.33579 4.5 6.75V17.25C4.5 17.6642 4.83579 18 5.25 18H18.75C19.1642 18 19.5 17.6642 19.5 17.25V6.75C19.5 6.33579 19.1642 6 18.75 6H5.25ZM13 12C12.4477 12 12 12.4477 12 13V15.5C12 16.0523 12.4477 16.5 13 16.5H17C17.5523 16.5 18 16.0523 18 15.5V13C18 12.4477 17.5523 12 17 12H13Z",fill:"white"}))}},2456:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.More=void 0;var r=n(4522);t.More=function(){return(0,r.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M8 12C8 13.1046 7.10457 14 6 14C4.89543 14 4 13.1046 4 12C4 10.8954 4.89543 10 6 10C7.10457 10 8 10.8954 8 12ZM14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12ZM20 12C20 13.1046 19.1046 14 18 14C16.8954 14 16 13.1046 16 12C16 10.8954 16.8954 10 18 10C19.1046 10 20 10.8954 20 12Z",fill:"white"}))}},4726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PictureInPicture=void 0;var r=n(4522);t.PictureInPicture=function(){return(0,r.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.75 4.5H5.25C4.00736 4.5 3 5.50736 3 6.75V17.25C3 18.4926 4.00736 19.5 5.25 19.5H18.75C19.9926 19.5 21 18.4926 21 17.25V6.75C21 5.50736 19.9926 4.5 18.75 4.5ZM13 12C12.4477 12 12 12.4477 12 13V15.5C12 16.0523 12.4477 16.5 13 16.5H17C17.5523 16.5 18 16.0523 18 15.5V13C18 12.4477 17.5523 12 17 12H13Z",fill:"white"}))}},9919:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Print=void 0;var r=n(4522);t.Print=function(){return(0,r.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 23H26C27.1046 23 28 22.1046 28 21V11C28 9.89543 27.1046 9 26 9H23V5C23 3.89543 22.1046 3 21 3H11C9.89543 3 9 3.89543 9 5V9H6C4.89543 9 4 9.89543 4 11V21C4 22.1046 4.89543 23 6 23H9V28C9 29.1046 9.89543 30 11 30H21C22.1046 30 23 29.1046 23 28V23ZM6 11V21H9V19C8.44772 19 8 18.5523 8 18C8 17.4477 8.44772 17 9 17H23C23.5523 17 24 17.4477 24 18C24 18.5523 23.5523 19 23 19V21H26V11H6ZM21 9V5H11V9H21ZM11 19V28H21V19H11Z",fill:"white"}))}},6563:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuizIcon=void 0;var r=n(4522);t.QuizIcon=function(){return(0,r.h)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.49857 2.11499L12.7442 4.2052C12.9162 4.28987 12.9812 4.48721 12.8895 4.64597C12.8594 4.69807 12.8145 4.74163 12.7597 4.77201L8.54484 7.10634C8.20953 7.29205 7.79063 7.29205 7.45532 7.10634L3.2405 4.77202C3.07335 4.67945 3.01915 4.47933 3.11944 4.32505C3.15235 4.27441 3.19956 4.23299 3.256 4.2052L7.50203 2.11498C7.81345 1.96167 8.18715 1.96168 8.49857 2.11499ZM14 6.02878V10.7642C14 11.1075 13.8049 11.4256 13.486 11.6022L9.24043 13.9536C9.07328 14.0461 8.85649 13.9961 8.7562 13.8418C8.72329 13.7912 8.7059 13.7333 8.7059 13.6742V8.93882C8.7059 8.59551 8.90104 8.27738 9.21997 8.10075L13.4655 5.74942C13.6326 5.65685 13.8494 5.70688 13.9497 5.86116C13.9826 5.91179 14 5.96973 14 6.02878ZM6.5145 8.31192L2.50483 6.04476C2.45303 6.01547 2.39375 6 2.33333 6C2.14924 6 2 6.14064 2 6.31412V10.88C2 11.211 2.1843 11.5178 2.4855 11.6881L6.49517 13.9552C6.54697 13.9845 6.60625 14 6.66667 14C6.85076 14 7 13.8594 7 13.6859V9.12C7 8.78898 6.8157 8.48223 6.5145 8.31192Z",fill:"white"}))}},7024:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Related=void 0;var r=n(4522);t.Related=function(){return(0,r.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 7H12C13.1046 7 14 7.89543 14 9V13C14 14.1046 13.1046 15 12 15H8C6.89543 15 6 14.1046 6 13V9C6 7.89543 6.89543 7 8 7ZM8 13H12V9H8V13Z",fill:"white"}),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 18H12C13.1046 18 14 18.8954 14 20V24C14 25.1046 13.1046 26 12 26H8C6.89543 26 6 25.1046 6 24V20C6 18.8954 6.89543 18 8 18ZM8 24H12V20H8V24Z",fill:"white"}),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 7H20C18.8954 7 18 7.89543 18 9V13C18 14.1046 18.8954 15 20 15H24C25.1046 15 26 14.1046 26 13V9C26 7.89543 25.1046 7 24 7ZM24 13H20V9H24V13Z",fill:"white"}),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 18H24C25.1046 18 26 18.8954 26 20V24C26 25.1046 25.1046 26 24 26H20C18.8954 26 18 25.1046 18 24V20C18 18.8954 18.8954 18 20 18ZM20 24H24V20H20V24Z",fill:"white"}))}},1223:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Share=void 0;var r=n(4522);t.Share=function(){return(0,r.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22.6667 12.6667C24.5076 12.6667 26 11.1743 26 9.33333C26 7.49238 24.5076 6 22.6667 6C20.8257 6 19.3333 7.49238 19.3333 9.33333C19.3333 9.38882 19.3347 9.44399 19.3374 9.49881L11.9575 13.9443C11.3473 13.1665 10.3987 12.6667 9.33333 12.6667C7.49238 12.6667 6 14.1591 6 16C6 17.8409 7.49238 19.3333 9.33333 19.3333C10.3981 19.3333 11.3462 18.8341 11.9564 18.057L19.3374 22.5013C19.3347 22.5561 19.3333 22.6112 19.3333 22.6667C19.3333 24.5076 20.8257 26 22.6667 26C24.5076 26 26 24.5076 26 22.6667C26 20.8257 24.5076 19.3333 22.6667 19.3333C21.6074 19.3333 20.6636 19.8274 20.053 20.5976L12.864 16.2689L12.8651 15.7324L20.0531 11.4025C20.6637 12.1727 21.6075 12.6667 22.6667 12.6667ZM22.6667 10.6667C21.9303 10.6667 21.3333 10.0697 21.3333 9.33333C21.3333 8.59695 21.9303 8 22.6667 8C23.403 8 24 8.59695 24 9.33333C24 10.0697 23.403 10.6667 22.6667 10.6667ZM9.33333 17.3333C8.59695 17.3333 8 16.7364 8 16C8 15.2636 8.59695 14.6667 9.33333 14.6667C10.0697 14.6667 10.6667 15.2636 10.6667 16C10.6667 16.7364 10.0697 17.3333 9.33333 17.3333ZM21.3333 22.6667C21.3333 23.403 21.9303 24 22.6667 24C23.403 24 24 23.403 24 22.6667C24 21.9303 23.403 21.3333 22.6667 21.3333C21.9303 21.3333 21.3333 21.9303 21.3333 22.6667Z",fill:"white"}))}},2489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Switch=void 0;var r=n(4522);t.Switch=function(){return(0,r.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M17.6744 9.27934L21.7563 13.3632L21.8282 13.4537L21.887 13.5492L21.9333 13.6489L21.9684 13.7556L21.9824 13.8172L21.9974 13.929L22 14L21.9897 14.1405L21.9824 14.1828L21.9535 14.2949L21.9231 14.3759L21.887 14.4508L21.8281 14.5463L21.7763 14.6137L21.7207 14.6744L17.6744 18.7207C17.3019 19.0931 16.6981 19.0931 16.3256 18.7207C15.9818 18.3769 15.9554 17.8359 16.2463 17.4617L16.3256 17.3719L18.7439 14.9536L12.9537 14.9537C12.4675 14.9537 12.0663 14.5899 12.0074 14.1196L12 14C12 13.5109 12.3682 13.1078 12.8425 13.0527L12.9537 13.0463L18.7426 13.0451L16.3256 10.6281C15.9798 10.2823 15.9551 9.73687 16.2515 9.36252L16.3256 9.27934C16.6981 8.90689 17.3019 8.90689 17.6744 9.27934ZM6.32562 5.27934C6.69807 4.90689 7.30193 4.90689 7.67438 5.27934L7.74849 5.36252C8.04493 5.73687 8.02023 6.28225 7.67438 6.6281L5.2574 9.04508L11.0463 9.04628L11.1575 9.0527C11.6318 9.10779 12 9.5109 12 10L11.9926 10.1196C11.9337 10.5899 11.5325 10.9537 11.0463 10.9537L5.25605 10.9536L7.67438 13.3719L7.75372 13.4617C8.04463 13.8359 8.01818 14.3769 7.67438 14.7207C7.30193 15.0931 6.69807 15.0931 6.32562 14.7207L2.25793 10.6523L2.18664 10.5668L2.12413 10.4708L2.07695 10.3759L2.03697 10.2639L2.01028 10.1405L2 10C2 9.95226 2.00351 9.90534 2.01036 9.85937L2.01758 9.81716L2.04651 9.70514L2.08932 9.59642L2.12415 9.52899L2.18631 9.43351L2.24369 9.36325L6.32562 5.27934Z",fill:"white"}))}},4820:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=t.IconSize=void 0;var r,o=n(4522),i=n(42),a=n(1861),l=n(3278);!function(e){e.small="small",e.medium="medium",e.large="large"}(r=t.IconSize||(t.IconSize={})),t.Icon=function(e){var t=a.Icons[e.name];return t?(0,o.h)("div",{className:i(l.iconWrapper,l[e.size])},(0,o.h)(t,null)):null},t.Icon.defaultProps={size:r.medium}},573:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(197),t),o(n(6265),t),o(n(1644),t),o(n(5454),t),o(n(172),t)},2980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1644:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2980),t)},1365:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BannerContainer=void 0;var i=n(4522),a=n(6502),l=n(8482),s=n(334),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e){var t=this.props.theme,n=t.backgroundColor,r=t.blur;return(0,i.h)("div",{className:a.bannerContainerRoot,"aria-live":"polite"},(0,i.h)("div",{style:"\n                background-color:".concat(n,"; \n                backdrop-filter: blur(").concat(r,");\n             "),className:a.bannerContainer},(0,i.h)("button",{className:a.closeButton,onClick:e.onClose},(0,i.h)(l.CloseSmall,{className:a.small}),(0,i.h)(s.CloseLarge,{className:a.large})),this.props.children))},t}(i.Component);t.BannerContainer=c},334:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.CloseLarge=void 0;var o=n(4522);t.CloseLarge=function(e){return(0,o.h)("svg",r({width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,o.h)("g",{id:"Icons/32x32/Menu-Player-Close",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,o.h)("path",{d:"M17.4142136,16 L22.363961,20.9497475 C22.7544853,21.3402718 22.7544853,21.9734367 22.363961,22.363961 C21.9734367,22.7544853 21.3402718,22.7544853 20.9497475,22.363961 L16,17.4142136 L11.0502525,22.363961 C10.6597282,22.7544853 10.0265633,22.7544853 9.63603897,22.363961 C9.24551468,21.9734367 9.24551468,21.3402718 9.63603897,20.9497475 L14.5857864,16 L9.63603897,11.0502525 C9.24551468,10.6597282 9.24551468,10.0265633 9.63603897,9.63603897 C10.0265633,9.24551468 10.6597282,9.24551468 11.0502525,9.63603897 L16,14.5857864 L20.9497475,9.63603897 C21.3402718,9.24551468 21.9734367,9.24551468 22.363961,9.63603897 C22.7544853,10.0265633 22.7544853,10.6597282 22.363961,11.0502525 L17.4142136,16 Z",id:"Path",fill:"#FFFFFF"})))}},8482:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.CloseSmall=void 0;var o=n(4522);t.CloseSmall=function(e){return(0,o.h)("svg",r({xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10"},e),(0,o.h)("path",{fill:"#FFF","fill-rule":"evenodd",d:"M5.956 5l3.348-3.348A.674.674 0 0 0 9.3.7a.672.672 0 0 0-.952-.004L5 4.044 1.652.696A.674.674 0 0 0 .7.7a.672.672 0 0 0-.004.952L4.044 5 .696 8.348A.674.674 0 0 0 .7 9.3c.265.266.69.266.952.004L5 5.956l3.348 3.348c.262.262.689.26.952-.004a.672.672 0 0 0 .004-.952L5.956 5z",opacity:".9"}))}},5827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BannerContainer=void 0;var r=n(1365);Object.defineProperty(t,"BannerContainer",{enumerable:!0,get:function(){return r.BannerContainer}})},9673:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BannerManager=t.VisibilityMode=void 0;var r,o=n(7720),i=n(4522),a=n(4570),l=n(5827),s=n(7863),c=n(8853);!function(e){e.VISIBLE="VISIBLE",e.HIDDEN="HIDDEN"}(r=t.VisibilityMode||(t.VisibilityMode={}));var p={theme:{backgroundColor:"rgba(0, 0, 0, .7)",blur:"10px"}},u=function(){function e(e){this.options=e,this._floatingItem=null,this._timerSubscription=void 0,this._options=e,this._bannerConfig=(0,c.getContribConfig)(this._options.kalturaPlayer,"ui.banner",p)}return e.prototype.add=function(e){return this._floatingItem&&this.remove(),this._floatingItem=this._options.floatingManager.add({label:"Banner",mode:o.FloatingUIModes.Immediate,position:o.FloatingPositions.InteractiveArea,renderContent:this._createRenderBanner(e,{onClose:this._handleCloseEvent.bind(this),theme:this._bannerConfig.theme})}),e.autoClose&&this._startDurationTimer(e.duration),this._getState()},e.prototype.remove=function(){this._floatingItem&&(this._timerSubscription&&clearTimeout(this._timerSubscription),this._options.floatingManager.remove(this._floatingItem),this._floatingItem=null)},e.prototype.reset=function(){this.remove()},e.prototype._createRenderBanner=function(e,t){var n=e.content,r=e.renderContent,o=t.onClose,s=t.theme;return function(e){return(0,i.h)(l.BannerContainer,{onClose:o,theme:s},r?r(n,e):(0,i.h)(a.Banner,{content:n}))}},e.prototype._handleCloseEvent=function(){this.remove()},e.prototype._startDurationTimer=function(e){void 0===e&&(e=6e4),this._timerSubscription=setTimeout(this.remove.bind(this),Math.max(5e3,e))},e.prototype._getState=function(){var e=(0,s.getPlayerSize)(this._options.kalturaPlayer);return{visibilityMode:!e||e.width<480?r.HIDDEN:r.VISIBLE}},e}();t.BannerManager=u},6797:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Banner=void 0;var i=n(4522),a=n(9480),l=n(5316),s=n(6339),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e){var t=e.content,n=t.text,r=t.title,o=void 0===r?"Audience asks:":r,l=t.icon,s=void 0===l?this._defaultIcon():l;return(0,i.h)("div",{className:a.defaultBannerRoot+" "+a.bannerWrapper},(0,i.h)("div",{className:a.iconContainer},(0,i.h)("div",{className:a.iconWrapper},s)),(0,i.h)("div",{className:a.bannerBody},(0,i.h)("div",{className:a.title},o),(0,i.h)("div",{className:a.text},n)))},t.prototype._defaultIcon=function(){return(0,i.h)("div",{className:a.iconImage},(0,i.h)(l.SomeoneAsksLarge,{className:a.large}),(0,i.h)(s.SomeoneAsksSmall,{className:a.small}))},t}(i.Component);t.Banner=c},4570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Banner=void 0;var r=n(6797);Object.defineProperty(t,"Banner",{enumerable:!0,get:function(){return r.Banner}})},5316:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SomeoneAsksLarge=void 0;var o=n(4522);t.SomeoneAsksLarge=function(e){return(0,o.h)("svg",r({width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,o.h)("g",{id:"Icons/32/Someone-asks",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,o.h)("g",{id:"Group",transform:"translate(4.000000, 5.000000)",fill:"#B2D238"},(0,o.h)("ellipse",{id:"Oval",cx:"12",cy:"5.5",rx:"6",ry:"5.5"}),(0,o.h)("path",{d:"M12,13 C7.995,13 0,15.01 0,19 L0,20.5 C0,21.325 0.675,22 1.5,22 L22.5,22 C23.325,22 24,21.325 24,20.5 L24,19 C24,15.01 16.005,13 12,13 Z",id:"Path"}))))}},6339:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SomeoneAsksSmall=void 0;var o=n(4522);t.SomeoneAsksSmall=function(e){return(0,o.h)("svg",r({width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),(0,o.h)("g",{id:"Icons/20/Someone-asks",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,o.h)("g",{id:"Group",transform:"translate(2.000000, 2.000000)",fill:"#B2D238"},(0,o.h)("circle",{id:"Oval",cx:"8",cy:"4",r:"4"}),(0,o.h)("path",{d:"M8,9 C5.33,9 0,10.5633333 0,13.6666667 L0,14.8333333 C0,15.475 0.45,16 1,16 L15,16 C15.55,16 16,15.475 16,14.8333333 L16,13.6666667 C16,10.5633333 10.67,9 8,9 Z",id:"Path"}))))}},6908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContribServices=t.getPlayerContribRegistry=void 0;var r=n(8717),o=n(3199),i=n(5753),a=n(8529),l=n(9673);function s(e){return r.PlayerContribRegistry.get(e)}t.getPlayerContribRegistry=s;var c=function(){function e(e,t){var n=this;this._playerContribRegistry=e,this._options=t,this._registered=!1,this._addListeners=function(){var e=n._options.kalturaPlayer;e.addEventListener(e.Event.PLAYER_RESET,n.reset),e.addEventListener(e.Event.PLAYER_DESTROY,n._removeListeners)},this._removeListeners=function(){var e=n._options.kalturaPlayer;e.removeEventListener(e.Event.PLAYER_RESET,n.reset),e.removeEventListener(e.Event.PLAYER_DESTROY,n._removeListeners)},this.register=function(){return n._registered?[]:(n._registered=!0,n._presetManager.registerComponents())},this.reset=function(){n._toastManager.reset(),n._floatingManager.reset(),n._bannerManager.reset()},this.destroy=function(){n._registered=!1};var r=this._options.kalturaPlayer,s=new o.PresetManager({kalturaPlayer:r}),c=new a.FloatingManager({kalturaPlayer:r,presetManager:s}),p=new i.ToastManager({floatingManager:c}),u=new l.BannerManager({kalturaPlayer:r,floatingManager:c});this._toastManager=p,this._floatingManager=c,this._presetManager=s,this._bannerManager=u,this._addListeners()}return e.get=function(t){var n=s(t.kalturaPlayer);return n.register("ContribServices",(function(){return new e(n,t)}))},Object.defineProperty(e.prototype,"presetManager",{get:function(){return this._presetManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"floatingManager",{get:function(){return this._floatingManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toastManager",{get:function(){return this._toastManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bannerManager",{get:function(){return this._bannerManager},enumerable:!1,configurable:!0}),e}();t.ContribServices=c},8853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContribConfig=void 0;var r=n(5816);t.getContribConfig=function(e,t,n,o){return r.KalturaPlayerUtils.getPlayerConfig(e,"contrib.".concat(t),n,o)}},5092:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4522);t.default=function(e,t,n){return(0,r.h)("a",{href:e,key:n,target:"_blank",rel:"noopener noreferrer"},t)}},8842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsManager=void 0;var n=function(){function e(){this._eventListeners={},this._wildcardEventListeners=[]}return e.prototype.on=function(e,t){"*"!==e?(this._eventListeners[e]||(this._eventListeners[e]=[])).push(t):this._wildcardEventListeners.push(t)},e.prototype.off=function(e,t){if("*"!==e){var n=this._eventListeners[e];n&&n.splice(n.indexOf(t)>>>0,1)}else this._wildcardEventListeners.splice(this._wildcardEventListeners.indexOf(t)>>>0,1)},e.prototype.emit=function(e){(this._eventListeners[e.type]||[]).slice().map((function(t){t(e)})),this._wildcardEventListeners.slice().map((function(t){t(e)}))},e}();t.EventsManager=n},7720:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingPositions=t.FloatingUIModes=void 0,(r=t.FloatingUIModes||(t.FloatingUIModes={})).MediaLoaded="MediaLoaded",r.OnDemand="OnDemand",r.Immediate="Immediate",r.FirstPlay="FirstPlay",(n=t.FloatingPositions||(t.FloatingPositions={})).VideoArea="VideoArea",n.PresetArea="PresetArea",n.InteractiveArea="InteractiveArea"},5921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingItem=void 0;var r=n(4522),o=n(7720),i=n(9017),a=function(){function e(e){var t=this;this._destroyed=!1,this._isShown=!1,this._componentRef=null,this.remove=function(){t._isShown=!1,t._componentRef&&t._componentRef.update()},this.add=function(){t._isShown=!0,t._componentRef&&t._componentRef.update()},this._handleMediaLoaded=function(){var e=t._options.kalturaPlayer;e.removeEventListener(e.Event.MEDIA_LOADED,t._handleMediaLoaded),t.add()},this._handleFirstPlay=function(){var e=t._options.kalturaPlayer;e.removeEventListener(e.Event.FIRST_PLAY,t._handleFirstPlay),t.add()},this._options=e,this._addPlayerBindings()}return Object.defineProperty(e.prototype,"data",{get:function(){return this._options.data},enumerable:!1,configurable:!0}),e.prototype.update=function(){this._componentRef&&this._componentRef.update()},e.prototype.destroy=function(){this._destroyed=!0,this.remove()},e.prototype.renderFloatingChild=function(e){var t=this,n=this._options.data.label;return(0,r.h)(i.ManagedComponent,{label:n,renderChildren:function(){return t._options.data.renderContent(e)},isShown:function(){return t._isShown},ref:function(e){return t._componentRef=e}})},e.prototype._addPlayerBindings=function(){var e=this._options,t=e.kalturaPlayer,n=e.data;n.mode===o.FloatingUIModes.MediaLoaded&&t.addEventListener(t.Event.MEDIA_LOADED,this._handleMediaLoaded),n.mode===o.FloatingUIModes.FirstPlay&&t.addEventListener(t.Event.FIRST_PLAY,this._handleFirstPlay),n.mode===o.FloatingUIModes.Immediate&&this.add()},e}();t.FloatingItem=a},8529:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingManager=void 0;var i=n(5921),a=n(7720),l=n(3199),s=n(4522),c=n(7863),p=n(9017),u=n(7417),_=n(8853),d={presetAreasMapping:{Playback:{VideoArea:"VideoArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea"},Live:{VideoArea:"VideoArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea"}}},h=["VideoArea","PresetArea","InteractiveArea"],f=function(){function e(e){var t,n,r=this;this._options=e,this._items=((t={})[a.FloatingPositions.VideoArea]=[],t[a.FloatingPositions.InteractiveArea]=[],t[a.FloatingPositions.PresetArea]=[],t),this._componentRef=((n={})[a.FloatingPositions.InteractiveArea]=null,n[a.FloatingPositions.VideoArea]=null,n[a.FloatingPositions.PresetArea]=null,n),this._cache={canvas:{playerSize:{width:0,height:0},videoSize:{width:0,height:0}}},this._renderItems=function(e){var t=r._getRendererProps({});return r._items[e].map((function(e){return e.renderFloatingChild(t)}))},this._renderChild=function(e){return(0,s.h)(p.ManagedComponent,{label:"floating-manager",renderChildren:function(){return r._renderItems(e)},isShown:function(){return!0},ref:function(t){return r._componentRef[e]=t}})},this._floatingConfig=(0,_.getContribConfig)(this._options.kalturaPlayer,"ui.floating",d,{explicitMerge:["presetAreasMapping"]});var o=u.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._floatingConfig.presetAreasMapping,acceptableTypes:h});Object.keys(o).forEach((function(e){r._options.presetManager.add({label:"floating-manager",presetAreas:o[e],renderChild:function(){return r._renderChild(a.FloatingPositions[e])}})})),this._addPlayerBindings(),this._updateCachedCanvas()}return e.prototype.add=function(e){var t=this._options.presetManager,n=r(r({presetManager:t},this._options),{data:e}),o=new i.FloatingItem(n);return this._items[e.position].push(o),o},e.prototype.remove=function(e){var t=this._items[e.data.position],n=t.indexOf(e);n>-1?(t[n].destroy(),t.splice(n,1)):console.warn("couldn't remove ".concat(e," since it wasn't found"))},e.prototype.reset=function(){o(o(o([],this._items.VideoArea,!0),this._items.InteractiveArea,!0),this._items.PresetArea,!0).forEach((function(e){try{e.destroy()}catch(e){console.warn(e)}})),this._items.VideoArea=[],this._items.PresetArea=[],this._items.InteractiveArea=[]},e.prototype._getRendererProps=function(e){var t=this._options.kalturaPlayer;return{currentTime:void 0!==e.currentTime?e.currentTime:1e3*t.currentTime,canvas:this._cache.canvas}},e.prototype._updateCachedCanvas=function(){this._cache.canvas={playerSize:(0,c.getPlayerSize)(this._options.kalturaPlayer),videoSize:(0,c.getVideoSize)(this._options.kalturaPlayer)}},e.prototype._updateComponents=function(){this._componentRef.InteractiveArea&&this._componentRef.InteractiveArea.update(),this._componentRef.PresetArea&&this._componentRef.PresetArea.update(),this._componentRef.VideoArea&&this._componentRef.VideoArea.update()},e.prototype._addPlayerBindings=function(){var e=this,t=this._options.kalturaPlayer;t.addEventListener(t.Event.TIME_UPDATE,(function(){e._updateComponents()})),t.addEventListener(t.Event.MEDIA_LOADED,(function(){e._updateCachedCanvas(),e._updateComponents()})),t.addEventListener(t.Event.LOADED_DATA,(function(){e._updateCachedCanvas(),e._updateComponents()})),this._options.presetManager.on(l.PresetManagerEventTypes.VideoResizeEvent,(function(){e._updateCachedCanvas(),e._updateComponents()})),this._options.presetManager.on(l.PresetManagerEventTypes.PresetResizeEvent,(function(){e._updateCachedCanvas(),e._updateComponents()}))},e}();t.FloatingManager=f},197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkifyString=t.VisibilityMode=t.BannerManager=t.FloatingUIModes=t.FloatingPositions=t.FloatingItem=t.ToastSeverity=t.ContribServices=void 0;var r=n(6908);Object.defineProperty(t,"ContribServices",{enumerable:!0,get:function(){return r.ContribServices}});var o=n(5753);Object.defineProperty(t,"ToastSeverity",{enumerable:!0,get:function(){return o.ToastSeverity}});var i=n(5921);Object.defineProperty(t,"FloatingItem",{enumerable:!0,get:function(){return i.FloatingItem}});var a=n(7720);Object.defineProperty(t,"FloatingPositions",{enumerable:!0,get:function(){return a.FloatingPositions}}),Object.defineProperty(t,"FloatingUIModes",{enumerable:!0,get:function(){return a.FloatingUIModes}});var l=n(9673);Object.defineProperty(t,"BannerManager",{enumerable:!0,get:function(){return l.BannerManager}}),Object.defineProperty(t,"VisibilityMode",{enumerable:!0,get:function(){return l.VisibilityMode}});var s=n(8849);Object.defineProperty(t,"LinkifyString",{enumerable:!0,get:function(){return s.LinkifyString}})},5161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InjectedComponent=void 0;var r=n(413);Object.defineProperty(t,"InjectedComponent",{enumerable:!0,get:function(){return r.InjectedComponent}})},413:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InjectedComponent=void 0;var i=n(4522),a=n(4367),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._root=null,t}return o(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.componentDidMount=function(){var e=this.props,t=e.onCreate;if(e.label,t){var n=this._root;n&&t({parent:n})}},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.onDestroy,n=(e.label,this._root);n&&t&&t({parent:n})},t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.fillContainer?a.fillContainer:"";return(0,i.h)("div",{"data-contrib-injected":n,className:r,ref:function(t){return e._root=t}})},t}(i.Component);t.InjectedComponent=l},5816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaPlayerUtils=void 0;var r=n(9442),o=function(){function e(){}return e.getPlayerConfig=function(e,t,n,o){var i=r.ObjectUtils.get(e.config,t,{});return r.ObjectUtils.mergeDefaults(i,n,o)},e}();t.KalturaPlayerUtils=o},8849:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LinkifyString=void 0;var i=n(4522),a=n(3708),l=n(5092),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._linkify=new a,t}return o(t,e),t.prototype._parseString=function(e){var t=this;if(0===(e||"").trim().length)return"";var n=this._linkify.match(e);if(!n)return e;var r=[],o=0;return n.forEach((function(n,i){n.index>o&&r.push(e.substring(o,n.index));var a=n.url,l=n.text,s=t.props.componentRenderer(a,l,i);r.push(s),o=n.lastIndex})),e.length>o&&r.push(e.substring(o)),1===r.length?r[0]:r},t.prototype.render=function(){return(0,i.h)("span",null,this._parseString(this.props.text))},t.defaultProps={componentRenderer:l.default},t}(i.Component);t.LinkifyString=s},9017:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3692),t)},3692:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ManagedComponent=void 0;var a=n(4522),l=n(4022),s=KalturaPlayer.ui.redux.connect,c=function(e){return{playerSize:e.shell.playerSize}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.update=function(){this.setState((function(e){return{toggler:!e.toggler}}))},t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=t.updateOnPlayerSizeChanged,r=t.playerSize;return n&&e.playerSize!==r||e.playerSize===r},t.prototype.componentDidMount=function(){this.setState({toggler:!1})},t.prototype.render=function(){var e=this.props,t=e.fillContainer,n=e.isShown,r=e.playerSize;return n()?(0,a.h)("div",{"data-contrib-item":this.props.label,className:"".concat(t?l.fillContainer:"")},this.props.renderChildren(r)):null},t.defaultProps={fillContainer:!1},i([s(c,null,null,{forwardRef:!0})],t)}(a.Component);t.ManagedComponent=p},9442:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUtils=void 0;var r=function(){function e(){}return e.copyDeep=function(t){var n;return Array.isArray(t)?(n=t.length>0?t.slice(0):[]).forEach((function(t,r){("object"==typeof t&&t!=={}||Array.isArray(t)&&t.length>0)&&(n[r]=e.copyDeep(t))})):"object"==typeof t?(n=Object.assign({},t),Object.keys(n).forEach((function(t){("object"==typeof n[t]&&n[t]!=={}||Array.isArray(n[t])&&n[t].length>0)&&(n[t]=e.copyDeep(n[t]))}))):n=t,n},e.isObject=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},e.mergeDeep=function(t,n,r){var o,i;if(!n.length)return t;var a=(r?r.explicitMerge:null)||[],l=n.shift();if(e.isObject(t)&&e.isObject(l))for(var s in l)e.isObject(l[s])?(t[s]||Object.assign(t,((o={})[s]={},o)),-1!==a.indexOf(s)?t[s]=e.explicitFlatMerge(t[s],l[s]):e.mergeDeep(t[s],[l[s]],r)):Object.assign(t,((i={})[s]=l[s],i));return e.mergeDeep(t,n,r)},e.mergeDefaults=function(t,n,r){return e.mergeDeep({},[n,t],r)},e.explicitFlatMerge=function(e,t){var r=n({},e);return Object.keys(t).forEach((function(e){null===t[e]||0===Object.keys(t[e]).length?delete r[e]:r[e]=t[e]})),r},e.get=function(e,t,n){for(var r=function(e){var t=[];return e.split(".").forEach((function(e){e.split(/\[([^}]+)\]/g).forEach((function(e){e.length>0&&t.push(e)}))})),t}(t),o=e,i=0;i<r.length;i++){if(!o[r[i]])return n;o=o[r[i]]}return o},e}();t.ObjectUtils=r},8717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerContribRegistry=void 0;var n=function(){function e(){this._cache={}}return e.get=function(t){return t.__contrib__=t.__contrib__||{},t.__contrib__.services=t.__contrib__.services||new e,t.__contrib__.services},e.prototype.get=function(e){var t=this._cache[e];if(!t)throw new Error("cannot find resource with token ".concat(e));return t},e.prototype.register=function(e,t){var n=this._cache[e];return n||(n=this._cache[e]={instance:t()}),n.instance},e}();t.PlayerContribRegistry=n},7863:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVideoSize=t.getPlayerSize=void 0,t.getPlayerSize=function(e){return e?e.dimensions:{width:0,height:0}},t.getVideoSize=function(e){if(!e)return{width:0,height:0};var t=e.getActiveTracks().video;return t&&void 0!==t.width&&void 0!==t.height?{width:t.width,height:t.height}:e.getVideoElement()?{width:e.getVideoElement().videoWidth,height:e.getVideoElement().videoHeight}:{width:0,height:0}}},6109:(e,t)=>{"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RelativeToTypes=t.ReservedPresetAreas=t.ReservedPresetNames=void 0,(o=t.ReservedPresetNames||(t.ReservedPresetNames={})).Playback="Playback",o.Live="Live",(r=t.ReservedPresetAreas||(t.ReservedPresetAreas={})).PresetFloating="PresetFloating",r.BottomBarLeftControls="BottomBarLeftControls",r.BottomBarRightControls="BottomBarRightControls",r.TopBarLeftControls="TopBarLeftControls",r.TopBarRightControls="TopBarRightControls",r.SidePanelTop="SidePanelTop",r.SidePanelLeft="SidePanelLeft",r.SidePanelRight="SidePanelRight",r.SidePanelBottom="SidePanelBottom",r.PresetArea="PresetArea",r.InteractiveArea="InteractiveArea",r.PlayerArea="PlayerArea",r.VideoArea="VideoArea",(n=t.RelativeToTypes||(t.RelativeToTypes={})).Before="Before",n.After="After",n.Replace="Replace"},6513:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetItem=void 0;var r=n(4522),o=n(6109),i=n(5161),a=function(){function e(e){var t=this;this._render=function(){if(t._options.data.isolateComponent){var e=t._options.data,n=e.label,o=e.fillContainer;return(0,r.h)(i.InjectedComponent,{label:n,fillContainer:o||!1,onCreate:t._onCreate,onDestroy:t._onDestroy})}return t._options.data.renderChild()},this._onDestroy=function(e){e.parent&&(0,r.render)(null,e.parent)},this._onCreate=function(e){try{if(!e.parent)return;var n=t._options.data.renderChild();if(!n)return;(0,r.render)(n,e.parent)}catch(e){}},this._options=e}return Object.defineProperty(e.prototype,"playerConfig",{get:function(){var e=[];for(var t in this._options.data.presetAreas){var n=this._options.data.presetAreas[t],r=this._options.data.relativeTo;if(n){var i={label:this._options.data.label,presets:[t],container:n,get:this._render};if(r)switch(r.type){case o.RelativeToTypes.After:i.afterComponent=r.name;break;case o.RelativeToTypes.Before:i.beforeComponent=r.name;break;case o.RelativeToTypes.Replace:i.replaceComponent=r.name}e.push(i)}}return e},enumerable:!1,configurable:!0}),e}();t.PresetItem=a},3199:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PresetManager=t.PresetManagerEventTypes=void 0;var o,i=n(4522),a=n(6513),l=n(8842),s=n(6227),c=n(7417),p=n(8853);!function(e){e.PresetResizeEvent="PresetResizeEvent",e.VideoResizeEvent="VideoResizeEvent"}(o=t.PresetManagerEventTypes||(t.PresetManagerEventTypes={}));var u=["PlayerArea"],_={presetAreasMapping:{Playback:{PlayerArea:"PlayerArea"},Live:{PlayerArea:"PlayerArea"}}},d=function(){function e(e){var t=this;this._events=new l.EventsManager,this._isLocked=!1,this._items=[],this._pendingItems=[],this._registerToPlayer=function(e){e.addEventListener(KalturaPlayer.ui.EventType.UI_PRESET_RESIZE,t._notifyUIPresetResize),e.addEventListener(KalturaPlayer.ui.EventType.VIDEO_RESIZE,t._notifyVideoResize)},this._notifyVideoResize=function(){t._events.emit({type:o.VideoResizeEvent})},this._notifyUIPresetResize=function(){t._events.emit({type:o.PresetResizeEvent})},this._unregisterToPlayer=function(e){e.removeEventListener(KalturaPlayer.ui.EventType.UI_PRESET_RESIZE,t._notifyUIPresetResize),e.removeEventListener(KalturaPlayer.ui.EventType.VIDEO_RESIZE,t._notifyVideoResize)},this.on=this._events.on.bind(this._events),this.off=this._events.off.bind(this._events),this._options=e,this._presetConfig=(0,p.getContribConfig)(this._options.kalturaPlayer,"ui.preset",_,{explicitMerge:["presetAreasMapping"]});var n=c.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._presetConfig.presetAreasMapping,acceptableTypes:u});this.add({label:"preset-manager",presetAreas:n.PlayerArea,renderChild:function(){return(0,i.h)(s.UIPlayerAdapter,{onMount:t._registerToPlayer,onUnmount:t._unregisterToPlayer})}})}return e.prototype.add=function(e){if(this._isLocked)return console.warn("cannot add new preset items once player completed its' setup phase"),null;var t=new a.PresetItem({kalturaPlayer:this._options.kalturaPlayer,data:e});this._pendingItems.push(t)},e.prototype.lockManager=function(){this._isLocked=!0},e.prototype.registerComponents=function(){var e=[];return this._pendingItems.forEach((function(t){e=r(r([],e,!0),t.playerConfig,!0)})),this._items=r(r([],this._items,!0),this._pendingItems,!0),this._pendingItems=[],e.filter(Boolean)},e}();t.PresetManager=d},7417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetsUtils=void 0;var n=function(){function e(){}return e.groupPresetAreasByType=function(e){var t=e.presetAreasMapping,n=e.acceptableTypes,r={};return n.forEach((function(e){return r[e]={}})),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(o){-1===n.indexOf(o)||(r[o][e]=t[e][o])}))})),r},e}();t.PresetsUtils=n},5753:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ToastManager=t.ToastSeverity=void 0;var i,a=n(4144),l=n(7720),s=n(4617),c=n(4522);(i=t.ToastSeverity||(t.ToastSeverity={})).Info="Info",i.Success="Success",i.Warn="Warn",i.Error="Error";var p=function(){function e(e){var t=this;this.options=e,this._toasts=[],this._floatingItem=null,this._remove=function(e){var n=t._findToastIndexById(e);-1!==n&&(clearTimeout(t._toasts[n].timerSubscription),t._toasts.splice(n,1),t._updateToastsUI(),0===t._toasts.length&&t._removeToastsContainer())},this._options=e}return e.prototype.add=function(e){var t=e.duration,n=o(e,["duration"]);this._floatingItem||this._addToastsContainer();var i={toastProps:r(r({},n),{id:a.UUID.uuidV1(),onClose:this._remove}),duration:t,timerSubscription:null};this._toasts.push(i),this._updateToastsUI(),this._startDurationTimer(i)},e.prototype.reset=function(){var e=this;this._toasts.forEach((function(t){e._remove(t.toastProps.id)}))},e.prototype._startDurationTimer=function(e){var t=this;e.timerSubscription=setTimeout((function(){t._remove(e.toastProps.id)}),e.duration)},e.prototype._addToastsContainer=function(){var e=this;this._floatingItem=this._options.floatingManager.add({label:"Toasts",mode:l.FloatingUIModes.Immediate,position:l.FloatingPositions.InteractiveArea,renderContent:function(){return(0,c.h)(s.ToastsContainer,{toasts:e._toasts.map((function(e){return e.toastProps}))})}})},e.prototype._removeToastsContainer=function(){this._floatingItem&&(this._options.floatingManager.remove(this._floatingItem),this._floatingItem=null)},e.prototype._updateToastsUI=function(){this._floatingItem&&this._floatingItem.update()},e.prototype._findToastIndexById=function(e){for(var t=0;t<this._toasts.length;){if(this._toasts[t].toastProps.id===e)return t;t++}return-1},e}();t.ToastManager=p},1569:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;var r=n(4522);t.CloseIcon=function(){return(0,r.h)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},(0,r.h)("g",{id:"Icons/16/Close",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("path",{d:"M8.8497789,8 L11.824005,10.9742261 C12.058665,11.2088861 12.058665,11.5893451 11.824005,11.824005 C11.5893451,12.058665 11.2088861,12.058665 10.9742261,11.824005 L8,8.8497789 L5.02577387,11.824005 C4.7911139,12.058665 4.41065493,12.058665 4.17599497,11.824005 C3.94133501,11.5893451 3.94133501,11.2088861 4.17599497,10.9742261 L7.1502211,8 L4.17599497,5.02577387 C3.94133501,4.7911139 3.94133501,4.41065493 4.17599497,4.17599497 C4.41065493,3.94133501 4.7911139,3.94133501 5.02577387,4.17599497 L8,7.1502211 L10.9742261,4.17599497 C11.2088861,3.94133501 11.5893451,3.94133501 11.824005,4.17599497 C12.058665,4.41065493 12.058665,4.7911139 11.824005,5.02577387 L8.8497789,8 Z",id:"Path",fill:"#cccccc"})))}},3810:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Toast=void 0;var i=n(4522),a=n(181),l=n(5753),s=n(1569),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isShown:!0},t._onClick=function(e){t.props.onClick(),t._onClose(e)},t._onClose=function(e){e.stopPropagation(),t.setState({isShown:!1}),t.props.onClose(t.props.id)},t}return o(t,e),t.prototype._getToastSeverityClass=function(){switch(this.props.severity){case l.ToastSeverity.Success:return a.successToast;case l.ToastSeverity.Warn:return a.warnToast;case l.ToastSeverity.Error:return a.errorToast;default:return a.infoToast}},t.prototype.render=function(){var e=this.props,t=e.text,n=e.title,r=e.icon;return(0,i.h)("div",{className:a.toastWrapper+" "+this._getToastSeverityClass(),onClick:this._onClick},(0,i.h)("button",{className:a.closeButton,onClick:this._onClose},(0,i.h)(s.CloseIcon,null)),(0,i.h)("div",{className:a.title},n),(0,i.h)("div",{className:a.toastBody},(0,i.h)("div",{className:a.iconContainer},(0,i.h)("div",{className:a.iconWrapper},r)),(0,i.h)("div",{className:a.text},t)))},t}(i.Component);t.Toast=c},4617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToastsContainer=void 0;var r=n(7371);Object.defineProperty(t,"ToastsContainer",{enumerable:!0,get:function(){return r.ToastsContainer}})},7371:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ToastsContainer=void 0;var a=n(4522),l=n(3810),s=n(5579),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return(0,a.h)("div",{className:s.toastsContainer,"aria-live":"polite"},this.props.toasts.map((function(e){return(0,a.h)("div",{className:s.toastRow,key:e.id},(0,a.h)(l.Toast,i({},e)))})))},t}(a.Component);t.ToastsContainer=c},6227:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9873),t)},9873:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.UIPlayerAdapter=void 0;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){this.props.onMount(this.props.player)},t.prototype.componentWillUnmount=function(){this.props.onUnmount(this.props.player)},t.prototype.render=function(e){return null},t.defaultProps={player:null},i([KalturaPlayer.ui.components.withPlayer],t)}(n(4522).Component);t.UIPlayerAdapter=a},4144:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UUID=void 0;var n=function(){function e(){}return e.uuidV1=function(){return"".concat(Date.now(),"-").concat(Math.random())},e}();t.UUID=n},1123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsManager=void 0;var n=function(){function e(){this._eventListeners={},this._wildcardEventListeners=[]}return e.prototype.on=function(e,t){"*"!==e?(this._eventListeners[e]||(this._eventListeners[e]=[])).push(t):this._wildcardEventListeners.push(t)},e.prototype.off=function(e,t){if("*"!==e){var n=this._eventListeners[e];n&&n.splice(n.indexOf(t)>>>0,1)}else this._wildcardEventListeners.splice(this._wildcardEventListeners.indexOf(t)>>>0,1)},e.prototype.emit=function(e){(this._eventListeners[e.type]||[]).slice().map((function(t){t(e)})),this._wildcardEventListeners.slice().map((function(t){t(e)}))},e}();t.EventsManager=n},6265:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1123),t),o(n(4300),t)},4300:(e,t)=>{"use strict";function n(){return"undefined"==typeof Storage?r():((e=localStorage.getItem("anonymousUserId"))||(e=r(),localStorage.setItem("anonymousUserId",e)),e);var e}function r(){return"##".concat("Guest").concat("HashSeparator").concat(function(){for(var e=(0,t.generateId)(),n="",r=0;r<e.length;r++){var o=e.charAt(r);n+=Number.isNaN(+o)?o.charCodeAt(0):o}return n}(),"##")}Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=t.getQnaUserId=t.getUserId=t.generateId=void 0,t.generateId=function(){return(new Date).getTime().toString(36)+Math.random().toString(36).slice(2)},t.getUserId=n,t.getQnaUserId=function(e){var t,r,o,i,a=e,l=a.config,s=a.plugins,c=(null==l?void 0:l.session)||{},p=(null===(r=null===(t=null==s?void 0:s.qna)||void 0===t?void 0:t.config)||void 0===r?void 0:r.userRole)||c.userRole;return p&&"anonymousRole"!==p?(null===(i=null===(o=null==s?void 0:s.qna)||void 0===o?void 0:o.config)||void 0===i?void 0:i.userId)||c.userId:n()},t.debounce=function(e,t,n){var r;return void 0===t&&(t=50),void 0===n&&(n={isImmediate:!1}),function(){for(var o=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var l=function(){r=void 0,n.isImmediate||e.apply(o,i)},s=n.isImmediate&&void 0===r;void 0!==r&&clearTimeout(r),r=setTimeout(l,t),s&&e.apply(this,i)}}},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6298:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,".Button__button___NM3Vl{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;font-weight:700;border:1px solid rgba(0,0,0,0);border-radius:4px;cursor:pointer}.Button__button___NM3Vl.Button__primary___vkWyL{background-color:var(--playkit-primary-color);color:var(--playkit-primary-text-contrast-color)}.Button__button___NM3Vl.Button__primary___vkWyL:not(.Button__disabled___j4KjS):hover{background-color:var(--playkit-primary-darker-color)}.Button__button___NM3Vl.Button__primary___vkWyL:not(.Button__disabled___j4KjS):focus{background-color:var(--playkit-primary-brighter-color)}.Button__button___NM3Vl.Button__danger___lCKPq{background-color:var(--playkit-danger-color);color:var(--playkit-danger-text-contrast-color)}.Button__button___NM3Vl.Button__danger___lCKPq:not(.Button__disabled___j4KjS):hover{background-color:var(--playkit-danger-darker-color)}.Button__button___NM3Vl.Button__danger___lCKPq:not(.Button__disabled___j4KjS):focus{background-color:var(--playkit-danger-brighter-color)}.Button__button___NM3Vl.Button__translucent___nSc5h{background-color:rgba(0,0,0,.6);color:var(--playkit-primary-text-contrast-color)}.Button__button___NM3Vl.Button__borderless___sov7o{background-color:rgba(0,0,0,0);color:var(--playkit-tone-1-color)}.Button__button___NM3Vl.Button__borderless___sov7o:not(.Button__disabled___j4KjS):hover{background-color:var(--playkit-tone-4-color)}.Button__button___NM3Vl.Button__borderless___sov7o:not(.Button__disabled___j4KjS):focus{background-color:var(--playkit-tone-6-color)}.Button__button___NM3Vl.Button__small____SSTu{height:24px;font-size:13px;line-height:16px;padding:0 4px}.Button__button___NM3Vl.Button__small____SSTu.Button__withIcon___c3vxV{padding-right:8px}.Button__button___NM3Vl.Button__small____SSTu.Button__withIcon___c3vxV>span{margin-left:2px}.Button__button___NM3Vl.Button__small____SSTu.Button__iconOnly___dISNi{padding:0 3px}.Button__button___NM3Vl.Button__medium___psqY1{height:32px;font-size:14px;line-height:17px;padding:0 8px}.Button__button___NM3Vl.Button__medium___psqY1.Button__withIcon___c3vxV{padding-right:12px}.Button__button___NM3Vl.Button__medium___psqY1.Button__withIcon___c3vxV>span{margin-left:4px}.Button__button___NM3Vl.Button__medium___psqY1.Button__iconOnly___dISNi{padding:0 3px}.Button__button___NM3Vl.Button__large___ftsNW{height:40px;font-size:16px;line-height:19px;padding:0 16px}.Button__button___NM3Vl.Button__large___ftsNW.Button__withIcon___c3vxV{padding-left:12px}.Button__button___NM3Vl.Button__large___ftsNW.Button__withIcon___c3vxV>span{margin-left:4px}.Button__button___NM3Vl.Button__large___ftsNW.Button__iconOnly___dISNi{padding:0 3px}.Button__button___NM3Vl.Button__disabled___j4KjS{background-color:rgba(0,0,0,0);color:var(--playkit-tone-4-color);border-color:var(--playkit-tone-4-color);cursor:default}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/components/button/Button.scss","webpack://./../node_modules/@playkit-js/common/dist/components/variables.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAGA,wBACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,gBAAA,CACA,eAAA,CACA,8BAAA,CACA,iBCPY,CDQZ,cAAA,CACA,gDACE,6CEVY,CFWZ,gDER0B,CFUxB,qFACE,oDEbe,CFejB,qFACE,sDEfiB,CFmBvB,+CACE,4CENW,CFOX,+CEJyB,CFMvB,oFACE,mDETc,CFWhB,oFACE,qDEXgB,CFetB,oDACE,+BAAA,CACA,gDEhC0B,CFkC5B,mDACE,8BAAA,CACA,iCEZW,CFcT,wFACE,4CEZO,CFcT,wFACE,4CEbO,CFiBb,8CACE,WAAA,CACA,cAAA,CACA,gBAAA,CACA,aAAA,CACA,uEACE,iBAAA,CACA,4EACE,eAAA,CAGJ,uEACE,aAAA,CAGJ,+CACE,WAAA,CACA,cAAA,CACA,gBAAA,CACA,aAAA,CACA,wEACE,kBAAA,CACA,6EACE,eAAA,CAGJ,wEACE,aAAA,CAGJ,8CACE,WAAA,CACA,cAAA,CACA,gBAAA,CACA,cAAA,CACA,uEACE,iBAAA,CACA,4EACE,eAAA,CAGJ,uEACE,aAAA,CAGJ,iDACE,8BAAA,CACA,iCElEW,CFmEX,wCEnEW,CFoEX,cAAA",sourcesContent:["@import '../variables.scss';\n\n// https://www.figma.com/file/GYMv1jsthckOnKmCrdQJY3/%E2%8F%AF-Player-v7-(Guidelines)?node-id=21%3A1943&t=ywdMo875C6kzd7pN-0\n.button {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-wrap: nowrap;\n  font-weight: 700;\n  border: 1px solid transparent;\n  border-radius: $roundness-1;\n  cursor: pointer;\n  &.primary {\n    background-color: $primary-color;\n    color: $primary-text-contrast-color;\n    &:not(.disabled) {\n      &:hover {\n        background-color: $primary-darker-color;\n      }\n      &:focus {\n        background-color: $primary-brighter-color;\n      }\n    }\n  }\n  &.danger {\n    background-color: $danger-color;\n    color: $danger-text-contrast-color;\n    &:not(.disabled) {\n      &:hover {\n        background-color: $danger-darker-color;\n      }\n      &:focus {\n        background-color: $danger-brighter-color;\n      }\n    }\n  }\n  &.translucent {\n    background-color: rgba(0, 0, 0, 0.6);\n    color: $primary-text-contrast-color;\n  }\n  &.borderless {\n    background-color: transparent;\n    color: $tone-1-color;\n    &:not(.disabled) {\n      &:hover {\n        background-color: $tone-4-color;\n      }\n      &:focus {\n        background-color: $tone-6-color;\n      }\n    }\n  }\n  &.small {\n    height: 24px;\n    font-size: 13px;\n    line-height: 16px;\n    padding: 0 4px;\n    &.withIcon {\n      padding-right: 8px;\n      > span {\n        margin-left: 2px;\n      }\n    }\n    &.iconOnly {\n      padding: 0 3px;\n    }\n  }\n  &.medium {\n    height: 32px;\n    font-size: 14px;\n    line-height: 17px;\n    padding: 0 8px;\n    &.withIcon {\n      padding-right: 12px;\n      > span {\n        margin-left: 4px;\n      }\n    }\n    &.iconOnly {\n      padding: 0 3px;\n    }\n  }\n  &.large {\n    height: 40px;\n    font-size: 16px;\n    line-height: 19px;\n    padding: 0 16px;\n    &.withIcon {\n      padding-left: 12px;\n      > span {\n        margin-left: 4px;\n      }\n    }\n    &.iconOnly {\n      padding: 0 3px;\n    }\n  }\n  &.disabled {\n    background-color: transparent;\n    color: $tone-4-color;\n    border-color: $tone-4-color;\n    cursor: default;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n\n// colors\n$white: #ffffff;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={button:"Button__button___NM3Vl",primary:"Button__primary___vkWyL",disabled:"Button__disabled___j4KjS",danger:"Button__danger___lCKPq",translucent:"Button__translucent___nSc5h",borderless:"Button__borderless___sov7o",small:"Button__small____SSTu",withIcon:"Button__withIcon___c3vxV",iconOnly:"Button__iconOnly___dISNi",medium:"Button__medium___psqY1",large:"Button__large___ftsNW"};const l=a},2707:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,".InputField__input-field-wrapper___K1QeS{display:flex;align-items:center;flex-grow:1;width:100%;max-width:599px;padding-right:8px;height:32px;border:solid 1px rgba(255,255,255,.4);border-radius:4px}.InputField__input-field-wrapper___K1QeS ::-moz-placeholder{opacity:1}.InputField__input-field-wrapper___K1QeS .InputField__search-results___PBRGr{display:flex;justify-content:flex-end;align-items:center;flex-shrink:0;margin:0 8px 0 6px;font-size:12px;text-overflow:ellipsis}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA{display:flex;flex-direction:column;justify-content:space-around;max-height:100%;height:100%;width:8px;flex:0 0 8px}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA .InputField__prev-next-button___HP7Me{display:flex;align-items:center;height:50%;padding:0;background-color:rgba(0,0,0,0);border:none;cursor:pointer}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA .InputField__prev-next-button___HP7Me.InputField__disabled___GVLcH{opacity:.4;cursor:default}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE{width:100%;flex-grow:1;flex-shrink:1;font-size:15px;padding:0 6px 1px 6px;color:var(--playkit-tone-1-color);background:rgba(0,0,0,0);border:none;overflow:hidden;text-overflow:ellipsis}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE::placeholder{color:var(--playkit-tone-2-color)}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE::selection{background-color:var(--playkit-primary-brighter-color)}.InputField__input-field-wrapper___K1QeS .InputField__clear-icon___eTi3X{padding:0;flex:0 0 12px;max-width:12px;max-height:12px;background-color:rgba(0,0,0,0);width:12px;height:12px;outline-offset:4px;border:none;cursor:pointer}.InputField__input-field-wrapper___K1QeS:hover{border-color:#fff}.InputField__input-field-wrapper___K1QeS.InputField__active____D1qS{color:var(--playkit-tone-2-color);background:var(--playkit-tone-8-color);border-color:#fff}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/components/input-field/InputField.scss","webpack://./../node_modules/@playkit-js/common/dist/components/variables.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,yCAKE,YAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,eAAA,CACA,iBAAA,CACA,WAAA,CACA,qCAAA,CACA,iBCZY,CAAA,4DDCV,SAAA,CAYF,6EACE,YAAA,CACA,wBAAA,CACA,kBAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,sBAAA,CAEF,gFACE,YAAA,CACA,qBAAA,CACA,4BAAA,CACA,eAAA,CACA,WAAA,CACA,SAAA,CACA,YAAA,CACA,sHACE,YAAA,CACA,kBAAA,CACA,UAAA,CACA,SAAA,CACA,8BAAA,CACA,WAAA,CACA,cAAA,CACA,mJACE,UAAA,CACA,cAAA,CAIN,4EACE,UAAA,CACA,WAAA,CACA,aAAA,CACA,cAAA,CACA,qBAAA,CACA,iCEvBW,CFwBX,wBAAA,CACA,WAAA,CACA,eAAA,CACA,sBAAA,CACA,yFACE,iCE5BS,CF8BX,uFACE,sDEzDmB,CF4DvB,yEACE,SAAA,CACA,aAAA,CACA,cAAA,CACA,eAAA,CACA,8BAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,WAAA,CACA,cAAA,CAEF,+CACE,iBCvEI,CDyEN,oEACE,iCElDW,CFmDX,sCE7CW,CF8CX,iBC5EI",sourcesContent:["@import '../variables.scss';\n\n.input-field-wrapper {\n  ::-moz-placeholder {\n    opacity: 1;\n  }\n\n  display: flex;\n  align-items: center;\n  flex-grow: 1;\n  width: 100%;\n  max-width: 599px;\n  padding-right: 8px;\n  height: 32px;\n  border: solid 1px rgba(255, 255, 255, 0.4);\n  border-radius: $roundness-1;\n  .search-results {\n    display: flex;\n    justify-content: flex-end;\n    align-items: center;\n    flex-shrink: 0;\n    margin: 0 8px 0 6px;\n    font-size: 12px;\n    text-overflow: ellipsis;\n  }\n  .prev-next-wrapper {\n    display: flex;\n    flex-direction: column;\n    justify-content: space-around;\n    max-height: 100%;\n    height: 100%;\n    width: 8px;\n    flex: 0 0 8px;\n    .prev-next-button {\n      display: flex;\n      align-items: center;\n      height: 50%;\n      padding: 0;\n      background-color: transparent;\n      border: none;\n      cursor: pointer;\n      &.disabled {\n        opacity: 0.4;\n        cursor: default;\n      }\n    }\n  }\n  .input-element {\n    width: 100%;\n    flex-grow: 1;\n    flex-shrink: 1;\n    font-size: 15px;\n    padding: 0 6px 1px 6px;\n    color: $tone-1-color;\n    background: transparent;\n    border: none;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    &::placeholder {\n      color: $tone-2-color;\n    }\n    &::selection {\n      background-color: $primary-brighter-color;\n    }\n  }\n  .clear-icon {\n    padding: 0;\n    flex: 0 0 12px;\n    max-width: 12px;\n    max-height: 12px;\n    background-color: transparent;\n    width: 12px;\n    height: 12px;\n    outline-offset: 4px;\n    border: none;\n    cursor: pointer;\n  }\n  &:hover {\n    border-color: $white;\n  }\n  &.active {\n    color: $tone-2-color;\n    background: $tone-8-color;\n    border-color: $white;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n\n// colors\n$white: #ffffff;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={"input-field-wrapper":"InputField__input-field-wrapper___K1QeS",inputFieldWrapper:"InputField__input-field-wrapper___K1QeS","search-results":"InputField__search-results___PBRGr",searchResults:"InputField__search-results___PBRGr","prev-next-wrapper":"InputField__prev-next-wrapper___zAxBA",prevNextWrapper:"InputField__prev-next-wrapper___zAxBA","prev-next-button":"InputField__prev-next-button___HP7Me",prevNextButton:"InputField__prev-next-button___HP7Me",disabled:"InputField__disabled___GVLcH","input-element":"InputField__input-element___BAphE",inputElement:"InputField__input-element___BAphE","clear-icon":"InputField__clear-icon___eTi3X",clearIcon:"InputField__clear-icon___eTi3X",active:"InputField__active____D1qS"};const l=a},6469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,".icon__iconWrapper___O5uqn.icon__small___IddLg{width:16px;height:16px}.icon__iconWrapper___O5uqn.icon__medium___llFxB{width:24px;height:24px}.icon__iconWrapper___O5uqn.icon__large___Q96VN{width:32px;height:32px}.icon__iconWrapper___O5uqn>svg{width:100%;height:100%}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/icon/icon.scss"],names:[],mappings:"AACE,+CACE,UAAA,CACA,WAAA,CAEF,gDACE,UAAA,CACA,WAAA,CAEF,+CACE,UAAA,CACA,WAAA,CAEF,+BACE,UAAA,CACA,WAAA",sourcesContent:[".iconWrapper {\n  &.small {\n    width: 16px;\n    height: 16px;\n  }\n  &.medium {\n    width: 24px;\n    height: 24px;\n  }\n  &.large {\n    width: 32px;\n    height: 32px;\n  }\n  > svg {\n    width: 100%;\n    height: 100%;\n  }\n}\n"],sourceRoot:""}]),a.locals={iconWrapper:"icon__iconWrapper___O5uqn",small:"icon__small___IddLg",medium:"icon__medium___llFxB",large:"icon__large___Q96VN"};const l=a},5588:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,"._banner-container__bannerContainerRoot___xakgR{position:absolute;max-width:100%;min-width:270px;padding:0 16px 8px;height:88px;bottom:0;left:0;transition:all .5s ease}._banner-container__bannerContainer___Qm02i{position:relative;width:100%;height:100%;border-radius:4px;transition:all .5s ease}._banner-container__closeButton___WVWto{position:absolute;background-color:rgba(0,0,0,0);padding:0;border:none;top:0;right:0;width:32px;height:32px;padding:0}._banner-container__closeButton___WVWto ._banner-container__small___Tgp11{display:none}._banner-container__closeButton___WVWto:hover,._banner-container__closeButton___WVWto:active{cursor:pointer}.playkit-size-md ._banner-container__bannerContainerRoot___xakgR{height:68px;min-width:230px}.playkit-size-md ._banner-container__closeButton___WVWto{top:8px;right:8px;width:10px;height:10px}.playkit-size-md ._banner-container__closeButton___WVWto ._banner-container__large___aw4QR{display:none}.playkit-size-md ._banner-container__closeButton___WVWto ._banner-container__small___Tgp11{display:block}.playkit-size-sm ._banner-container__bannerContainerRoot___xakgR,.playkit-size-xs ._banner-container__bannerContainerRoot___xakgR,.playkit-size-ty ._banner-container__bannerContainerRoot___xakgR{display:none;width:0;height:0}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/banner-container/_banner-container.scss"],names:[],mappings:"AAAA,gDACE,iBAAA,CACA,cAAA,CACA,eAAA,CACA,kBAAA,CACA,WAAA,CACA,QAAA,CACA,MAAA,CACA,uBAAA,CAGF,4CACE,iBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,uBAAA,CAGF,wCACE,iBAAA,CACA,8BAAA,CACA,SAAA,CACA,WAAA,CACA,KAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,SAAA,CACA,0EACE,YAAA,CAIJ,6FAEE,cAAA,CAMI,iEACE,WAAA,CACA,eAAA,CAEF,yDACE,OAAA,CACA,SAAA,CACA,UAAA,CACA,WAAA,CACA,2FACE,YAAA,CAEF,2FACE,aAAA,CAWN,mMACE,YAAA,CACA,OAAA,CACA,QAAA",sourcesContent:[".bannerContainerRoot {\n  position: absolute;\n  max-width: 100%;\n  min-width: 270px;\n  padding: 0 16px 8px;\n  height: 88px;\n  bottom: 0;\n  left: 0;\n  transition: all 0.5s ease;\n}\n\n.bannerContainer {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  border-radius: 4px;\n  transition: all 0.5s ease;\n}\n\n.closeButton {\n  position: absolute;\n  background-color: transparent;\n  padding: 0;\n  border: none;\n  top: 0;\n  right: 0;\n  width: 32px;\n  height: 32px;\n  padding: 0;\n  .small {\n    display: none;\n  }\n}\n\n.closeButton:hover,\n.closeButton:active {\n  cursor: pointer;\n}\n\n:global {\n  .playkit-size-md {\n    :local {\n      .bannerContainerRoot {\n        height: 68px;\n        min-width: 230px;\n      }\n      .closeButton {\n        top: 8px;\n        right: 8px;\n        width: 10px;\n        height: 10px;\n        .large {\n          display: none;\n        }\n        .small {\n          display: block;\n        }\n      }\n    }\n  }\n}\n\n:global {\n  .playkit-size-sm,\n  .playkit-size-xs,\n  .playkit-size-ty {\n    :local .bannerContainerRoot {\n      display: none;\n      width: 0;\n      height: 0;\n    }\n  }\n}\n"],sourceRoot:""}]),a.locals={bannerContainerRoot:"_banner-container__bannerContainerRoot___xakgR",bannerContainer:"_banner-container__bannerContainer___Qm02i",closeButton:"_banner-container__closeButton___WVWto",small:"_banner-container__small___Tgp11",large:"_banner-container__large___aw4QR"};const l=a},9882:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,"._banner__defaultBannerRoot___NepFO{display:flex;max-width:100%;height:100%;transition:all .5s ease;text-align:left}._banner__bannerWrapper___Rs8hK{padding:18px 17px 17px 16px}._banner__iconContainer___wyKRN{height:100%;width:64px}._banner__iconWrapper___duGbT{position:relative;height:48px;width:48px;background-color:rgba(255,255,255,.14);border-radius:50%;transition:all .5s ease}._banner__iconImage___I0LAA{position:absolute;width:32px;height:32px;left:calc(50% - 16px);top:calc(50% - 16px);transition:all .5s ease;padding:0}._banner__iconImage___I0LAA ._banner__small___mrxMV{display:none}._banner__bannerBody___ISEP1{height:100%;flex:1 1 auto;overflow:hidden}._banner__title___LCkfF{opacity:.9;font-size:14px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:normal;color:#ebebeb}._banner__text___UyS4n{opacity:.9;font-size:24px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.21;letter-spacing:normal;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .5s ease}.playkit-size-md ._banner__bannerWrapper___Rs8hK{padding:14px 16px 14px}.playkit-size-md ._banner__iconContainer___wyKRN{width:44px}.playkit-size-md ._banner__iconWrapper___duGbT{height:32px;width:32px}.playkit-size-md ._banner__iconImage___I0LAA{width:20px;height:20px;left:calc(50% - 10px);top:calc(50% - 10px)}.playkit-size-md ._banner__iconImage___I0LAA ._banner__small___mrxMV{display:block}.playkit-size-md ._banner__iconImage___I0LAA ._banner__large___q5r6u{display:none}.playkit-size-md ._banner__bannerBody___ISEP1{flex:1 1 auto}.playkit-size-md ._banner__title___LCkfF{font-size:12px;font-weight:bold;line-height:1.17}.playkit-size-md ._banner__text___UyS4n{font-size:15px;line-height:1.27}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/banner/_banner.scss"],names:[],mappings:"AAAA,oCACE,YAAA,CACA,cAAA,CACA,WAAA,CACA,uBAAA,CACA,eAAA,CAGF,gCACE,2BAAA,CAGF,gCACE,WAAA,CACA,UAAA,CAGF,8BACE,iBAAA,CACA,WAAA,CACA,UAAA,CACA,sCAAA,CACA,iBAAA,CACA,uBAAA,CAGF,4BACE,iBAAA,CACA,UAAA,CACA,WAAA,CACA,qBAAA,CACA,oBAAA,CACA,uBAAA,CACA,SAAA,CACA,oDACE,YAAA,CAIJ,6BACE,WAAA,CACA,aAAA,CACA,eAAA,CAGF,wBACE,UAAA,CACA,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,aAAA,CACA,qBAAA,CACA,aAAA,CAGF,uBACE,UAAA,CACA,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CACA,uBAAA,CAMI,iDACE,sBAAA,CAEF,iDACE,UAAA,CAEF,+CACE,WAAA,CACA,UAAA,CAEF,6CACE,UAAA,CACA,WAAA,CACA,qBAAA,CACA,oBAAA,CACA,qEACE,aAAA,CAEF,qEACE,YAAA,CAGJ,8CACE,aAAA,CAEF,yCACE,cAAA,CACA,gBAAA,CACA,gBAAA,CAEF,wCACE,cAAA,CACA,gBAAA",sourcesContent:[".defaultBannerRoot {\n  display: flex;\n  max-width: 100%;\n  height: 100%;\n  transition: all 0.5s ease;\n  text-align: left;\n}\n\n.bannerWrapper {\n  padding: 18px 17px 17px 16px;\n}\n\n.iconContainer {\n  height: 100%;\n  width: 64px;\n}\n\n.iconWrapper {\n  position: relative;\n  height: 48px;\n  width: 48px;\n  background-color: rgba(255, 255, 255, 0.14);\n  border-radius: 50%;\n  transition: all 0.5s ease;\n}\n\n.iconImage {\n  position: absolute;\n  width: 32px;\n  height: 32px;\n  left: calc(50% - 16px);\n  top: calc(50% - 16px);\n  transition: all 0.5s ease;\n  padding: 0;\n  .small {\n    display: none;\n  }\n}\n\n.bannerBody {\n  height: 100%;\n  flex: 1 1 auto;\n  overflow: hidden;\n}\n\n.title {\n  opacity: 0.9;\n  font-size: 14px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1;\n  letter-spacing: normal;\n  color: #ebebeb;\n}\n\n.text {\n  opacity: 0.9;\n  font-size: 24px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1.21;\n  letter-spacing: normal;\n  color: #ffffff;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  transition: all 0.5s ease;\n}\n\n:global {\n  .playkit-size-md {\n    :local {\n      .bannerWrapper {\n        padding: 14px 16px 14px;\n      }\n      .iconContainer {\n        width: 44px;\n      }\n      .iconWrapper {\n        height: 32px;\n        width: 32px;\n      }\n      .iconImage {\n        width: 20px;\n        height: 20px;\n        left: calc(50% - 10px);\n        top: calc(50% - 10px);\n        .small {\n          display: block;\n        }\n        .large {\n          display: none;\n        }\n      }\n      .bannerBody {\n        flex: 1 1 auto;\n      }\n      .title {\n        font-size: 12px;\n        font-weight: bold;\n        line-height: 1.17;\n      }\n      .text {\n        font-size: 15px;\n        line-height: 1.27;\n      }\n    }\n  }\n}\n"],sourceRoot:""}]),a.locals={defaultBannerRoot:"_banner__defaultBannerRoot___NepFO",bannerWrapper:"_banner__bannerWrapper___Rs8hK",iconContainer:"_banner__iconContainer___wyKRN",iconWrapper:"_banner__iconWrapper___duGbT",iconImage:"_banner__iconImage___I0LAA",small:"_banner__small___mrxMV",bannerBody:"_banner__bannerBody___ISEP1",title:"_banner__title___LCkfF",text:"_banner__text___UyS4n",large:"_banner__large___q5r6u"};const l=a},1355:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,".injected-component__fill-container___mNczr{width:100%;height:100%;overflow:hidden}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/injected-component/injected-component.scss"],names:[],mappings:"AAAA,4CACE,UAAA,CACA,WAAA,CACA,eAAA",sourcesContent:[".fill-container {\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n}\n"],sourceRoot:""}]),a.locals={"fill-container":"injected-component__fill-container___mNczr",fillContainer:"injected-component__fill-container___mNczr"};const l=a},8931:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,"._managed-component__fill-container___BZ9jB{width:100%;height:100%}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/managed-component/_managed-component.scss"],names:[],mappings:"AAAA,4CACE,UAAA,CACA,WAAA",sourcesContent:[".fill-container {\n  width: 100%;\n  height: 100%;\n}\n"],sourceRoot:""}]),a.locals={"fill-container":"_managed-component__fill-container___BZ9jB",fillContainer:"_managed-component__fill-container___BZ9jB"};const l=a},9318:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,"._toast__toastWrapper___WvdiK{position:relative;min-width:120px;max-width:310px;height:100%;border-radius:4px;background-color:#222;border-left-style:solid;border-left-width:4px;text-align:left}._toast__infoToast___GSdk1{border-left-color:#01accd}._toast__successToast___dyb3J{border-left-color:#009e48}._toast__warnToast___vCnBw{border-left-color:#f9a71b}._toast__errorToast___GAr1R{border-left-color:#e7585d}._toast__closeButton___kXqZM{position:absolute;background-color:rgba(0,0,0,0);top:0;right:0;width:16px;height:16px;object-fit:contain;background-repeat:no-repeat;border:none;padding:0}._toast__closeButton___kXqZM:hover{cursor:pointer}._toast__title___aQCgz{font-size:12px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.17;letter-spacing:normal;color:#ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:4px;padding-right:16px;padding-left:12px}._toast__toastBody___aP3ij{position:relative;width:100%;padding:2px 16px 5px 12px}._toast__iconContainer___S5hMD{position:relative;height:16px;width:16px;float:left;margin-right:7px}._toast__iconWrapper___kqam1{height:16px;width:16px}._toast__text___EdqX7{font-size:14px;font-weight:bold;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/toast/_toast.scss"],names:[],mappings:"AAAA,8BACE,iBAAA,CACA,eAAA,CACA,eAAA,CACA,WAAA,CACA,iBAAA,CACA,qBAAA,CACA,uBAAA,CACA,qBAAA,CACA,eAAA,CAGF,2BACE,yBAAA,CAGF,8BACE,yBAAA,CAGF,2BACE,yBAAA,CAGF,4BACE,yBAAA,CAGF,6BACE,iBAAA,CACA,8BAAA,CACA,KAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,2BAAA,CACA,WAAA,CACA,SAAA,CAEA,mCACE,cAAA,CAIJ,uBACE,cAAA,CACA,kBAAA,CACA,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CACA,eAAA,CACA,kBAAA,CACA,iBAAA,CAGF,2BACE,iBAAA,CACA,UAAA,CACA,yBAAA,CAGF,+BACE,iBAAA,CACA,WAAA,CACA,UAAA,CACA,UAAA,CACA,gBAAA,CAGF,6BACE,WAAA,CACA,UAAA,CAGF,sBACE,cAAA,CACA,gBAAA,CACA,iBAAA,CACA,mBAAA,CACA,kBAAA,CACA,qBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA",sourcesContent:[".toastWrapper {\n  position: relative;\n  min-width: 120px;\n  max-width: 310px;\n  height: 100%;\n  border-radius: 4px;\n  background-color: #222222;\n  border-left-style: solid;\n  border-left-width: 4px;\n  text-align: left;\n}\n\n.infoToast {\n  border-left-color: #01ACCD;\n}\n\n.successToast {\n  border-left-color: #009E48;\n}\n\n.warnToast {\n  border-left-color: #F9A71B;\n}\n\n.errorToast {\n  border-left-color: #E7585D;\n}\n\n.closeButton {\n  position: absolute;\n  background-color: transparent;\n  top: 0;\n  right: 0;\n  width: 16px;\n  height: 16px;\n  object-fit: contain;\n  background-repeat: no-repeat;\n  border: none;\n  padding: 0;\n\n  &:hover {\n    cursor: pointer;\n  }\n}\n\n.title {\n  font-size: 12px;\n  font-weight: normal;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: 1.17;\n  letter-spacing: normal;\n  color: #cccccc;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  padding-top: 4px;\n  padding-right: 16px;\n  padding-left: 12px;\n}\n\n.toastBody {\n  position: relative;\n  width: 100%;\n  padding: 2px 16px 5px 12px;\n}\n\n.iconContainer {\n  position: relative;\n  height: 16px;\n  width: 16px;\n  float: left;\n  margin-right: 7px;\n}\n\n.iconWrapper {\n  height: 16px;\n  width: 16px;\n}\n\n.text {\n  font-size: 14px;\n  font-weight: bold;\n  font-style: normal;\n  font-stretch: normal;\n  line-height: normal;\n  letter-spacing: normal;\n  color: #cccccc;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n"],sourceRoot:""}]),a.locals={toastWrapper:"_toast__toastWrapper___WvdiK",infoToast:"_toast__infoToast___GSdk1",successToast:"_toast__successToast___dyb3J",warnToast:"_toast__warnToast___vCnBw",errorToast:"_toast__errorToast___GAr1R",closeButton:"_toast__closeButton___kXqZM",title:"_toast__title___aQCgz",toastBody:"_toast__toastBody___aP3ij",iconContainer:"_toast__iconContainer___S5hMD",iconWrapper:"_toast__iconWrapper___kqam1",text:"_toast__text___EdqX7"};const l=a},3346:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,"._toasts-container__toastsContainer___ep0ad{position:absolute;right:0;top:0;padding:8px 16px 0;min-width:120px;max-width:310px;display:flex;flex-direction:column}._toasts-container__toastRow___J1NQa{height:42px;min-width:120px;max-width:310px;margin-bottom:8px;overflow:hidden;overflow-wrap:break-word;text-overflow:ellipsis;align-self:flex-end}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/ui-common/toasts-container/_toasts-container.scss"],names:[],mappings:"AAAA,4CACE,iBAAA,CACA,OAAA,CACA,KAAA,CACA,kBAAA,CACA,eAAA,CACA,eAAA,CACA,YAAA,CACA,qBAAA,CAGF,qCACE,WAAA,CACA,eAAA,CACA,eAAA,CACA,iBAAA,CACA,eAAA,CACA,wBAAA,CACA,sBAAA,CACA,mBAAA",sourcesContent:[".toastsContainer {\n  position: absolute;\n  right: 0;\n  top: 0;\n  padding: 8px 16px 0;\n  min-width: 120px;\n  max-width: 310px;\n  display: flex;\n  flex-direction: column;\n}\n\n.toastRow {\n  height: 42px;\n  min-width: 120px;\n  max-width: 310px;\n  margin-bottom: 8px;\n  overflow: hidden;\n  overflow-wrap: break-word;\n  text-overflow: ellipsis;\n  align-self: flex-end;\n}\n"],sourceRoot:""}]),a.locals={toastsContainer:"_toasts-container__toastsContainer___ep0ad",toastRow:"_toasts-container__toastRow___J1NQa"};const l=a},4577:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,".live-tag__live-tag___UmfOr{display:inline-block;margin:4px 12px;padding:3px 4px;opacity:.94;border-radius:4px;text-align:center;color:var(--playkit-primary-text-contrast-color);font-size:15px;font-weight:400;line-height:18px;text-transform:uppercase}.live-tag__live-tag___UmfOr.live-tag__preview-edge___GIWNI{background-color:var(--playkit-secondary-color)}.live-tag__live-tag___UmfOr.live-tag__live-edge___ibj0p{background-color:var(--playkit-live-color)}.live-tag__live-tag___UmfOr.live-tag__non-edge___v46iN{background-color:var(--playkit-tone-5-color)}.live-tag__live-tag___UmfOr.live-tag__clickable___B0XCI{cursor:pointer}","",{version:3,sources:["webpack://./components/live-tag/live-tag.scss","webpack://./variables.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,4BACE,oBAAA,CACA,eAAA,CACA,eAAA,CACA,WAAA,CACA,iBCEY,CDDZ,iBAAA,CACA,gDEH4B,CFI5B,cAAA,CACA,eAAA,CACA,gBAAA,CACA,wBAAA,CACA,2DACE,+CEPc,CFShB,wDACE,0CEqBS,CFnBX,uDACE,4CEaW,CFXb,wDACE,cAAA",sourcesContent:["@import '../../variables.scss';\n\n.live-tag {\n  display: inline-block;\n  margin: 4px 12px;\n  padding: 3px 4px;\n  opacity: 0.94;\n  border-radius: $roundness-1;\n  text-align: center;\n  color: $primary-text-contrast-color;\n  font-size: 15px;\n  font-weight: 400;\n  line-height: 18px;\n  text-transform: uppercase;\n  &.preview-edge {\n    background-color: $secondary-color;\n  }\n  &.live-edge {\n    background-color: $live-color;\n  }\n  &.non-edge {\n    background-color: $tone-5-color;\n  }\n  &.clickable {\n    cursor: pointer;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$text-color: #999999;\n$layout-color: #000000;\n$font-family: sans-serif;\n\n$slate-zindex: 6; // overlap spinner and replay button\n\n// border radius\n$roundness-1: 4px;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={"live-tag":"live-tag__live-tag___UmfOr",liveTag:"live-tag__live-tag___UmfOr","preview-edge":"live-tag__preview-edge___GIWNI",previewEdge:"live-tag__preview-edge___GIWNI","live-edge":"live-tag__live-edge___ibj0p",liveEdge:"live-tag__live-edge___ibj0p","non-edge":"live-tag__non-edge___v46iN",nonEdge:"live-tag__non-edge___v46iN",clickable:"live-tag__clickable___B0XCI"};const l=a},7903:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,".no-longer-live__no-longer-live-wrapper___Ka9QL{width:100%;height:100%;border-radius:4px;min-width:280px;display:flex;flex-direction:column;align-items:center;justify-content:center}.no-longer-live__no-longer-live-wrapper___Ka9QL .no-longer-live__icon-wrapper___Vx0m5{position:relative;display:flex;justify-content:center;width:100%;height:100%;max-width:250px;max-height:359px}.no-longer-live__no-longer-live-wrapper___Ka9QL .no-longer-live__icon-wrapper___Vx0m5 .no-longer-live__no-longer-live-icon___kQjBJ{width:100%;height:100%;background-size:contain;background-repeat:no-repeat;background-position:center}.no-longer-live__no-longer-live-wrapper___Ka9QL .no-longer-live__icon-wrapper___Vx0m5 .no-longer-live__no-longer-live-icon___kQjBJ .no-longer-live__no-longer-live-small-icon___ra3KM{display:none;margin:0 auto}.no-longer-live__no-longer-live-wrapper___Ka9QL .no-longer-live__text-wrapper___6WiV6{position:relative;bottom:58px}.no-longer-live__no-longer-live-wrapper___Ka9QL .no-longer-live__text-wrapper___6WiV6>p{margin:0;text-align:center;color:#999}.no-longer-live__no-longer-live-wrapper___Ka9QL .no-longer-live__text-wrapper___6WiV6 .no-longer-live__primary-text___eJgZi{font-size:18px;font-weight:bold}.playkit-player.playkit-size-sm .no-longer-live__icon-wrapper___Vx0m5,.playkit-player.playkit-size-xs .no-longer-live__icon-wrapper___Vx0m5{max-width:195px;max-height:280px}.playkit-player.playkit-size-sm .no-longer-live__icon-wrapper___Vx0m5 .no-longer-live__no-longer-live-big-icon___AV8au,.playkit-player.playkit-size-xs .no-longer-live__icon-wrapper___Vx0m5 .no-longer-live__no-longer-live-big-icon___AV8au{display:none}.playkit-player.playkit-size-sm .no-longer-live__icon-wrapper___Vx0m5 .no-longer-live__no-longer-live-small-icon___ra3KM,.playkit-player.playkit-size-xs .no-longer-live__icon-wrapper___Vx0m5 .no-longer-live__no-longer-live-small-icon___ra3KM{display:block}.playkit-player.playkit-size-sm .no-longer-live__text-wrapper___6WiV6,.playkit-player.playkit-size-xs .no-longer-live__text-wrapper___6WiV6{bottom:52px}.playkit-player.playkit-size-ty .no-longer-live__icon-wrapper___Vx0m5{display:none}.playkit-player.playkit-size-ty .no-longer-live__text-wrapper___6WiV6{bottom:auto}","",{version:3,sources:["webpack://./components/no-longer-live/no-longer-live.scss","webpack://./variables.scss"],names:[],mappings:"AACA,gDACE,UAAA,CACA,WAAA,CACA,iBAAA,CACA,eAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,sBAAA,CACA,sFACE,iBAAA,CACA,YAAA,CACA,sBAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CACA,gBAAA,CACA,mIACE,UAAA,CACA,WAAA,CACA,uBAAA,CACA,2BAAA,CACA,0BAAA,CACA,sLACE,YAAA,CACA,aAAA,CAIN,sFACE,iBAAA,CACA,WAAA,CACA,wFACE,QAAA,CACA,iBAAA,CACA,UClCO,CDoCT,4HACE,cAAA,CACA,gBAAA,CAOJ,4IACE,eAAA,CACA,gBAAA,CACA,8OACE,YAAA,CAEF,kPACE,aAAA,CAGJ,4IACE,WAAA,CAKF,sEACE,YAAA,CAEF,sEACE,WAAA",sourcesContent:["@import '../../variables.scss';\n.no-longer-live-wrapper {\n  width: 100%;\n  height: 100%;\n  border-radius: 4px;\n  min-width: 280px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  .icon-wrapper {\n    position: relative;\n    display: flex;\n    justify-content: center;\n    width: 100%;\n    height: 100%;\n    max-width: 250px;\n    max-height: 359px;\n    .no-longer-live-icon {\n      width: 100%;\n      height: 100%;\n      background-size: contain;\n      background-repeat: no-repeat;\n      background-position: center;\n      .no-longer-live-small-icon {\n        display: none;\n        margin: 0 auto;\n      }\n    }\n  }\n  .text-wrapper {\n    position: relative;\n    bottom: 58px;\n    & > p {\n      margin: 0;\n      text-align: center;\n      color: $text-color;\n    }\n    .primary-text {\n      font-size: 18px;\n      font-weight: bold;\n    }\n  }\n}\n\n:global(.playkit-player.playkit-size-sm),\n:global(.playkit-player.playkit-size-xs) {\n  .icon-wrapper {\n    max-width: 195px;\n    max-height: 280px;\n    .no-longer-live-big-icon {\n      display: none;\n    }\n    .no-longer-live-small-icon {\n      display: block;\n    }\n  }\n  .text-wrapper {\n    bottom: 52px;\n  }\n}\n\n:global(.playkit-player.playkit-size-ty) {\n  .icon-wrapper {\n    display: none;\n  }\n  .text-wrapper {\n    bottom: auto;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$text-color: #999999;\n$layout-color: #000000;\n$font-family: sans-serif;\n\n$slate-zindex: 6; // overlap spinner and replay button\n\n// border radius\n$roundness-1: 4px;\n"],sourceRoot:""}]),a.locals={"no-longer-live-wrapper":"no-longer-live__no-longer-live-wrapper___Ka9QL",noLongerLiveWrapper:"no-longer-live__no-longer-live-wrapper___Ka9QL","icon-wrapper":"no-longer-live__icon-wrapper___Vx0m5",iconWrapper:"no-longer-live__icon-wrapper___Vx0m5","no-longer-live-icon":"no-longer-live__no-longer-live-icon___kQjBJ",noLongerLiveIcon:"no-longer-live__no-longer-live-icon___kQjBJ","no-longer-live-small-icon":"no-longer-live__no-longer-live-small-icon___ra3KM",noLongerLiveSmallIcon:"no-longer-live__no-longer-live-small-icon___ra3KM","text-wrapper":"no-longer-live__text-wrapper___6WiV6",textWrapper:"no-longer-live__text-wrapper___6WiV6","primary-text":"no-longer-live__primary-text___eJgZi",primaryText:"no-longer-live__primary-text___eJgZi","no-longer-live-big-icon":"no-longer-live__no-longer-live-big-icon___AV8au",noLongerLiveBigIcon:"no-longer-live__no-longer-live-big-icon___AV8au"};const l=a},1326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,".offline-slate__slate-wrapper___pobqn{position:absolute;top:0;right:0;z-index:6;width:0px;height:0px;background-color:#000;font-family:sans-serif}.offline-slate__slate-wrapper___pobqn.offline-slate__active___ew4XD{width:100%;height:100%}","",{version:3,sources:["webpack://./components/offline-slate/offline-slate.scss","webpack://./variables.scss"],names:[],mappings:"AAEA,sCACE,iBAAA,CACA,KAAA,CACA,OAAA,CACA,SAAA,CACA,SAAA,CACA,UAAA,CACA,qBCNa,CDOb,sBCNY,CDOZ,oEACE,UAAA,CACA,WAAA",sourcesContent:["@import '../../variables.scss';\n\n.slate-wrapper {\n  position: absolute;\n  top: 0;\n  right: 0;\n  z-index: $slate-zindex;\n  width: 0px;\n  height: 0px;\n  background-color: $layout-color;\n  font-family: $font-family;\n  &.active {\n    width: 100%;\n    height: 100%;\n  }\n}\n\n:global(.playkit-player.has-live-plugin-overlay) {\n  // overwrite player styles when live slate active\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$text-color: #999999;\n$layout-color: #000000;\n$font-family: sans-serif;\n\n$slate-zindex: 6; // overlap spinner and replay button\n\n// border radius\n$roundness-1: 4px;\n"],sourceRoot:""}]),a.locals={"slate-wrapper":"offline-slate__slate-wrapper___pobqn",slateWrapper:"offline-slate__slate-wrapper___pobqn",active:"offline-slate__active___ew4XD"};const l=a},5604:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,".offline__offline-wrapper___FCPv6{width:100%;height:100%;border-radius:4px;min-width:280px;display:flex;flex-direction:column;align-items:center;justify-content:center}.offline__offline-wrapper___FCPv6 .offline__offline-icon___Ytqpt{width:100%;height:100%;max-width:184px;max-height:184px;background-size:contain;background-repeat:no-repeat;background-position:center}.offline__offline-wrapper___FCPv6 .offline__primary-text___zoQ88{margin:16px 0 4px 0;font-size:18px;font-weight:bold;text-align:center;color:#999}.offline__offline-wrapper___FCPv6 .offline__secondary-text___yD0kY{margin:0;font-size:14px;text-align:center;color:#999}.playkit-player.playkit-size-ty .offline__offlineIcon___csBzE{display:none}","",{version:3,sources:["webpack://./components/offline/offline.scss","webpack://./variables.scss"],names:[],mappings:"AAEA,kCACE,UAAA,CACA,WAAA,CACA,iBAAA,CACA,eAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,sBAAA,CACA,iEACE,UAAA,CACA,WAAA,CACA,eAAA,CACA,gBAAA,CACA,uBAAA,CACA,2BAAA,CACA,0BAAA,CAEF,iEACE,mBAAA,CACA,cAAA,CACA,gBAAA,CACA,iBAAA,CACA,UCvBS,CDyBX,mEACE,QAAA,CACA,cAAA,CACA,iBAAA,CACA,UC7BS,CDkCX,8DACE,YAAA",sourcesContent:["@import '../../variables.scss';\n\n.offline-wrapper {\n  width: 100%;\n  height: 100%;\n  border-radius: 4px;\n  min-width: 280px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  .offline-icon {\n    width: 100%;\n    height: 100%;\n    max-width: 184px;\n    max-height: 184px;\n    background-size: contain;\n    background-repeat: no-repeat;\n    background-position: center;\n  }\n  .primary-text {\n    margin: 16px 0 4px 0;\n    font-size: 18px;\n    font-weight: bold;\n    text-align: center;\n    color: $text-color;\n  }\n  .secondary-text {\n    margin: 0;\n    font-size: 14px;\n    text-align: center;\n    color: $text-color;\n  }\n}\n\n:global(.playkit-player.playkit-size-ty) {\n  .offlineIcon {\n    display: none;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$text-color: #999999;\n$layout-color: #000000;\n$font-family: sans-serif;\n\n$slate-zindex: 6; // overlap spinner and replay button\n\n// border radius\n$roundness-1: 4px;\n"],sourceRoot:""}]),a.locals={"offline-wrapper":"offline__offline-wrapper___FCPv6",offlineWrapper:"offline__offline-wrapper___FCPv6","offline-icon":"offline__offline-icon___Ytqpt",offlineIcon:"offline__offline-icon___Ytqpt","primary-text":"offline__primary-text___zoQ88",primaryText:"offline__primary-text___zoQ88","secondary-text":"offline__secondary-text___yD0kY",secondaryText:"offline__secondary-text___yD0kY",offlineIcon:"offline__offlineIcon___csBzE"};const l=a},3476:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var p=[].concat(e[c]);r&&a[p[0]]||(void 0!==i&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=i),n&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=n):p[2]=n),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),t.push(p))}},t}},559:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([i]).join("\n")}return[t].join("\n")}},3708:(e,t,n)=>{"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var l={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},s={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(e){var t=e.re=n(2596)(e.__opts__),r=e.__tlds__.slice();function l(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(l(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(l(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(l(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(l(t.tpl_host_fuzzy_test),"i");var s=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===o(n))return"[object RegExp]"!==o(n.validate)?i(n.validate)?r.validate=n.validate:c(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(i(n.normalize)?r.normalize=n.normalize:n.normalize?c(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(n)?c(t,n):s.push(t)}})),s.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var p=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+p+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function u(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function _(e,t){var n=new u(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,t){if(!(this instanceof d))return new d(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||l.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},l,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},s,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},p(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},d.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,l,s;if(this.re.schema_test.test(e))for((l=this.re.schema_search).lastIndex=0;null!==(t=l.exec(e));)if(o=this.testSchemaAt(e,t[2],l.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(_(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(_(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,_(this,0)):null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),p(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d},2596:(e,t,n)=>{"use strict";e.exports=function(e){var t={};return e=e||{},t.src_Any=n(8287).source,t.src_Cc=n(699).source,t.src_Z=n(9338).source,t.src_P=n(6924).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},7538:(e,t,n)=>{var r=n(1892),o=n(6298);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},7998:(e,t,n)=>{var r=n(1892),o=n(2707);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3278:(e,t,n)=>{var r=n(1892),o=n(6469);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},6502:(e,t,n)=>{var r=n(1892),o=n(5588);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},9480:(e,t,n)=>{var r=n(1892),o=n(9882);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},4367:(e,t,n)=>{var r=n(1892),o=n(1355);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},4022:(e,t,n)=>{var r=n(1892),o=n(8931);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},181:(e,t,n)=>{var r=n(1892),o=n(9318);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},5579:(e,t,n)=>{var r=n(1892),o=n(3346);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},8594:(e,t,n)=>{var r=n(1892),o=n(4577);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},5941:(e,t,n)=>{var r=n(1892),o=n(7903);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},7283:(e,t,n)=>{var r=n(1892),o=n(1326);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},9157:(e,t,n)=>{var r=n(1892),o=n(5604);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},1892:(e,t,n)=>{"use strict";var r,o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function a(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var l=e[o],s=t.base?l[0]+t.base:l[0],c=n[s]||0,p="".concat(s," ").concat(c);n[s]=c+1;var u=a(p),_={css:l[1],media:l[2],sourceMap:l[3]};-1!==u?(i[u].references++,i[u].updater(_)):i.push({identifier:p,updater:f(_,t),references:1}),r.push(p)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,p=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function u(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=p(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function _(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var d=null,h=0;function f(e,t){var n,r,o;if(t.singleton){var i=h++;n=d||(d=s(t)),r=u.bind(null,n,i,!1),o=u.bind(null,n,i,!0)}else n=s(t),r=_.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=a(n[r]);i[o].references--}for(var s=l(e,t),c=0;c<n.length;c++){var p=a(n[c]);0===i[p].references&&(i[p].updater(),i.splice(p,1))}n=s}}}},7729:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4496),t)},1455:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.LiveTagView=void 0;var a=n(4522),l=n(8594),s=n(573),c=KalturaPlayer.ui.preacti18n,p=c.withText,u=c.Text,_={live:(0,a.h)(u,{id:"kalturaLive.live"},"Live"),offline:(0,a.h)(u,{id:"kalturaLive.offline"},"Offline"),preview:(0,a.h)(u,{id:"kalturaLive.preview"},"Preview")},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e){return(0,a.h)(s.A11yWrapper,{onClick:function(){return e.seekToLiveEdge()}},(0,a.h)("div",{"aria-live":"polite","data-testid":"kaltura-live_liveTag",tabIndex:0,className:[l.liveTag,e.getStyles(),e.behindLiveEdge?l.clickable:""].join(" "),"aria-label":e.liveTagState},e[e.liveTagState]))},i([p(_)],t)}(a.Component);t.LiveTagView=d},4496:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.LiveTag=t.LiveTagStates=void 0;var a,l=n(4522),s=n(8594),c=n(1455),p=KalturaPlayer.ui.redux.connect,u=function(e){return{currentTime:e.engine.currentTime,duration:e.engine.duration}};!function(e){e.Offline="offline",e.Live="live",e.Preview="preview"}(a=t.LiveTagStates||(t.LiveTagStates={}));var _=function(e){function t(t,n){n.player;var r=e.call(this)||this;return r.componentWillReceiveProps=function(){var e=r.context.player;r.setState({behindLiveEdge:e.paused||e.isDvr&&!e.isOnLiveEdge()})},r.updateLiveTagState=function(e){r.setState({liveTagState:e})},r._seekToLiveEdge=function(){r.context.player.isOnLiveEdge()||(r.context.player.seekToLiveEdge(),r.context.player.paused&&r.context.player.play())},r._getStyles=function(){var e=r.state,t=e.behindLiveEdge,n=e.liveTagState;return t||n!==a.Live?t||n!==a.Preview?s.nonEdge:s.previewEdge:s.liveEdge},r.state={liveTagState:t.liveTagState,behindLiveEdge:!1},r}return o(t,e),t.prototype.shouldComponentUpdate=function(e,t){return t.liveTagState!==this.state.liveTagState||t.behindLiveEdge!==this.state.behindLiveEdge},t.prototype.render=function(){var e=this.state,t=e.behindLiveEdge,n=e.liveTagState;return(0,l.h)(c.LiveTagView,{behindLiveEdge:t,liveTagState:n,seekToLiveEdge:this._seekToLiveEdge,getStyles:this._getStyles})},i([p(u,null,null,{forwardRef:!0})],t)}(l.Component);t.LiveTag=_},1157:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1884),t)},1884:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.NoLongerLive=void 0;var a=n(4522),l=n(7858),s=n(8430),c=n(5941),p=KalturaPlayer.ui.preacti18n,u=p.withText,_=p.Text,d={noLongerLive:(0,a.h)(_,{id:"kalturaLive.no_longer_live"},"Broadcast is no longer live")},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e){return(0,a.h)("div",{className:c.noLongerLiveWrapper,role:"banner","data-testid":"kaltura-live_noLongerLiveSlate"},(0,a.h)("div",{className:c.iconWrapper,"aria-hidden":"true"},(0,a.h)("div",{className:c.noLongerLiveIcon},(0,a.h)(l.NoLongerLiveBigIcon,{className:c.noLongerLiveBigIcon}),(0,a.h)(s.NoLongerLiveSmallIcon,{className:c.noLongerLiveSmallIcon}))),(0,a.h)("div",{className:c.textWrapper,role:"contentinfo"},(0,a.h)("p",{className:c.primaryText},e.noLongerLive)))},i([u(d)],t)}(a.Component);t.NoLongerLive=h},7858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLongerLiveBigIcon=void 0;var r=n(4522);t.NoLongerLiveBigIcon=function(e){var t=e.className;return(0,r.h)("svg",{width:"250px",height:"359px",viewBox:"0 0 250 359",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",className:t},(0,r.h)("defs",null,(0,r.h)("path",{d:"M25.9391087,0.918168168 C11.890621,0.918168168 0.502071616,12.2930875 0.502071616,26.3247616 L0.502071616,111.511575 C0.502071616,125.543249 11.890621,136.918168 25.9391087,136.918168 L177.065035,136.918168 C191.113522,136.918168 202.502072,125.543249 202.502072,111.511575 L202.502072,26.3247616 C202.502072,12.2930875 191.113522,0.918168168 177.065035,0.918168168 L25.9391087,0.918168168 Z",id:"path-1"})),(0,r.h)("g",{id:"IL/-Offline-after-start-big",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("rect",{id:"Rectangle",x:"0",y:"0",width:"250",height:"359",rx:"2"}),(0,r.h)("g",{id:"Group-4"},(0,r.h)("g",{id:"il"},(0,r.h)("g",{id:"Group-3",transform:"translate(15.000000, 43.000000)"},(0,r.h)("path",{d:"M85.5283423,7.7056465 L60.4232506,53.220168 C59.1301136,53.1198587 57.7999825,53.0675676 56.442446,53.0675676 C56.2595965,53.0675676 56.0772442,53.0685162 55.8954125,53.0704031 L83.2256547,6.0324234 C83.296938,5.90974187 83.3841167,5.80204186 83.4830694,5.71041544 C83.8968409,6.60034258 84.6265808,7.31262974 85.5283423,7.7056465 Z",id:"Combined-Shape",fill:"#01ACCD"}),(0,r.h)("path",{d:"M30.7676283,22.3966036 L48.5487503,53.6856161 C47.158705,53.9113575 45.8311299,54.195013 44.5807227,54.5300325 L28.3916625,24.0129105 C29.3698949,23.7812872 30.2101182,23.194434 30.7676283,22.3966036 Z",id:"Combined-Shape",fill:"#01ACCD"}),(0,r.h)("ellipse",{id:"Oval",fill:"#01ACCD",opacity:"0.24",cx:"87.1423358",cy:"4.02027027",rx:"4.03284672",ry:"4.02027027"}),(0,r.h)("ellipse",{id:"Oval-Copy-2",fill:"#01ACCD",opacity:"0.24",cx:"27.4562044",cy:"20.1013514",rx:"4.03284672",ry:"4.02027027"}),(0,r.h)("path",{d:"M56.442446,53.0675676 C68.5780736,53.0675676 78.5236314,57.2463512 79.4292038,62.5512452 L33.4556883,62.5512452 C34.3612607,57.2463512 44.3068185,53.0675676 56.442446,53.0675676 Z",id:"Combined-Shape",fill:"#01ACCD",opacity:"0.24"}),(0,r.h)("g",{id:"Group-2",transform:"translate(0.000000, 62.067568)",fill:"#01ACCD"},(0,r.h)("path",{d:"M202.196951,150.003347 C202.196951,153.934861 199.073572,157.136871 195.17281,157.263379 L194.933037,157.267261 L182.474993,157.266432 L183.999375,170.932746 C184.210203,172.822785 182.907307,174.548125 181.031728,174.862607 C179.138812,175.179996 177.316639,174.000124 176.831703,172.143055 L173.02713,157.573398 C173.000496,157.471401 172.977462,157.36931 172.957951,157.26726 L47.2928576,157.26726 L47.2609388,157.420349 L47.2609388,157.420349 L47.2236778,157.573398 L43.4191052,172.143055 C42.934169,174.000124 41.1119966,175.179996 39.2190802,174.862607 C37.4081762,174.55897 36.1311407,172.940097 36.2349843,171.127629 L36.251433,170.932746 L37.7749928,157.266432 L29.5229076,157.267261 C25.5913932,157.267261 22.3893833,154.143882 22.2628755,150.24312 L22.2589928,150.003347 C22.2589928,149.866138 22.262797,149.729818 22.2703058,149.594486 C24.8002349,150.27801 27.4616145,150.642527 30.2086331,150.642527 L30.2086331,150.642527 L190.791367,150.642527 C194.766588,150.642527 198.562472,149.879189 202.038798,148.491912 C202.142627,148.979042 202.196951,149.48485 202.196951,150.003347 Z",id:"Combined-Shape",opacity:"0.24"}),(0,r.h)("path",{d:"M30.2086331,0.483714484 L190.791367,0.483714484 C207.475134,0.483714484 221,13.9293926 221,30.515477 L221,120.610765 C221,137.196849 207.475134,150.642527 190.791367,150.642527 L30.2086331,150.642527 C13.5248657,150.642527 0,137.196849 0,120.610765 L0,30.515477 C0,13.9293926 13.5248657,0.483714484 30.2086331,0.483714484 Z",id:"Combined-Shape",opacity:"0.498628162"})),(0,r.h)("g",{id:"Group",transform:"translate(8.000000, 68.000000)"},(0,r.h)("g",{id:"Group-8",transform:"translate(0.997928, 0.712520)"},(0,r.h)("mask",{id:"mask-2",fill:"white"},(0,r.h)("use",{xlinkHref:"#path-1"})),(0,r.h)("use",{id:"Path",fill:"#222222","fill-rule":"nonzero",xlinkHref:"#path-1"}),(0,r.h)("g",{id:"Group",opacity:"0.326334635",mask:"url(#mask-2)"},(0,r.h)("g",{transform:"translate(-6.806719, -3.712520)"},(0,r.h)("rect",{id:"Rectangle",fill:"#333333",x:"118.808791",y:"0",width:"25",height:"145"}),(0,r.h)("rect",{id:"Rectangle-Copy-18",fill:"#37616A",x:"143.808791",y:"0",width:"24",height:"145"}),(0,r.h)("rect",{id:"Rectangle-Copy-13",fill:"#37616A",x:"94.8087909",y:"0",width:"24",height:"145"}),(0,r.h)("rect",{id:"Rectangle-Copy-13",fill:"#37616A",x:"191.808791",y:"0",width:"24",height:"145"}),(0,r.h)("rect",{id:"Rectangle-Copy-14",fill:"#333333",x:"70.8087909",y:"0",width:"24",height:"145"}),(0,r.h)("rect",{id:"Rectangle-Copy-14",fill:"#333333",x:"167.808791",y:"0",width:"24",height:"145"}),(0,r.h)("rect",{id:"Rectangle-Copy-15",fill:"#37616A",x:"47.8087909",y:"0",width:"25",height:"145"}),(0,r.h)("rect",{id:"Rectangle-Copy-16",fill:"#333333",x:"23.8087909",y:"0",width:"24",height:"145"}),(0,r.h)("rect",{id:"Rectangle-Copy-17",fill:"#37616A",x:"0.80879086",y:"0",width:"24",height:"145"})))))),(0,r.h)("g",{id:"Oval-Copy-5",opacity:"0.3",transform:"translate(64.000000, 28.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M5.18820862,10.4478764 C8.05357711,10.4478764 10.3764172,8.10903964 10.3764172,5.22393822 C10.3764172,2.33883681 8.05357711,-5.32907052e-15 5.18820862,-5.32907052e-15 C2.32284012,-5.32907052e-15 1.07647224e-12,2.33883681 1.07647224e-12,5.22393822 C1.07647224e-12,8.10903964 2.32284012,10.4478764 5.18820862,10.4478764 Z M5.18820862,7.30501931 C4.06343897,7.30501931 3.14285714,6.37809771 3.14285714,5.22393822 C3.14285714,4.06977874 4.06343897,3.14285714 5.18820862,3.14285714 C6.31297826,3.14285714 7.23356009,4.06977874 7.23356009,5.22393822 C7.23356009,6.37809771 6.31297826,7.30501931 5.18820862,7.30501931 Z",id:"Oval-Copy-3"})),(0,r.h)("g",{id:"Path-Copy-4",opacity:"0.9",transform:"translate(152.000000, 76.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path-Copy-2",points:"8.25 4.0625 12 4.0625 12 8.9375 8.25 8.9375 8.25 13 3.75 13 3.75 8.9375 0 8.9375 0 4.0625 3.75 4.0625 3.75 0 8.25 0"})),(0,r.h)("g",{id:"Oval-2",opacity:"0.5",transform:"translate(195.000000, 34.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M5.18820862,10.4478764 C8.05357711,10.4478764 10.3764172,8.10903964 10.3764172,5.22393822 C10.3764172,2.33883681 8.05357711,0 5.18820862,0 C2.32284012,0 1.08002496e-12,2.33883681 1.08002496e-12,5.22393822 C1.08002496e-12,8.10903964 2.32284012,10.4478764 5.18820862,10.4478764 Z M5.18820862,7.30501931 C4.06343897,7.30501931 3.14285714,6.37809771 3.14285714,5.22393822 C3.14285714,4.06977874 4.06343897,3.14285714 5.18820862,3.14285714 C6.31297826,3.14285714 7.23356009,4.06977874 7.23356009,5.22393822 C7.23356009,6.37809771 6.31297826,7.30501931 5.18820862,7.30501931 Z",id:"Oval"})),(0,r.h)("g",{id:"Oval-Copy-4",opacity:"0.8",transform:"translate(0.000000, 77.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M5.18820862,10.4478764 C8.05357711,10.4478764 10.3764172,8.10903964 10.3764172,5.22393822 C10.3764172,2.33883681 8.05357711,1.42108547e-14 5.18820862,1.42108547e-14 C2.32284012,1.42108547e-14 1.08002496e-12,2.33883681 1.08002496e-12,5.22393822 C1.08002496e-12,8.10903964 2.32284012,10.4478764 5.18820862,10.4478764 Z M5.18820862,7.30501931 C4.06343897,7.30501931 3.14285714,6.37809771 3.14285714,5.22393822 C3.14285714,4.06977874 4.06343897,3.14285714 5.18820862,3.14285714 C6.31297826,3.14285714 7.23356009,4.06977874 7.23356009,5.22393822 C7.23356009,6.37809771 6.31297826,7.30501931 5.18820862,7.30501931 Z",id:"Oval-Copy"})),(0,r.h)("g",{id:"Path-Copy-3",opacity:"0.3",transform:"translate(238.000000, 96.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path-Copy",points:"8.25 4.0625 12 4.0625 12 8.9375 8.25 8.9375 8.25 13 3.75 13 3.75 8.9375 0 8.9375 0 4.0625 3.75 4.0625 3.75 0 8.25 0"})),(0,r.h)("g",{id:"Path-2",opacity:"0.4",transform:"translate(129.000000, 0.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path",points:"8.25 4.0625 12 4.0625 12 8.9375 8.25 8.9375 8.25 13 3.75 13 3.75 8.9375 0 8.9375 0 4.0625 3.75 4.0625 3.75 0 8.25 0"}))))))}},8430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLongerLiveSmallIcon=void 0;var r=n(4522);t.NoLongerLiveSmallIcon=function(e){var t=e.className;return(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"181px",height:"260px",viewBox:"0 0 181 260",version:"1.1","aria-hidden":"true",className:t},(0,r.h)("defs",null,(0,r.h)("path",{d:"M21.2344664,0.751463722 C9.73398877,0.751463722 0.411009607,10.06113 0.411009607,21.5451853 L0.411009607,91.2653106 C0.411009607,102.749366 9.73398877,112.059032 21.2344664,112.059032 L144.950298,112.059032 C156.450776,112.059032 165.773755,102.749366 165.773755,91.2653106 L165.773755,21.5451853 C165.773755,10.06113 156.450776,0.751463722 144.950298,0.751463722 L21.2344664,0.751463722 Z",id:"path-1"})),(0,r.h)("g",{id:"IL/-Offline-after-start-small",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("rect",{id:"Rectangle",x:"0",y:"0",width:"181",height:"260",rx:"2"}),(0,r.h)("g",{id:"Group-3",transform:"translate(0.000000, 19.000000)"},(0,r.h)("path",{d:"M69.9988,5.63736901 L49.6677831,43.0000245 C48.6205871,42.9176895 47.5434349,42.8747684 46.4440907,42.8747684 C46.2959299,42.8747684 46.1481721,42.875548 46.0008364,42.8770986 L68.138183,4.2574711 C68.1946129,4.15902873 68.2637694,4.0724413 68.3423903,3.99859375 C68.6779601,4.73013157 69.2687467,5.31471699 69.9988,5.63736901 Z",id:"Combined-Shape",fill:"#01ACCD"}),(0,r.h)("path",{d:"M25.0043027,18.0003176 L40.0001996,43.3169034 C38.8285237,43.4994734 37.7094782,43.7288477 36.6554381,43.9997358 L23.0000499,19.3081248 C23.8252385,19.1207826 24.5340195,18.6459264 25.0043027,18.0003176 Z",id:"Combined-Shape",fill:"#01ACCD"}),(0,r.h)("circle",{id:"Oval",fill:"#01ACCD",opacity:"0.24",cx:"71",cy:"3",r:"3"}),(0,r.h)("circle",{id:"Oval-Copy-2",fill:"#01ACCD",opacity:"0.24",cx:"22",cy:"17",r:"3"}),(0,r.h)("path",{d:"M47,43 C57.030485,43 65.2508713,46.0841005 65.9998839,49.9993926 L28.0001161,49.9993926 C28.7491287,46.0841005 36.969515,43 47,43 Z",id:"Combined-Shape",fill:"#01ACCD",opacity:"0.24"}),(0,r.h)("g",{id:"Group-2",transform:"translate(0.000000, 50.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M165.370002,121.226481 C165.370002,124.407746 162.849689,127.00036 159.696824,127.116563 L159.475854,127.120629 L149.217,127.120333 L150.463345,138.184681 C150.637441,139.730986 149.570627,141.142993 148.035589,141.397995 C146.483738,141.65579 144.990732,140.689873 144.589801,139.168705 L141.488709,127.402888 C141.463929,127.30887 141.442904,127.214746 141.425541,127.120674 L38.5004357,127.120674 L38.4716334,127.261801 L38.4716334,127.261801 L38.437268,127.402888 L35.3361758,139.168705 C34.9352447,140.689873 33.4422385,141.65579 31.8903884,141.397995 C30.4122035,141.152438 29.3682012,139.833992 29.448355,138.355888 L29.4626316,138.184681 L30.708,127.120333 L23.894148,127.120629 C20.7128828,127.120629 18.1202684,124.600316 18.0040655,121.447451 L18,121.226481 C18,121.115 18.003095,121.004241 18.0092037,120.894287 C20.0812336,121.449343 22.2609423,121.74513 24.5107914,121.74513 L24.5107914,121.74513 L156.028777,121.74513 C159.284558,121.74513 162.393456,121.125714 165.240624,120 C165.32591,120.395223 165.370002,120.805703 165.370002,121.226481 Z",id:"Combined-Shape",opacity:"0.24"}),(0,r.h)("path",{d:"M24.7410072,1.16573418e-15 L156.258993,1.16573418e-15 C169.923074,1.16573418e-15 181,10.9102074 181,24.3686302 L181,97.4745207 C181,110.932943 169.923074,121.843151 156.258993,121.843151 L24.7410072,121.843151 C11.0769262,121.843151 0,110.932943 0,97.4745207 L0,24.3686302 C0,10.9102074 11.0769262,1.16573418e-15 24.7410072,1.16573418e-15 Z",id:"Combined-Shape",opacity:"0.498628162"})),(0,r.h)("g",{id:"Group",transform:"translate(6.000000, 54.000000)"},(0,r.h)("g",{id:"Group-8",transform:"scale(0.825) translate(0.816932, 0.583154)"},(0,r.h)("mask",{id:"mask-2",fill:"white"},(0,r.h)("use",{xlinkHref:"#path-1"})),(0,r.h)("use",{id:"Path",fill:"#222222","fill-rule":"nonzero",xlinkHref:"#path-1"}),(0,r.h)("g",{id:"Group",opacity:"0.326334635",mask:"url(#mask-2)",transform:"scale(1.15) translate(5.5, 5)"},(0,r.h)("g",{transform:"translate(-5.572167, -3.038468)"},(0,r.h)("rect",{id:"Rectangle",fill:"#333333",x:"97.2601376",y:"0",width:"20.4656863",height:"118.67351"}),(0,r.h)("rect",{id:"Rectangle-Copy-18",fill:"#37616A",x:"117.725824",y:"0",width:"19.6470588",height:"118.67351"}),(0,r.h)("rect",{id:"Rectangle-Copy-13",fill:"#37616A",x:"77.6130788",y:"0",width:"19.6470588",height:"118.67351"}),(0,r.h)("rect",{id:"Rectangle-Copy-13",fill:"#37616A",x:"157.019942",y:"0",width:"19.6470588",height:"118.67351"}),(0,r.h)("rect",{id:"Rectangle-Copy-14",fill:"#333333",x:"57.96602",y:"0",width:"19.6470588",height:"118.67351"}),(0,r.h)("rect",{id:"Rectangle-Copy-14",fill:"#333333",x:"137.372883",y:"0",width:"19.6470588",height:"118.67351"}),(0,r.h)("rect",{id:"Rectangle-Copy-15",fill:"#37616A",x:"39.1375886",y:"0",width:"20.4656863",height:"118.67351"}),(0,r.h)("rect",{id:"Rectangle-Copy-16",fill:"#333333",x:"19.4905298",y:"0",width:"19.6470588",height:"118.67351"}),(0,r.h)("rect",{id:"Rectangle-Copy-17",fill:"#37616A",x:"0.6620984",y:"0",width:"19.6470588",height:"118.67351"}))))))))}},4240:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2315),t)},2315:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.OfflineSlate=t.OfflineTypes=void 0;var a,l=n(4522),s=n(6970),c=n(1157),p=n(7283);!function(e){e.None="None",e.Offline="Offline",e.HttpError="HttpError",e.NoLongerLive="NoLongerLive"}(a=t.OfflineTypes||(t.OfflineTypes={}));var u="has-live-plugin-overlay",_=KalturaPlayer.ui,d=_.redux.connect,h=_.reducers,f=h.shell,A=h.loading,C=function(e){return{addPlayerClass:function(){return e(f.actions.addPlayerClass(u))},removePlayerClass:function(){return e(f.actions.removePlayerClass(u))},removeSpinner:function(){return e(A.actions.updateLoadingSpinnerState(!1))}}},g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._offlineWrapperRef=null,t.state={type:a.None},t.manageOfflineSlate=function(e){e!==t.state.type&&t.setState({type:e})},t._renderSlate=function(){return t.state.type===a.None?null:t.state.type===a.NoLongerLive?(0,l.h)(c.NoLongerLive,null):(0,l.h)(s.Offline,{httpError:t.state.type===a.HttpError})},t._handleFocusChange=function(e){var n,r=t.props.getGuiAreaNode();(null==r?void 0:r.contains(e.target))&&(null===(n=t._offlineWrapperRef)||void 0===n||n.focus())},t}return o(t,e),t.prototype.componentWillUnmount=function(){this.props.removePlayerClass(),document.removeEventListener("focusin",this._handleFocusChange,!0)},t.prototype.componentDidUpdate=function(e,t){var n;t.type!==this.state.type&&(this.state.type!==a.None?(this.props.addPlayerClass(),this.props.removeSpinner(),null===(n=this._offlineWrapperRef)||void 0===n||n.focus(),document.addEventListener("focusin",this._handleFocusChange,!0)):(this.props.removePlayerClass(),document.removeEventListener("focusin",this._handleFocusChange,!0)))},t.prototype.render=function(){var e=this;return(0,l.h)("div",{"aria-live":"polite",tabIndex:-1,ref:function(t){e._offlineWrapperRef=t},"data-testid":"kaltura-live_offlineWrapper",className:[p.slateWrapper,this.state.type!==a.None?p.active:""].join(" ")},this._renderSlate())},i([d(null,C,null,{forwardRef:!0})],t)}(l.Component);t.OfflineSlate=g},6970:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4422),t)},3799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkIssueIcon=void 0;var r=n(4522);t.NetworkIssueIcon=function(){return(0,r.h)("svg",{"aria-hidden":"true",width:"184px",height:"184px",viewBox:"0 0 184 184",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},(0,r.h)("g",{id:"IL/-Error",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("circle",{id:"Oval",fill:"#333333",cx:"92",cy:"92",r:"92"}),(0,r.h)("path",{d:"M86.8445942,41 C98.1281098,41 107.894768,46.3707345 112.610486,54.1896075 L112.772795,54.4651697 C121.905986,54.9935965 129.089492,60.510023 129.089492,67.2372881 C129.089492,67.4828605 129.07992,67.7268193 129.06103,67.9689809 C143.527428,69.1244669 154.803778,78.4637688 154.803778,89.8135593 C154.803778,101.945102 141.920543,111.779661 126.028268,111.779661 C122.218304,111.779661 118.581281,111.214432 115.253251,110.187831 C110.482744,111.936312 104.172429,113 97.2527575,113 C90.6076765,113 84.5245506,112.019057 79.8270144,110.392971 C76.2815407,111.290993 72.4601472,111.779661 68.4772473,111.779661 C49.8799037,111.779661 34.8037779,101.125556 34.8037779,87.9830508 C34.8037779,77.4055553 44.569383,68.439928 58.0766538,65.3432099 C58.0715743,65.1615713 58.069084,64.9793312 58.069084,64.7966102 C58.069084,51.6541053 70.9523188,41 86.8445942,41 Z",id:"Combined-Shape",fill:"#1A7080"}),(0,r.h)("path",{d:"M83.1492849,135.070223 C82.1325765,138.189187 86.1421275,140.443183 88.278329,137.95355 L112.039401,110.261242 C113.708897,108.315531 112.326427,105.307692 109.76264,105.307692 L102.55417,105.307692 L108.530391,92.2483573 C109.439682,90.2613598 107.987631,88 105.802461,88 L90.6745782,88 C89.4360625,88 88.3248534,88.7610908 87.8773011,89.9159147 L79.0065008,112.805338 C78.2445332,114.771451 79.6951774,116.889423 81.8037779,116.889423 L89.0757959,116.889423 L83.1492849,135.070223 Z",id:"Path-8",fill:"#333333","fill-rule":"nonzero"}),(0,r.h)("polygon",{id:"Path-8",fill:"#999999",points:"90.6745782 91 81.8037779 113.889423 93.2090926 113.889423 86.0015674 136 109.76264 108.307692 97.8821035 108.307692 105.802461 91"}),(0,r.h)("polygon",{id:"Path-8",fill:"#01ACCD",opacity:"0.5",points:"90.6745782 91 81.8037779 113.889423 93.2090926 113.889423 86.0015674 136 109.76264 108.307692 97.8821035 108.307692 105.802461 91"}),(0,r.h)("path",{d:"M86.9135883,41 C90.3885178,41 93.7197752,41.5049061 96.8044095,42.4302153 C80.0521708,44.2102049 67.0736479,56.714855 67.0736479,71.8761372 C67.0736479,72.1038764 67.0765763,72.331016 67.0824019,72.557529 C51.5088979,76.3414085 40.1641521,87.1546035 39.7216459,99.9991784 C36.6015945,96.4151247 34.8037779,92.202078 34.8037779,87.6945045 C34.8037779,77.1820037 44.5822685,68.2714617 58.1073807,65.1937351 C58.1024214,65.013137 58.0999284,64.8320391 58.0999284,64.6504633 C58.0999284,51.5886731 71.0002433,41 86.9135883,41 Z",id:"Combined-Shape",fill:"#222222",opacity:"0.3"}),(0,r.h)("path",{d:"M90.8028945,22 L90.8028945,29.0476864 C90.8028945,29.5999712 91.2506097,30.0476864 91.8028945,30.0476864 C92.3551792,30.0476864 92.8028945,29.5999712 92.8028945,29.0476864 L92.8028945,22 C92.8028945,21.4477153 92.3551792,21 91.8028945,21 C91.2506097,21 90.8028945,21.4477153 90.8028945,22 Z M126.112197,30.8515352 L121.582032,36.2503762 C121.22703,36.6734508 121.282214,37.3042064 121.705288,37.6592082 C122.128363,38.01421 122.759119,37.9590261 123.114121,37.5359514 L127.644286,32.1371104 C127.999288,31.7140357 127.944104,31.0832801 127.521029,30.7282783 C127.097955,30.3732765 126.467199,30.4284605 126.112197,30.8515352 Z M152.431974,58.6783398 L145.491357,59.9021577 C144.947463,59.9980609 144.584295,60.5167193 144.680198,61.0606136 C144.776101,61.6045079 145.294759,61.9676764 145.838654,61.8717732 L152.77927,60.6479553 C153.323164,60.552052 153.686333,60.0333936 153.59043,59.4894993 C153.494526,58.945605 152.975868,58.5824365 152.431974,58.6783398 Z M30.826519,60.6479553 L37.7671352,61.8717732 C38.3110295,61.9676764 38.8296879,61.6045079 38.9255912,61.0606136 C39.0214944,60.5167193 38.6583259,59.9980609 38.1144316,59.9021577 L31.1738154,58.6783398 C30.6299211,58.5824365 30.1112627,58.945605 30.0153594,59.4894993 C29.9194562,60.0333936 30.2826247,60.552052 30.826519,60.6479553 Z M55.9615029,32.1371104 L60.4916684,37.5359514 C60.8466702,37.9590261 61.4774258,38.01421 61.9005005,37.6592082 C62.3235751,37.3042064 62.3787591,36.6734508 62.0237573,36.2503762 L57.4935918,30.8515352 C57.13859,30.4284605 56.5078344,30.3732765 56.0847597,30.7282783 C55.6616851,31.0832801 55.6065011,31.7140357 55.9615029,32.1371104 Z",id:"Path-9",fill:"#01ACCD","fill-rule":"nonzero",opacity:"0.5"}),(0,r.h)("g",{id:"Oval-Copy-5",opacity:"0.3",transform:"translate(80.000000, 166.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,-5.32907052e-15 3.3015873,-5.32907052e-15 C1.47817098,-5.32907052e-15 1.07647224e-12,1.4883507 1.07647224e-12,3.32432432 C1.07647224e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval-Copy-3"})),(0,r.h)("g",{id:"Path-Copy-4",opacity:"0.9",transform:"translate(100.000000, 146.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path-Copy-2",points:"5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0"})),(0,r.h)("g",{id:"Oval-2",opacity:"0.5",transform:"translate(39.000000, 115.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,0 3.3015873,0 C1.47817098,0 1.08002496e-12,1.4883507 1.08002496e-12,3.32432432 C1.08002496e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval"})),(0,r.h)("g",{id:"Oval-Copy-4",opacity:"0.8",transform:"translate(60.000000, 139.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,1.42108547e-14 3.3015873,1.42108547e-14 C1.47817098,1.42108547e-14 1.08002496e-12,1.4883507 1.08002496e-12,3.32432432 C1.08002496e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval-Copy"})),(0,r.h)("g",{id:"Path-Copy-3",opacity:"0.3",transform:"translate(31.000000, 142.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path-Copy",points:"5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0"})),(0,r.h)("g",{id:"Oval-Copy-6",opacity:"0.6",transform:"translate(139.000000, 139.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,0 3.3015873,0 C1.47817098,0 1.08713039e-12,1.4883507 1.08713039e-12,3.32432432 C1.08713039e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval-Copy-2"})),(0,r.h)("g",{id:"Path-2",opacity:"0.4",transform:"translate(122.000000, 122.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path",points:"5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0"}))))}},2768:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OfflineIcon=void 0;var r=n(4522);t.OfflineIcon=function(){return(0,r.h)("svg",{"aria-hidden":"true",width:"184px",height:"184px",viewBox:"0 0 184 184",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},(0,r.h)("defs",null,(0,r.h)("rect",{id:"path-1",x:"0",y:"0",width:"90.964193",height:"77.2579884",rx:"11"}),(0,r.h)("path",{d:"M90.964193,11 L90.964193,66.2579884 C90.964193,72.3331207 86.0393252,77.2579884 79.964193,77.2579884 L11,77.2579884 C4.92486775,77.2579884 -2.94629772e-14,72.3331207 -3.19833136e-14,66.2579884 L-0.00182368272,59.6097609 C13.5778025,58.167151 28.8400511,53.7461034 44.0147687,46.3056632 C64.8307234,36.0988176 81.2945479,22.2634892 90.6759762,8.48456734 C90.8641812,9.29189274 90.964193,10.1342669 90.964193,11 Z",id:"path-3"}),(0,r.h)("rect",{id:"path-5",x:"0",y:"0",width:"90.964193",height:"77.2579884",rx:"11"})),(0,r.h)("g",{id:"IL/-Offline",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("circle",{id:"Oval",fill:"#333333",cx:"92",cy:"92",r:"92"}),(0,r.h)("g",{id:"Group-3",transform:"translate(24.000000, 36.000000)"},(0,r.h)("path",{d:"M35.6517277,35.5524745 L54.0726779,3.75010548 C54.3106243,3.33930919 54.8365341,3.19918663 55.2473304,3.437133 C55.2494193,3.43834291 55.251503,3.43956162 55.2535815,3.44078908 C55.6694709,3.6863879 55.8150437,4.21794092 55.5823219,4.64117051 L37.8657726,36.8606115 C37.530216,37.470857 36.7634918,37.6935365 36.1532463,37.3579799 C36.1419427,37.3517644 36.1307352,37.3453758 36.1196277,37.3388164 C35.4997544,36.9727572 35.2909037,36.1754097 35.6517277,35.5524745 Z",id:"Rectangle-Copy-11",fill:"#4DA2B2"}),(0,r.h)("path",{d:"M32.2082846,37.8657542 L19.3998876,13.6458303 C19.1752326,13.2210209 19.3201646,12.6947384 19.730628,12.4448332 C20.1216314,12.206776 20.6315858,12.3307633 20.8696431,12.7217667 C20.8741679,12.7291986 20.8785754,12.7367012 20.8828639,12.7442719 L34.3675881,36.5490926 C34.7200351,37.1712734 34.5148331,37.9608878 33.904058,38.3327502 C33.3343068,38.6796357 32.591226,38.4989673 32.2443405,37.9292161 C32.2316853,37.9084302 32.2196612,37.8872666 32.2082846,37.8657542 Z",id:"Rectangle-Copy-11",fill:"#4DA2B2"}),(0,r.h)("g",{id:"Group-2",transform:"translate(0.000000, 33.000000)"},(0,r.h)("path",{d:"M34.9892086,0 C42.5123344,0 48.6777665,2.59866461 49.2389484,5.89759055 L118.273381,5.8974359 C128.615807,5.8974359 137,14.2586139 137,24.5726496 L137,80.5982906 C137,88.4553951 132.134482,95.1792166 125.244241,97.9367593 C125.310086,98.2395902 125.343811,98.5538719 125.343811,98.8760306 C125.343811,101.299455 123.435369,103.277138 121.039394,103.38817 L120.826755,103.393087 L113.118,103.392436 L114.063659,111.897226 C114.193992,113.069299 113.38625,114.139125 112.223288,114.334731 C111.050245,114.532032 109.920822,113.800519 109.621158,112.649363 L107.258904,103.574784 C107.243159,103.5143 107.229454,103.453765 107.217744,103.39325 L29.3178248,103.39325 L29.3158657,103.403281 L29.2766645,103.574784 L26.9144106,112.649363 C26.6147467,113.800519 25.4853242,114.532032 24.3122805,114.334731 C23.202181,114.148016 22.4157417,113.16475 22.4598971,112.056348 L22.47191,111.897226 L23.417,103.392436 L18.3156174,103.393087 C15.8921933,103.393087 13.9145099,101.484644 13.8034777,99.0886692 L13.7985612,98.8760306 C13.7985612,98.7908374 13.8009196,98.7061951 13.8055748,98.6221653 C5.85090063,96.4676365 0,89.2143635 0,80.5982906 L0,24.5726496 C0,14.2586139 8.38419278,5.8974359 18.7266187,5.8974359 L20.7394688,5.89759055 C21.3006507,2.59866461 27.4660828,0 34.9892086,0 Z M118.273381,7.86324786 L47.1474988,7.8637714 C41.8482152,9.42572084 28.1307562,9.42574729 22.8311876,7.86385072 L18.7266187,7.86324786 C9.47286919,7.86324786 1.97122302,15.3443018 1.97122302,24.5726496 L1.97122302,80.5982906 C1.97122302,88.3131488 7.21403852,94.8068433 14.3403964,96.7293221 C15.0728626,95.3760463 16.475442,94.4393128 18.1029788,94.3638909 L18.3156174,94.3589744 L120.826755,94.3589744 C122.294974,94.3589744 123.599585,95.0594645 124.424614,96.144471 C130.635121,93.6999209 135.028777,87.6607939 135.028777,80.5982906 L135.028777,24.5726496 C135.028777,15.3443018 127.527131,7.86324786 118.273381,7.86324786 Z",id:"Combined-Shape",fill:"#1A7080"}),(0,r.h)("path",{d:"M18.7266187,7.86324786 C9.47286919,7.86324786 1.97122302,15.3443018 1.97122302,24.5726496 L1.97122302,80.5982906 C1.97122302,89.8266383 9.47286919,97.3076923 18.7266187,97.3076923 L118.273381,97.3076923 C127.527131,97.3076923 135.028777,89.8266383 135.028777,80.5982906 L135.028777,24.5726496 C135.028777,15.3443018 127.527131,7.86324786 118.273381,7.86324786 L18.7266187,7.86324786 Z",id:"Path",fill:"#4DA2B2","fill-rule":"nonzero"})),(0,r.h)("rect",{id:"Rectangle",stroke:"#1A7080","stroke-width":"2",fill:"#37616A",transform:"translate(117.500000, 85.000000) scale(-1, 1) translate(-117.500000, -85.000000) ",x:"108",y:"47",width:"19",height:"76",rx:"6"}),(0,r.h)("circle",{id:"Oval",fill:"#4DA2B2",cx:"117.5",cy:"59.5",r:"6.5"}),(0,r.h)("circle",{id:"Oval-Copy",fill:"#4DA2B2",cx:"117.5",cy:"78.5",r:"6.5"}),(0,r.h)("path",{d:"M111.354368,76.275373 L123.440297,76.3345845 C124.31342,76.3388621 125.020168,77.0456101 125.024446,77.9187333 C125.028669,78.7808798 124.333186,79.4832118 123.471039,79.4874356 C123.465941,79.4874606 123.460842,79.4874606 123.455743,79.4874356 L111.369814,79.4282241 C110.496691,79.4239464 109.789943,78.7171985 109.785665,77.8440753 C109.781442,76.9819288 110.476925,76.2795968 111.339072,76.275373 C111.34417,76.275348 111.349269,76.275348 111.354368,76.275373 Z",id:"Rectangle",fill:"#1A7080",transform:"translate(117.405056, 77.881404) rotate(45.000000) translate(-117.405056, -77.881404) "}),(0,r.h)("path",{d:"M111.349131,57.2075061 L123.480112,57.2588502 C124.350765,57.2625352 125.055661,57.9674167 125.059365,58.8380699 C125.063027,59.6992343 124.367885,60.4003151 123.506721,60.4039779 C123.50231,60.4039966 123.4979,60.4039967 123.493489,60.403978 L111.362508,60.3526339 C110.491855,60.3489489 109.786958,59.6440675 109.783255,58.7734142 C109.779593,57.9122499 110.474735,57.211169 111.335899,57.2075063 C111.34031,57.2074875 111.34472,57.2074875 111.349131,57.2075061 Z",id:"Rectangle-Copy-12",fill:"#1A7080",transform:"translate(117.421310, 58.805742) scale(-1, 1) rotate(60.000000) translate(-117.421310, -58.805742) "}),(0,r.h)("rect",{id:"Rectangle-Copy",fill:"#4DA2B2",x:"111",y:"92",width:"12",height:"1",rx:"0.5"}),(0,r.h)("rect",{id:"Rectangle-Copy-2",fill:"#4DA2B2",x:"111",y:"96",width:"12",height:"1",rx:"0.5"}),(0,r.h)("rect",{id:"Rectangle-Copy-4",fill:"#4DA2B2",x:"111",y:"102",width:"12",height:"1",rx:"0.5"}),(0,r.h)("rect",{id:"Rectangle-Copy-5",fill:"#4DA2B2",x:"111",y:"108",width:"12",height:"1",rx:"0.5"}),(0,r.h)("rect",{id:"Rectangle-Copy-6",fill:"#4DA2B2",x:"111",y:"113",width:"12",height:"1",rx:"0.5"}),(0,r.h)("rect",{id:"Rectangle-Copy-7",fill:"#4DA2B2",x:"111",y:"118",width:"12",height:"1",rx:"0.5"}),(0,r.h)("circle",{id:"Oval",fill:"#1A7080",cx:"56.5",cy:"2.5",r:"2.5"}),(0,r.h)("circle",{id:"Oval-Copy-2",fill:"#1A7080",cx:"19.5",cy:"12.5",r:"2.5"}),(0,r.h)("g",{id:"Group",transform:"translate(10.000000, 46.000000)"},(0,r.h)("mask",{id:"mask-2",fill:"white"},(0,r.h)("use",{xlinkHref:"#path-1"})),(0,r.h)("use",{id:"Mask",fill:"#EDF2FE",opacity:"0",xlinkHref:"#path-1"}),(0,r.h)("g",{opacity:"0.5",mask:"url(#mask-2)"},(0,r.h)("g",{transform:"translate(1.978261, 0.000000)"},(0,r.h)("rect",{id:"Rectangle",fill:"#333333",x:"62.3969599",y:"0.05113601",width:"12.741309",height:"76.6358337"}),(0,r.h)("rect",{id:"Rectangle-Copy-18",fill:"#37616A",x:"75.1382689",y:"0.05113601",width:"12.741309",height:"76.6358337"}),(0,r.h)("rect",{id:"Rectangle-Copy-13",fill:"#37616A",x:"49.6556509",y:"0.05113601",width:"12.741309",height:"76.6358337"}),(0,r.h)("rect",{id:"Rectangle-Copy-14",fill:"#333333",x:"36.9143418",y:"0.05113601",width:"12.741309",height:"76.6358337"}),(0,r.h)("rect",{id:"Rectangle-Copy-15",fill:"#37616A",x:"24.9693646",y:"0.05113601",width:"12.741309",height:"76.6358337"}),(0,r.h)("rect",{id:"Rectangle-Copy-16",fill:"#333333",x:"12.2280556",y:"0.05113601",width:"12.741309",height:"76.6358337"}),(0,r.h)("rect",{id:"Rectangle-Copy-17",fill:"#37616A",x:"2.48689958e-14",y:"-1.77635684e-13",width:"12.741309",height:"76.6358337"}))),(0,r.h)("mask",{id:"mask-4",fill:"white"},(0,r.h)("use",{xlinkHref:"#path-3"})),(0,r.h)("use",{id:"Combined-Shape",fill:"#FFFFFF",opacity:"0.08",xlinkHref:"#path-3"}),(0,r.h)("mask",{id:"mask-6",fill:"white"},(0,r.h)("use",{xlinkHref:"#path-5"})),(0,r.h)("rect",{stroke:"#1A7080","stroke-width":"2",x:"1",y:"1",width:"88.964193",height:"75.2579884",rx:"11"}))),(0,r.h)("g",{id:"Oval-Copy-5",opacity:"0.3",transform:"translate(57.000000, 23.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,-5.32907052e-15 3.3015873,-5.32907052e-15 C1.47817098,-5.32907052e-15 1.07647224e-12,1.4883507 1.07647224e-12,3.32432432 C1.07647224e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval-Copy-3"})),(0,r.h)("g",{id:"Path-Copy-4",opacity:"0.9",transform:"translate(111.000000, 52.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path-Copy-2",points:"5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0"})),(0,r.h)("g",{id:"Oval-2",opacity:"0.5",transform:"translate(138.000000, 27.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,0 3.3015873,0 C1.47817098,0 1.08002496e-12,1.4883507 1.08002496e-12,3.32432432 C1.08002496e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval"})),(0,r.h)("g",{id:"Oval-Copy-4",opacity:"0.8",transform:"translate(17.000000, 53.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,1.42108547e-14 3.3015873,1.42108547e-14 C1.47817098,1.42108547e-14 1.08002496e-12,1.4883507 1.08002496e-12,3.32432432 C1.08002496e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval-Copy"})),(0,r.h)("g",{id:"Path-Copy-3",opacity:"0.3",transform:"translate(165.000000, 65.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path-Copy",points:"5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0"})),(0,r.h)("g",{id:"Path-2",opacity:"0.4",transform:"translate(97.000000, 6.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path",points:"5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0"}))))}},4422:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.Offline=void 0;var a=n(4522),l=n(9157),s=n(2768),c=n(3799),p=KalturaPlayer.ui.preacti18n,u=p.withText,_=p.Text,d={noInternetTitle:(0,a.h)(_,{id:"kalturaLive.no_internet_title"},"No Internet Connection"),noInternetBody:(0,a.h)(_,{id:"kalturaLive.no_internet_body"},"Check your network"),offlineTitle:(0,a.h)(_,{id:"kalturaLive.offline_title"},"Currently not broadcasting"),offlineBody:(0,a.h)(_,{id:"kalturaLive.offline_body"},"Video will play once broadcasting starts"),httpProblemTitle:(0,a.h)(_,{id:"kalturaLive.http_problem_title"},"Something went wrong"),httpProblemBody:(0,a.h)(_,{id:"kalturaLive.http_problem_body"},"Try refreshing the page")},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e){return(0,a.h)("div",{className:l.offlineWrapper,role:"banner","data-testid":"kaltura-live_offlineSlate"},(0,a.h)("div",{className:l.offlineIcon,"aria-hidden":"true"},navigator.onLine?(0,a.h)(s.OfflineIcon,null):(0,a.h)(c.NetworkIssueIcon,null)),(0,a.h)("div",{role:"contentinfo"},(0,a.h)("p",{className:l.primaryText},e.httpError?navigator.onLine?e.httpProblemTitle:e.noInternetTitle:e.offlineTitle),(0,a.h)("p",{className:l.secondaryText},e.httpError?navigator.onLine?e.httpProblemBody:e.noInternetBody:e.offlineBody)))},t.defaultProps={httpError:!1},i([u(d)],t)}(a.Component);t.Offline=h},9085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaLiveEngineDecorator=void 0;var n=KalturaPlayer.core.Error,r=[n.Code.HTTP_ERROR,n.Code.TIMEOUT,n.Code.LIVE_MANIFEST_REFRESH_ERROR,n.Code.VIDEO_ERROR,n.Code.NATIVE_ADAPTER_LOAD_FAILED],o=function(){function e(e,t,n,r){var o=this;this._handleError=function(e){e.payload.severity===o._plugin.player.Error.Severity.CRITICAL&&(o._plugin.playerHasError=!0),o._hadError=!0},this._handleEnd=function(){o._plugin.isMediaLive&&(o._plugin.detachMediaSource(),o._plugin.updateLiveStatus(),o._ended=!0)},this._handleMediaLoaded=function(){o._hadError=!1,o._ended=!1},this._plugin=t,this._engine=e,this._hadError=!1,this._ended=!1,this._dispatcher=n,this._logger=r,this._plugin.player.addEventListener(this._plugin.player.Event.PLAYER_RESET,this._handleMediaLoaded),this._engine.addEventListener(this._plugin.player.Event.ERROR,this._handleError),this._engine.addEventListener(this._plugin.player.Event.ENDED,this._handleEnd)}return Object.defineProperty(e.prototype,"active",{get:function(){return this._plugin.isMediaLive&&(this._hadError||this._ended)},enumerable:!1,configurable:!0}),e.prototype.dispatchEvent=function(e){return e.type===this._plugin.player.Event.ENDED?(this._ended=!1,!0):"error"===e.type&&e.payload&&e.payload.code&&r.indexOf(e.payload.code)>-1?(this._logger.info("Kaltura live-decorator prevented interrupted error ".concat(e.payload.code)),this._plugin.updateLiveStatus(),!0):this._dispatcher(e)},e}();t.KalturaLiveEngineDecorator=o},4948:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaLivePlugin=t.KalturaEntryServerNodeStatus=t.LiveBroadcastStates=void 0;var i,a,l=n(4522),s=n(9781),c=n(9085),p=n(4240),u=n(7729),_=n(3325);!function(e){e.Unknown="Unknown",e.Error="Error",e.Live="Live",e.Offline="Offline"}(i=t.LiveBroadcastStates||(t.LiveBroadcastStates={})),function(e){e[e.authenticated=3]="authenticated",e[e.broadcasting=2]="broadcasting",e[e.error=-1]="error",e[e.markedForDeletion=4]="markedForDeletion",e[e.playable=1]="playable",e[e.stopped=0]="stopped",e[e.taskFinished=9]="taskFinished",e[e.taskPending=5]="taskPending",e[e.taskProcessing=7]="taskProcessing",e[e.taskQueued=6]="taskQueued",e[e.taskUploading=8]="taskUploading"}(a=t.KalturaEntryServerNodeStatus||(t.KalturaEntryServerNodeStatus={}));var d=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.isMediaLive=!1,o._broadcastState=i.Unknown,o._wasPlayed=!1,o._absolutePosition=null,o._isLiveApiCallTimeout=null,o._liveTagState=u.LiveTagStates.Live,o._activeRequest=!1,o.playerHasError=!1,o._mediaDetached=!1,o._liveTag=(0,l.createRef)(),o._offlineSlate=(0,l.createRef)(),o._activatePlugin=function(){o.isMediaLive=o.player.isLive(),o.isMediaLive&&(o.eventManager.listen(o.player,o.player.Event.FIRST_PLAY,o._handleFirstPlay),o.eventManager.listen(o.player,o.player.Event.TIMED_METADATA,o.handleTimedMetadata),o.eventManager.listen(o.player,o.player.Event.MEDIA_LOADED,o._handleMediaLoaded))},o._handleMediaLoaded=function(){o.player.configure({plugins:{kava:{tamperAnalyticsHandler:o._tamperAnalyticsHandler}}}),o.updateLiveStatus()},o._addLiveTag=function(){o.player.ui.addComponent({label:"kaltura-live-tag",presets:["Live"],replaceComponent:"LiveTag",container:"BottomBarLeftControls",get:function(){return(0,l.h)(u.LiveTag,{ref:o._liveTag,liveTagState:o._liveTagState})}})},o._addOfflineSlateToPlayerArea=function(){o.player.ui.addComponent({label:"no-longer-live-overlay",presets:["Live","Playback"],container:"VideoArea",get:function(){return(0,l.h)(p.OfflineSlate,{ref:o._offlineSlate,getGuiAreaNode:o._getGuiAreaNode})}})},o._updateOfflineSlate=function(e){var t,n;null===(n=null===(t=o._offlineSlate)||void 0===t?void 0:t.current)||void 0===n||n.manageOfflineSlate(e)},o._updateLiveTag=function(e){var t,n;o._liveTagState=e,null===(n=null===(t=o._liveTag)||void 0===t?void 0:t.current)||void 0===n||n.updateLiveTagState(e)},o.handleTimedMetadata=function(e){var t=e.payload;if(t&&t.cues){var n=t.cues.filter((function(e){return e.value&&"TEXT"===e.value.key}));if(n.length)try{o._absolutePosition=JSON.parse(n[n.length-1].value.data).timestamp}catch(e){o._absolutePosition=null,o.logger.warn("Failed parsing timedmetadata payload cue ",e)}}else o._absolutePosition=null},o._tamperAnalyticsHandler=function(e){return o._absolutePosition&&(e.absolutePosition=o._absolutePosition),!0},o._handleFirstPlay=function(){o._wasPlayed=!0},o._loadMedia=function(){o.playerHasError=!1,o.player.configure({playback:{autoplay:!0}}),o.player.loadMedia({entryId:o.player.config.sources.id})},o.detachMediaSource=function(){o._mediaDetached=!0,o.player.detachMediaSource()},o._attachMediaSource=function(){o._mediaDetached=!1,o.player.addEventListener(o.player.Event.CAN_PLAY,o._restoreLiveEdge),o.player.attachMediaSource(),o.player.play()},o._restoreLiveEdge=function(){o.player.seekToLiveEdge(),o.player.removeEventListener(o.player.Event.CAN_PLAY,o._restoreLiveEdge)},o._resetTimeout=function(){o._isLiveApiCallTimeout&&(clearTimeout(o._isLiveApiCallTimeout),o._isLiveApiCallTimeout=null)},o._initTimeout=function(){var e=o.config.isLiveInterval;o._resetTimeout(),o._isLiveApiCallTimeout=setTimeout(o.updateLiveStatus,1e3*e)},o._getGuiAreaNode=function(){return(document.getElementById(o.player.config.targetId)||document).querySelector(".playkit-gui-area")||null},o.updateLiveStatus=function(){var e;o.logger.info("Calling LiveStreamGetDetailsAction ".concat(o.config.checkLiveWithKs?"with":"without"," KS"));var t=o.player.config.sources.id,n=o.config.checkLiveWithKs?null===(e=o.player.config.session)||void 0===e?void 0:e.ks:null;o._activeRequest||(o._resetTimeout(),o._activeRequest=!0,o.player.provider.doRequest([{loader:_.GetStreamDetailsLoader,params:{ks:n,id:t}}]).then((function(e){if(e&&e.has(_.GetStreamDetailsLoader.id)){var t=e.get(_.GetStreamDetailsLoader.id),n=null==t?void 0:t.response;if(o._activeRequest=!1,o._liveTagState=u.LiveTagStates.Offline,!n.broadcastStatus)return void o._initTimeout();var r=n.primaryStreamStatus,l=n.secondaryStreamStatus,s=n.broadcastStatus;if(o.logger.info("LiveStreamGetDetails received:\n              Primary stream: ".concat(r,";\n              Secondary stream: ").concat(l,";\n              Broadcast Status: ").concat(s,";\n            ")),![r,l].some((function(e){return e===a.playable}))&&s===_.KalturaLiveStreamBroadcastStatus.live&&o._mediaDetached||s===_.KalturaLiveStreamBroadcastStatus.offline)return o._updateLiveTag(u.LiveTagStates.Offline),void o.handleLiveStatusReceived(i.Offline);switch(s){case _.KalturaLiveStreamBroadcastStatus.live:o._updateLiveTag(u.LiveTagStates.Live),o.handleLiveStatusReceived(i.Live);break;case _.KalturaLiveStreamBroadcastStatus.preview:o.config.checkLiveWithKs?(o._updateLiveTag(u.LiveTagStates.Preview),o.handleLiveStatusReceived(i.Live)):(o._updateLiveTag(u.LiveTagStates.Offline),o.handleLiveStatusReceived(i.Offline))}}})).catch((function(e){o._activeRequest=!1,o._updateLiveTag(u.LiveTagStates.Offline),o.handleLiveStatusReceived(i.Error),o.logger.error("Failed to call isLive API",e),o._initTimeout()})))},o.player=n,o.eventManager.listen(o.player,o.player.Event.SOURCE_SELECTED,o._activatePlugin),o._addLiveTag(),o._addOfflineSlateToPlayerArea(),o}return o(t,e),t.prototype.getMiddlewareImpl=function(){return new s.KalturaLiveMiddleware(this)},t.prototype.getEngineDecorator=function(e,t){return new c.KalturaLiveEngineDecorator(e,this,t,this.logger)},t.prototype.loadMedia=function(){this.player.configure({playback:{options:{html5:{hls:{levelLoadingMaxRetryTimeout:750},native:{heartbeatTimeout:1e4},dash:{streaming:{jumpLargeGaps:!0}}}}}})},Object.defineProperty(t.prototype,"broadcastState",{get:function(){return this._broadcastState},enumerable:!1,configurable:!0}),t.prototype.handleLiveStatusReceived=function(e){if(this._broadcastState=e,this.logger.info("Received isLive with value: "+e),e!==i.Error||!this.player.paused)return this._wasPlayed||e!==i.Offline?e===i.Offline?(this._manageOfflineSlate(p.OfflineTypes.NoLongerLive),this._mediaDetached&&this.player.dispatchEvent(new KalturaPlayer.core.FakeEvent(this.player.Event.ENDED)),void this.logger.info("Received isLive false after ended - show no longer live slate")):void(e===i.Live&&(this.playerHasError&&(this.logger.info("Player got error but stream is Live now. Reload media"),this._loadMedia()),this._mediaDetached&&(this.logger.info("Media ended but stream is Live now. Attach media"),this._attachMediaSource()),this._manageOfflineSlate(p.OfflineTypes.None))):(this._manageOfflineSlate(p.OfflineTypes.Offline),void this.logger.info("Offline before first play - show offline slate"));this._manageOfflineSlate(p.OfflineTypes.HttpError)},Object.defineProperty(t.prototype,"sidePanelsManager",{get:function(){return this.player.getService("sidePanelsManager")},enumerable:!1,configurable:!0}),t.prototype._manageOfflineSlate=function(e){var t,n,r=this;if(e===p.OfflineTypes.None)return this._updateOfflineSlate(p.OfflineTypes.None),void(this.config.checkLiveWithKs&&this._initTimeout());switch(this._initTimeout(),e){case p.OfflineTypes.NoLongerLive:(!this.player.isDvr()||this._mediaDetached||this.playerHasError)&&this._updateOfflineSlate(p.OfflineTypes.NoLongerLive);break;case p.OfflineTypes.Offline:this._updateOfflineSlate(p.OfflineTypes.Offline);break;case p.OfflineTypes.HttpError:this._updateOfflineSlate(p.OfflineTypes.HttpError)}null===(n=null===(t=this.sidePanelsManager)||void 0===t?void 0:t.componentsRegistry)||void 0===n||n.forEach((function(e,t){e.isActive&&r.sidePanelsManager.deactivateItem(t)}))},t.isValid=function(){return!0},t.prototype.reset=function(){this.player.attachMediaSource(),this._resetTimeout(),this.isMediaLive=!1,this.eventManager.unlisten(this.player,this.player.Event.FIRST_PLAY,this._handleFirstPlay),this.eventManager.unlisten(this.player,this.player.Event.TIMED_METADATA,this.handleTimedMetadata),this.eventManager.unlisten(this.player,this.player.Event.MEDIA_LOADED,this._handleMediaLoaded)},t.prototype.destroy=function(){this.reset(),this.eventManager.destroy()},t.defaultConfig={checkLiveWithKs:!1,isLiveInterval:10},t}(KalturaPlayer.core.BasePlugin);t.KalturaLivePlugin=d},9781:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.KalturaLiveMiddleware=void 0;var i=n(4948),a=function(e){function t(t){var n=e.call(this)||this;return n._isFirstPlayedLive=!0,n._nextLoad=null,n._nextPlay=null,n._livePlugin=t,n}return o(t,e),t.prototype.initialPlayHandling=function(){var e=this;this._isFirstPlayedLive&&(this._nextPlay&&this._nextLoad&&this.isPlayerLive()?(this._isFirstPlayedLive=!1,this.callNext(this._nextLoad),this.callNext(this._nextPlay),this._nextLoad=null,this._nextPlay=null,this._livePlugin.logger.info("interrupt play",{method:"play"})):setTimeout((function(){e.initialPlayHandling()}),250))},t.prototype.isPlayerLive=function(){return this._livePlugin.broadcastState===i.LiveBroadcastStates.Live},t.prototype.load=function(e){this._livePlugin.isMediaLive&&!this.isPlayerLive()?(this._livePlugin.updateLiveStatus(),this._nextLoad=e,this.initialPlayHandling(),this._livePlugin.logger.info("interrupt load")):this.callNext(e)},t.prototype.play=function(e){this._isFirstPlayedLive&&this._livePlugin.isMediaLive&&!this.isPlayerLive()?(this._nextPlay=e,this._livePlugin.logger.info("interrupt play")):this.callNext(e)},t.prototype.pause=function(t){e.prototype.callNext.call(this,t)},t}(KalturaPlayer.core.BaseMiddleware);t.KalturaLiveMiddleware=a},3325:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetStreamDetailsLoader=t.KalturaLiveStreamBroadcastStatus=void 0;var n,r=KalturaPlayer.providers.RequestBuilder;(n=t.KalturaLiveStreamBroadcastStatus||(t.KalturaLiveStreamBroadcastStatus={}))[n.live=3]="live",n[n.offline=1]="offline",n[n.preview=2]="preview";var o=function(){function e(e){var t=e.ks,n=e.id;this._requests=[],this._response={};var o=new Map,i=new r(o);i.service="livestream",i.action="getDetails",i.params={id:n},t&&(i.params.ks=t),this.requests.push(i)}return Object.defineProperty(e,"id",{get:function(){return"kaltura-live"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requests",{get:function(){return this._requests},set:function(e){this._requests=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"response",{get:function(){return this._response},set:function(e){var t;this._response=(null===(t=e[0])||void 0===t?void 0:t.data)||{}},enumerable:!1,configurable:!0}),e.prototype.isValid=function(){return!0},e}();t.GetStreamDetailsLoader=o},699:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},6924:e=>{e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},9338:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},8287:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},2052:e=>{"use strict";e.exports=KalturaPlayer},4522:e=>{"use strict";e.exports=KalturaPlayer.ui.preact}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.NAME=e.VERSION=e.Plugin=void 0;var t=n(4948);Object.defineProperty(e,"Plugin",{enumerable:!0,get:function(){return t.KalturaLivePlugin}}),e.VERSION="3.2.2",e.NAME="@playkit-js/playkit-js-kaltura-live",KalturaPlayer.core.registerPlugin("kaltura-live",t.KalturaLivePlugin)})(),((KalturaPlayer=void 0===KalturaPlayer?{}:KalturaPlayer).plugins=KalturaPlayer.plugins||{})["kaltura-live"]=r})();

var KalturaPlayer="object"==typeof KalturaPlayer?KalturaPlayer:{};KalturaPlayer.plugins=KalturaPlayer.plugins||{},KalturaPlayer.plugins.kava=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=KalturaPlayer},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function e(t,n,r,i){void 0===i&&(i={}),this.severity=t,this.category=n,this.code=r,this.data=i,e._logger.error("Category:"+n+" | Code:"+r+" |",i)};i(a,"Severity",{RECOVERABLE:1,CRITICAL:2}),i(a,"Category",{NETWORK:1,SERVICE:2,PROVIDER:3}),i(a,"Code",{UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,BAD_SERVER_RESPONSE:1005,MULTIREQUEST_API_ERROR:1006,API_RESPONSE_MISMATCH:1007,ERROR:2e3,BLOCK_ACTION:2001,MEDIA_STATUS_NOT_READY:2002,MISSING_MANDATORY_PARAMS:3e3,MISSING_PLAY_SOURCE:3001,METHOD_NOT_IMPLEMENTED:3002}),i(a,"_logger",Object(r.a)("Error"))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){function e(e){void 0===e&&(e=new Map),i(this,"retryConfig",{async:!0,timeout:0,maxAttempts:4}),i(this,"_attemptCounter",1),this.headers=e}var t=e.prototype;return t.getUrl=function(e){return e+"/service/"+this.service+(this.action?"/action/"+this.action:"")},t.doHttpRequest=function(){var e=this,t=new Promise((function(t,n){e._requestPromise={resolve:t,reject:n}}));return this.url||this._requestPromise.reject(new r.a(r.a.Severity.CRITICAL,r.a.Category.NETWORK,r.a.Code.MALFORMED_DATA_URI,{url:this.url})),this._createXHR(),t},t._createXHR=function(){var e=this,t=new XMLHttpRequest;t.onreadystatechange=function(){if(4===t.readyState&&200===t.status)try{var n=JSON.parse(t.responseText);return e.responseHeaders=e._getResponseHeaders(t),e._requestPromise.resolve(n)}catch(n){e._requestPromise.reject(e._createError(t,r.a.Code.BAD_SERVER_RESPONSE,{text:t.responseText}))}},t.open(this.method,this.url,this.retryConfig.async),this.retryConfig.async&&this.retryConfig.timeout&&(t.timeout=this.retryConfig.timeout);var n=performance.now();t.ontimeout=function(){e._handleError(t,r.a.Code.TIMEOUT,{timeout:(performance.now()-n)/1e3,statusText:t.statusText})},t.onerror=t.onabort=function(){e._handleError(t,r.a.Code.HTTP_ERROR,{text:t.responseText,statusText:t.statusText})},this.headers.forEach((function(e,n){t.setRequestHeader(n,e)})),t.send(this.params)},t._getResponseHeaders=function(e){return e.getAllResponseHeaders().split("\n").filter((function(e){return 0===e.toLowerCase().indexOf("x-")}))},t._handleError=function(e,t,n){var r=this._createError(e,t,n);if(e.onreadystatechange=function(){},e.onerror=function(){},e.ontimeout=function(){},e.onabort=function(){},!(this.retryConfig.maxAttempts&&this._attemptCounter<this.retryConfig.maxAttempts))return this._requestPromise.reject(r);this._attemptCounter++,this._createXHR()},t._createError=function(e,t,n){return Object.assign(n,{url:this.url,headers:this._getResponseHeaders(e),attempt:this._attemptCounter}),new r.a(r.a.Severity.CRITICAL,r.a.Category.NETWORK,t,n)},e}()},function(e,t,n){"use strict";var r=function(){return{VERSION:"",DEBUG:{value:"",name:""},ERROR:{value:"",name:""},INFO:{value:"",name:""},OFF:{value:"",name:""},TIME:{value:"",name:""},TRACE:{value:"",name:""},WARN:{value:"",name:""},createDefaultHandler:function(){},debug:function(){},enabledFor:function(){},error:function(){},get:function(){},getLevel:function(){},info:function(){},log:function(){},setHandler:function(){},setLevel:function(){},time:function(){},timeEnd:function(){},trace:function(){},useDefaults:function(){},warn:function(){}}};t.a=function(e){return r(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i={serviceUrl:"https://cdnapisec.kaltura.com/api_v3",cdnUrl:"https://cdnapisec.kaltura.com",serviceParams:{apiVersion:"3.3.0",format:1},useApiCaptions:!0,loadThumbnailWithKs:!1,replaceHostOnlyManifestUrls:!1},a=function(){function e(){}return e.set=function(e){e&&Object.assign(i,e)},e.get=function(){return Object(r.a)(i)},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function e(t){var n;return Array.isArray(t)?(n=t.length>0?t.slice(0):[]).forEach((function(t,r){("object"==typeof t&&t!=={}||Array.isArray(t)&&t.length>0)&&(n[r]=e(t))})):"object"==typeof t?(n=Object.assign({},t),Object.keys(n).forEach((function(t){("object"==typeof n[t]&&n[t]!=={}||Array.isArray(n[t])&&n[t].length>0)&&(n[t]=e(n[t]))}))):n=t,n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),i=n(2),a=function(e){var t;(t="hasError")in this?Object.defineProperty(this,t,{value:!1,enumerable:!0,configurable:!0,writable:!0}):this[t]=!1,"KalturaAPIException"===e.objectType?(this.hasError=!0,this.error=new o(e.code,e.message)):e.error&&"KalturaAPIException"===e.error.objectType?(this.hasError=!0,this.error=new o(e.error.code,e.error.message)):this.data=e},o=function(e,t){this.code=e,this.message=t},s=n(0);function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return l(u(t=e.call.apply(e,[this].concat(r))||this),"requests",[]),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.add=function(e){var t;this.requests.push(e);var n={},r={service:e.service,action:e.action};return Object.assign(n,((t={})[this.requests.length]=Object.assign(r,e.params),t)),Object.assign(n,this.params),this.params=n,this},i.execute=function(e){var t=this;return new Promise((function(n,i){try{t.params=JSON.stringify(t.params)}catch(e){r._logger.error(""+e.message),i(new s.a(s.a.Severity.CRITICAL,s.a.Category.PROVIDER,s.a.Code.FAILED_PARSING_REQUEST,{error:e,params:t.params}))}t.doHttpRequest().then((function(r){var a=new c(r,e);a.success?n({headers:t.responseHeaders,response:a}):i(new s.a(s.a.Severity.CRITICAL,s.a.Category.NETWORK,s.a.Code.MULTIREQUEST_API_ERROR,{url:t.url,headers:t.responseHeaders,results:a.results}))}),(function(e){i(e)}))}))},r}(r.a);l(d,"_logger",Object(i.a)("MultiRequestBuilder"));var c=function e(t,n){void 0===n&&(n=!0),l(this,"results",[]);var r=t.result?t.result:t,i=(Array.isArray(r)?r:[r]).map((function(e){return new a(e)})),o=i.filter((function(e){return e.hasError}));o.forEach((function(t){e._logger.error("Service returned an error with error code: "+t.error.code+" and message: "+t.error.message+".")})),this.results=i,n&&o.length||o.length===this.results.length?this.success=!1:(this.results=this.results.filter((function(e){return!e.hasError})),this.success=!0)};l(c,"_logger",Object(i.a)("MultiRequestResult"))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){var t=[],n=/\[\]$/,r=function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(e,n){n="function"==typeof n?n():null==n?"":n,t[t.length]=encodeURIComponent(e)+"="+encodeURIComponent(n)};return function e(a,o){var s,u,l;if(a)if(r(o))for(s=0,u=o.length;s<u;s++)n.test(a)?i(a,o[s]):e(a+":"+("object"==typeof o[s]?s:""),o[s]);else if(o&&"[object Object]"===String(o))for(l in o)e(a+":"+l,o[l]);else i(a,o);else if(r(o))for(s=0,u=o.length;s<u;s++)i(o[s].name,o[s].value);else for(l in o)e(l,o[l]);return t}("",e).join("&").replace(/%20/g,"+")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5),i=n(3),a=function(){function e(){}return e.getMultiRequest=function(e,t,n){var a=i.a.get(),o=a.serviceParams;Object.assign(o,{ks:t,clientTag:"html5:v"+e}),n&&Object.assign(o,{partnerId:n});var s=new Map;s.set("Content-Type","application/json");var u=new r.a(s);return u.method="POST",u.service="multirequest",u.url=u.getUrl(a.serviceUrl),u.params=o,u},e}()},,function(e,t,n){"use strict";n.r(t),n.d(t,"OVPAnalyticsService",(function(){return s})),n.d(t,"OVPConfiguration",(function(){return i.a})),n.d(t,"RequestBuilder",(function(){return r.a})),n.d(t,"NAME",(function(){return u})),n.d(t,"VERSION",(function(){return l}));var r=n(1),i=n(3),a=n(7),o=n(6),s=function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.trackEvent=function(e,t,n){return"POST"===n?a._trackEventByPOST(e,t):a._trackEventByGET(e,t)},a._trackEventByGET=function(e,t){var n=i.a.get(),a={};Object.assign(a,n.serviceParams,t);var s=new r.a;return s.service="analytics",s.action="trackEvent",s.method="GET",s.tag="analytics-trackEvent",s.params=a,s.url=e+"?service="+s.service+"&action="+s.action+"&"+Object(o.a)(s.params),s},a._trackEventByPOST=function(e,t){var n=i.a.get(),a={};Object.assign(a,n.serviceParams,t);var s=new Map;s.set("Content-Type","application/json");var u=new r.a(s),l={eventType:a.eventType,partnerId:a.partnerId,entryId:a.entryId,sessionId:a.sessionId};return["eventType","partnerId","entryId","sessionId"].forEach((function(e){return delete a[e]})),u.service="analytics",u.action="trackEvent",u.method="POST",u.tag="analytics-trackEvent",u.params=JSON.stringify(a),u.url=e+"?service="+u.service+"&action="+u.action+"&"+Object(o.a)(l),u},a}(a.a),u="@playkit-js/playkit-js-providers-analytics-service",l="2.39.3-canary.0-e04b57d"}])},function(e,t,n){"use strict";n.r(t),n.d(t,"Plugin",(function(){return F})),n.d(t,"EventType",(function(){return y})),n.d(t,"HttpMethodType",(function(){return R})),n.d(t,"VERSION",(function(){return x})),n.d(t,"NAME",(function(){return B}));var r=n(0),i=n(1);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,s=function(){function e(e){a(this,"totalSegmentsDownloadTime",0),a(this,"totalSegmentsDownloadBytes",0),a(this,"maxSegmentDownloadTime",0),a(this,"maxManifestDownloadTime",0),a(this,"droppedFramesRatio",null),a(this,"screenMode",p.NOT_IN_FULLSCREEN),a(this,"maxNetworkConnectionOverhead",0),a(this,"flavorParamsId",NaN),a(this,"playerJSLoadTime",null),e&&this.updateModel(e)}var t=e.prototype;return t.getPlayTimeSum=function(){return this.playTimeSum},t.getCanPlayTime=function(){return this.canPlayTime},t.getBufferTime=function(){return this.bufferTime},t.getBufferTimeSum=function(){return this.bufferTimeSum},t.getPlayerJSLoadTime=function(){return this.playerJSLoadTime?Math.round(1e3*this.playerJSLoadTime)/1e3:null},t.getJoinTime=function(){return this.joinTime},t.getTargetPosition=function(){return this.targetPosition},t.getTargetBuffer=function(){return this.targetBuffer},t.getLanguage=function(){return this.language},t.getCaption=function(){return this.caption},t.getBandwidth=function(){return this.totalSegmentsDownloadTime>0?Math.round(8*this.totalSegmentsDownloadBytes/this.totalSegmentsDownloadTime)/1e3:0},t.getMaxManifestDownloadTime=function(){return this.maxManifestDownloadTime},t.getSegmentDownloadTime=function(){return this.maxSegmentDownloadTime},t.getForwardBufferHealth=function(){return this.forwardBufferHealth},t.getDroppedFramesRatio=function(){return this.droppedFramesRatio},t.getSoundMode=function(){return this.soundMode},t.getViewabilityMode=function(){return this.viewabilityMode},t.getScreenMode=function(){return this.screenMode},t.getTabMode=function(){return this.tabMode},t.getNetworkConnectionType=function(){return this.networkConnectionType},t.getNetworkConnectionOverhead=function(){return Math.round(this.maxNetworkConnectionOverhead)/1e3},t.getErrorCode=function(){return this.errorCode},t.getFlavorParamsId=function(){return this.flavorParamsId},t.getErrorDetails=function(){var e="";if(this.errorDetails)try{e=JSON.stringify(this.errorDetails)}catch(e){}return e},t.getEventIndex=function(){return this.eventIndex},t.getErrorPosition=function(){return this.errorPosition},t.getSessionStartTime=function(){return this.sessionStartTime},t.updateModel=function(e){Object.assign(this,e)},t.getModel=function(e){return function(e,t){var n={eventType:e.index,partnerId:t.getPartnerId(),entryId:t.getEntryId(),sessionId:t.getSessionId(),eventIndex:t.getEventIndex(),referrer:t.getReferrer(),deliveryType:t.getDeliveryType(),playbackType:t.getPlaybackType(),clientVer:t.getClientVer(),clientTag:t.getClientTag(),position:t.getPosition(),playbackSpeed:t.getPlaybackSpeed()};t.getCaption()&&(n.caption=t.getCaption());t.getSessionStartTime()&&(n.sessionStartTime=t.getSessionStartTime());t.getKS()&&(n.ks=t.getKS());t.getVirtualEventId()&&(n.virtualEventId=t.getVirtualEventId());t.getUIConfId()&&(n.uiConfId=t.getUIConfId());t.getPlaylistId()&&(n.playlistId=t.getPlaylistId());t.getCustomVar1()&&(n.customVar1=t.getCustomVar1());t.getCustomVar2()&&(n.customVar2=t.getCustomVar2());t.getCustomVar3()&&(n.customVar3=t.getCustomVar3());t.getPlaybackContext()&&(n.playbackContext=t.getPlaybackContext());t.getApplicationVersion()&&(n.applicationVer=t.getApplicationVersion());t.getApplication()&&(n.application=t.getApplication());t.getKalturaApplicationVersion()&&(n.kalturaApplicationVer=t.getKalturaApplicationVersion());t.getKalturaApplication()&&(n.kalturaApplication=t.getKalturaApplication());t.getUserId()&&(n.userId=t.getUserId());t.getPersistentSessionId()&&(n.persistentSessionId=t.getPersistentSessionId());var r=e.getEventModel(t);return Object.assign(r,n)}(e,this)},e}(),u=1,l=2,d=1,c=2,f=1,h=2,p={NOT_IN_FULLSCREEN:1,FULLSCREEN:2},_=3,g=1,m=2,E={VIEW:{type:"VIEW",index:99,getEventModel:function(e){var t={playTimeSum:e.getPlayTimeSum(),bufferTime:e.getBufferTime(),bufferTimeSum:e.getBufferTimeSum(),actualBitrate:e.getActualBitrate(),averageBitrate:e.getAverageBitrate(),audioLanguage:e.getLanguage(),soundMode:e.getSoundMode(),tabMode:e.getTabMode(),viewabilityMode:e.getViewabilityMode(),screenMode:e.getScreenMode()};return isNaN(e.getForwardBufferHealth())||(t.forwardBufferHealth=e.getForwardBufferHealth()),e.getMaxManifestDownloadTime()>0&&(t.manifestDownloadTime=e.getMaxManifestDownloadTime()),e.getSegmentDownloadTime()>0&&(t.segmentDownloadTime=e.getSegmentDownloadTime()),e.getBandwidth()&&(t.bandwidth=e.getBandwidth()),null!=e.getDroppedFramesRatio()&&(t.droppedFramesRatio=e.getDroppedFramesRatio()),isNaN(e.getTargetBuffer())||(t.targetBuffer=e.getTargetBuffer()),""!==e.getNetworkConnectionType()&&(t.networkConnectionType=e.getNetworkConnectionType()),e.getNetworkConnectionOverhead()&&(t.networkConnectionOverhead=e.getNetworkConnectionOverhead()),isNaN(e.getFlavorParamsId())||(t.flavorParamsId=e.getFlavorParamsId()),t}},IMPRESSION:{type:"IMPRESSION",index:1,getEventModel:function(e){var t={};return null!=e.getPlayerJSLoadTime()&&(t.playerJSLoadTime=e.getPlayerJSLoadTime()),t}},PLAY_REQUEST:{type:"PLAY_REQUEST",index:2,getEventModel:function(){return{}}},PLAY:{type:"PLAY",index:3,getEventModel:function(e){var t={bufferTime:e.getBufferTime(),bufferTimeSum:e.getBufferTimeSum(),actualBitrate:e.getActualBitrate(),joinTime:e.getJoinTime(),canPlay:e.getCanPlayTime()};return""!==e.getNetworkConnectionType()&&(t.networkConnectionType=e.getNetworkConnectionType()),t}},RESUME:{type:"RESUME",index:4,getEventModel:function(e){return{bufferTime:e.getBufferTime(),bufferTimeSum:e.getBufferTimeSum(),actualBitrate:e.getActualBitrate()}}},PAUSE:{type:"PAUSE",index:33,getEventModel:function(){return{}}},BUFFER_START:{type:"BUFFER_START",index:45,getEventModel:function(){return{}}},BUFFER_END:{type:"BUFFER_END",index:46,getEventModel:function(){return{}}},REPLAY:{type:"REPLAY",index:34,getEventModel:function(){return{}}},SEEK:{type:"SEEK",index:35,getEventModel:function(e){return{targetPosition:e.getTargetPosition()}}},PLAY_REACHED_25_PERCENT:{type:"PLAY_REACHED_25_PERCENT",index:11,getEventModel:function(){return{}}},PLAY_REACHED_50_PERCENT:{type:"PLAY_REACHED_50_PERCENT",index:12,getEventModel:function(){return{}}},PLAY_REACHED_75_PERCENT:{type:"PLAY_REACHED_75_PERCENT",index:13,getEventModel:function(){return{}}},PLAY_REACHED_100_PERCENT:{type:"PLAY_REACHED_100_PERCENT",index:14,getEventModel:function(){return{}}},SOURCE_SELECTED:{type:"SOURCE_SELECTED",index:39,getEventModel:function(e){return{actualBitrate:e.getActualBitrate()}}},AUDIO_SELECTED:{type:"AUDIO_SELECTED",index:42,getEventModel:function(e){return{language:e.getLanguage()}}},FLAVOR_SWITCH:{type:"FLAVOR_SWITCH",index:43,getEventModel:function(e){return{actualBitrate:e.getActualBitrate()}}},SPEED:{type:"SPEED",index:41,getEventModel:function(){return{}}},CAPTIONS:{type:"CAPTIONS",index:38,getEventModel:function(){return{}}},ERROR:{type:"ERROR",index:98,getEventModel:function(e){return{errorCode:e.getErrorCode(),errorDetails:e.getErrorDetails(),errorPosition:e.getErrorPosition()}}},RELATED_CLICKED:{type:"RELATED_CLICKED",index:36,getEventModel:function(){return{}}},RELATED_SELECTED:{type:"RELATED_SELECTED",index:37,getEventModel:function(){return{}}}},y=(o={},Object.keys(E).forEach((function(e){return o[e]=e})),o);var v=function(){function e(){var e,t,n;n=[],(t="_rates")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,this._rates=[]}var t=e.prototype;return t.setRates=function(e){var t=this;this._rates=[],e.forEach((function(e){t._rates.push({rate:e,active:!1,duration:0})}))},t.setCurrent=function(e){this._rates.forEach((function(e){return e.active=!1}));var t=this._rates.find((function(t){return t.rate===e}));t&&(t.active=!0)},t.getCurrent=function(){var e=this._rates.find((function(e){return e.active}));return e?e.rate:-1},t.countCurrent=function(){var e=this._rates.find((function(e){return e.active}));e&&e.duration++},t.getAverage=function(){var e=0,t=0;return this._rates.forEach((function(n){t+=n.rate*n.duration,e+=n.duration})),e?t/e:0},t.reset=function(){this._rates.forEach((function(e){return e.duration=0}))},t.destroy=function(){this._rates=[]},e}();var T,S,P,C=r.core.FakeEvent,A=r.core.FakeEventTarget,M=function(e){var t,n;function r(t){var n;return(n=e.call(this)||this)._config=t,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.start=function(){var e=this;this._clearTimeout(),this._stopped=!1,this._resetCounter=0,this._eventCounter=0,this._intervalId=setInterval((function(){return e._monitor()}),1e3)},i.resume=function(){this._stopped=!1,this._resetCounter=0},i.stop=function(){this._stopped=!0},i.isStopped=function(){return this._stopped},i.destroy=function(){this._clearTimeout()},i._clearTimeout=function(){this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},i._monitor=function(){this._stopped?(this._resetCounter===this._config.resetCounter&&(this.dispatchEvent(new C(r.Event.RESET)),this._resetCounter=0,this._eventCounter=0),this._resetCounter++):(this.dispatchEvent(new C(r.Event.TICK)),this._eventCounter===this._config.eventCounter&&(this.dispatchEvent(new C(r.Event.REPORT)),this._eventCounter=0),this._eventCounter++)},r}(A);P={TICK:"tick",RESET:"reset",REPORT:"report"},(S="Event")in(T=M)?Object.defineProperty(T,S,{value:P,enumerable:!0,configurable:!0,writable:!0}):T[S]=P;var R={GET:"GET",POST:"POST"},b={KMC:"0",KMS:"1",KAF:"2",PITCH:"3",KMS_GO:"4",WEBCASTING:"5",PERSONAL_CAPTURE:"6",KME:"7",KME_MOBILE_APP:"8",PATH:"9",LECTURE_CAPTURE:"10",EP:"11",CHAT_AND_COLLABORATION:"12",ANALYTICS:"13",EXPRESS_CAPTURE:"14",KPF:"15",KAF_GO:"16",SITES:"17",STUDIO:"18"};const I="related_selected",O="related_clicked";function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=r.core.Error,k=(r.core.FakeEvent,r.core.Utils),F=function(e){var t,n;function r(t,n,r){var i;if(L(D(i=e.call(this,t,n,r)||this),"_lastDroppedFrames",0),L(D(i),"_lastTotalFrames",0),L(D(i),"_performanceEntries",[]),L(D(i),"_pendingFragLoadedUrls",[]),L(D(i),"_fragLoadedFiredOnce",!1),L(D(i),"_canPlayOccured",!1),L(D(i),"_isManualPreload",!1),i._rateHandler=new v,i._model=new s,i._setModelDelegates(),i._timer=new M({resetCounter:i.config.resetSessionCountdown,eventCounter:i.config.viewEventCountdown}),i._viewEventEnabled=!0,i._resetFlags(),i._addBindings(),i._model.updateModel({eventIndex:1,bufferTime:0,bufferTimeSum:0,playTimeSum:0}),performance&&i.config.uiConfId){var a=performance.getEntriesByType("resource").find((function(e){return e.name.match("embedPlaykitJs.*"+i.config.uiConfId)}));a&&i._model.updateModel({playerJSLoadTime:a.duration})}return i}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.isValid=function(){return!0};var a,o,T,S=r.prototype;return S._updateSoundModeInModel=function(){this._model.updateModel({soundMode:this.player.muted||0===this.player.volume?u:l})},S._updateViewabilityModeInModel=function(e){this._model.updateModel({viewabilityMode:e||this.player.isInPictureInPicture()?c:d})},S._handleNewPerformanceEntries=function(e){for(var t=e.getEntries(),n=0;n<t.length;n++)this._performanceEntries.push(t[n]);for(;this._pendingFragLoadedUrls.length;)this._handleFragPerformanceObserver(this._pendingFragLoadedUrls.pop())},S.destroy=function(){this.eventManager.destroy(),this._reset()},S._reset=function(){this._timer.destroy(),this._rateHandler.destroy(),this._performanceObserver&&this._performanceObserver.disconnect(),this._performanceEntries=[],this._pendingFragLoadedUrls=[]},S.reset=function(){this.eventManager.removeAll(),this._resetFlags(),this._addBindings(),this._model.updateModel({eventIndex:1,bufferTime:0,bufferTimeSum:0,playTimeSum:0,sessionStartTime:null}),this._reset()},S.loadMedia=function(){window.PerformanceObserver&&(this._performanceObserver=new window.PerformanceObserver(this._handleNewPerformanceEntries.bind(this)),this._performanceObserver.observe({entryTypes:["resource"]}))},S.getEventModel=function(e){if(e)return this._model.getModel(E[e])},S.sendAnalytics=function(e){var t=this;return new Promise((function(n,r){i.OVPAnalyticsService.trackEvent(t.config.serviceUrl,e,t.config.requestMethod).doHttpRequest().then((function(r){t._handleServerResponseSuccess(r,e),n()}),(function(n){t._handleServerResponseFailed(n,e),r(n)})),t._model.updateModel({eventIndex:t._model.getEventIndex()+1})}))},S._resetFlags=function(){this._previousCurrentTime=0,this._isPlaying=!1,this._isFirstPlay=!0,this._isFirstPlaying=!0,this._isEnded=!1,this._isPaused=!1,this._isBuffering=!1,this._timePercentEvent={PLAY_REACHED_25_PERCENT:!1,PLAY_REACHED_50_PERCENT:!1,PLAY_REACHED_75_PERCENT:!1,PLAY_REACHED_100_PERCENT:!1},this._canPlayOccured=!1,this._isManualPreload=!1},S._resetSession=function(){this.logger.debug("Reset KAVA session"),this._rateHandler.reset(),this._model.updateModel({eventIndex:1,bufferTimeSum:0,playTimeSum:0})},S._sendAnalytics=function(e){if(this._validate()){this._isBuffering&&(this._updateBufferModel(),this._bufferStartTime=Date.now());var t=this._model.getModel(e);if("function"==typeof this.config.tamperAnalyticsHandler)if(!this.config.tamperAnalyticsHandler(t))return void this.logger.debug("Cancel KAVA request",t);this.logger.debug("Sending KAVA event "+t.eventType+":"+e.type),this.sendAnalytics(t).catch((function(){}))}},S._handleServerResponseSuccess=function(e,t){this.logger.debug("KAVA event sent",t),this._updateSessionStartTimeModel(e)},S._handleServerResponseFailed=function(e,t){this.logger.warn("Failed to send KAVA event",t,e)},S._addBindings=function(){var e=this;this.eventManager.listen(this._timer,M.Event.TICK,(function(){return e._rateHandler.countCurrent()})),this.eventManager.listen(this._timer,M.Event.REPORT,(function(){return e._onReport()})),this.eventManager.listen(this._timer,M.Event.RESET,(function(){return e._resetSession()})),this.eventManager.listen(this.player,this.player.Event.SOURCE_SELECTED,(function(){return e._onSourceSelected()})),this.eventManager.listen(this.player,this.player.Event.ERROR,(function(t){return e._onError(t)})),this.eventManager.listen(this.player,this.player.Event.FIRST_PLAY,(function(){return e._onFirstPlay()})),this.eventManager.listen(this.player,this.player.Event.FRAG_LOADED,(function(t){return e._onFragLoaded(t)})),this.eventManager.listen(this.player,this.player.Event.MANIFEST_LOADED,(function(t){return e._onManifestLoaded(t)})),this.eventManager.listen(this.player,this.player.Event.TIMED_METADATA,(function(t){return e._onTimedMetadataLoaded(t)})),this.eventManager.listen(this.player,this.player.Event.TRACKS_CHANGED,(function(){return e._setInitialTracks()})),this.eventManager.listen(this.player,this.player.Event.PLAYING,(function(){return e._onPlaying()})),this.eventManager.listen(this.player,this.player.Event.FIRST_PLAYING,(function(){return e._onFirstPlaying()})),this.eventManager.listen(this.player,this.player.Event.SEEKING,(function(){return e._onSeeking()})),this.eventManager.listen(this.player,this.player.Event.PAUSE,(function(){return e._onPause()})),this.eventManager.listen(this.player,this.player.Event.ENDED,(function(){return e._onEnded()})),this.eventManager.listen(this.player,this.player.Event.VIDEO_TRACK_CHANGED,(function(t){return e._onVideoTrackChanged(t)})),this.eventManager.listen(this.player,this.player.Event.AUDIO_TRACK_CHANGED,(function(t){return e._onAudioTrackChanged(t)})),this.eventManager.listen(this.player,this.player.Event.TEXT_TRACK_CHANGED,(function(t){return e._onTextTrackChanged(t)})),this.eventManager.listen(this.player,this.player.Event.PLAYER_STATE_CHANGED,(function(t){return e._onPlayerStateChanged(t)})),this.eventManager.listen(this.player,this.player.Event.RATE_CHANGE,(function(){return e._onPlaybackRateChanged()})),this.eventManager.listen(this.player,this.player.Event.CAN_PLAY,(function(){return e._onCanPlay()})),this.eventManager.listen(this.player,this.player.Event.LOAD_START,(function(){return e._onLoadStart()})),this.eventManager.listen(this.player,this.player.Event.VOLUME_CHANGE,(function(){return e._updateSoundModeInModel()})),this.eventManager.listen(this.player,this.player.Event.VISIBILITY_CHANGE,(function(t){return e._updateViewabilityModeInModel(t.payload.visible)})),this.eventManager.listen(this.player,this.player.Event.MUTE_CHANGE,(function(){return e._updateSoundModeInModel()})),this.eventManager.listen(this.player,this.player.Event.ENTER_FULLSCREEN,(function(){return e._model.updateModel({screenMode:p.FULLSCREEN})})),this.eventManager.listen(this.player,this.player.Event.EXIT_FULLSCREEN,(function(){return e._model.updateModel({screenMode:p.NOT_IN_FULLSCREEN})})),this.eventManager.listen(this.player,O,(function(){return e._onRelatedClicked()})),this.eventManager.listen(this.player,I,(function(){return e._onRelatedSelected()})),this._initTabMode(),this._initNetworkConnectionType()},S._onFirstPlaying=function(){this._isPlaying=!0,!this._fragLoadedFiredOnce&&this._performanceObserver&&(this._performanceObserver.disconnect(),this.logger.debug("This adapter / media doesn't fire fragLoaded - disconnect performance observer"))},S._onLoadStart=function(){this._loadStartTime=Date.now()},S._getRates=function(){var e=[];return this.player.getTracks(this.player.Track.VIDEO).forEach((function(t){return e.push(t.bandwidth/1024)})),e},S._setInitialTracks=function(){var e=this._getRates(),t=this.player.getActiveTracks();this._rateHandler.setRates(e),t.video&&this._rateHandler.setCurrent(t.video.bandwidth/1024),t.audio&&this._model.updateModel({language:t.audio.language}),t.text&&this._model.updateModel({caption:t.text.language})},S._getAvailableBuffer=function(){var e=NaN;return this.player.stats&&(e=this.player.stats.availableBuffer),e},S._getForwardBufferHealth=function(){var e=NaN,t=this._getAvailableBuffer(),n=this._getTargetBuffer();return isNaN(n)||(e=Math.round(1e3*t/n)/1e3),e},S._getTargetBuffer=function(){var e=NaN;return this.player.stats&&(e=this.player.stats.targetBuffer),e},S._getDroppedFramesRatio=function(){var e=-1,t=this._getDroppedAndDecodedFrames();if(t){var n,r,i=t[0],a=t[1];n=i-this._lastDroppedFrames,e=(r=a-this._lastTotalFrames)?Math.round(n/r*1e3)/1e3:0,this._lastTotalFrames=a,this._lastDroppedFrames=i}return e},S._getDroppedAndDecodedFrames=function(){if("function"==typeof this.player.getVideoElement().getVideoPlaybackQuality){var e=this.player.getVideoElement().getVideoPlaybackQuality();return[e.droppedVideoFrames,e.totalVideoFrames]}return"number"==typeof this.player.getVideoElement().webkitDroppedFrameCount&&"number"==typeof this.player.getVideoElement().webkitDecodedFrameCount?[this.player.getVideoElement().webkitDroppedFrameCount,this.player.getVideoElement().webkitDecodedFrameCount]:null},S._onReport=function(){this._viewEventEnabled?(this._updatePlayTimeSumModel(),this._model.updateModel({forwardBufferHealth:this._getForwardBufferHealth(),targetBuffer:this._getTargetBuffer(),droppedFramesRatio:this._getDroppedFramesRatio()}),this._sendAnalytics(E.VIEW)):this.logger.warn("VIEW event blocked because server response of viewEventsEnabled=false"),this._model.updateModel({totalSegmentsDownloadTime:0,totalSegmentsDownloadBytes:0,maxManifestDownloadTime:0,maxSegmentDownloadTime:0,maxNetworkConnectionOverhead:0,bufferTime:0})},S._updateNetworkConnectionTypeinModel=function(e){this._model.updateModel({networkConnectionType:e.effectiveType})},S._initNetworkConnectionType=function(){var e=this,t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;t&&(this.eventManager.listen(t,"change",(function(){return e._updateNetworkConnectionTypeinModel(t)})),this._updateNetworkConnectionTypeinModel(t))},S._onPlaying=function(){if(this._isFirstPlaying){this._updateSoundModeInModel(),this._updateViewabilityModeInModel(this.player.isVisible),this.player.isUntimedImg()||this._timer.start(),this._isFirstPlaying=!1;var e="auto"===this.player.config.playback.preload||this._isManualPreload?this._firstPlayRequestTime:this._loadStartTime;this._model.updateModel({joinTime:r._getTimeDifferenceInSeconds(e)}),this._sendAnalytics(E.PLAY),this._onReport()}else this._isEnded?(this._timer.start(),this._isEnded=!1,this._sendAnalytics(E.REPLAY)):this._isPaused&&(this._timer.resume(),this._isPaused=!1,this._sendAnalytics(E.RESUME))},S._onCanPlay=function(){this._canPlayOccured=!0,this._model.updateModel({canPlayTime:r._getTimeDifferenceInSeconds(this._loadStartTime)})},S._onFirstPlay=function(){this._canPlayOccured&&(this._isManualPreload=!0),this._isFirstPlay=!1,this._firstPlayRequestTime=Date.now(),this._sendAnalytics(E.PLAY_REQUEST)},S._onSourceSelected=function(){var e=this;this._sendAnalytics(E.IMPRESSION),this.player.isImage()||this.player.isLive()||this.eventManager.listen(this.player,this.player.Event.TIME_UPDATE,(function(){return e._onTimeUpdate()}))},S._onSeeking=function(){this._previousCurrentTime=this.player.currentTime,this._model.updateModel({targetPosition:this.player.currentTime}),this._sendAnalytics(E.SEEK)},S._onPause=function(){this._isPaused=!0,this._timer.stop(),this._sendAnalytics(E.PAUSE)},S._onEnded=function(){this._isEnded=!0,this._onTimeUpdate(),this._model.updateModel({bufferTime:0})},S._onTimeUpdate=function(){this._updatePlayTimeSumModel();var e=parseFloat((this.player.currentTime/this.player.duration).toFixed(2));!this._timePercentEvent.PLAY_REACHED_25&&e>=.25&&(this._timePercentEvent.PLAY_REACHED_25=!0,this._sendAnalytics(E.PLAY_REACHED_25_PERCENT)),!this._timePercentEvent.PLAY_REACHED_50&&e>=.5&&(this._timePercentEvent.PLAY_REACHED_50=!0,this._sendAnalytics(E.PLAY_REACHED_50_PERCENT)),!this._timePercentEvent.PLAY_REACHED_75&&e>=.75&&(this._timePercentEvent.PLAY_REACHED_75=!0,this._sendAnalytics(E.PLAY_REACHED_75_PERCENT)),this._timePercentEvent.PLAY_REACHED_100||1!==e||(this._timePercentEvent.PLAY_REACHED_100=!0,this._sendAnalytics(E.PLAY_REACHED_100_PERCENT))},S._onFragLoaded=function(e){(this._fragLoadedFiredOnce||(this._fragLoadedFiredOnce=!0),this._updateFragLoadedStats(e),this._performanceObserver)&&(this._handleFragPerformanceObserver(e.payload.url)||this._pendingFragLoadedUrls.push(e.payload.url))},S._handleFragPerformanceObserver=function(e){var t=this._performanceEntries.filter((function(t){return t.name==e})),n=t&&t.length?t[t.length-1]:null;if(n){this._updateMaxNetworkConnectionOverhead(n.connectEnd-n.domainLookupStart);var r=this._performanceEntries.indexOf(n);return r>-1&&r<this._performanceEntries.length&&(this._performanceEntries=this._performanceEntries.splice(r+1,this._performanceEntries.length-(r+1))),!0}return!1},S._updateMaxNetworkConnectionOverhead=function(e){this._model.updateModel({maxNetworkConnectionOverhead:Math.max(this._model.maxNetworkConnectionOverhead,e)})},S._updateFragLoadedStats=function(e){var t=Math.round(e.payload.miliSeconds)/1e3;this._model.updateModel({totalSegmentsDownloadTime:this._model.totalSegmentsDownloadTime+t,totalSegmentsDownloadBytes:this._model.totalSegmentsDownloadBytes+e.payload.bytes,maxSegmentDownloadTime:Math.max(t,this._model.maxSegmentDownloadTime)})},S._onManifestLoaded=function(e){var t=Math.round(e.payload.miliSeconds)/1e3;this._model.updateModel({maxManifestDownloadTime:Math.max(t,this._model.maxManifestDownloadTime)})},S._onTimedMetadataLoaded=function(e){var t=e.payload.cues.filter((function(e){return e.value&&"TEXT"===e.value.key}));if(t.length)try{this._model.updateModel({flavorParamsId:Number(JSON.parse(t[t.length-1].value.data).sequenceId)})}catch(e){this.logger.debug("error parsing id3",e)}},S._onVideoTrackChanged=function(e){var t=e.payload.selectedVideoTrack;this._rateHandler.setCurrent(t.bandwidth/1024),this.player.isAdaptiveBitrateEnabled()?this._sendAnalytics(E.FLAVOR_SWITCH):this._sendAnalytics(E.SOURCE_SELECTED)},S._onAudioTrackChanged=function(e){var t=e.payload.selectedAudioTrack;this._model.updateModel({language:t.language}),this._sendAnalytics(E.AUDIO_SELECTED)},S._onTextTrackChanged=function(e){if(this._isPlaying){var t=e.payload.selectedTextTrack;this._model.updateModel({caption:t.language}),this._sendAnalytics(E.CAPTIONS)}},S._onError=function(e){e.payload&&e.payload.severity===N.Severity.CRITICAL&&(this._model.updateModel({errorCode:e.payload.code,errorDetails:e.payload.data,errorPosition:this._isFirstPlay?_:this._isFirstPlaying?g:m}),this._sendAnalytics(E.ERROR),this.reset())},S._onPlaybackRateChanged=function(){this.player.playbackRates.length&&!this.player.playbackRates.includes(this.player.playbackRate)||this._sendAnalytics(E.SPEED)},S._onPlayerStateChanged=function(e){var t=e.payload.oldState,n=e.payload.newState;t.type===this.player.State.BUFFERING&&(this._isBuffering=!1,this._updateBufferModel(),this._sendAnalytics(E.BUFFER_END)),n.type===this.player.State.BUFFERING&&(this._isBuffering=!0,this._bufferStartTime=Date.now(),this._sendAnalytics(E.BUFFER_START))},S._onRelatedClicked=function(){this._sendAnalytics(E.RELATED_CLICKED)},S._onRelatedSelected=function(){this._sendAnalytics(E.RELATED_SELECTED)},S._updateSessionStartTimeModel=function(e){!this._model.getSessionStartTime()&&e&&("object"==typeof e?(this._model.updateModel({sessionStartTime:e.time}),this._viewEventEnabled=e.viewEventsEnabled):this._model.updateModel({sessionStartTime:e})),this._timer.isStopped()&&this._model.updateModel({sessionStartTime:null})},S._updateBufferModel=function(){var e=r._getTimeDifferenceInSeconds(this._bufferStartTime);this._model.updateModel({bufferTime:this._model.getBufferTime()+e,bufferTimeSum:this._model.getBufferTimeSum()+e})},S._updatePlayTimeSumModel=function(){var e;this.player.isLive()?e=this.config.viewEventCountdown-this._model.getBufferTime():(e=this.player.currentTime-this._previousCurrentTime,this._previousCurrentTime=this.player.currentTime),this._model.updateModel({playTimeSum:this._model.getPlayTimeSum()+e})},S._setModelDelegates=function(){var e=this;this._model.getPlaybackSpeed=function(){return e.player.playbackRate},this._model.getActualBitrate=function(){return e._rateHandler.getCurrent()},this._model.getAverageBitrate=function(){return e._rateHandler.getAverage()},this._model.getPartnerId=function(){return e.config.partnerId},this._model.getEntryId=function(){return e.config.entryId},this._model.getPlaylistId=function(){return e.config.playlistId},this._model.getSessionId=function(){return e.config.sessionId},this._model.getPersistentSessionId=function(){return e.config.persistentSessionId},this._model.getClientVer=function(){return e.config.playerVersion},this._model.getClientTag=function(){return"html5:v"+e.config.playerVersion},this._model.getKS=function(){return e.config.ks},this._model.getVirtualEventId=function(){return e.config.virtualEventId},this._model.getUIConfId=function(){return e.config.uiConfId},this._model.getReferrer=function(){return e.config.referrer},this._model.getCustomVar1=function(){return e.config.customVar1},this._model.getCustomVar2=function(){return e.config.customVar2},this._model.getCustomVar3=function(){return e.config.customVar3},this._model.getPosition=function(){return e._getPosition()},this._model.getDeliveryType=function(){return e._getDeliveryType()},this._model.getPlaybackType=function(){return e._getPlaybackType()},this._model.getPlaybackContext=function(){return e.config.playbackContext},this._model.getApplicationVersion=function(){return e.config.applicationVersion},this._model.getApplication=function(){return e.config.application},this._model.getKalturaApplicationVersion=function(){return e.config.kalturaApplicationVersion},this._model.getKalturaApplication=function(){return e._getKalturaApplicationId(e.config.kalturaApplication)},this._model.getUserId=function(){return e.config.userId}},S._getKalturaApplicationId=function(e){return e in b?b[e]:(this.logger.warn("Kava analytics - unknon kalturaAppName: "+e),"")},S._getPosition=function(){return this.player.isLive()?Number.isNaN(this.player.duration)||this.player.duration-this.player.currentTime<1?0:-(this.player.duration-this.player.currentTime):this._isFirstPlaying?this.player.currentTime||this.player.sources.startTime||0:this.player.currentTime},S._getDeliveryType=function(){return this.player.streamType===this.player.StreamType.PROGRESSIVE?"url":this.player.streamType},S._getPlaybackType=function(){if(this.player.isLive()){if(this.player.isDvr())if(this.player.duration-this.player.currentTime>=this.config.dvrThreshold)return"dvr";return"live"}return this.player.isImage()?"img":"vod"},S._validate=function(){return this.config.partnerId?!!this.config.entryId||(this._logMissingParam("entryId"),!1):(this._logMissingParam("partnerId"),!1)},S._logMissingParam=function(e){this.logger.warn("Kava analytics block report because of missing param "+e)},r._getTimeDifferenceInSeconds=function(e){return(Date.now()-e)/1e3},S._updateTabModeInModel=function(e){this._model.updateModel({tabMode:this._isTabHidden(e)&&!this.player.isInPictureInPicture()?f:h})},S._isTabHidden=function(e){return document[e]},S._initTabMode=function(){var e,t,n=this;void 0!==document.hidden?(e="hidden",t="visibilitychange"):void 0!==document.msHidden?(e="msHidden",t="msvisibilitychange"):void 0!==document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),e&&t&&(this.eventManager.listen(document,t,(function(){return n._updateTabModeInModel(e)})),this._updateTabModeInModel(e))},a=r,(o=[{key:"EventType",get:function(){return k.Object.copyDeep(y)}}])&&w(a.prototype,o),T&&w(a,T),r}(r.BasePlugin);L(F,"defaultConfig",{serviceUrl:k.Http.protocol+"//analytics.kaltura.com/api_v3/index.php",requestMethod:R.GET,viewEventCountdown:10,resetSessionCountdown:30,dvrThreshold:120,playbackContext:"",applicationVersion:"",application:"",kalturaApplicationVersion:"",kalturaApplication:""});var x="1.5.4",B="@playkit-js/playkit-js-kava";Object(r.registerPlugin)("kava",F)}]);

var KalturaPlayer;!function(){var t={178:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.InputField=void 0;var a=n(4522),l=n(979),s=n(7998),c=function(t){function e(e){var n=t.call(this,e)||this;return n.state={active:!1},n._inputRef=null,n.setFocus=function(t){var e;null===(e=n._inputRef)||void 0===e||e.focus(t)},n._handleOnChange=function(t){n.props.onChange(t.target.value)},n._onClear=function(){var t;null===(t=n._inputRef)||void 0===t||t.focus(),n.props.onChange("")},n._onFocus=function(){n.setState({active:!0})},n._onBlur=function(){n.setState({active:!1})},n._goToNextSearchResult=function(){var t=n.props.searchResults,e=t.activeSearchIndex,r=t.totalSearchResults,o=t.onSearchIndexChange;0!==r&&o(e!==r?e+1:1)},n._goToPrevSearchResult=function(){var t=n.props.searchResults,e=t.activeSearchIndex,r=t.totalSearchResults;(0,t.onSearchIndexChange)(1!==e?e-1:r)},n._renderSearchResults=function(){return(0,a.h)(a.Fragment,null,(0,a.h)("div",{className:s.searchResults,"aria-live":"polite","aria-label":n.props.searchResults.searchResultsLabel},"".concat(n.props.searchResults.totalSearchResults>0?"".concat(n.props.searchResults.activeSearchIndex,"/").concat(n.props.searchResults.totalSearchResults):"0/0")),(0,a.h)("div",{className:s.prevNextWrapper},n.props.value&&(0,a.h)(l.A11yWrapper,{onClick:n._goToPrevSearchResult},(0,a.h)("button",{tabIndex:0,className:"".concat(s.prevNextButton," ").concat(0===n.props.searchResults.totalSearchResults?s.disabled:""),"aria-label":n.props.searchResults.prevMatchLabel},(0,a.h)("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{d:"M0.292893 4.70711C0.653377 5.06759 1.22061 5.09532 1.6129 4.7903L1.70711 4.70711L4 2.415L6.29289 4.70711C6.65338 5.06759 7.22061 5.09532 7.6129 4.7903L7.70711 4.70711C8.06759 4.34662 8.09532 3.77939 7.7903 3.3871L7.70711 3.29289L4.70711 0.292893C4.34662 -0.0675907 3.77939 -0.0953203 3.3871 0.209705L3.29289 0.292893L0.292893 3.29289C-0.0976311 3.68342 -0.0976311 4.31658 0.292893 4.70711Z",fill:"white","fill-opacity":"0.7"})))),n.props.value&&(0,a.h)(l.A11yWrapper,{onClick:n._goToNextSearchResult},(0,a.h)("button",{tabIndex:0,className:"".concat(s.prevNextButton," ").concat(0===n.props.searchResults.totalSearchResults?s.disabled:""),"aria-label":n.props.searchResults.nextMatchLabel},(0,a.h)("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L4 2.58579L6.29289 0.292893C6.68342 -0.0976311 7.31658 -0.0976311 7.70711 0.292893C8.09763 0.683417 8.09763 1.31658 7.70711 1.70711L4.70711 4.70711C4.31658 5.09763 3.68342 5.09763 3.29289 4.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",fill:"white","fill-opacity":"0.7"}))))))},n._renderClearSearch=function(){return(0,a.h)(l.A11yWrapper,{onClick:n._onClear},(0,a.h)("button",{className:s.clearIcon,tabIndex:0,"aria-label":n.props.clearSearchLabel},(0,a.h)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12ZM3.38951 2.3502L3.46013 2.41264L5.99548 4.9504L8.53067 2.41264L8.60129 2.3502C8.89537 2.12125 9.32081 2.1418 9.59133 2.41199C9.8844 2.70471 9.88469 3.17958 9.59197 3.47265L7.05523 6.01165L9.59197 8.55189C9.88469 8.84496 9.8844 9.31983 9.59133 9.61255C9.32081 9.88275 8.89537 9.90329 8.60129 9.67434L8.53067 9.61191L5.99548 7.0729L3.46013 9.61191L3.38951 9.67434C3.09543 9.90329 2.66999 9.88275 2.39947 9.61255C2.1064 9.31983 2.10611 8.84496 2.39883 8.55189L4.93498 6.01165L2.39883 3.47265C2.10611 3.17958 2.1064 2.70471 2.39947 2.41199C2.66999 2.1418 3.09543 2.12125 3.38951 2.3502Z",fill:"white","fill-opacity":"0.7"}))))},n.state={active:!1},n}return o(e,t),e.prototype.render=function(){var t=this,e={className:s.inputElement,value:this.props.value,onInput:this._handleOnChange,onFocus:this._onFocus,onBlur:this._onBlur,tabIndex:0,ref:function(e){t._inputRef=e}};return this.props.placeholder&&(e["aria-label"]=this.props.placeholder,e.placeholder=this.props.placeholder),(0,a.h)("div",{className:[s.inputFieldWrapper,this.props.value||this.state.active?s.active:""].join(" ")},(0,a.h)("input",i({},e)),this.props.value&&this.props.clearSearchLabel&&this._renderClearSearch(),this.props.value&&this.props.searchResults&&this._renderSearchResults())},e}(a.Component);e.InputField=c},979:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.A11yWrapper=e.isKeyboardEvent=void 0;var r=n(4522),o=n(2052).ui.utils.KeyMap,i=o.ENTER,a=o.SPACE,l=o.UP,s=o.DOWN,c=o.LEFT,p=o.RIGHT,d=function(t){t.preventDefault(),t.stopPropagation()};e.isKeyboardEvent=function(t){return t instanceof KeyboardEvent||[t.offsetX,t.offsetY].every((function(t){return 0===t}))},e.A11yWrapper=function(t){var n=t.children,o=t.onClick,_=t.onUpKeyPressed,A=t.onDownKeyPressed,u=t.onLeftKeyPressed,h=t.onRightKeyPressed,g=t.role,C=t.type,v={onKeyDown:function(t){t.keyCode===a||t.keyCode===i?(d(t),o(t,!0)):t.keyCode===l&&_?(d(t),_(t)):t.keyCode===s&&A?(d(t),A(t)):t.keyCode===c&&u?(d(t),u(t)):t.keyCode===p&&h&&(d(t),h(t))},onClick:function(t){t.stopPropagation(),o(t,(0,e.isKeyboardEvent)(t))},role:g};return"button"===n.type&&(v.type=C||"button"),(0,r.cloneElement)(n,v)},e.A11yWrapper.defaultProps={role:"button"}},3425:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ScreenReaderProvider=e.ScreenReaderContext=void 0;var i=n(4522),a=n(73);e.ScreenReaderContext=(0,i.createContext)((function(t,e){}));var l=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={textToRead:""},e._setTextToRead=function(t,n){void 0===n&&(n=500),setTimeout((function(){e.setState({textToRead:t})}),n)},e}return o(n,t),n.prototype.render=function(){return(0,i.h)(e.ScreenReaderContext.Provider,{value:this._setTextToRead},this.props.children,(0,i.h)("div",{style:a.srWrapper,"aria-live":"polite"},(0,i.h)("span",{id:"sr-only","aria-label":this.state.textToRead},this.state.textToRead)))},n}(i.Component);e.ScreenReaderProvider=l},6563:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuizIcon=void 0;var r=n(4522);e.QuizIcon=function(){return(0,r.h)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.49857 2.11499L12.7442 4.2052C12.9162 4.28987 12.9812 4.48721 12.8895 4.64597C12.8594 4.69807 12.8145 4.74163 12.7597 4.77201L8.54484 7.10634C8.20953 7.29205 7.79063 7.29205 7.45532 7.10634L3.2405 4.77202C3.07335 4.67945 3.01915 4.47933 3.11944 4.32505C3.15235 4.27441 3.19956 4.23299 3.256 4.2052L7.50203 2.11498C7.81345 1.96167 8.18715 1.96168 8.49857 2.11499ZM14 6.02878V10.7642C14 11.1075 13.8049 11.4256 13.486 11.6022L9.24043 13.9536C9.07328 14.0461 8.85649 13.9961 8.7562 13.8418C8.72329 13.7912 8.7059 13.7333 8.7059 13.6742V8.93882C8.7059 8.59551 8.90104 8.27738 9.21997 8.10075L13.4655 5.74942C13.6326 5.65685 13.8494 5.70688 13.9497 5.86116C13.9826 5.91179 14 5.96973 14 6.02878ZM6.5145 8.31192L2.50483 6.04476C2.45303 6.01547 2.39375 6 2.33333 6C2.14924 6 2 6.14064 2 6.31412V10.88C2 11.211 2.1843 11.5178 2.4855 11.6881L6.49517 13.9552C6.54697 13.9845 6.60625 14 6.66667 14C6.85076 14 7 13.8594 7 13.6859V9.12C7 8.78898 6.8157 8.48223 6.5145 8.31192Z",fill:"white"}))}},4300:function(t,e){"use strict";function n(){return"undefined"==typeof Storage?r():((t=localStorage.getItem("anonymousUserId"))||(t=r(),localStorage.setItem("anonymousUserId",t)),t);var t}function r(){return"##".concat("Guest").concat("HashSeparator").concat(function(){for(var t=(0,e.generateId)(),n="",r=0;r<t.length;r++){var o=t.charAt(r);n+=Number.isNaN(+o)?o.charCodeAt(0):o}return n}(),"##")}Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=e.getQnaUserId=e.getUserId=e.generateId=void 0,e.generateId=function(){return(new Date).getTime().toString(36)+Math.random().toString(36).slice(2)},e.getUserId=n,e.getQnaUserId=function(t){var e,r,o,i,a=t,l=a.config,s=a.plugins,c=(null==l?void 0:l.session)||{},p=(null===(r=null===(e=null==s?void 0:s.qna)||void 0===e?void 0:e.config)||void 0===r?void 0:r.userRole)||c.userRole;return p&&"anonymousRole"!==p?(null===(i=null===(o=null==s?void 0:s.qna)||void 0===o?void 0:o.config)||void 0===i?void 0:i.userId)||c.userId:n()},e.debounce=function(t,e,n){var r;return void 0===e&&(e=50),void 0===n&&(n={isImmediate:!1}),function(){for(var o=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var l=function(){r=void 0,n.isImmediate||t.apply(o,i)},s=n.isImmediate&&void 0===r;void 0!==r&&clearTimeout(r),r=setTimeout(l,e),s&&t.apply(this,i)}}},2707:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".InputField__input-field-wrapper___K1QeS{display:flex;align-items:center;flex-grow:1;width:100%;max-width:599px;padding-right:8px;height:32px;border:solid 1px rgba(255,255,255,.4);border-radius:4px}.InputField__input-field-wrapper___K1QeS ::-moz-placeholder{opacity:1}.InputField__input-field-wrapper___K1QeS .InputField__search-results___PBRGr{display:flex;justify-content:flex-end;align-items:center;flex-shrink:0;margin:0 8px 0 6px;font-size:12px;text-overflow:ellipsis}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA{display:flex;flex-direction:column;justify-content:space-around;max-height:100%;height:100%;width:8px;flex:0 0 8px}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA .InputField__prev-next-button___HP7Me{display:flex;align-items:center;height:50%;padding:0;background-color:rgba(0,0,0,0);border:none;cursor:pointer}.InputField__input-field-wrapper___K1QeS .InputField__prev-next-wrapper___zAxBA .InputField__prev-next-button___HP7Me.InputField__disabled___GVLcH{opacity:.4;cursor:default}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE{width:100%;flex-grow:1;flex-shrink:1;font-size:15px;padding:0 6px 1px 6px;color:var(--playkit-tone-1-color);background:rgba(0,0,0,0);border:none;overflow:hidden;text-overflow:ellipsis}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE::placeholder{color:var(--playkit-tone-2-color)}.InputField__input-field-wrapper___K1QeS .InputField__input-element___BAphE::selection{background-color:var(--playkit-primary-brighter-color)}.InputField__input-field-wrapper___K1QeS .InputField__clear-icon___eTi3X{padding:0;flex:0 0 12px;max-width:12px;max-height:12px;background-color:rgba(0,0,0,0);width:12px;height:12px;outline-offset:4px;border:none;cursor:pointer}.InputField__input-field-wrapper___K1QeS:hover{border-color:#fff}.InputField__input-field-wrapper___K1QeS.InputField__active____D1qS{color:var(--playkit-tone-2-color);background:var(--playkit-tone-8-color);border-color:#fff}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/components/input-field/InputField.scss","webpack://./../node_modules/@playkit-js/common/dist/components/variables.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,yCAKE,YAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,eAAA,CACA,iBAAA,CACA,WAAA,CACA,qCAAA,CACA,iBCZY,CAAA,4DDCV,SAAA,CAYF,6EACE,YAAA,CACA,wBAAA,CACA,kBAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,sBAAA,CAEF,gFACE,YAAA,CACA,qBAAA,CACA,4BAAA,CACA,eAAA,CACA,WAAA,CACA,SAAA,CACA,YAAA,CACA,sHACE,YAAA,CACA,kBAAA,CACA,UAAA,CACA,SAAA,CACA,8BAAA,CACA,WAAA,CACA,cAAA,CACA,mJACE,UAAA,CACA,cAAA,CAIN,4EACE,UAAA,CACA,WAAA,CACA,aAAA,CACA,cAAA,CACA,qBAAA,CACA,iCEvBW,CFwBX,wBAAA,CACA,WAAA,CACA,eAAA,CACA,sBAAA,CACA,yFACE,iCE5BS,CF8BX,uFACE,sDEzDmB,CF4DvB,yEACE,SAAA,CACA,aAAA,CACA,cAAA,CACA,eAAA,CACA,8BAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,WAAA,CACA,cAAA,CAEF,+CACE,iBCvEI,CDyEN,oEACE,iCElDW,CFmDX,sCE7CW,CF8CX,iBC5EI",sourcesContent:["@import '../variables.scss';\n\n.input-field-wrapper {\n  ::-moz-placeholder {\n    opacity: 1;\n  }\n\n  display: flex;\n  align-items: center;\n  flex-grow: 1;\n  width: 100%;\n  max-width: 599px;\n  padding-right: 8px;\n  height: 32px;\n  border: solid 1px rgba(255, 255, 255, 0.4);\n  border-radius: $roundness-1;\n  .search-results {\n    display: flex;\n    justify-content: flex-end;\n    align-items: center;\n    flex-shrink: 0;\n    margin: 0 8px 0 6px;\n    font-size: 12px;\n    text-overflow: ellipsis;\n  }\n  .prev-next-wrapper {\n    display: flex;\n    flex-direction: column;\n    justify-content: space-around;\n    max-height: 100%;\n    height: 100%;\n    width: 8px;\n    flex: 0 0 8px;\n    .prev-next-button {\n      display: flex;\n      align-items: center;\n      height: 50%;\n      padding: 0;\n      background-color: transparent;\n      border: none;\n      cursor: pointer;\n      &.disabled {\n        opacity: 0.4;\n        cursor: default;\n      }\n    }\n  }\n  .input-element {\n    width: 100%;\n    flex-grow: 1;\n    flex-shrink: 1;\n    font-size: 15px;\n    padding: 0 6px 1px 6px;\n    color: $tone-1-color;\n    background: transparent;\n    border: none;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    &::placeholder {\n      color: $tone-2-color;\n    }\n    &::selection {\n      background-color: $primary-brighter-color;\n    }\n  }\n  .clear-icon {\n    padding: 0;\n    flex: 0 0 12px;\n    max-width: 12px;\n    max-height: 12px;\n    background-color: transparent;\n    width: 12px;\n    height: 12px;\n    outline-offset: 4px;\n    border: none;\n    cursor: pointer;\n  }\n  &:hover {\n    border-color: $white;\n  }\n  &.active {\n    color: $tone-2-color;\n    background: $tone-8-color;\n    border-color: $white;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n\n// colors\n$white: #ffffff;\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={"input-field-wrapper":"InputField__input-field-wrapper___K1QeS",inputFieldWrapper:"InputField__input-field-wrapper___K1QeS","search-results":"InputField__search-results___PBRGr",searchResults:"InputField__search-results___PBRGr","prev-next-wrapper":"InputField__prev-next-wrapper___zAxBA",prevNextWrapper:"InputField__prev-next-wrapper___zAxBA","prev-next-button":"InputField__prev-next-button___HP7Me",prevNextButton:"InputField__prev-next-button___HP7Me",disabled:"InputField__disabled___GVLcH","input-element":"InputField__input-element___BAphE",inputElement:"InputField__input-element___BAphE","clear-icon":"InputField__clear-icon___eTi3X",clearIcon:"InputField__clear-icon___eTi3X",active:"InputField__active____D1qS"},e.default=a},3861:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".sr-wrapper__sr-wrapper___GwVLr{position:absolute;height:1px;width:1px;overflow:hidden;padding:0;margin:-1px;border:0}","",{version:3,sources:["webpack://./../node_modules/@playkit-js/common/dist/hoc/sr-wrapper/sr-wrapper.scss"],names:[],mappings:"AAAA,gCACE,iBAAA,CACA,UAAA,CACA,SAAA,CACA,eAAA,CACA,SAAA,CACA,WAAA,CACA,QAAA",sourcesContent:[".sr-wrapper {\n  position: absolute;\n  height: 1px;\n  width: 1px;\n  overflow: hidden;\n  padding: 0;\n  margin: -1px;\n  border: 0;\n}"],sourceRoot:""}]),a.locals={"sr-wrapper":"sr-wrapper__sr-wrapper___GwVLr",srWrapper:"sr-wrapper__sr-wrapper___GwVLr"},e.default=a},2492:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".close-button__close-button-icon___ftQi9{position:absolute;top:20px;right:14px;width:24px;height:24px;padding:0;background-color:rgba(0,0,0,0);border:none;cursor:pointer}","",{version:3,sources:["webpack://./components/close-button/close-button.scss"],names:[],mappings:"AAAA,yCACE,iBAAA,CACA,QAAA,CACA,UAAA,CACA,UAAA,CACA,WAAA,CACA,SAAA,CACA,8BAAA,CACA,WAAA,CACA,cAAA",sourcesContent:[".close-button-icon {\n  position: absolute;\n  top: 20px;\n  right: 14px;\n  width: 24px;\n  height: 24px;\n  padding: 0;\n  background-color: transparent;\n  border: none;\n  cursor: pointer;\n}\n"],sourceRoot:""}]),a.locals={"close-button-icon":"close-button__close-button-icon___ftQi9",closeButtonIcon:"close-button__close-button-icon___ftQi9"},e.default=a},89:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".error__error-wrapper___SAqtm{height:100%;width:100%;display:flex;flex-direction:column;color:var(--playkit-tone-3-color)}.error__error-wrapper___SAqtm .error__devider___QRxuo{align-self:flex-start;margin-left:16px;margin-right:8px;height:1px;width:calc(100% - 24px);opacity:.4;background-color:#fff}.error__error-wrapper___SAqtm .error__icon-wrapper___CdU35{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%}.error__error-wrapper___SAqtm .error__icon-wrapper___CdU35 .error__error-icon___CwCa0{width:100%;height:100%;max-width:184px;max-height:184px;background-size:contain;background-repeat:no-repeat;background-position:center}.error__error-wrapper___SAqtm .error__icon-wrapper___CdU35 .error__error-main-text___NDIjX{font-size:1.3em;margin-top:8px;margin-bottom:2px}.error__error-wrapper___SAqtm .error__icon-wrapper___CdU35 .error__error-description-text___BAX7Q{margin:0}.error__error-wrapper___SAqtm .error__icon-wrapper___CdU35 .error__retry-button___i2Yhr{width:88px;height:32px;padding:0;margin-top:12px;background:inherit;color:#fff;border-radius:18px;text-align:center;border:solid 2px rgba(255,255,255,.2);cursor:pointer}","",{version:3,sources:["webpack://./components/error/error.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,8BACE,WAAA,CACA,UAAA,CACA,YAAA,CACA,qBAAA,CACA,iCCyBa,CDxBb,sDACE,qBAAA,CACA,gBAAA,CACA,gBAAA,CACA,UAAA,CACA,uBAAA,CACA,UAAA,CACA,qBAAA,CAEF,2DACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,kBAAA,CACA,WAAA,CACA,sFACE,UAAA,CACA,WAAA,CACA,eAAA,CACA,gBAAA,CACA,uBAAA,CACA,2BAAA,CACA,0BAAA,CAEF,2FACE,eAAA,CACA,cAAA,CACA,iBAAA,CAEF,kGACE,QAAA,CAEF,wFACE,UAAA,CACA,WAAA,CACA,SAAA,CACA,eAAA,CACA,kBAAA,CACA,UAAA,CACA,kBAAA,CACA,iBAAA,CACA,qCAAA,CACA,cAAA",sourcesContent:["@import '../../theme.scss';\n\n.error-wrapper {\n  height: 100%;\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  color: $tone-3-color;\n  .devider {\n    align-self: flex-start;\n    margin-left: 16px;\n    margin-right: 8px;\n    height: 1px;\n    width: calc(100% - 24px);\n    opacity: 0.4;\n    background-color: #ffffff;\n  }\n  .icon-wrapper {\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n    height: 100%;\n    .error-icon {\n      width: 100%;\n      height: 100%;\n      max-width: 184px;\n      max-height: 184px;\n      background-size: contain;\n      background-repeat: no-repeat;\n      background-position: center;\n    }\n    .error-main-text {\n      font-size: 1.3em;\n      margin-top: 8px;\n      margin-bottom: 2px;\n    }\n    .error-description-text {\n      margin: 0;\n    }\n    .retry-button {\n      width: 88px;\n      height: 32px;\n      padding: 0;\n      margin-top: 12px;\n      background: inherit;\n      color: #ffffff;\n      border-radius: 18px;\n      text-align: center;\n      border: solid 2px rgba(255, 255, 255, 0.2);\n      cursor: pointer;\n    }\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={"error-wrapper":"error__error-wrapper___SAqtm",errorWrapper:"error__error-wrapper___SAqtm",devider:"error__devider___QRxuo","icon-wrapper":"error__icon-wrapper___CdU35",iconWrapper:"error__icon-wrapper___CdU35","error-icon":"error__error-icon___CwCa0",errorIcon:"error__error-icon___CwCa0","error-main-text":"error__error-main-text___NDIjX",errorMainText:"error__error-main-text___NDIjX","error-description-text":"error__error-description-text___BAX7Q",errorDescriptionText:"error__error-description-text___BAX7Q","retry-button":"error__retry-button___i2Yhr",retryButton:"error__retry-button___i2Yhr"},e.default=a},9241:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".loading__loading-wrapper___TwmvK{height:100%;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--playkit-tone-3-color)}.loading__loading-wrapper___TwmvK .loading__spinner-ball___rANOk{position:relative;display:flex;align-items:center;width:100%;height:100%;max-width:184px;max-height:184px;margin:4px 0 8px 0;background-size:contain;background-repeat:no-repeat;background-position:center;animation:loading__icon-bounce___EiGrR 2s infinite ease-in-out}.loading__loading-wrapper___TwmvK .loading__bounce-frame___ElPZm{width:100%;height:100%;min-width:184px;min-height:184px;border-radius:50%;background-color:var(--playkit-tone-2-color);opacity:.2;-webkit-animation:loading__frame-bounce___jxpZ5 2s infinite ease-in-out;animation:loading__frame-bounce___jxpZ5 2s infinite ease-in-out}@keyframes loading__icon-bounce___EiGrR{0%,100%{opacity:.3}50%{opacity:1}}@-webkit-keyframes loading__frame-bounce___jxpZ5{0%,100%{-webkit-transform:scale(1);opacity:.1}50%{-webkit-transform:scale(1.3);opacity:.1}}@keyframes loading__frame-bounce___jxpZ5{0%,100%{opacity:.1;transform:scale(1);-webkit-transform:scale(1)}50%{opacity:.25;transform:scale(1.3);-webkit-transform:scale(1.3)}}","",{version:3,sources:["webpack://./components/loading/loading.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,kCACE,WAAA,CACA,UAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,qBAAA,CACA,iCCuBa,CDtBb,iEACE,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CACA,gBAAA,CACA,kBAAA,CACA,uBAAA,CACA,2BAAA,CACA,0BAAA,CAEA,8DAAA,CAGF,iEACE,UAAA,CACA,WAAA,CACA,eAAA,CACA,gBAAA,CACA,iBAAA,CACA,4CCDW,CDEX,UAAA,CAEA,uEAAA,CACA,+DAAA,CAIJ,wCACE,QAEE,UAAA,CAEF,IACE,SAAA,CAAA,CAIJ,iDACE,QAEE,0BAAA,CACA,UAAA,CAEF,IACE,4BAAA,CACA,UAAA,CAAA,CAIJ,yCACE,QAEE,UAAA,CACA,kBAAA,CACA,0BAAA,CAEF,IACE,WAAA,CACA,oBAAA,CACA,4BAAA,CAAA",sourcesContent:["@import '../../theme.scss';\n\n.loading-wrapper {\n  height: 100%;\n  width: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-direction: column;\n  color: $tone-3-color;\n  .spinner-ball {\n    position: relative;\n    display: flex;\n    align-items: center;\n    width: 100%;\n    height: 100%;\n    max-width: 184px;\n    max-height: 184px;\n    margin: 4px 0 8px 0;\n    background-size: contain;\n    background-repeat: no-repeat;\n    background-position: center;\n\n    animation: icon-bounce 2s infinite ease-in-out;\n  }\n\n  .bounce-frame {\n    width: 100%;\n    height: 100%;\n    min-width: 184px;\n    min-height: 184px;\n    border-radius: 50%;\n    background-color: $tone-2-color;\n    opacity: 0.2;\n\n    -webkit-animation: frame-bounce 2s infinite ease-in-out;\n    animation: frame-bounce 2s infinite ease-in-out;\n  }\n}\n\n@keyframes icon-bounce {\n  0%,\n  100% {\n    opacity: 0.3;\n  }\n  50% {\n    opacity: 1;\n  }\n}\n\n@-webkit-keyframes frame-bounce {\n  0%,\n  100% {\n    -webkit-transform: scale(1);\n    opacity: 0.1;\n  }\n  50% {\n    -webkit-transform: scale(1.3);\n    opacity: 0.1;\n  }\n}\n\n@keyframes frame-bounce {\n  0%,\n  100% {\n    opacity: 0.1;\n    transform: scale(1);\n    -webkit-transform: scale(1);\n  }\n  50% {\n    opacity: 0.25;\n    transform: scale(1.3);\n    -webkit-transform: scale(1.3);\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={"loading-wrapper":"loading__loading-wrapper___TwmvK",loadingWrapper:"loading__loading-wrapper___TwmvK","spinner-ball":"loading__spinner-ball___rANOk",spinnerBall:"loading__spinner-ball___rANOk","icon-bounce":"loading__icon-bounce___EiGrR",iconBounce:"loading__icon-bounce___EiGrR","bounce-frame":"loading__bounce-frame___ElPZm",bounceFrame:"loading__bounce-frame___ElPZm","frame-bounce":"loading__frame-bounce___jxpZ5",frameBounce:"loading__frame-bounce___jxpZ5"},e.default=a},4916:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".navigation-filter__filter-root___jKcwy{display:flex;flex-direction:column;width:100%;margin-top:8px;padding-right:10px}.navigation-filter__filter-root___jKcwy .navigation-filter__tabs-wrapper___miBCr{display:flex;height:32px;width:100%}.navigation-filter__filter-root___jKcwy .navigation-filter__tabs-wrapper___miBCr .navigation-filter__tab___khz9U{display:flex;flex:1 1 0px;justify-content:center;padding:1px 8px 3px 8px;align-items:center;background-color:rgba(0,0,0,0);background-position:center;background-repeat:no-repeat;color:#fff;border:none;cursor:pointer}.navigation-filter__filter-root___jKcwy .navigation-filter__tabs-wrapper___miBCr .navigation-filter__tab___khz9U:not(:hover){background-color:rgba(0,0,0,0) !important}.navigation-filter__filter-root___jKcwy .navigation-filter__tabs-wrapper___miBCr .navigation-filter__tab___khz9U.navigation-filter__active___QJTGW{padding-bottom:0;border-bottom:3px solid var(--playkit-primary-color)}.navigation-filter__filter-root___jKcwy .navigation-filter__tabs-wrapper___miBCr .navigation-filter__tab___khz9U .navigation-filter__label___HQOoO{margin-left:10px;font-size:14px;line-height:1.15;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.navigation-filter__filter-root___jKcwy .navigation-filter__total-results___zn6co{margin-top:8px;padding:8px;text-align:left;font-size:14px;line-height:1.29;font-weight:bold;border-radius:4px;background-color:rgba(255,255,255,.16)}.navigation-filter__filter-root___jKcwy .playkit-tooltip{display:flex}","",{version:3,sources:["webpack://./components/navigation-filter/navigation-filter.scss"],names:[],mappings:"AAEA,wCACE,YAAA,CACA,qBAAA,CACA,UAAA,CACA,cAAA,CACA,kBAAA,CACA,iFACE,YAAA,CACA,WAAA,CACA,UAAA,CACA,iHACE,YAAA,CACA,YAAA,CACA,sBAAA,CACA,uBAAA,CACA,kBAAA,CACA,8BAAA,CACA,0BAAA,CACA,2BAAA,CACA,UAAA,CACA,WAAA,CACA,cAAA,CACA,6HACE,yCAAA,CAEF,mJACE,gBAAA,CACA,oDAAA,CAEF,mJACE,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CAIN,kFACE,cAAA,CACA,WAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CACA,gBAAA,CACA,iBAAA,CACA,sCAAA,CAIA,yDACE,YAAA",sourcesContent:["@import '../../theme.scss';\n\n.filter-root {\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  margin-top: 8px;\n  padding-right: 10px;\n  .tabs-wrapper {\n    display: flex;\n    height: 32px;\n    width: 100%;\n    .tab {\n      display: flex;\n      flex: 1 1 0px;\n      justify-content: center;\n      padding: 1px 8px 3px 8px;\n      align-items: center;\n      background-color: transparent;\n      background-position: center;\n      background-repeat: no-repeat;\n      color: #ffffff;\n      border: none;\n      cursor: pointer;\n      &:not(:hover) {\n        background-color: transparent !important; // overwride inline styles\n      }\n      &.active {\n        padding-bottom: 0;\n        border-bottom: 3px solid $primary-color;\n      }\n      .label {\n        margin-left: 10px;\n        font-size: 14px;\n        line-height: 1.15;\n        color: #ffffff;\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n      }\n    }\n  }\n  .total-results {\n    margin-top: 8px;\n    padding: 8px;\n    text-align: left;\n    font-size: 14px;\n    line-height: 1.29;\n    font-weight: bold;\n    border-radius: 4px;\n    background-color: rgba($color: #fff, $alpha: 0.16);\n  }\n\n  :global {\n    .playkit-tooltip {\n      display: flex;\n    }\n  }\n}\n"],sourceRoot:""}]),a.locals={"filter-root":"navigation-filter__filter-root___jKcwy",filterRoot:"navigation-filter__filter-root___jKcwy","tabs-wrapper":"navigation-filter__tabs-wrapper___miBCr",tabsWrapper:"navigation-filter__tabs-wrapper___miBCr",tab:"navigation-filter__tab___khz9U",active:"navigation-filter__active___QJTGW",label:"navigation-filter__label___HQOoO","total-results":"navigation-filter__total-results___zn6co",totalResults:"navigation-filter__total-results___zn6co"},e.default=a},47:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".autoscroll-button__autoscroll-button___hVOdG{opacity:0;position:absolute;bottom:14px;right:16px;width:32px;height:32px;padding:4px;border-radius:4px;border:none;box-shadow:0px 1px .75px rgba(0,0,0,.42),0px 1px .5px rgba(0,0,0,.25),0px 2px 3px rgba(0,0,0,.2);background-color:var(--playkit-primary-darker-color);cursor:pointer;z-index:1}.autoscroll-button__autoscroll-button___hVOdG.autoscroll-button__autoscroll-button-visible___QYMXA{opacity:1}","",{version:3,sources:["webpack://./components/navigation/autoscroll-button/autoscroll-button.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,8CACE,SAAA,CACA,iBAAA,CACA,WAAA,CACA,UAAA,CACA,UAAA,CACA,WAAA,CACA,WAAA,CACA,iBCRY,CDSZ,WAAA,CACA,gGAAA,CACA,oDETqB,CFUrB,cAAA,CACA,SAAA,CACA,mGACE,SAAA",sourcesContent:["@import '../../../theme.scss';\n\n.autoscroll-button {\n  opacity: 0;\n  position: absolute;\n  bottom: 14px;\n  right: 16px;\n  width: 32px;\n  height: 32px;\n  padding: 4px;\n  border-radius: $roundness-1;\n  border: none;\n  box-shadow: 0px 1px 0.75px rgba(0, 0, 0, 0.42), 0px 1px 0.5px rgba(0, 0, 0, 0.25), 0px 2px 3px rgba(0, 0, 0, 0.2);\n  background-color: $primary-darker-color;\n  cursor: pointer;\n  z-index: 1;\n  &.autoscroll-button-visible {\n    opacity: 1;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n@mixin plugin-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={"autoscroll-button":"autoscroll-button__autoscroll-button___hVOdG",autoscrollButton:"autoscroll-button__autoscroll-button___hVOdG","autoscroll-button-visible":"autoscroll-button__autoscroll-button-visible___QYMXA",autoscrollButtonVisible:"autoscroll-button__autoscroll-button-visible___QYMXA"},e.default=a},4692:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".EmptyList__empty-state-wrapper___s9bhT{text-align:center;margin-top:40%;margin-bottom:auto}.EmptyList__empty-state-wrapper___s9bhT .EmptyList__primary-text___Pw7tk,.EmptyList__empty-state-wrapper___s9bhT .EmptyList__secondary-text___AMmrk{color:var(--playkit-tone-3-color)}.EmptyList__empty-state-wrapper___s9bhT .EmptyList__primary-text___Pw7tk{margin-top:12px;font-size:18px;font-weight:bold}.EmptyList__empty-state-wrapper___s9bhT .EmptyList__secondary-text___AMmrk{margin-top:4px;font-size:14px}","",{version:3,sources:["webpack://./components/navigation/icons/EmptyList.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,wCACE,iBAAA,CACA,cAAA,CACA,kBAAA,CACA,oJAEE,iCCwBW,CDtBb,yEACE,eAAA,CACA,cAAA,CACA,gBAAA,CAEF,2EACE,cAAA,CACA,cAAA",sourcesContent:["@import '../../../theme.scss';\n\n.empty-state-wrapper {\n  text-align: center;\n  margin-top: 40%;\n  margin-bottom: auto;\n  .primary-text,\n  .secondary-text {\n    color: $tone-3-color;\n  }\n  .primary-text {\n    margin-top: 12px;\n    font-size: 18px;\n    font-weight: bold;\n  }\n  .secondary-text {\n    margin-top: 4px;\n    font-size: 14px;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={"empty-state-wrapper":"EmptyList__empty-state-wrapper___s9bhT",emptyStateWrapper:"EmptyList__empty-state-wrapper___s9bhT","primary-text":"EmptyList__primary-text___Pw7tk",primaryText:"EmptyList__primary-text___Pw7tk","secondary-text":"EmptyList__secondary-text___AMmrk",secondaryText:"EmptyList__secondary-text___AMmrk"},e.default=a},3897:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".EmptyState__empty-state___PS7pG{color:var(--playkit-tone-2-color);text-align:center;margin-top:11px}.EmptyState__empty-state___PS7pG .EmptyState__arrow___DFMvQ{margin-left:15%;width:fit-content}.EmptyState__empty-state___PS7pG .EmptyState__title___rMVUN{font-weight:700;font-size:18px;line-height:20px;margin-bottom:0px;margin-top:4px}.EmptyState__empty-state___PS7pG .EmptyState__description___PdPad{font-weight:400;font-size:14px;line-height:18px;margin:4px 16px 0px 16px}","",{version:3,sources:["webpack://./components/navigation/icons/EmptyState.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,iCACE,iCC4Ba,CD3Bb,iBAAA,CACA,eAAA,CACA,4DACE,eAAA,CACA,iBAAA,CAEF,4DACE,eAAA,CACA,cAAA,CACA,gBAAA,CACA,iBAAA,CACA,cAAA,CAEF,kEACE,eAAA,CACA,cAAA,CACA,gBAAA,CACA,wBAAA",sourcesContent:["@import '../../../theme.scss';\n\n.empty-state{\n  color: $tone-2-color;\n  text-align: center;\n  margin-top: 11px;\n  .arrow {\n    margin-left: 15%;\n    width: fit-content;\n  }\n  .title {\n    font-weight: 700;\n    font-size: 18px;\n    line-height: 20px;\n    margin-bottom: 0px;\n    margin-top: 4px;\n  }\n  .description{\n    font-weight: 400;\n    font-size: 14px;\n    line-height: 18px;\n    margin: 4px 16px 0px 16px;\n  }\n}","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={"empty-state":"EmptyState__empty-state___PS7pG",emptyState:"EmptyState__empty-state___PS7pG",arrow:"EmptyState__arrow___DFMvQ",title:"EmptyState__title___rMVUN",description:"EmptyState__description___PdPad"},e.default=a},844:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".IconsFactory__icon___b3yWk{display:flex}","",{version:3,sources:["webpack://./components/navigation/icons/IconsFactory.scss"],names:[],mappings:"AAAA,4BACE,YAAA",sourcesContent:[".icon {\n  display: flex;\n}\n"],sourceRoot:""}]),a.locals={icon:"IconsFactory__icon___b3yWk"},e.default=a},6369:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,'.NavigationItem__navigation-item___MpTpX{position:relative;padding:8px 8px 8px 0;display:flex;align-items:flex-start;min-height:28px;border-left:2px hidden;background-color:rgba(0,0,0,0);border-radius:2px;border-left:2px solid rgba(0,0,0,0);-webkit-transition:background-color .3s;transition:background-color .3s}.NavigationItem__navigation-item___MpTpX.NavigationItem__hidden___so890{display:none}.NavigationItem__navigation-item___MpTpX.NavigationItem__selected___OJgGm{background-color:rgba(255,255,255,.12);border-left:2px solid var(--playkit-primary-color)}.NavigationItem__navigation-item___MpTpX.NavigationItem__selected___OJgGm.NavigationItem__first___vgYZU{border-bottom-left-radius:0;border-bottom-right-radius:0}.NavigationItem__navigation-item___MpTpX.NavigationItem__selected___OJgGm.NavigationItem__mid___ZNxRg{border-radius:0}.NavigationItem__navigation-item___MpTpX.NavigationItem__selected___OJgGm.NavigationItem__last___hbjTB{border-top-left-radius:0;border-top-right-radius:0}.NavigationItem__navigation-item___MpTpX:hover{background:rgba(255,255,255,.2)}.NavigationItem__navigation-item___MpTpX.NavigationItem__first___vgYZU,.NavigationItem__navigation-item___MpTpX.NavigationItem__single___m73NK{margin-top:8px}.NavigationItem__navigation-item___MpTpX.NavigationItem__mid___ZNxRg .NavigationItem__metadata___bSMRT span,.NavigationItem__navigation-item___MpTpX.NavigationItem__last___hbjTB .NavigationItem__metadata___bSMRT span{visibility:hidden}.NavigationItem__navigation-item___MpTpX.NavigationItem__mid___ZNxRg:after,.NavigationItem__navigation-item___MpTpX.NavigationItem__first___vgYZU:after{content:"";position:absolute;display:block;bottom:0;width:100%;height:1px;background-color:#000}.NavigationItem__navigation-item___MpTpX .NavigationItem__icon-wrapper___JkjOg{display:inline-block;margin-left:8px}.NavigationItem__navigation-item___MpTpX .NavigationItem__content___a7JfM,.NavigationItem__navigation-item___MpTpX .NavigationItem__metadata___bSMRT{background:rgba(0,0,0,0)}.NavigationItem__navigation-item___MpTpX .NavigationItem__metadata___bSMRT{display:flex;align-items:center;line-height:18px;color:#fff;text-align:right;font-size:12px;padding-right:8px;padding-left:6px}.NavigationItem__navigation-item___MpTpX .NavigationItem__metadata___bSMRT.NavigationItem__with-time___b_qNX{min-width:70px}.NavigationItem__navigation-item___MpTpX .NavigationItem__content___a7JfM{display:flex;flex-direction:column;overflow:hidden;text-align:left;flex-grow:1;font-size:14px;margin-bottom:2px}.NavigationItem__navigation-item___MpTpX .NavigationItem__content___a7JfM.NavigationItem__has-image___GPLmi .NavigationItem__title-wrapper___LJhDf,.NavigationItem__navigation-item___MpTpX .NavigationItem__content___a7JfM.NavigationItem__has-image___GPLmi .NavigationItem__expand-text-wrapper___kugSw{margin-bottom:8px}.NavigationItem__navigation-item___MpTpX .NavigationItem__content___a7JfM .NavigationItem__title-wrapper___LJhDf{display:flex;justify-content:space-between;min-width:100%}.NavigationItem__navigation-item___MpTpX .NavigationItem__content___a7JfM .NavigationItem__title-wrapper___LJhDf .NavigationItem__title___Kuuv5{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.NavigationItem__navigation-item___MpTpX .NavigationItem__content___a7JfM .NavigationItem__show-more-button___KHeou{cursor:pointer;font-size:14px;display:block;background:none;border:none;color:#fff;margin:0px 0px 0px 2px;padding:0;width:fit-content;outline-offset:-1px}.NavigationItem__navigation-item___MpTpX .NavigationItem__content___a7JfM .NavigationItem__description___cg8RX{font-size:12px;line-height:18px;margin-top:4px;margin-bottom:4px}.NavigationItem__navigation-item___MpTpX .NavigationItem__thumbnail___qc8Zo{display:block;max-width:400px;width:100%;border-radius:4px}.NavigationItem__navigation-item___MpTpX .NavigationItem__content-text___PXhhi{border-radius:3px}',"",{version:3,sources:["webpack://./components/navigation/navigation-item/NavigationItem.scss"],names:[],mappings:"AAEA,yCACE,iBAAA,CACA,qBAAA,CACA,YAAA,CACA,sBAAA,CACA,eAAA,CACA,sBAAA,CACA,8BAAA,CACA,iBAAA,CACA,mCAAA,CACA,uCAAA,CACA,+BAAA,CACA,wEACE,YAAA,CAEF,0EACE,sCAAA,CACA,kDAAA,CACA,wGACE,2BAAA,CACA,4BAAA,CAEF,sGACE,eAAA,CAEF,uGACE,wBAAA,CACA,yBAAA,CAGJ,+CACE,+BAAA,CAEF,+IAEE,cAAA,CAIA,yNACE,iBAAA,CAMF,wJACE,UAAA,CACA,iBAAA,CACA,aAAA,CACA,QAAA,CACA,UAAA,CACA,UAAA,CACA,qBAAA,CAIJ,+EACE,oBAAA,CACA,eAAA,CAGF,qJAEE,wBAAA,CAGF,2EACE,YAAA,CACA,kBAAA,CACA,gBAAA,CACA,UAAA,CACA,gBAAA,CACA,cAAA,CACA,iBAAA,CACA,gBAAA,CACA,6GACE,cAAA,CAIJ,0EACE,YAAA,CACA,qBAAA,CACA,eAAA,CACA,eAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CAGE,4SAEE,iBAAA,CAIJ,iHACE,YAAA,CACA,6BAAA,CACA,cAAA,CACA,gJACE,sBAAA,CACA,kBAAA,CACA,eAAA,CAIJ,oHACE,cAAA,CACA,cAAA,CACA,aAAA,CACA,eAAA,CACA,WAAA,CACA,UAAA,CACA,sBAAA,CACA,SAAA,CACA,iBAAA,CACA,mBAAA,CAGF,+GACE,cAAA,CACA,gBAAA,CACA,cAAA,CACA,iBAAA,CAIJ,4EACE,aAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAA,CAGF,+EACE,iBAAA",sourcesContent:["@import '../../../theme.scss';\n\n.navigation-item {\n  position: relative;\n  padding: 8px 8px 8px 0;\n  display: flex;\n  align-items: flex-start;\n  min-height: 28px;\n  border-left: 2px hidden;\n  background-color: transparent;\n  border-radius: 2px;\n  border-left: 2px solid transparent;\n  -webkit-transition: background-color 0.3s;\n  transition: background-color 0.3s;\n  &.hidden {\n    display: none;\n  }\n  &.selected {\n    background-color: rgba(255, 255, 255, 0.12);\n    border-left: 2px solid $primary-color;\n    &.first {\n      border-bottom-left-radius: 0;\n      border-bottom-right-radius: 0;\n    }\n    &.mid {\n      border-radius: 0;\n    }\n    &.last {\n      border-top-left-radius: 0;\n      border-top-right-radius: 0;\n    }\n  }\n  &:hover {\n    background: rgba(255, 255, 255, 0.2);\n  }\n  &.first,\n  &.single {\n    margin-top: 8px;\n  }\n  &.mid,\n  &.last {\n    .metadata span {\n      visibility: hidden;\n    }\n  }\n\n  &.mid,\n  &.first {\n    &:after {\n      content: '';\n      position: absolute;\n      display: block;\n      bottom: 0;\n      width: 100%;\n      height: 1px;\n      background-color: black;\n    }\n  }\n\n  .icon-wrapper {\n    display: inline-block;\n    margin-left: 8px;\n  }\n\n  .content,\n  .metadata {\n    background: transparent;\n  }\n\n  .metadata {\n    display: flex;\n    align-items: center;\n    line-height: 18px;\n    color: #ffffff;\n    text-align: right;\n    font-size: 12px;\n    padding-right: 8px;\n    padding-left: 6px;\n    &.with-time {\n      min-width: 70px;\n    }\n  }\n\n  .content {\n    display: flex;\n    flex-direction: column;\n    overflow: hidden;\n    text-align: left;\n    flex-grow: 1;\n    font-size: 14px;\n    margin-bottom: 2px;\n\n    &.has-image {\n      .title-wrapper,\n      .expand-text-wrapper {\n        margin-bottom: 8px;\n      }\n    }\n\n    .title-wrapper {\n      display: flex;\n      justify-content: space-between;\n      min-width: 100%;\n      .title {\n        text-overflow: ellipsis;\n        white-space: nowrap;\n        overflow: hidden;\n      }\n    }\n\n    .show-more-button {\n      cursor: pointer;\n      font-size: 14px;\n      display: block;\n      background: none;\n      border: none;\n      color: #ffffff;\n      margin: 0px 0px 0px 2px;\n      padding: 0;\n      width: fit-content;\n      outline-offset: -1px;\n    }\n\n    .description {\n      font-size: 12px;\n      line-height: 18px;\n      margin-top: 4px;\n      margin-bottom: 4px;\n    }\n  }\n\n  .thumbnail {\n    display: block;\n    max-width: 400px;\n    width: 100%;\n    border-radius: 4px;\n  }\n\n  .content-text {\n    border-radius: 3px;\n  }\n}\n"],sourceRoot:""}]),a.locals={"navigation-item":"NavigationItem__navigation-item___MpTpX",navigationItem:"NavigationItem__navigation-item___MpTpX",hidden:"NavigationItem__hidden___so890",selected:"NavigationItem__selected___OJgGm",first:"NavigationItem__first___vgYZU",mid:"NavigationItem__mid___ZNxRg",last:"NavigationItem__last___hbjTB",single:"NavigationItem__single___m73NK",metadata:"NavigationItem__metadata___bSMRT","icon-wrapper":"NavigationItem__icon-wrapper___JkjOg",iconWrapper:"NavigationItem__icon-wrapper___JkjOg",content:"NavigationItem__content___a7JfM","with-time":"NavigationItem__with-time___b_qNX",withTime:"NavigationItem__with-time___b_qNX","has-image":"NavigationItem__has-image___GPLmi",hasImage:"NavigationItem__has-image___GPLmi","title-wrapper":"NavigationItem__title-wrapper___LJhDf",titleWrapper:"NavigationItem__title-wrapper___LJhDf","expand-text-wrapper":"NavigationItem__expand-text-wrapper___kugSw",expandTextWrapper:"NavigationItem__expand-text-wrapper___kugSw",title:"NavigationItem__title___Kuuv5","show-more-button":"NavigationItem__show-more-button___KHeou",showMoreButton:"NavigationItem__show-more-button___KHeou",description:"NavigationItem__description___cg8RX",thumbnail:"NavigationItem__thumbnail___qc8Zo","content-text":"NavigationItem__content-text___PXhhi",contentText:"NavigationItem__content-text___PXhhi"},e.default=a},2431:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".QuizTitle__title-wrapper___zpjIv{display:flex;flex-direction:row;justify-content:space-between}.QuizTitle__title-wrapper___zpjIv .QuizTitle__title___NWVzG{display:flex}.QuizTitle__title-wrapper___zpjIv .QuizTitle__label-wrapper___OlCOK{display:flex;background:var(--playkit-tone-6-color);border-radius:4px;font-size:12px;font-weight:700;line-height:11px;max-height:16px;max-width:fit-content}.QuizTitle__title-wrapper___zpjIv .QuizTitle__label-wrapper___OlCOK span{padding:3px 4px;color:#fff}.QuizTitle__title-wrapper___zpjIv .QuizTitle__label-wrapper___OlCOK.QuizTitle__correct___KXD_q{background:var(--playkit-success-darker-color)}.QuizTitle__title-wrapper___zpjIv .QuizTitle__label-wrapper___OlCOK.QuizTitle__incorrect___liCY7{background:var(--playkit-danger-darker-color)}.playkit-size-sm .QuizTitle__title-wrapper___zpjIv,.playkit-size-xs .QuizTitle__title-wrapper___zpjIv,.playkit-size-ty .QuizTitle__title-wrapper___zpjIv{flex-direction:column}.playkit-size-sm .QuizTitle__label-wrapper___OlCOK,.playkit-size-xs .QuizTitle__label-wrapper___OlCOK,.playkit-size-ty .QuizTitle__label-wrapper___OlCOK{margin-top:4px}","",{version:3,sources:["webpack://./components/navigation/navigation-item/QuizTitle.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss","webpack://./theme.scss"],names:[],mappings:"AAEA,kCACE,YAAA,CACA,kBAAA,CACA,6BAAA,CAEA,4DACE,YAAA,CAGF,oEACE,YAAA,CACA,sCCsBW,CDrBX,iBEZU,CFaV,cAAA,CACA,eAAA,CACA,gBAAA,CACA,eAAA,CACA,qBAAA,CAEA,yEACE,eAAA,CACA,UAAA,CAGF,+FACE,8CCZiB,CDenB,iGACE,6CCXgB,CDmBpB,yJACE,qBAAA,CAEF,yJACE,cAAA",sourcesContent:["@import '../../../theme.scss';\n\n.title-wrapper {\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n\n  .title {\n    display: flex;\n  }\n\n  .label-wrapper {\n    display: flex;\n    background: $tone-6-color;\n    border-radius: $roundness-1;\n    font-size: 12px;\n    font-weight: 700;\n    line-height: 11px;\n    max-height: 16px;\n    max-width: fit-content;\n\n    span {\n      padding: 3px 4px;\n      color: white;\n    }\n\n    &.correct {\n      background: $success-darker-color;\n    }\n\n    &.incorrect {\n      background: $danger-darker-color;\n    }\n  }\n}\n\n:global(.playkit-size-sm),\n:global(.playkit-size-xs),\n:global(.playkit-size-ty), {\n  .title-wrapper {\n    flex-direction: column;\n  }\n  .label-wrapper {\n    margin-top: 4px;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n@mixin plugin-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n"],sourceRoot:""}]),a.locals={"title-wrapper":"QuizTitle__title-wrapper___zpjIv",titleWrapper:"QuizTitle__title-wrapper___zpjIv",title:"QuizTitle__title___NWVzG","label-wrapper":"QuizTitle__label-wrapper___OlCOK",labelWrapper:"QuizTitle__label-wrapper___OlCOK",correct:"QuizTitle__correct___KXD_q",incorrect:"QuizTitle__incorrect___liCY7"},e.default=a},1254:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".NavigationList__navigationList___xdjLu{padding:0 16px;color:#fff;overflow:hidden}","",{version:3,sources:["webpack://./components/navigation/navigation-list/NavigationList.scss"],names:[],mappings:"AAAA,wCACE,cAAA,CACA,UAAA,CACA,eAAA",sourcesContent:[".navigationList {\n  padding: 0 16px;\n  color: white;\n  overflow: hidden;\n}\n"],sourceRoot:""}]),a.locals={navigationList:"NavigationList__navigationList___xdjLu"},e.default=a},2270:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".navigaton__hidden___BxvyP{visibility:hidden}.navigaton__body___evx8r{overflow:auto;height:100%}.navigaton__body___evx8r::-webkit-scrollbar{width:4px}.navigaton__body___evx8r::-webkit-scrollbar-track{background:rgba(33,33,33,.9)}.navigaton__body___evx8r::-webkit-scrollbar-thumb{border-radius:3px;background-color:rgba(255,255,255,.3)}.navigaton__root___CN_tB{display:flex;justify-content:center;padding:16px 4px 16px 0px;color:#fff;height:100%;width:100%;position:absolute;background-color:rgba(0,0,0,.7);backdrop-filter:blur(10px)}.navigaton__root___CN_tB .navigaton__global-container___WBHA6{height:100%;display:flex;flex-direction:column;max-width:599px;width:100%}.navigaton__root___CN_tB .navigaton__global-container___WBHA6 .navigaton__header___PqbY7{display:flex;flex-direction:column;align-items:center;justify-content:space-between;width:100%;margin-bottom:6px;padding-left:16px;font-size:16px}.navigaton__root___CN_tB .navigaton__global-container___WBHA6 .navigaton__header___PqbY7 .navigaton__plugin-name___eJcS1{width:100%;margin:6px 0 0 0;font-size:15px;line-height:1.4;color:var(--playkit-tone-2-color);text-align:left}.navigaton__root___CN_tB .navigaton__global-container___WBHA6 .navigaton__header___PqbY7 .navigaton__search-wrapper___JDfpT{width:100%}.navigaton__root___CN_tB .navigaton__global-container___WBHA6 .navigaton__header___PqbY7 .navigaton__search-wrapper___JDfpT.navigaton__small-width___P1Tfj{padding-right:44px}.navigaton__root___CN_tB .navigaton__global-container___WBHA6 .navigaton__header___PqbY7 .navigaton__search-wrapper___JDfpT.navigaton__medium-width___Xbl7s{padding-right:22px}.navigaton__root___CN_tB .navigaton__global-container___WBHA6 .navigaton__header___PqbY7 .navigaton__close-button___SUzZx{position:absolute;top:0;right:10px;width:24px;height:24px;padding:0;background-color:rgba(0,0,0,0);border:none;cursor:pointer}.navigaton__root___CN_tB *{font-family:sans-serif;font-style:normal}","",{version:3,sources:["webpack://./components/navigation/navigaton.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,2BACE,iBAAA,CAEF,yBACE,aAAA,CACA,WAAA,CCFA,4CACE,SAAA,CAEF,kDACE,4BAAA,CAEF,kDACE,iBAAA,CACA,qCAAA,CDFJ,yBACE,YAAA,CACA,sBAAA,CACA,yBAAA,CACA,UAAA,CACA,WAAA,CACA,UAAA,CACA,iBAAA,CACA,+BAAA,CACA,0BAAA,CACA,8DACE,WAAA,CACA,YAAA,CACA,qBAAA,CACA,eAAA,CACA,UAAA,CACA,yFACE,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,6BAAA,CACA,UAAA,CACA,iBAAA,CACA,iBAAA,CACA,cAAA,CACA,yHACE,UAAA,CACA,gBAAA,CACA,cAAA,CACA,eAAA,CACA,iCEVO,CFWP,eAAA,CAEF,4HACE,UAAA,CACA,2JACE,kBAAA,CAEF,4JACE,kBAAA,CAGJ,0HACE,iBAAA,CACA,KAAA,CACA,UAAA,CACA,UAAA,CACA,WAAA,CACA,SAAA,CACA,8BAAA,CACA,WAAA,CACA,cAAA,CAMN,2BACE,sBAAA,CACA,iBAAA",sourcesContent:["@import '../../theme.scss';\n\n.hidden {\n  visibility: hidden;\n}\n.body {\n  overflow: auto;\n  height: 100%;\n  @include plugin-scrollbar();\n}\n\n.root {\n  display: flex;\n  justify-content: center;\n  padding: 16px 4px 16px 0px;\n  color: #ffffff;\n  height: 100%;\n  width: 100%;\n  position: absolute;\n  background-color: rgba(0, 0, 0, 0.7);\n  backdrop-filter: blur(10px);\n  .global-container {\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n    max-width: 599px;\n    width: 100%;\n    .header {\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      justify-content: space-between;\n      width: 100%;\n      margin-bottom: 6px;\n      padding-left: 16px;\n      font-size: 16px;\n      .plugin-name {\n        width: 100%;\n        margin: 6px 0 0 0;\n        font-size: 15px;\n        line-height: 1.4;\n        color: $tone-2-color;\n        text-align: left;\n      }\n      .search-wrapper {\n        width: 100%;\n        &.small-width {\n          padding-right: 44px;\n        }\n        &.medium-width {\n          padding-right: 22px;\n        }\n      }\n      .close-button {\n        position: absolute;\n        top: 0;\n        right: 10px;\n        width: 24px;\n        height: 24px;\n        padding: 0;\n        background-color: transparent;\n        border: none;\n        cursor: pointer;\n      }\n    }\n  }\n\n  // TODO: remove once player fix the font\n  * {\n    font-family: sans-serif;\n    font-style: normal;\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n$roundness-1: 4px;\n\n@mixin plugin-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={hidden:"navigaton__hidden___BxvyP",body:"navigaton__body___evx8r",root:"navigaton__root___CN_tB","global-container":"navigaton__global-container___WBHA6",globalContainer:"navigaton__global-container___WBHA6",header:"navigaton__header___PqbY7","plugin-name":"navigaton__plugin-name___eJcS1",pluginName:"navigaton__plugin-name___eJcS1","search-wrapper":"navigaton__search-wrapper___JDfpT",searchWrapper:"navigaton__search-wrapper___JDfpT","small-width":"navigaton__small-width___P1Tfj",smallWidth:"navigaton__small-width___P1Tfj","medium-width":"navigaton__medium-width___Xbl7s",mediumWidth:"navigaton__medium-width___Xbl7s","close-button":"navigaton__close-button___SUzZx",closeButton:"navigaton__close-button___SUzZx"},e.default=a},977:function(t,e,n){"use strict";n.r(e);var r=n(559),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([t.id,".plugin-button__pluginButton___XT1OU.plugin-button__active___jxNNO{background-color:var(--playkit-tone-6-color)}","",{version:3,sources:["webpack://./components/navigation/plugin-button/plugin-button.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAGE,mEACE,4CC+BW",sourcesContent:["@import '../../../theme.scss';\n\n.pluginButton {\n  &.active {\n    background-color: $tone-6-color;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),a.locals={pluginButton:"plugin-button__pluginButton___XT1OU",active:"plugin-button__active___jxNNO"},e.default=a},3476:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<t.length;c++){var p=[].concat(t[c]);r&&a[p[0]]||(void 0!==i&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=i),n&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=n):p[2]=n),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),e.push(p))}},e}},559:function(t){"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */"),a=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[e].concat(a).concat([i]).join("\n")}return[e].join("\n")}},7998:function(t,e,n){var r=n(1892),o=n(2707);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},73:function(t,e,n){var r=n(1892),o=n(3861);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},5338:function(t,e,n){var r=n(1892),o=n(2492);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},5753:function(t,e,n){var r=n(1892),o=n(89);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},5991:function(t,e,n){var r=n(1892),o=n(9241);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},1232:function(t,e,n){var r=n(1892),o=n(4916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},5582:function(t,e,n){var r=n(1892),o=n(47);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},8539:function(t,e,n){var r=n(1892),o=n(4692);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},3841:function(t,e,n){var r=n(1892),o=n(3897);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},4164:function(t,e,n){var r=n(1892),o=n(844);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},3199:function(t,e,n){var r=n(1892),o=n(6369);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},7840:function(t,e,n){var r=n(1892),o=n(2431);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},9875:function(t,e,n){var r=n(1892),o=n(1254);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},3337:function(t,e,n){var r=n(1892),o=n(2270);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},158:function(t,e,n){var r=n(1892),o=n(977);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},1892:function(t,e,n){"use strict";var r,o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),i=[];function a(t){for(var e=-1,n=0;n<i.length;n++)if(i[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},r=[],o=0;o<t.length;o++){var l=t[o],s=e.base?l[0]+e.base:l[0],c=n[s]||0,p="".concat(s," ").concat(c);n[s]=c+1;var d=a(p),_={css:l[1],media:l[2],sourceMap:l[3]};-1!==d?(i[d].references++,i[d].updater(_)):i.push({identifier:p,updater:h(_,e),references:1}),r.push(p)}return r}function s(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,p=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function d(t,e,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=p(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function _(t,e,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var A=null,u=0;function h(t,e){var n,r,o;if(e.singleton){var i=u++;n=A||(A=s(e)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=s(e),r=_.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var o=a(n[r]);i[o].references--}for(var s=l(t,e),c=0;c<n.length;c++){var p=a(n[c]);0===i[p].references&&(i[p].updater(),i.splice(p,1))}n=s}}}},5743:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CloseButton=void 0;const r=n(4522),o=n(2052),i=n(5338),a=n(979),l=n(1293),{Icon:s}=KalturaPlayer.ui.components,{withText:c,Text:p}=o.ui.preacti18n,d={closeButtonLabel:(0,r.h)(p,{id:"navigation.hide_plugin"},"Hide Navigation")};e.CloseButton=c(d)((t=>(0,r.h)(a.A11yWrapper,{onClick:t.onClick},(0,r.h)("button",{className:[i.closeButtonIcon,"kaltura-navigation__close-button"].join(" "),tabIndex:0,"aria-label":t.closeButtonLabel,"data-testid":"navigation_closeButton"},(0,r.h)(s,{id:"navigation-plugin-close-button",height:l.icons.BigSize,width:l.icons.BigSize,viewBox:`0 0 ${l.icons.BigSize} ${l.icons.BigSize}`,path:l.icons.CLOSE_ICON})))))},2507:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ARROW_IMG=e.CURLY_LINE_IMG=void 0,e.CURLY_LINE_IMG="M104.114 32.428C107.014 36.4279 108.747 42.1111 108.999 49.9841C109.008 50.2601 108.791 50.491 108.515 50.4998C108.239 50.5086 108.008 50.292 108 50.016C107.751 42.264 106.048 36.7991 103.305 33.0148C100.569 29.2402 96.76 27.0851 92.1896 26.0218C87.6073 24.9558 82.2725 24.9912 76.5247 25.5991C70.7792 26.2068 64.6581 27.3819 58.5056 28.575L58.0569 28.662C52.0616 29.8249 46.0449 30.9919 40.3676 31.6399C34.5506 32.3039 29.0528 32.428 24.2647 31.43C19.466 30.4298 15.362 28.2979 12.3758 24.444C9.39539 20.5976 7.57109 15.0907 7.2174 7.4194C7.20468 7.14355 7.41798 6.90962 7.69384 6.8969C7.96968 6.88418 8.20361 7.09749 8.21633 7.37334C8.56417 14.9176 10.353 20.2007 13.1662 23.8315C15.9736 27.4546 19.8437 29.487 24.4687 30.451C29.1043 31.4172 34.4795 31.3055 40.2542 30.6464C45.8921 30.0029 51.8754 28.8424 57.8847 27.6768L58.3152 27.5933C64.4601 26.4017 70.6238 25.2177 76.4195 24.6047C82.2129 23.9919 87.6756 23.945 92.4162 25.0478C97.1686 26.1535 101.208 28.4185 104.114 32.428Z",e.ARROW_IMG="M6.80215 0.873801C6.98605 0.842182 7.17223 0.915669 7.285 1.06439C11.1308 6.13629 14.6446 11.4612 17.795 16.9923C17.9317 17.2322 17.8481 17.5376 17.6082 17.6744C17.3683 17.8112 17.0631 17.7276 16.9264 17.4876C13.9568 12.2741 10.6622 7.24496 7.06908 2.44006L1.66228 19.3926C1.57835 19.6557 1.2971 19.801 1.03409 19.7171C0.771077 19.6332 0.6259 19.3518 0.709828 19.0887L6.4105 1.21474C6.46723 1.03688 6.61824 0.90542 6.80215 0.873801Z"},7870:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};Object.defineProperty(e,"__esModule",{value:!0}),e.Error=void 0;const o=n(4522),i=n(2052),a=n(979),l=n(5753),s=n(9760),{withText:c,Text:p}=i.ui.preacti18n,d={whoops:(0,o.h)(p,{id:"navigation.whoops"},"Whoops!"),errorMessage:(0,o.h)(p,{id:"navigation.error_message"},"We couldn't retrieve your Data."),retry:(0,o.h)(p,{id:"navigation.retry"},"Retry")};e.Error=c(d)((t=>{var{onRetryLoad:e}=t,n=r(t,["onRetryLoad"]);return(0,o.h)("div",{className:l.errorWrapper,role:"banner"},(0,o.h)("div",{className:l.devider}),(0,o.h)("div",{className:l.iconWrapper,"aria-label":n.errorMessage},(0,o.h)("div",{className:l.errorIcon},(0,o.h)(s.ErrorIconSVG,null)),(0,o.h)("p",{className:l.errorMainText},n.whoops),(0,o.h)("p",{className:l.errorDescriptionText},n.errorMessage),(0,o.h)(a.A11yWrapper,{onClick:e},(0,o.h)("button",{className:l.retryButton,tabIndex:0},n.retry))))}))},1311:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(7870),e)},9760:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorIconSVG=void 0;const r=n(4522);e.ErrorIconSVG=()=>(0,r.h)("svg",{width:"184px",height:"184px",viewBox:"0 0 184 184",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},(0,r.h)("title",null,"IL/ Error"),(0,r.h)("desc",null,"Created with Sketch."),(0,r.h)("g",{id:"IL/-Error",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("circle",{id:"Oval",fill:"#333333",cx:"92",cy:"92",r:"92"}),(0,r.h)("path",{d:"M86.8445942,41 C98.1281098,41 107.894768,46.3707345 112.610486,54.1896075 L112.772795,54.4651697 C121.905986,54.9935965 129.089492,60.510023 129.089492,67.2372881 C129.089492,67.4828605 129.07992,67.7268193 129.06103,67.9689809 C143.527428,69.1244669 154.803778,78.4637688 154.803778,89.8135593 C154.803778,101.945102 141.920543,111.779661 126.028268,111.779661 C122.218304,111.779661 118.581281,111.214432 115.253251,110.187831 C110.482744,111.936312 104.172429,113 97.2527575,113 C90.6076765,113 84.5245506,112.019057 79.8270144,110.392971 C76.2815407,111.290993 72.4601472,111.779661 68.4772473,111.779661 C49.8799037,111.779661 34.8037779,101.125556 34.8037779,87.9830508 C34.8037779,77.4055553 44.569383,68.439928 58.0766538,65.3432099 C58.0715743,65.1615713 58.069084,64.9793312 58.069084,64.7966102 C58.069084,51.6541053 70.9523188,41 86.8445942,41 Z",id:"Combined-Shape",fill:"#1A7080"}),(0,r.h)("path",{d:"M83.1492849,135.070223 C82.1325765,138.189187 86.1421275,140.443183 88.278329,137.95355 L112.039401,110.261242 C113.708897,108.315531 112.326427,105.307692 109.76264,105.307692 L102.55417,105.307692 L108.530391,92.2483573 C109.439682,90.2613598 107.987631,88 105.802461,88 L90.6745782,88 C89.4360625,88 88.3248534,88.7610908 87.8773011,89.9159147 L79.0065008,112.805338 C78.2445332,114.771451 79.6951774,116.889423 81.8037779,116.889423 L89.0757959,116.889423 L83.1492849,135.070223 Z",id:"Path-8",fill:"#333333","fill-rule":"nonzero"}),(0,r.h)("polygon",{id:"Path-8",fill:"#999999",points:"90.6745782 91 81.8037779 113.889423 93.2090926 113.889423 86.0015674 136 109.76264 108.307692 97.8821035 108.307692 105.802461 91"}),(0,r.h)("polygon",{id:"Path-8",fill:"#01ACCD",opacity:"0.5",points:"90.6745782 91 81.8037779 113.889423 93.2090926 113.889423 86.0015674 136 109.76264 108.307692 97.8821035 108.307692 105.802461 91"}),(0,r.h)("path",{d:"M86.9135883,41 C90.3885178,41 93.7197752,41.5049061 96.8044095,42.4302153 C80.0521708,44.2102049 67.0736479,56.714855 67.0736479,71.8761372 C67.0736479,72.1038764 67.0765763,72.331016 67.0824019,72.557529 C51.5088979,76.3414085 40.1641521,87.1546035 39.7216459,99.9991784 C36.6015945,96.4151247 34.8037779,92.202078 34.8037779,87.6945045 C34.8037779,77.1820037 44.5822685,68.2714617 58.1073807,65.1937351 C58.1024214,65.013137 58.0999284,64.8320391 58.0999284,64.6504633 C58.0999284,51.5886731 71.0002433,41 86.9135883,41 Z",id:"Combined-Shape",fill:"#222222",opacity:"0.3"}),(0,r.h)("path",{d:"M90.8028945,22 L90.8028945,29.0476864 C90.8028945,29.5999712 91.2506097,30.0476864 91.8028945,30.0476864 C92.3551792,30.0476864 92.8028945,29.5999712 92.8028945,29.0476864 L92.8028945,22 C92.8028945,21.4477153 92.3551792,21 91.8028945,21 C91.2506097,21 90.8028945,21.4477153 90.8028945,22 Z M126.112197,30.8515352 L121.582032,36.2503762 C121.22703,36.6734508 121.282214,37.3042064 121.705288,37.6592082 C122.128363,38.01421 122.759119,37.9590261 123.114121,37.5359514 L127.644286,32.1371104 C127.999288,31.7140357 127.944104,31.0832801 127.521029,30.7282783 C127.097955,30.3732765 126.467199,30.4284605 126.112197,30.8515352 Z M152.431974,58.6783398 L145.491357,59.9021577 C144.947463,59.9980609 144.584295,60.5167193 144.680198,61.0606136 C144.776101,61.6045079 145.294759,61.9676764 145.838654,61.8717732 L152.77927,60.6479553 C153.323164,60.552052 153.686333,60.0333936 153.59043,59.4894993 C153.494526,58.945605 152.975868,58.5824365 152.431974,58.6783398 Z M30.826519,60.6479553 L37.7671352,61.8717732 C38.3110295,61.9676764 38.8296879,61.6045079 38.9255912,61.0606136 C39.0214944,60.5167193 38.6583259,59.9980609 38.1144316,59.9021577 L31.1738154,58.6783398 C30.6299211,58.5824365 30.1112627,58.945605 30.0153594,59.4894993 C29.9194562,60.0333936 30.2826247,60.552052 30.826519,60.6479553 Z M55.9615029,32.1371104 L60.4916684,37.5359514 C60.8466702,37.9590261 61.4774258,38.01421 61.9005005,37.6592082 C62.3235751,37.3042064 62.3787591,36.6734508 62.0237573,36.2503762 L57.4935918,30.8515352 C57.13859,30.4284605 56.5078344,30.3732765 56.0847597,30.7282783 C55.6616851,31.0832801 55.6065011,31.7140357 55.9615029,32.1371104 Z",id:"Path-9",fill:"#01ACCD","fill-rule":"nonzero",opacity:"0.5"}),(0,r.h)("g",{id:"Oval-Copy-5",opacity:"0.3",transform:"translate(80.000000, 166.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,-5.32907052e-15 3.3015873,-5.32907052e-15 C1.47817098,-5.32907052e-15 1.07647224e-12,1.4883507 1.07647224e-12,3.32432432 C1.07647224e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval-Copy-3"})),(0,r.h)("g",{id:"Path-Copy-4",opacity:"0.9",transform:"translate(100.000000, 146.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path-Copy-2",points:"5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0"})),(0,r.h)("g",{id:"Oval-2",opacity:"0.5",transform:"translate(39.000000, 115.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,0 3.3015873,0 C1.47817098,0 1.08002496e-12,1.4883507 1.08002496e-12,3.32432432 C1.08002496e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval"})),(0,r.h)("g",{id:"Oval-Copy-4",opacity:"0.8",transform:"translate(60.000000, 139.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,1.42108547e-14 3.3015873,1.42108547e-14 C1.47817098,1.42108547e-14 1.08002496e-12,1.4883507 1.08002496e-12,3.32432432 C1.08002496e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval-Copy"})),(0,r.h)("g",{id:"Path-Copy-3",opacity:"0.3",transform:"translate(31.000000, 142.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path-Copy",points:"5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0"})),(0,r.h)("g",{id:"Oval-Copy-6",opacity:"0.6",transform:"translate(139.000000, 139.000000)",fill:"#01ACCD"},(0,r.h)("path",{d:"M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,0 3.3015873,0 C1.47817098,0 1.08713039e-12,1.4883507 1.08713039e-12,3.32432432 C1.08713039e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z",id:"Oval-Copy-2"})),(0,r.h)("g",{id:"Path-2",opacity:"0.4",transform:"translate(122.000000, 122.000000)",fill:"#01ACCD"},(0,r.h)("polygon",{id:"Path",points:"5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0"}))))},1293:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.icons=void 0,(n=e.icons||(e.icons={})).PLUGIN_ICON="M14.8 6c4.86 0 8.8 3.94 8.8 8.8 0 2.1-.736 4.03-1.964 5.542l4.096 4.097c.357.357.357.936 0 1.293-.357.357-.936.357-1.293 0l-4.096-4.097C18.83 22.864 16.901 23.6 14.8 23.6c-4.86 0-8.8-3.94-8.8-8.8C6 9.94 9.94 6 14.8 6zm0 2.07c-3.717 0-6.73 3.013-6.73 6.73 0 3.717 3.013 6.73 6.73 6.73 3.717 0 6.73-3.013 6.73-6.73 0-3.717-3.013-6.73-6.73-6.73z",n.CLOSE_ICON="M17.9113162,16 L24.6072325,9.30408374 C25.1313645,8.77995172 25.1287183,7.92687249 24.6009229,7.3990771 C24.0694478,6.86760201 23.220227,6.86845682 22.6959163,7.39276754 L16,14.0886838 L9.30408374,7.39276754 C8.77995172,6.86863552 7.92687249,6.8712817 7.3990771,7.3990771 C6.86760201,7.93055219 6.86845682,8.77977302 7.39276754,9.30408374 L14.0886838,16 L7.39276754,22.6959163 C6.86863552,23.2200483 6.8712817,24.0731275 7.3990771,24.6009229 C7.93055219,25.132398 8.77977302,25.1315432 9.30408374,24.6072325 L16,17.9113162 L22.6959163,24.6072325 C23.2200483,25.1313645 24.0731275,25.1287183 24.6009229,24.6009229 C25.132398,24.0694478 25.1315432,23.220227 24.6072325,22.6959163 L17.9113162,16 Z",n.BigSize=32,n.MediumSize=24,n.SmallSize=16},7234:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LoaderIconSVG=void 0;const r=n(4522);e.LoaderIconSVG=()=>(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"184",height:"184",viewBox:"0 0 184 184"},(0,r.h)("g",{fill:"none","fill-rule":"evenodd"},(0,r.h)("g",null,(0,r.h)("g",{transform:"translate(31 18) rotate(-10 88.005 3.565)"},(0,r.h)("rect",{width:"87",height:"103",fill:"#999",rx:"5"}),(0,r.h)("rect",{width:"55",height:"8",x:"16",y:"16",fill:"#545454",rx:"2"}),(0,r.h)("rect",{width:"55",height:"8",x:"16",y:"63",fill:"#545454",rx:"2"}),(0,r.h)("rect",{width:"55",height:"8",x:"16",y:"79",fill:"#545454",rx:"2"}),(0,r.h)("rect",{width:"16",height:"23",x:"16",y:"32",fill:"#545454",rx:"2"}),(0,r.h)("rect",{width:"37",height:"23",x:"34",y:"32",fill:"#545454",rx:"2"})),(0,r.h)("path",{fill:"#222",d:"M89.525 74c3.494 0 6.882.453 10.108 1.304l3.78 21.436c.48 2.72-1.336 5.313-4.055 5.792l-49.292 8.691C51.258 90.465 68.469 74 89.525 74z",opacity:".5",transform:"translate(31 18)"})),(0,r.h)("path",{fill:"#999",d:"M66.302 157.649c1.823 0 3.301-1.489 3.301-3.325S68.125 151 66.302 151c-1.824 0-3.302 1.488-3.302 3.324 0 1.836 1.478 3.325 3.302 3.325zm0-2c-.716 0-1.302-.59-1.302-1.325 0-.734.586-1.324 1.302-1.324.715 0 1.301.59 1.301 1.324 0 .735-.586 1.325-1.301 1.325z",opacity:".5"}),(0,r.h)("path",{fill:"#999",d:"M171.302 98.649c1.823 0 3.301-1.489 3.301-3.325S173.125 92 171.302 92c-1.824 0-3.302 1.488-3.302 3.324 0 1.836 1.478 3.325 3.302 3.325zm0-2c-.716 0-1.302-.59-1.302-1.325 0-.734.586-1.324 1.302-1.324.715 0 1.301.59 1.301 1.324 0 .735-.586 1.325-1.301 1.325z",opacity:".8"}),(0,r.h)("path",{fill:"#999",d:"M16.302 108.649c1.823 0 3.301-1.489 3.301-3.325S18.125 102 16.302 102c-1.824 0-3.302 1.488-3.302 3.324 0 1.836 1.478 3.325 3.302 3.325zm0-2c-.716 0-1.302-.59-1.302-1.325 0-.734.586-1.324 1.302-1.324.715 0 1.301.59 1.301 1.324 0 .735-.586 1.325-1.301 1.325z",opacity:".6"}),(0,r.h)("path",{fill:"#999",d:"M136.302 30.649c1.823 0 3.301-1.489 3.301-3.325S138.125 24 136.302 24c-1.824 0-3.302 1.488-3.302 3.324 0 1.836 1.478 3.325 3.302 3.325zm0-2c-.716 0-1.302-.59-1.302-1.325 0-.734.586-1.324 1.302-1.324.715 0 1.301.59 1.301 1.324 0 .735-.586 1.325-1.301 1.325z",opacity:".3"}),(0,r.h)("path",{fill:"#999",d:"M5.5 2.5L8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0z",opacity:".4",transform:"translate(12 76)"}),(0,r.h)("path",{fill:"#999",d:"M5.5 2.5L8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0z",opacity:".3",transform:"translate(71 164)"}),(0,r.h)("path",{fill:"#999",d:"M5.5 2.5L8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0z",opacity:".9",transform:"translate(132 44)"}),(0,r.h)("path",{fill:"#999",d:"M5.5 2.5L8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0z",opacity:".9",transform:"translate(164 109)"}),(0,r.h)("g",null,(0,r.h)("path",{fill:"#CCC",d:"M33.15 0C51.458 0 66.3 14.461 66.3 32.3c0 7.55-2.659 14.496-7.114 19.996l17.672 17.217c1.523 1.484 1.523 3.89 0 5.374-1.523 1.484-3.993 1.484-5.516 0l-17.67-17.219C48.028 62.01 40.9 64.6 33.15 64.6 14.842 64.6 0 50.139 0 32.3S14.842 0 33.15 0zm.357 5.507c-14.865 0-26.915 11.836-26.915 26.435 0 14.6 12.05 26.435 26.915 26.435 14.865 0 26.916-11.835 26.916-26.435 0-14.6-12.05-26.435-26.916-26.435z",transform:"translate(90 93)"}),(0,r.h)("path",{fill:"#FFF",d:"M33.507 5.507c-14.865 0-26.915 11.836-26.915 26.435 0 14.6 12.05 26.435 26.915 26.435 14.865 0 26.916-11.835 26.916-26.435 0-14.6-12.05-26.435-26.916-26.435z",opacity:".632",transform:"translate(90 93)"}))))},934:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(8048),e)},8048:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Loading=void 0;const r=n(4522),o=n(2052),i=n(5991),a=n(7234),{withText:l,Text:s}=o.ui.preacti18n,c={loading:(0,r.h)(s,{id:"navigation.loading"},"Loading")};e.Loading=l(c)((t=>(0,r.h)("div",{className:i.loadingWrapper,role:"banner","aria-label":t.loading},(0,r.h)("div",{className:i.spinnerBall},(0,r.h)(a.LoaderIconSVG,null),(0,r.h)("div",{className:i.bounceFrame})))))},4225:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(8327),e)},8327:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationFilter=void 0;const o=n(4522),i=n(2052),a=n(979),l=n(1232),s=n(2085),c=n(6246),{Tooltip:p}=KalturaPlayer.ui.components,{withText:d,Text:_}=i.ui.preacti18n;let A=class extends o.Component{constructor(){super(...arguments),this._tabsRefMap=new Map,this._handleChange=t=>{this.props.onChange(t)},this._getTabRef=t=>this._tabsRefMap.get(t),this._setTabRef=(t,e)=>this._tabsRefMap.set(t,e),this._handleUpKeyPressed=t=>()=>{var e;null===(e=this._getTabRef(t-1))||void 0===e||e.focus()},this._handleDownKeyPressed=t=>()=>{var e;null===(e=this._getTabRef(t+1))||void 0===e||e.focus()},this._renderTab=(t,e)=>(0,o.h)(p,{label:t.label},(0,o.h)(a.A11yWrapper,{onClick:()=>this._handleChange(t.type),onDownKeyPressed:this._handleDownKeyPressed(e),onUpKeyPressed:this._handleUpKeyPressed(e),role:"radio"},(0,o.h)("button",{"aria-label":`${this.props.listType} ${t.label}`,key:t.type,tabIndex:0,type:"checkbox","aria-checked":t.isActive,className:[l.tab,t.isActive?l.active:""].join(" "),ref:t=>{this._setTabRef(e,t)}},t.type===s.ItemTypes.All?(0,o.h)("span",null,this.props.itemTypesTranslates[s.ItemTypes.All]):(0,o.h)(o.Fragment,null,(0,o.h)(c.IconsFactory,{iconType:t.type}),this.props.availableTabs.length<4&&(0,o.h)("span",{className:l.label},t.label))))),this._getTabsData=()=>{const{availableTabs:t,activeTab:e}=this.props;return t.map((t=>({type:t,isActive:e===t,label:this.props.itemTypesTranslates[t]})))},this._renderSearchResult=()=>(0,o.h)("div",{className:l.totalResults,"aria-label":this.props.searchResultsLabel},this.props.searchResultsLabel)}componentWillUnmount(){this._tabsRefMap=new Map}shouldComponentUpdate(t){const{activeTab:e,availableTabs:n,totalResults:r}=this.props;return e!==t.activeTab||n!==t.availableTabs||r!==t.totalResults}componentDidUpdate(t,e,n){if(t.totalResults!==this.props.totalResults){const t=`${this.props.noResultTitle}. ${this.props.noResultDescription}`,e=null===this.props.totalResults?"":this.props.totalResults>0?this.props.searchResultsLabel:t;this.props.setTextToRead(e)}}render(){const{totalResults:t}=this.props,e=this._getTabsData();return(0,o.h)("div",{className:l.filterRoot},0!==t&&e.length>=2&&(0,o.h)("div",{className:l.tabsWrapper,role:"radiogroup"},e.map(((t,e)=>this._renderTab(t,e)))),!!t&&this._renderSearchResult())}};A=r([d((t=>{var e;const{activeTab:n,totalResults:r,listDataContainCaptions:i}=t,a="result"+(r&&r>1?"s":""),l={listType:(0,o.h)(_,{id:"navigation.list_type"},"List"),noResultTitle:(0,o.h)(_,{id:"navigation.search_no_results_title"},"No Results Found"),noResultDescription:(0,o.h)(_,{id:"navigation.search_no_results_description"},"Try a more general keyword")};return r?n===s.ItemTypes.All?i?Object.assign(Object.assign({},l),{searchResultsLabel:(0,o.h)(_,{id:"navigation.search_result_all_types_with_captions",fields:{totalResults:r},plural:r},`${r} ${a} in all content including captions`)}):Object.assign(Object.assign({},l),{searchResultsLabel:(0,o.h)(_,{id:"navigation.search_result_all_types",fields:{totalResults:r},plural:r},`${r} ${a} in all content`)}):Object.assign(Object.assign({},l),{searchResultsLabel:(0,o.h)(_,{id:"navigation.search_result_one_type",fields:{totalResults:r,type:t.itemTypesTranslates[n]},plural:r},`${r} ${a} in ${null===(e=t.itemTypesTranslates[n])||void 0===e?void 0:e.toLowerCase()}`)}):l}))],A),e.NavigationFilter=A},975:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationSearch=void 0;const r=n(4522),o=n(2052),i=n(178),a=n(4300),{withText:l,Text:s}=o.ui.preacti18n,c={searchPlaceholder:(0,r.h)(s,{id:"navigation.search_placeholder"},"Search in video"),clearSearch:(0,r.h)(s,{id:"navigation.clear_search"},"Clear search")};class p extends r.Component{constructor(t){super(t),this._inputField=null,this._debouncedOnChange=(0,a.debounce)(t.onChange,300)}shouldComponentUpdate(t){const{searchQuery:e,kitchenSinkActive:n}=this.props;return e!==t.searchQuery||n!==t.kitchenSinkActive}componentDidUpdate(t){var e;const{kitchenSinkActive:n,toggledWithEnter:r}=this.props;!t.kitchenSinkActive&&n&&r&&(null===(e=this._inputField)||void 0===e||e.setFocus({preventScroll:!0}))}render(){const{searchQuery:t}=this.props;return(0,r.h)(i.InputField,{value:t,placeholder:this.props.searchPlaceholder,clearSearchLabel:this.props.clearSearch,onChange:this._debouncedOnChange,ref:t=>{this._inputField=t}})}}e.NavigationSearch=l(c)(p)},5074:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoscrollButton=void 0;const r=n(4522),o=n(2052),i=n(5582),a=n(979),{withText:l,Text:s}=o.ui.preacti18n,{Tooltip:c}=KalturaPlayer.ui.components,p={autoScrollLabel:(0,r.h)(s,{id:"transcript.auto_scroll"},"Resume AutoScroll")};e.AutoscrollButton=l(p)((({onClick:t,isAutoScrollEnabled:e,setAutoscrollButtonRef:n=(()=>{}),autoScrollLabel:o})=>(0,r.h)(a.A11yWrapper,{onClick:t},(0,r.h)("div",{className:`${i.autoscrollButton} ${e?"":i.autoscrollButtonVisible}`,tabIndex:e?-1:1,"aria-label":o,ref:n},(0,r.h)(c,{label:o,type:"left"},(0,r.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M6.29289 15.2929C6.65338 14.9324 7.22061 14.9047 7.6129 15.2097L7.70711 15.2929L12 19.585L16.2929 15.2929C16.6534 14.9324 17.2206 14.9047 17.6129 15.2097L17.7071 15.2929C18.0676 15.6534 18.0953 16.2206 17.7903 16.6129L17.7071 16.7071L12.7071 21.7071C12.3466 22.0676 11.7794 22.0953 11.3871 21.7903L11.2929 21.7071L6.29289 16.7071C5.90237 16.3166 5.90237 15.6834 6.29289 15.2929Z",fill:"white"}),(0,r.h)("path",{d:"M17.7071 8.70711C17.3466 9.06759 16.7794 9.09532 16.3871 8.7903L16.2929 8.70711L12 4.415L7.70711 8.70711C7.34662 9.06759 6.77939 9.09532 6.3871 8.79029L6.29289 8.70711C5.93241 8.34662 5.90468 7.77939 6.2097 7.3871L6.29289 7.29289L11.2929 2.29289C11.6534 1.93241 12.2206 1.90468 12.6129 2.2097L12.7071 2.29289L17.7071 7.29289C18.0976 7.68342 18.0976 8.31658 17.7071 8.70711Z",fill:"white"}),(0,r.h)("rect",{x:"10",y:"10",width:"4",height:"4",rx:"2",fill:"white"})))))))},4393:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(5074),e)},6126:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnswerOnAirIcon=void 0;const r=n(4522);e.AnswerOnAirIcon=t=>(0,r.h)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99996 10.5C7.72602 10.5 11.1196 11.34 11.3237 13.0079L11.3333 13.1667V13.8333C11.3333 14.1667 11.0854 14.4449 10.7648 14.4927L10.6666 14.5H1.33329C0.999959 14.5 0.721722 14.2521 0.673889 13.9315L0.666626 13.8333V13.1667C0.666626 11.3933 4.21996 10.5 5.99996 10.5ZM13.9533 2.49333C15.7933 4.92667 15.7866 8.14667 13.9533 10.5067C13.6966 10.8428 13.2103 10.8932 12.8794 10.6476L12.7933 10.5733L12.7733 10.5533C12.5133 10.2933 12.4666 9.88 12.68 9.58C14.0066 7.68667 14.0133 5.24 12.7 3.41333C12.48 3.10667 12.52 2.69333 12.7866 2.42667C13.1133 2.1 13.6733 2.12667 13.9533 2.49333ZM5.99996 3.83333C7.47272 3.83333 8.66663 5.02724 8.66663 6.5C8.66663 7.97276 7.47272 9.16667 5.99996 9.16667C4.5272 9.16667 3.33329 7.97276 3.33329 6.5C3.33329 5.02724 4.5272 3.83333 5.99996 3.83333ZM11.7866 4.96C12.3066 5.96667 12.3066 7.1 11.8 8.06667C11.5635 8.52089 10.9728 8.62086 10.5807 8.3178L10.5 8.24667L10.48 8.22667C10.24 7.98667 10.1866 7.63333 10.3133 7.32C10.5266 6.79333 10.5266 6.20667 10.3133 5.68C10.2025 5.40583 10.2294 5.09594 10.3898 4.86643L10.4666 4.77333L10.4733 4.76667C10.8666 4.37333 11.5333 4.46667 11.7866 4.96Z",fill:t.color})),e.AnswerOnAirIcon.defaultProps={color:"#FFFFFF"}},3400:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaptionIcon=void 0;const r=n(4522);e.CaptionIcon=t=>(0,r.h)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.25 3C13.6642 3 14 3.3731 14 3.83333V12.1667C14 12.6269 13.6642 13 13.25 13H2.75C2.33579 13 2 12.6269 2 12.1667V3.83333C2 3.3731 2.33579 3 2.75 3H13.25ZM5.95253 6.33333C5.59771 6.33333 5.29269 6.41802 5.03746 6.58739C4.78224 6.75676 4.58719 6.99639 4.45231 7.30631C4.31744 7.61622 4.25 7.97297 4.25 8.37658C4.25 8.97238 4.39732 9.44745 4.69197 9.8018C4.98663 10.1562 5.39643 10.3333 5.92141 10.3333C6.16834 10.3333 6.39036 10.2949 6.58748 10.218C6.78461 10.1411 6.94801 10.0396 7.0777 9.91351C7.20739 9.78739 7.30388 9.65466 7.36716 9.51532C7.43045 9.37598 7.46209 9.24505 7.46209 9.12252C7.46209 9.01922 7.42786 8.92192 7.35938 8.83063C7.29091 8.73934 7.20479 8.69369 7.10104 8.69369C7.01389 8.69369 6.94023 8.72492 6.88006 8.78739C6.81988 8.84985 6.76386 8.93634 6.71198 9.04685C6.61861 9.23423 6.51123 9.37357 6.38984 9.46487C6.26845 9.55616 6.12268 9.6018 5.95253 9.6018C5.82596 9.6018 5.70976 9.57357 5.60394 9.51712C5.49811 9.46066 5.40785 9.37778 5.33315 9.26847C5.25845 9.15916 5.20139 9.02703 5.16196 8.87207C5.12254 8.71712 5.10282 8.54715 5.10282 8.36216C5.10282 7.96817 5.1796 7.65766 5.33315 7.43063C5.4867 7.2036 5.68901 7.09009 5.94008 7.09009C6.11439 7.09009 6.25808 7.13574 6.37116 7.22703C6.48425 7.31832 6.59267 7.45525 6.69642 7.63784C6.75452 7.73153 6.80691 7.7994 6.8536 7.84144C6.90029 7.88348 6.95891 7.9045 7.02946 7.9045C7.13736 7.9045 7.22918 7.86366 7.30491 7.78198C7.38065 7.7003 7.41852 7.6006 7.41852 7.48288C7.41852 7.36757 7.3848 7.24324 7.31736 7.10991C7.24993 6.97658 7.1524 6.85105 7.02479 6.73333C6.89718 6.61561 6.74155 6.51952 6.55791 6.44504C6.37428 6.37057 6.17248 6.33333 5.95253 6.33333ZM9.74044 6.33333C9.38561 6.33333 9.08059 6.41802 8.82537 6.58739C8.57014 6.75676 8.37509 6.99639 8.24022 7.30631C8.10534 7.61622 8.03791 7.97297 8.03791 8.37658C8.03791 8.97238 8.18523 9.44745 8.47988 9.8018C8.77453 10.1562 9.18434 10.3333 9.70932 10.3333C9.95624 10.3333 10.1783 10.2949 10.3754 10.218C10.5725 10.1411 10.7359 10.0396 10.8656 9.91351C10.9953 9.78739 11.0918 9.65466 11.1551 9.51532C11.2184 9.37598 11.25 9.24505 11.25 9.12252C11.25 9.01922 11.2158 8.92192 11.1473 8.83063C11.0788 8.73934 10.9927 8.69369 10.889 8.69369C10.8018 8.69369 10.7281 8.72492 10.668 8.78739C10.6078 8.84985 10.5518 8.93634 10.4999 9.04685C10.4065 9.23423 10.2991 9.37357 10.1777 9.46487C10.0564 9.55616 9.91059 9.6018 9.74044 9.6018C9.61386 9.6018 9.49767 9.57357 9.39184 9.51712C9.28602 9.46066 9.19575 9.37778 9.12105 9.26847C9.04635 9.15916 8.98929 9.02703 8.94987 8.87207C8.91044 8.71712 8.89073 8.54715 8.89073 8.36216C8.89073 7.96817 8.9675 7.65766 9.12105 7.43063C9.2746 7.2036 9.47691 7.09009 9.72799 7.09009C9.90229 7.09009 10.046 7.13574 10.1591 7.22703C10.2722 7.31832 10.3806 7.45525 10.4843 7.63784C10.5424 7.73153 10.5948 7.7994 10.6415 7.84144C10.6882 7.88348 10.7468 7.9045 10.8174 7.9045C10.9253 7.9045 11.0171 7.86366 11.0928 7.78198C11.1686 7.7003 11.2064 7.6006 11.2064 7.48288C11.2064 7.36757 11.1727 7.24324 11.1053 7.10991C11.0378 6.97658 10.9403 6.85105 10.8127 6.73333C10.6851 6.61561 10.5295 6.51952 10.3458 6.44504C10.1622 6.37057 9.96039 6.33333 9.74044 6.33333Z",fill:t.color})),e.CaptionIcon.defaultProps={color:"#FFFFFF"}},2827:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChapterIcon=void 0;const r=n(4522);e.ChapterIcon=t=>(0,r.h)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 4.5C4 3.94772 4.44772 3.5 5 3.5H11C11.5523 3.5 12 3.94772 12 4.5V13.5C12 14.324 11.0592 14.7944 10.4 14.3L8.6 12.95C8.24444 12.6833 7.75556 12.6833 7.4 12.95L5.6 14.3C4.94076 14.7944 4 14.324 4 13.5V4.5Z",fill:t.color})),e.ChapterIcon.defaultProps={color:"#FFFFFF"}},7565:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyList=void 0;const r=n(4522),o=n(2052),i=n(8539),{withText:a,Text:l}=o.ui.preacti18n,s={noResultTitle:(0,r.h)(l,{id:"navigation.search_no_results_title"},"No Results Found"),noResultDescription:(0,r.h)(l,{id:"navigation.search_no_results_description"},"Try a more general keyword")};e.EmptyList=a(s)((({showNoResultsText:t,noResultTitle:e,noResultDescription:n})=>(0,r.h)("div",{className:i.emptyStateWrapper,role:"banner"},(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"184",height:"184",viewBox:"0 0 184 184"},(0,r.h)("g",{fill:"none","fill-rule":"evenodd"},(0,r.h)("circle",{cx:"92",cy:"92",r:"92",fill:"#333"}),(0,r.h)("g",{transform:"translate(99 5)"},(0,r.h)("path",{fill:"#4DA2B3",d:"M41.184 12.743c5.133 11.52 3.33 25.725-5.742 36.162-9.073 10.438-22.89 14.2-35.012 10.72z"}),(0,r.h)("path",{fill:"#01ACCD",d:"M18 59c3.095 1.394 6.5 2.165 10.074 2.165.536 0 1.068-.017 1.595-.052l2.325 7.161c.25.768-.153 1.595-.912 1.872l-2.227.814c-.778.284-1.639-.116-1.923-.895l-.018-.051-.26-.803c-.14.42-.463.773-.91.935l-2.226.814c-.778.284-1.64-.116-1.924-.895l-.018-.051z",opacity:".2"}),(0,r.h)("path",{fill:"#1F6370",d:"M42.596 0c6.446 0 11.67 5.36 11.67 11.972 0 3.382-1.367 6.437-3.565 8.614C53.418 24.803 55 29.86 55 35.293 55 50.043 43.344 62 28.966 62c-3.935 0-7.665-.895-11.01-2.498 5.91-1.85 11.43-5.336 15.829-10.395 6.322-7.273 9.101-16.39 8.458-25.169-6.282-.191-11.317-5.475-11.317-11.966C30.926 5.36 36.15 0 42.596 0z"}),(0,r.h)("circle",{cx:"43",cy:"9",r:"2",fill:"#222"}),(0,r.h)("g",{"fill-rule":"nonzero"},(0,r.h)("path",{fill:"#01ACCD",d:"M4.72 1.697c-4.454 3.85-4.915 7.539-.258 8.59 2.24.507 5.83.12 8.738-.689 1.776-.494 2.212-2.567.759-3.606L7.777 1.569c-.91-.651-2.218-.596-3.056.128z",transform:"translate(47 9)"}),(0,r.h)("path",{fill:"#222",d:"M4.72 1.697c-4.454 3.85-4.915 7.539-.258 8.59 2.24.507 5.83.12 8.738-.689 1.776-.494 2.212-2.567.759-3.606L7.777 1.569c-.91-.651-2.218-.596-3.056.128z",opacity:".7",transform:"translate(47 9)"}))),(0,r.h)("path",{fill:"#01ACCD",d:"M92 184c-32.8 0-61.59-17.164-77.879-43h155.758c-16.29 25.836-45.08 43-77.879 43z",opacity:".5"}),(0,r.h)("path",{fill:"#01ACCD",d:"M29.302 109.649c1.823 0 3.301-1.489 3.301-3.325S31.125 103 29.302 103c-1.824 0-3.302 1.488-3.302 3.324 0 1.836 1.478 3.325 3.302 3.325zm0-2c-.716 0-1.302-.59-1.302-1.325 0-.734.586-1.324 1.302-1.324.715 0 1.301.59 1.301 1.324 0 .735-.586 1.325-1.301 1.325z",opacity:".3"}),(0,r.h)("path",{fill:"#01ACCD",d:"M5.5 2.5L8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0z",opacity:".9",transform:"translate(161 95)"}),(0,r.h)("path",{fill:"#01ACCD",d:"M5.5 2.5L8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0z",opacity:".9",transform:"translate(58 13)"}),(0,r.h)("path",{fill:"#01ACCD",d:"M69.302 39.649c1.823 0 3.301-1.489 3.301-3.325S71.125 33 69.302 33C67.478 33 66 34.488 66 36.324c0 1.836 1.478 3.325 3.302 3.325zm0-2c-.716 0-1.302-.59-1.302-1.325 0-.734.586-1.324 1.302-1.324.715 0 1.301.59 1.301 1.324 0 .735-.586 1.325-1.301 1.325z",opacity:".5"}),(0,r.h)("path",{fill:"#01ACCD",d:"M41.302 88.649c1.823 0 3.301-1.489 3.301-3.325S43.125 82 41.302 82C39.478 82 38 83.488 38 85.324c0 1.836 1.478 3.325 3.302 3.325zm0-2c-.716 0-1.302-.59-1.302-1.325 0-.734.586-1.324 1.302-1.324.715 0 1.301.59 1.301 1.324 0 .735-.586 1.325-1.301 1.325zM132.302 128.649c1.823 0 3.301-1.489 3.301-3.325S134.125 122 132.302 122c-1.824 0-3.302 1.488-3.302 3.324 0 1.836 1.478 3.325 3.302 3.325zm0-2c-.716 0-1.302-.59-1.302-1.325 0-.734.586-1.324 1.302-1.324.715 0 1.301.59 1.301 1.324 0 .735-.586 1.325-1.301 1.325z",opacity:".8"}),(0,r.h)("path",{fill:"#01ACCD",d:"M5.5 2.5L8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0z",opacity:".3",transform:"translate(18 74)"}),(0,r.h)("path",{fill:"#01ACCD",d:"M147.302 114.649c1.823 0 3.301-1.489 3.301-3.325S149.125 108 147.302 108c-1.824 0-3.302 1.488-3.302 3.324 0 1.836 1.478 3.325 3.302 3.325zm0-2c-.716 0-1.302-.59-1.302-1.325 0-.734.586-1.324 1.302-1.324.715 0 1.301.59 1.301 1.324 0 .735-.586 1.325-1.301 1.325z",opacity:".6"}),(0,r.h)("path",{fill:"#01ACCD",d:"M5.5 2.5L8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0z",opacity:".4",transform:"translate(80 17)"}),(0,r.h)("path",{fill:"#01ACCD",d:"M5.5 2.5L8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0z",opacity:".4",transform:"translate(157 122)"}),(0,r.h)("ellipse",{cx:"90",cy:"161",fill:"#222",opacity:".5",rx:"19",ry:"7"}),(0,r.h)("ellipse",{cx:"90",cy:"161",fill:"#222",opacity:".5",rx:"31",ry:"11"}),(0,r.h)("g",{transform:"translate(83 73)"},(0,r.h)("path",{fill:"#4DA2B3",d:"M44.024 4C49.41 7.095 53 12.652 53 18.993c0 6.35-3.601 11.915-9 15.007l.022-.238.007-.241V4.218L44.024 4z"}),(0,r.h)("path",{fill:"#01ACCD",d:"M41.001 7l-.945 24.56-19.585-3.2c-.144-.021-.29-.036-.436-.043l-.22-.006c-2.304 0-4.187 1.783-4.319 4.032l-.007.252v56.17C13.587 90.255 10.869 91 7.337 91c-3.364 0-5.742-.676-7.134-2.027L0 88.765V21.24c0-5.77 4.34-10.612 10.082-11.332l.368-.04L41.001 7z",opacity:".296"}),(0,r.h)("path",{fill:"#3F7B86",d:"M0 65.071c1.985.947 4.818 1.464 7.934 1.464 2.924 0 5.598-.455 7.556-1.293v23.523C13.588 90.255 10.87 91 7.339 91c-3.364 0-5.743-.676-7.135-2.027l-.201-.208zm0-27.12c1.985.946 4.818 1.463 7.934 1.463 2.924 0 5.598-.455 7.556-1.293v23.933c-1.015.76-3.98 1.625-7.556 1.625-4.435 0-7.931-1.331-7.931-2.142zM27.205 8.294c-.799 2.777-1.215 6.412-1.215 10.414 0 4.176.453 7.95 1.32 10.77l-6.837-1.118c-.145-.022-.29-.037-.436-.044l-.22-.006c-2.304 0-4.187 1.783-4.319 4.032l-.007.252v2.338c-1.015.76-3.98 1.625-7.556 1.625-4.435 0-7.931-1.331-7.931-2.142V21.24c0-5.77 4.339-10.612 10.08-11.332l.37-.04zM41 7l-.945 24.56-9.153-1.496c-.786-2.004-1.65-6.368-1.65-11.355 0-4.527.712-8.54 1.431-10.741L41.001 7z"}),(0,r.h)("path",{fill:"#222",d:"M16.103 27.277l.22.005c.146.007.292.022.437.044l23.31 3.86-.014.374-19.585-3.2c-.144-.021-.29-.036-.436-.043l-.22-.006c-2.304 0-4.187 1.783-4.319 4.032l-.007.252v56.17c-1.056.827-2.363 1.425-3.92 1.793l.208-58.998.007-.251c.132-2.249 2.015-4.032 4.32-4.032zM41.001 7l-.005.114-2.603.131L41.001 7z",opacity:".7"}),(0,r.h)("rect",{width:"6",height:"37",x:"39.001",fill:"#1F6370",rx:"3"})))),t&&(0,r.h)("div",{className:i.primaryText,"aria-label":e},e),t&&(0,r.h)("div",{className:i.secondaryText,"aria-label":n},n))))},4560:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyState=void 0;const r=n(4522),o=n(3841),i=n(2507),a=n(2052),{withText:l,Text:s}=a.ui.preacti18n,c={searchPlaceholder:(0,r.h)(s,{id:"navigation.search_placeholder"},"Search in video"),searchDescription:(0,r.h)(s,{id:"navigation.search_description"},"You can search the video captions for specific words or phrases.")};e.EmptyState=l(c)((t=>(0,r.h)("div",{class:o.emptyState},(0,r.h)("div",{class:o.arrow},(0,r.h)("svg",{width:"109",height:"51",viewBox:"0 0 109 51",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:i.CURLY_LINE_IMG,fill:"#CCCCCC"}),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:i.ARROW_IMG,fill:"#CCCCCC"}))),(0,r.h)("p",{class:o.title},t.searchPlaceholder),(0,r.h)("p",{class:o.description},t.searchDescription))))},8698:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HotspotIcon=void 0;const r=n(4522);e.HotspotIcon=t=>(0,r.h)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.5 2.5C6.11537 2.5 5.79837 2.78953 5.75505 3.16253L5.75 3.25V4C5.75 4.41421 6.08579 4.75 6.5 4.75C6.88463 4.75 7.20163 4.46047 7.24495 4.08747L7.25 4V3.25C7.25 2.83579 6.91421 2.5 6.5 2.5ZM11.7955 4.3295C11.5235 4.05753 11.0946 4.03811 10.8003 4.27123L10.7348 4.3295L10.2045 4.85984C9.91161 5.15273 9.91161 5.6276 10.2045 5.9205C10.4765 6.19247 10.9054 6.21189 11.1997 5.97878L11.2652 5.9205L11.7955 5.39016C12.0884 5.09727 12.0884 4.6224 11.7955 4.3295ZM3.4545 12.6705C3.72648 12.9425 4.15536 12.9619 4.44975 12.7288L4.51516 12.6705L5.0455 12.1402C5.33839 11.8473 5.33839 11.3724 5.0455 11.0795C4.77352 10.8075 4.34464 10.7881 4.05025 11.0212L3.98484 11.0795L3.4545 11.6098C3.16161 11.9027 3.16161 12.3776 3.4545 12.6705ZM6.53592 7.48358C6.65797 7.11718 7.05316 6.91577 7.4186 7.03371L13.5234 9.00394C13.6272 9.03745 13.7214 9.09497 13.7983 9.17186C14.0693 9.44255 14.0669 9.88382 13.793 10.1575L12.8998 11.0499C12.7787 11.1708 12.7713 11.3642 12.8828 11.4915L13.6084 12.3185C14.0177 12.8362 13.9793 13.5939 13.4958 14.0769L13.4659 14.1069C12.9452 14.627 12.1056 14.6316 11.5906 14.1171L10.9802 13.4207C10.8554 13.2952 10.6516 13.2959 10.525 13.4224L9.66058 14.286C9.58277 14.3638 9.48795 14.4223 9.38376 14.457C9.01702 14.5789 8.624 14.3818 8.50593 14.0167L6.53356 7.91792C6.48802 7.77709 6.48885 7.62492 6.53592 7.48358ZM3.5 6.25C3.91421 6.25 4.25 6.58579 4.25 7C4.25 7.41421 3.91421 7.75 3.5 7.75H2.75C2.33579 7.75 2 7.41421 2 7C2 6.58579 2.33579 6.25 2.75 6.25H3.5Z",fill:t.color})),e.HotspotIcon.defaultProps={color:"#FFFFFF"}},6246:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IconsFactory=void 0;const r=n(4522),o=n(2085),i=n(8698),a=n(6126),l=n(2827),s=n(6134),c=n(3400),p=n(4164),d=n(6563);e.IconsFactory=t=>(0,r.h)("div",{className:p.icon},t.iconType===o.ItemTypes.Hotspot&&(0,r.h)(i.HotspotIcon,null),t.iconType===o.ItemTypes.AnswerOnAir&&(0,r.h)(a.AnswerOnAirIcon,null),t.iconType===o.ItemTypes.Chapter&&(0,r.h)(l.ChapterIcon,null),t.iconType===o.ItemTypes.Slide&&(0,r.h)(s.SlideIcon,null),t.iconType===o.ItemTypes.Caption&&(0,r.h)(c.CaptionIcon,null),t.iconType===o.ItemTypes.QuizQuestion&&(0,r.h)(d.QuizIcon,null))},6134:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlideIcon=void 0;const r=n(4522);e.SlideIcon=t=>(0,r.h)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.1 6.5C13.5971 6.5 14 6.83579 14 7.25V13.75C14 14.1642 13.5971 14.5 13.1 14.5H2.9C2.40294 14.5 2 14.1642 2 13.75V7.25C2 6.83579 2.40294 6.5 2.9 6.5H13.1ZM11.6 4.5C12.2238 4.5 12.7364 4.89659 12.7945 5.40369L12.8 5.5H3.2C3.2 4.94772 3.73726 4.5 4.4 4.5H11.6ZM10.4 2.5C11.0238 2.5 11.5364 2.89659 11.5945 3.40369L11.6 3.5H4.4C4.4 2.94772 4.93726 2.5 5.6 2.5H10.4Z",fill:t.color})),e.SlideIcon.defaultProps={color:"#FFFFFF"}},4776:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.Navigation=void 0;const o=n(4522),i=n(2052),a=n(3337),l=n(8924),s=n(975),c=n(4225),p=n(1311),d=n(934),_=n(4539),A=n(4393),u=n(2085),h=n(5743),g=n(3425),{KeyMap:C}=i.ui.utils,{withText:v,Text:y}=i.ui.preacti18n,m={searchQuery:"",activeTab:u.ItemTypes.All,availableTabs:[u.ItemTypes.All,u.ItemTypes.Chapter,u.ItemTypes.Slide,u.ItemTypes.Hotspot,u.ItemTypes.AnswerOnAir,u.ItemTypes.QuizQuestion],totalResults:0},f=t=>({[u.ItemTypes.All]:t[u.ItemTypes.All],[u.ItemTypes.AnswerOnAir]:t[u.ItemTypes.AnswerOnAir],[u.ItemTypes.Chapter]:t[u.ItemTypes.Chapter],[u.ItemTypes.Slide]:t[u.ItemTypes.Slide],[u.ItemTypes.Hotspot]:t[u.ItemTypes.Hotspot],[u.ItemTypes.Caption]:t[u.ItemTypes.Caption],[u.ItemTypes.QuizQuestion]:t[u.ItemTypes.QuizQuestion]}),b=t=>({[u.ItemTypes.All]:(0,o.h)(y,{id:"navigation.all_types"},"All"),[u.ItemTypes.AnswerOnAir]:(0,o.h)(y,{id:"navigation.aoa_type",plural:t},1===t?"Answer On Air":"Answers On Air"),[u.ItemTypes.Chapter]:(0,o.h)(y,{id:"navigation.chapter_type",plural:t},1===t?"Chapter":"Chapters"),[u.ItemTypes.Slide]:(0,o.h)(y,{id:"navigation.slide_type",plural:t},1===t?"Slide":"Slides"),[u.ItemTypes.Hotspot]:(0,o.h)(y,{id:"navigation.hotspot_type",plural:t},1===t?"Hotspot":"Hotspots"),[u.ItemTypes.Caption]:(0,o.h)(y,{id:"navigation.caption_type",plural:t},1===t?"Caption":"Captions"),[u.ItemTypes.QuizQuestion]:(0,o.h)(y,{id:"navigation.quiz_question_type",plural:t},1===t?"Question":"Questions")});let x=class extends o.Component{render(){const t=f(this.props);return(0,o.h)(g.ScreenReaderContext.Consumer,null,(e=>(0,o.h)(c.NavigationFilter,Object.assign({},this.props,{itemTypesTranslates:t,setTextToRead:e}))))}};x=r([v(b(2))],x);let k=class extends o.Component{render(){const t=f(this.props);return(0,o.h)(l.NavigationList,Object.assign({},this.props,{itemTypesTranslates:t}))}};k=r([v(b(1))],k);class w extends o.Component{constructor(t){super(t),this._widgetRootRef=null,this._preventScrollEvent=!1,this._listElementRef=null,this._prepareNavigationData=t=>{const{highlightedMap:e}=this.props,{searchQuery:n,activeTab:r,availableTabs:o}=t,i=(0,_.filterDataBySearchQuery)(this.props.data,n),a=n?(0,_.findCuepointType)(i,u.ItemTypes.Caption):(0,_.findCuepointType)(this.props.data,u.ItemTypes.Caption),l=(0,_.addGroupData)((0,_.filterDataByActiveTab)(i,r)),s=n&&r===u.ItemTypes.All?Math.max(...o.map((t=>e.get(t)))):e.get(r),c=Object.assign(Object.assign({},this.state),{listDataContainCaptions:a,convertedData:l,searchFilter:this._prepareSearchFilter(i,t),highlightedTime:s>=0?(0,_.makeDisplayTime)(s):""});this.state.searchFilter.searchQuery!==n&&(c.autoscroll=!1),n||(c.autoscroll=!0),this.setState(c)},this._prepareSearchFilter=(t,e)=>{const n=(0,_.getAvailableTabs)(t,this.props.itemsOrder);return Object.assign(Object.assign({},e),{availableTabs:n})},this._setWidgetSize=()=>{if(this._widgetRootRef){const{width:t}=this._widgetRootRef.getBoundingClientRect();this.state.widgetWidth!==t&&this.setState({widgetWidth:t})}},this._getHeaderStyles=()=>{const{widgetWidth:t}=this.state;return t>=692?"":t>=649?a.mediumWidth:a.smallWidth},this._handleSearchFilterChange=t=>e=>{const n=Object.assign(Object.assign({},this.state.searchFilter),{[t]:e});this._prepareNavigationData(n)},this._renderHeader=()=>{const{toggledWithEnter:t,kitchenSinkActive:e,hasError:n}=this.props,{searchFilter:r,convertedData:i,listDataContainCaptions:l}=this.state;return(0,o.h)("div",{className:a.header},!n&&(0,o.h)("div",{class:[a.searchWrapper,this._getHeaderStyles()].join(" ")},(0,o.h)(s.NavigationSearch,{onChange:this._handleSearchFilterChange("searchQuery"),searchQuery:r.searchQuery,toggledWithEnter:t,kitchenSinkActive:e})),n&&(0,o.h)("p",{className:a.pluginName},"Navigation"),(0,o.h)(h.CloseButton,{onClick:this.props.onClose}),!n&&(0,o.h)(x,{onChange:this._handleSearchFilterChange("activeTab"),activeTab:r.activeTab,availableTabs:r.availableTabs,totalResults:r.searchQuery.length>0?i.length:null,listDataContainCaptions:l}))},this._handleSeek=t=>{this._preventScrollEvent=!0,this.setState({autoscroll:!0},(()=>{this.props.onItemClicked(t)}))},this._handleScroll=()=>{this._preventScrollEvent?this._preventScrollEvent=!1:this.state.autoscroll&&this.setState({autoscroll:!1})},this._renderNavigation=()=>{const{searchFilter:t,widgetWidth:e,listDataContainCaptions:n,convertedData:r,highlightedTime:i}=this.state,{hasError:a,retry:l}=this.props;return a?(0,o.h)(p.Error,{onRetryLoad:l}):(0,o.h)(k,{searchActive:t.searchQuery.length>0,widgetWidth:e,autoScroll:!1,onSeek:this._handleSeek,onScroll:this._scrollTo,data:r,highlightedTime:i,showItemsIcons:t.activeTab===u.ItemTypes.All,listDataContainCaptions:n})},this._renderLoading=()=>(0,o.h)(d.Loading,null),this._handleClose=t=>{t.keyCode===C.ESC&&this.props.onClose(t,!0)},this._enableAutoScroll=()=>{this.state.autoscroll||(this._preventScrollEvent=!0,this.setState({autoscroll:!0}))},this._scrollTo=t=>{this._preventScrollEvent=!0,this._listElementRef&&(this._listElementRef.scrollTop=t-(this.state.searchFilter.searchQuery?120:94))},this._renderAutoscrollButton=()=>{const{hasError:t}=this.props,{autoscroll:e,searchFilter:n,convertedData:r}=this.state,i=!e||n.searchQuery||!r.length||t;return(0,o.h)(A.AutoscrollButton,{onClick:this._enableAutoScroll,isAutoScrollEnabled:!i})},this.state={autoscroll:!0,widgetWidth:0,searchFilter:Object.assign({},m),convertedData:[],listDataContainCaptions:!1,highlightedTime:""}}componentDidMount(){this._prepareNavigationData(this.state.searchFilter)}componentDidUpdate(t){this._setWidgetSize(),t.data===this.props.data&&(0,_.isMapsEqual)(t.highlightedMap,this.props.highlightedMap)||this._prepareNavigationData(this.state.searchFilter)}render(t){const{isLoading:e,kitchenSinkActive:n}=t;return(0,o.h)(g.ScreenReaderProvider,null,(0,o.h)("div",{"data-testid":"navigation_root",className:`${a.root} ${n?"":a.hidden}`,ref:t=>{this._widgetRootRef=t},onKeyUp:this._handleClose},e?this._renderLoading():(0,o.h)("div",{className:a.globalContainer},this._renderHeader(),(0,o.h)("div",{className:a.body,onScroll:this._handleScroll,ref:t=>{this._listElementRef=t}},this._renderNavigation()))))}}e.Navigation=w},1910:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationItem=void 0;const r=n(4522),o=n(979),i=n(3199),a=n(2085),l=n(6246),{Text:s}=KalturaPlayer.ui.preacti18n;class c extends r.Component{constructor(t){super(t),this._itemElementRef=null,this._textContainerRef=null,this._titleRef=null,this._showMoreButtonRef=null,this._showLessButtonRef=null,this._getSelected=()=>{const{selectedItem:t,data:e}=this.props,{groupData:n,startTime:r,previewImage:o}=e;!this._itemElementRef||!t||n&&n!==a.GroupTypes.first||(o&&this.state.imageLoaded?this.props.onSelected({time:r,itemY:this._itemElementRef.offsetTop}):o||this.props.onSelected({time:r,itemY:this._itemElementRef.offsetTop}))},this._handleFocus=()=>{this.setState({focused:!0})},this._handleBlur=()=>{this.setState({focused:!1})},this._handleClick=()=>{this.props.onClick(this.props.data.startTime)},this._handleExpandChange=(t,e)=>{this.setState({expandText:!this.state.expandText},(()=>{var t,n;e&&(this.state.expandText?null===(t=this._showLessButtonRef)||void 0===t||t.focus():null===(n=this._showMoreButtonRef)||void 0===n||n.focus())}))},this._renderThumbnail=()=>{if(this.state.imageFailed)return null;const{data:t}=this.props,{previewImage:e}=t,n={src:e,alt:(0,r.h)(s,{id:"navigation.image_alt"},"Slide Preview"),className:i.thumbnail,onLoad:()=>{this.setState({imageLoaded:!0})},onError:()=>{this.setState({imageFailed:!0})}};return(0,r.h)("img",Object.assign({},n))},this._renderShowMoreLessButton=t=>{if(!this.props.data.previewImage)return null;const{expandText:e}=this.state;return(0,r.h)(o.A11yWrapper,{onClick:this._handleExpandChange},(0,r.h)("div",{tabIndex:0,className:i.showMoreButton,ref:t=>{e?this._showLessButtonRef=t:this._showMoreButtonRef=t},"aria-label":`${e?this.props.readLessLabel:this.props.readMoreLabel} ${t}`},e?this.props.readLessTranslate:this.props.readMoreTranslate))},this.state={expandText:!t.data.previewImage,imageLoaded:!1,imageFailed:!1,titleTrimmed:!1,focused:!1}}setFocus(){var t;null===(t=this._itemElementRef)||void 0===t||t.focus()}matchHeight(){this._textContainerRef&&this._itemElementRef&&(this._itemElementRef.style.minHeight=this._textContainerRef.offsetHeight+4+"px")}shouldComponentUpdate(t,e){const{selectedItem:n,data:r,widgetWidth:o}=this.props;return n!==t.selectedItem||this.state.focused!==e.focused||r!==t.data||e.expandText!==this.state.expandText||e.titleTrimmed!==this.state.titleTrimmed||e.imageLoaded!==this.state.imageLoaded||e.imageFailed!==this.state.imageFailed||t.widgetWidth!==o}componentDidUpdate(t,e){this._getSelected(),this.matchHeight(),e.imageLoaded!==this.state.imageLoaded&&this.setState({titleTrimmed:this._isEllipsisActive()})}componentDidMount(){var t;this._getSelected(),this.matchHeight(),(null===(t=this.props.data)||void 0===t?void 0:t.previewImage)||this.setState({titleTrimmed:this._isEllipsisActive()})}_isEllipsisActive(){return!(!this._titleRef||!this._textContainerRef)&&this._titleRef.getBoundingClientRect().width>this._textContainerRef.getBoundingClientRect().width}render({selectedItem:t,showIcon:e,data:n}){const{id:a,previewImage:s,itemType:c,displayTime:p,liveCuePoint:d,groupData:_,displayTitle:A,displayDescription:u}=n,h=Boolean(A||u),{imageLoaded:g}=this.state,C={"aria-current":t,onFocus:this._handleFocus,onBlur:this._handleBlur,tabIndex:0,ariaHidden:!(t||this.state.focused)},v=A||u||"";return(0,r.h)(o.A11yWrapper,{onClick:this._handleClick,onDownKeyPressed:this.props.onNext,onUpKeyPressed:this.props.onPrev,role:t?"text":"listitem"},(0,r.h)("div",Object.assign({tabIndex:0,"aria-label":A||u,ref:t=>{this._itemElementRef=t},className:[i[_||"single"],i.navigationItem,t?i.selected:null,s&&!g?i.hidden:null].join(" "),"data-entry-id":a},C),(0,r.h)("div",{className:[i.metadata,d?null:i.withTime].join(" ")},!d&&(0,r.h)("span",null,p),e&&(0,r.h)("div",{className:i.iconWrapper},(0,r.h)(l.IconsFactory,{iconType:c}))),(0,r.h)("div",{className:[i.content,s?i.hasImage:null].join(" ")},(0,r.h)("div",{className:i.contentText,ref:t=>{this._textContainerRef=t}},h&&!this.state.expandText&&(0,r.h)("div",{className:i.titleWrapper},(0,r.h)("div",{className:i.title},(0,r.h)("span",{ref:t=>{this._titleRef=t}},A||u)),this.state.titleTrimmed&&this._renderShowMoreLessButton(v)),this.state.expandText&&(0,r.h)("div",{className:i.expandTextWrapper},A&&(0,r.h)("span",null,A),u&&(0,r.h)("div",{className:i.description},u),this._renderShowMoreLessButton(v))),s&&this._renderThumbnail())))}}e.NavigationItem=c},4040:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.QuizTitle=void 0;const o=n(4522),i=n(7840),a=n(2052),{withText:l,Text:s}=a.ui.preacti18n;let c=class extends o.Component{constructor(){super(...arguments),this._renderStateLabel=()=>{let t="";return 3===this.props.questionState?t=i.incorrect:4===this.props.questionState&&(t=i.correct),(0,o.h)("div",{className:`${i.labelWrapper} ${t}`,"data-testid":"navigation_questionStateLabel"},(0,o.h)("span",null,this.props.stateLabel))}}render(t){return(0,o.h)("div",{className:i.titleWrapper},(0,o.h)("div",{className:i.title,"data-testid":"navigation_questionTitle"},(0,o.h)("span",null,this.props.title)),1!==this.props.questionState?this._renderStateLabel():void 0)}};c=r([l((t=>{const{questionType:e,questionIndex:n,questionState:r}=t;let i;switch(r){case 2:i={stateLabel:(0,o.h)(s,{id:"navigation.question_answered"},"Answered")};break;case 3:i={stateLabel:(0,o.h)(s,{id:"navigation.question_incorrect"},"Incorrect")};break;case 4:i={stateLabel:(0,o.h)(s,{id:"navigation.question_correct"},"Correct")}}const a=n+1;return 3===e?Object.assign(Object.assign({},i),{title:(0,o.h)(s,{id:"navigation.reflection_point_title",fields:{index:`${a}`}},`Reflection point ${a}`)}):Object.assign(Object.assign({},i),{title:(0,o.h)(s,{id:"navigation.question_title",fields:{index:`${a}`}},`Question ${a}`)})}))],c),e.QuizTitle=c},8924:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationList=void 0;const o=n(4522),i=n(2052),a=n(9875),l=n(1910),s=n(7565),c=n(4560),p=n(4539),{withText:d,Text:_}=i.ui.preacti18n,A={readLess:(0,o.h)(_,{id:"navigation.read_less"},"Less"),readMore:(0,o.h)(_,{id:"navigation.read_more"},"More"),readMoreLabel:(0,o.h)(_,{id:"navigation.read_more_of"},"Read more of"),readLessLabel:(0,o.h)(_,{id:"navigation.read_less_of"},"Read less of")};let u=class extends o.Component{constructor(){super(...arguments),this._selectedElementY=0,this._itemsRefMap=new Map,this.updateSelected=({itemY:t})=>{this._selectedElementY=t,this.props.autoScroll&&this.props.onScroll(this._selectedElementY)},this._setNavigationItemRef=(t,e)=>this._itemsRefMap.set(t,e),this._getItemRef=t=>this._itemsRefMap.get(t),this._handleUpKeyPressed=t=>{var e;null===(e=this._getItemRef(t-1))||void 0===e||e.setFocus()},this._handleDownKeyPressed=t=>{var e;null===(e=this._getItemRef(t+1))||void 0===e||e.setFocus()}}componentWillUnmount(){this._itemsRefMap=new Map}shouldComponentUpdate(t){return!(this.props.highlightedTime===t.highlightedTime&&(0,p.isDataEqual)(this.props.data,t.data)&&t.autoScroll===this.props.autoScroll&&t.listDataContainCaptions===this.props.listDataContainCaptions&&(!t.widgetWidth||t.widgetWidth===this.props.widgetWidth))}componentDidUpdate(t){!t.autoScroll&&this.props.autoScroll&&this.props.onScroll(this._selectedElementY)}render({data:t,widgetWidth:e,showItemsIcons:n,onSeek:r,highlightedTime:i,listDataContainCaptions:p,searchActive:d}){return t.length?(0,o.h)("div",{className:a.navigationList,"data-testid":"navigation_list","aria-live":"polite"},t.map(((t,a)=>{const s=this.props.itemTypesTranslates[t.itemType];return(0,o.h)(l.NavigationItem,{key:t.id,ref:t=>{this._setNavigationItemRef(a,t)},widgetWidth:e,onClick:r,selectedItem:i===t.displayTime,data:t,onSelected:this.updateSelected,showIcon:n,onNext:()=>this._handleDownKeyPressed(a),onPrev:()=>this._handleUpKeyPressed(a),readLessTranslate:this.props.readLess,readMoreTranslate:this.props.readMore,readMoreLabel:`${this.props.readMoreLabel} ${s}`,readLessLabel:`${this.props.readLessLabel} ${s}`})}))):p?(0,o.h)(c.EmptyState,null):(0,o.h)(s.EmptyList,{showNoResultsText:d})}};u=r([d(A)],u),e.NavigationList=u},1506:function(t,e,n){"use strict";var r=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};Object.defineProperty(e,"__esModule",{value:!0}),e.PluginButton=void 0;const o=n(4522),i=n(2052),a=n(158),l=n(1293),s=n(979),{Tooltip:c,Icon:p}=KalturaPlayer.ui.components,{withText:d,Text:_}=i.ui.preacti18n;e.PluginButton=d((({isActive:t})=>({label:t?(0,o.h)(_,{id:"navigation.hide_plugin"},"Hide Navigation"):(0,o.h)(_,{id:"navigation.show_plugin"},"Show Navigation")})))((t=>{var{isActive:e,onClick:n,setRef:d}=t,_=r(t,["isActive","onClick","setRef"]);return(0,o.h)(c,{label:_.label,type:"bottom"},(0,o.h)(s.A11yWrapper,{onClick:n},(0,o.h)("button",{ref:t=>{d(t)},"aria-label":_.label,className:[i.ui.style.upperBarIcon,a.pluginButton,e?a.active:""].join(" "),"data-testid":"navigation_pluginButton"},(0,o.h)(p,{id:"navigation-plugin-button",height:l.icons.BigSize,width:l.icons.BigSize,viewBox:`0 0 ${l.icons.BigSize} ${l.icons.BigSize}`,path:l.icons.PLUGIN_ICON}))))}))},1434:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationPlugin=void 0;const r=n(2052),o=n(4522),i=n(4539),a=n(4776),l=n(1506),s=n(1293),c=n(2085),p=n(4040),{TimedMetadata:d}=r.core,{SidePanelModes:_,SidePanelPositions:A,ReservedPresetNames:u}=r.ui;class h extends KalturaPlayer.core.BasePlugin{constructor(t,e,n){super(t,e,n),this._navigationData=[],this._triggeredByKeyboard=!1,this._isLoading=!1,this._hasError=!1,this._itemsOrder=i.itemTypesOrder,this._itemsFilter=i.itemTypesOrder,this._captionMap=new Map,this._activeCaptionMapId="",this._quizQuestionData=[],this._pluginButtonRef=null,this._navigationPanel=-1,this._navigationIcon=-1,this._pluginState=null,this._liveFutureCuePointsMap=new Map,this._getDefaultActiveCuePointsMap=()=>new Map([[c.ItemTypes.All,-1],[c.ItemTypes.AnswerOnAir,-1],[c.ItemTypes.Caption,-1],[c.ItemTypes.Chapter,-1],[c.ItemTypes.Hotspot,-1],[c.ItemTypes.Slide,-1],[c.ItemTypes.QuizQuestion,-1]]),this._registerCuePointTypes=()=>{const t=[];this._itemsFilter[c.ItemTypes.Slide]&&t.push(this.cuePointManager.CuepointType.SLIDE),this._itemsFilter[c.ItemTypes.Chapter]&&t.push(this.cuePointManager.CuepointType.CHAPTER),this._itemsFilter[c.ItemTypes.Hotspot]&&t.push(this.cuePointManager.CuepointType.HOTSPOT),this._itemsFilter[c.ItemTypes.AnswerOnAir]&&t.push(this.cuePointManager.CuepointType.PUBLIC_QNA),this._itemsFilter[c.ItemTypes.Caption]&&t.push(this.cuePointManager.CuepointType.CAPTION),this._itemsFilter[c.ItemTypes.QuizQuestion]&&t.push(this.cuePointManager.CuepointType.QUIZ),this.cuePointManager.registerTypes(t)},this._addNavigationData=t=>{this._data=(0,i.sortItems)([...this._navigationData,...t],this._itemsOrder),this._createOrUpdatePlugin()},this._addCaptionData=t=>{this._activeCaptionMapId=this._getCaptionMapId(),this._captionMap.set(this._activeCaptionMapId,t),this._createOrUpdatePlugin()},this._addQuizData=t=>{this._quizQuestionData=t,this._createOrUpdatePlugin()},this._handleQuizQuestionChanged=t=>{const e=t.payload.qqa.map((t=>{const e={id:t.id,metadata:{cuePointType:c.ItemTypes.QuizQuestion},startTime:t.startTime,type:c.ItemTypes.QuizQuestion},n=(0,i.prepareCuePoint)(e,c.ItemTypes.QuizQuestion,!1);return n.quizState=t.state,n.displayTitle=this._makeQuizTitle(t.state,t.index,t.type),n.displayDescription=(0,i.decodeString)(t.question),n}));this._addQuizData(e)},this._makeQuizTitle=(t,e,n)=>(0,o.h)(p.QuizTitle,{questionState:t,questionIndex:e,questionType:n}),this._handleLanguageChange=()=>{this._activeCaptionMapId=this._getCaptionMapId(),this._captionMap.has(this._activeCaptionMapId)&&this._updateNavigationPlugin()},this._getCaptionMapId=()=>{const t=(this._player.getTracks(this._player.Track.TEXT)||[]).find((t=>t.active));return t?`${t.language}-${t.label}`:""},this._getCuePointType=t=>{var e;const{metadata:n}=t,{KalturaCuePointType:r,KalturaThumbCuePointSubType:o,KalturaCuePointTags:i}=this.cuePointManager;if((null==t?void 0:t.type)!==d.TYPE.CUE_POINT)return null;if((null==n?void 0:n.cuePointType)===r.THUMB&&(null==n?void 0:n.subType)===o.SLIDE)return c.ItemTypes.Slide;if((null==n?void 0:n.cuePointType)===r.THUMB&&(null==n?void 0:n.subType)===o.CHAPTER)return c.ItemTypes.Chapter;if((null==n?void 0:n.cuePointType)===r.ANNOTATION&&(null==n?void 0:n.tags)===i.HOTSPOT)return c.ItemTypes.Hotspot;if((null==n?void 0:n.cuePointType)===r.ANNOTATION&&(null==n?void 0:n.tags)===i.ANSWERONAIR){const t=null===(e=null==n?void 0:n.relatedObjects)||void 0===e?void 0:e.QandA_ResponseProfile,r=null==t?void 0:t.objects[0];return(null==r?void 0:r.xml.includes("<Type>AnswerOnAir</Type>"))?c.ItemTypes.AnswerOnAir:null}return(null==n?void 0:n.cuePointType)===r.CAPTION?c.ItemTypes.Caption:(null==n?void 0:n.cuePointType)===r.QUIZ_QUESTION?c.ItemTypes.QuizQuestion:null},this._onTimedMetadataAdded=({payload:t})=>{const e=this._player.isLive(),n=[],r=[];t.cues.forEach((t=>{if(this._getCuePointType(t)===c.ItemTypes.Slide&&this._itemsFilter[c.ItemTypes.Slide]){const r=(0,i.prepareCuePoint)(t,c.ItemTypes.Slide,e);e&&this.isFutureCuePoint(t)?this._liveFutureCuePointsMap.set(t.id,r):n.push(r)}this._getCuePointType(t)===c.ItemTypes.Chapter&&this._itemsFilter[c.ItemTypes.Chapter]&&n.push((0,i.prepareCuePoint)(t,c.ItemTypes.Chapter,e)),this._getCuePointType(t)===c.ItemTypes.Hotspot&&this._itemsFilter[c.ItemTypes.Hotspot]&&n.push((0,i.prepareCuePoint)(t,c.ItemTypes.Hotspot,e)),this._getCuePointType(t)===c.ItemTypes.AnswerOnAir&&this._itemsFilter[c.ItemTypes.AnswerOnAir]&&n.push((0,i.prepareCuePoint)(t,c.ItemTypes.AnswerOnAir,e)),this._getCuePointType(t)===c.ItemTypes.Caption&&this._itemsFilter[c.ItemTypes.Caption]&&r.push((0,i.prepareCuePoint)(t,c.ItemTypes.Caption,e))})),n.length&&this._addNavigationData(n),r.length&&this._addCaptionData(r)},this._onTimedMetadataChange=({payload:t})=>{const e=t.cues.filter((t=>{const e=this._getCuePointType(t);return e&&this._itemsFilter[e]}));if(this._player.currentTime<Math.max(...Array.from(this._activeCuePointsMap.values()))&&(this._activeCuePointsMap=this._getDefaultActiveCuePointsMap()),e.length){const t=(0,i.getLastItem)(e.filter((t=>this._getCuePointType(t)!==c.ItemTypes.Caption)));t&&t.startTime>this._activeCuePointsMap.get(c.ItemTypes.All)&&this._activeCuePointsMap.set(c.ItemTypes.All,t.startTime),e.forEach((t=>{this._player.isLive()&&this._liveFutureCuePointsMap.has(t.id)&&(this._addNavigationData([this._liveFutureCuePointsMap.get(t.id)]),this._liveFutureCuePointsMap.delete(t.id)),this._activeCuePointsMap.set(this._getCuePointType(t),t.startTime)}))}this._updateNavigationPlugin()},this._createOrUpdatePlugin=()=>{this._navigationPanel>0?this._updateNavigationPlugin():this._createNavigationPlugin()},this._handleClose=(t,e)=>{var n;e&&(null===(n=this._pluginButtonRef)||void 0===n||n.focus()),this._deactivatePlugin()},this._createNavigationPlugin=()=>{Math.max(this._navigationPanel,this._navigationIcon)>0?this.logger.warn("navigation plugin already initialized"):(this._navigationPanel=this.sidePanelsManager.add({label:"Navigation",panelComponent:()=>(0,o.h)(a.Navigation,{onClose:this._handleClose,data:this._data,onItemClicked:this._seekTo,isLoading:this._isLoading,hasError:this._hasError,highlightedMap:this._activeCuePointsMap,kitchenSinkActive:this._isPluginActive(),toggledWithEnter:this._triggeredByKeyboard,itemsOrder:this._itemsOrder}),presets:[u.Playback,u.Live,u.Ads],position:this.config.position,expandMode:this.config.expandMode===_.ALONGSIDE?_.ALONGSIDE:_.OVER,onDeactivate:this._deactivatePlugin}),this._navigationIcon=this.upperBarManager.add({label:"Navigation",svgIcon:{path:s.icons.PLUGIN_ICON,viewBox:`0 0 ${s.icons.BigSize} ${s.icons.BigSize}`},onClick:this._handleClickOnPluginIcon,component:()=>(0,o.h)(l.PluginButton,{isActive:this._isPluginActive(),onClick:this._handleClickOnPluginIcon,setRef:this._setPluginButtonRef})}),(this.config.expandOnFirstPlay&&!this._pluginState||this._pluginState===c.PluginStates.OPENED)&&this._activatePlugin())},this._updateNavigationPlugin=()=>{this._navigationPanel>0&&this.sidePanelsManager.update(this._navigationPanel)},this._onPlaybackEnded=()=>{this.eventManager.listenOnce(this._player,this._player.Event.PLAY,(()=>{this._activeCuePointsMap=new Map,this._updateNavigationPlugin(),this._triggerOnTimedMetadataChange()}))},this._triggerOnTimedMetadataChange=()=>{const t={payload:{cues:this._player.cuePointManager.getActiveCuePoints()}};this._onTimedMetadataChange(t)},this._seekTo=t=>{this.player.currentTime=t,this._triggerOnTimedMetadataChange()},this._handleClickOnPluginIcon=(t,e)=>{this._isPluginActive()?(this._triggeredByKeyboard=!1,this._deactivatePlugin()):(this._triggeredByKeyboard=Boolean(e),this._activatePlugin())},this._activatePlugin=()=>{this.ready.then((()=>{var t,e;null===(t=this.sidePanelsManager)||void 0===t||t.activateItem(this._navigationPanel),this._pluginState,c.PluginStates.OPENED,null===(e=this.upperBarManager)||void 0===e||e.update(this._navigationIcon)}))},this._deactivatePlugin=()=>{this.ready.then((()=>{var t,e;null===(t=this.sidePanelsManager)||void 0===t||t.deactivateItem(this._navigationPanel),this._pluginState=c.PluginStates.CLOSED,null===(e=this.upperBarManager)||void 0===e||e.update(this._navigationIcon)}))},this._isPluginActive=()=>this.sidePanelsManager.isItemActive(this._navigationPanel),this._setPluginButtonRef=t=>{this._pluginButtonRef=t},this._player=e,this._activeCuePointsMap=this._getDefaultActiveCuePointsMap(),this._itemsOrder=(0,i.prepareItemTypesOrder)(this.config.itemsOrder),this._itemsFilter=(0,i.isEmptyObject)(this.config.itemsOrder)?i.itemTypesOrder:n.itemsOrder}get sidePanelsManager(){return this.player.getService("sidePanelsManager")}get upperBarManager(){return this.player.getService("upperBarManager")}get cuePointManager(){return this._player.getService("kalturaCuepoints")}get _data(){const t=this._captionMap.get(this._activeCaptionMapId)||[];return(0,i.sortItems)([...this._navigationData,...t,...this._quizQuestionData],this._itemsOrder)}set _data(t){this._navigationData=(0,i.filterDuplications)(t)}loadMedia(){this.cuePointManager&&this.sidePanelsManager&&this.upperBarManager?(this._addPlayerListeners(),this._registerCuePointTypes()):this.logger.warn("kalturaCuepoints, sidePanelsManager or upperBarManager haven't registered")}static isValid(){return!0}isFutureCuePoint(t){return!(!t.metadata||!t.metadata.createdAt)&&1e3*t.metadata.createdAt>(new Date).getTime()-2e4}_addPlayerListeners(){this.eventManager.listen(this._player,this._player.Event.TIMED_METADATA_CHANGE,this._onTimedMetadataChange),this.eventManager.listen(this._player,this._player.Event.TIMED_METADATA_ADDED,this._onTimedMetadataAdded),this.eventManager.listen(this._player,this._player.Event.RESIZE,this._updateNavigationPlugin),this.eventManager.listen(this._player,this._player.Event.PLAYBACK_ENDED,this._onPlaybackEnded),this.eventManager.listen(this._player,"QuizQuestionChanged",this._handleQuizQuestionChanged),this._itemsFilter[c.ItemTypes.Caption]&&this.eventManager.listen(this._player,this._player.Event.TEXT_TRACK_CHANGED,this._handleLanguageChange)}reset(){Math.max(this._navigationPanel,this._navigationIcon)>0&&(this.sidePanelsManager.remove(this._navigationPanel),this.upperBarManager.remove(this._navigationIcon),this._navigationPanel=-1,this._navigationIcon=-1,this._pluginButtonRef=null),this._activeCuePointsMap=this._getDefaultActiveCuePointsMap(),this._activeCaptionMapId="",this._captionMap=new Map,this._liveFutureCuePointsMap=new Map,this._navigationData=[],this._quizQuestionData=[],this._isLoading=!1,this._hasError=!1,this._triggeredByKeyboard=!1,this.eventManager.removeAll()}destroy(){this._pluginState=null}}e.NavigationPlugin=h,h.defaultConfig={position:A.RIGHT,expandMode:_.ALONGSIDE,expandOnFirstPlay:!1,itemsOrder:{}}},2085:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(5481),e),o(n(6782),e),o(n(5364),e)},6782:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5364:function(t,e){"use strict";var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.ItemTypes=e.GroupTypes=void 0,(r=e.GroupTypes||(e.GroupTypes={})).mid="mid",r.first="first",r.last="last",(n=e.ItemTypes||(e.ItemTypes={})).All="All",n.AnswerOnAir="AnswerOnAir",n.Chapter="Chapter",n.Slide="Slide",n.Hotspot="Hotspot",n.Caption="Caption",n.QuizQuestion="QuizQuestion"},5481:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.PluginStates=void 0,(n=e.PluginStates||(e.PluginStates={})).OPENED="opened",n.CLOSED="closed"},4539:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filterCuepointsByStartTime=e.findCuepointType=e.isMapsEqual=e.isDataEqual=e.isEmptyObject=e.prepareItemTypesOrder=e.filterDuplications=e.getAvailableTabs=e.filterDataByActiveTab=e.filterDataBySearchQuery=e.addGroupData=e.sortItems=e.prepareCuePoint=e.decodeString=e.makeDisplayTime=e.getLastItem=e.itemTypesOrder=void 0;const r=n(2085),{toHHMMSS:o}=KalturaPlayer.ui.utils;e.itemTypesOrder={[r.ItemTypes.All]:0,[r.ItemTypes.Chapter]:1,[r.ItemTypes.Slide]:2,[r.ItemTypes.Hotspot]:3,[r.ItemTypes.AnswerOnAir]:4,[r.ItemTypes.Caption]:5,[r.ItemTypes.QuizQuestion]:6},e.getLastItem=t=>t[t.length-1],e.makeDisplayTime=t=>o(Math.floor(t)),e.decodeString=t=>"string"!=typeof t?t:t.replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/&quot;/gi,'"'),e.prepareCuePoint=(t,n,o)=>{const{metadata:i}=t,a={cuePointType:n,id:t.id,startTime:t.startTime,displayTime:(0,e.makeDisplayTime)(t.startTime),partnerData:i.partnerData,tags:i.tags,itemType:n,displayTitle:"",liveCuePoint:o,displayDescription:[r.ItemTypes.Slide,r.ItemTypes.Chapter].includes(n)?(0,e.decodeString)(i.description):null,previewImage:null,groupData:null};return[r.ItemTypes.Hotspot,r.ItemTypes.AnswerOnAir,r.ItemTypes.Caption].includes(n)?a.displayTitle=(0,e.decodeString)(i.text):[r.ItemTypes.Slide,r.ItemTypes.Chapter].includes(n)&&(a.displayTitle=(0,e.decodeString)(i.title),a.previewImage=i.assetUrl||null),a},e.sortItems=(t,e)=>t.sort(((t,n)=>t.startTime===n.startTime?e[t.itemType]-e[n.itemType]:t.startTime-n.startTime)),e.addGroupData=t=>t.reduce(((t,n)=>{if(!n.displayTime)return n.groupData=r.GroupTypes.first,[...t,n];const o=(0,e.getLastItem)(t),i=t.length>1&&t[t.length-2];return o&&n.displayTime===o.displayTime&&(i.displayTime===o.displayTime&&(o.groupData=r.GroupTypes.mid),o.groupData||o.groupData||(o.groupData=r.GroupTypes.first),n.groupData=r.GroupTypes.last),[...t,n]}),[]);const i=t=>t.map((t=>Object.assign(Object.assign({},t),{groupData:null})));e.filterDataBySearchQuery=(t,e)=>{if(!t||!t.length)return[];if(!e)return t.filter((t=>t.itemType!==r.ItemTypes.Caption));const n=e.toLowerCase(),o=t.filter((t=>!!(t.displayTitle&&`${t.displayTitle}`.toLowerCase().indexOf(n)>-1)||!!(t.displayDescription&&`${t.displayDescription}`.toLowerCase().indexOf(n)>-1)||!!(t.displayTime&&/([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(n)&&t.displayTime.indexOf(n)>-1)||void 0));return i(o)},e.filterDataByActiveTab=(t,e)=>{if(!t||!t.length)return[];if(e===r.ItemTypes.All)return t;const n=t.filter((t=>t.itemType===e));return i(n)},e.getAvailableTabs=(t,e)=>{const n=[...t];let o=0;const i=n.reduce(((t,e)=>(o+=1,e.itemType&&-1===t.indexOf(e.itemType)&&t.push(e.itemType),t)),[]);return i.length>1&&i.unshift(r.ItemTypes.All),i.sort(((t,n)=>e[t]-e[n]))};const a=(t,e)=>t&&e.title===t.title&&e.partnerData===t.partnerData&&[e.tags,t.tags].includes("select-a-thumb, __PREVIEW_CUEPOINT_TAG__");e.filterDuplications=t=>{const e=(t=>{const e=new Map;return t.forEach((t=>{e.set(t.id,t)})),[...e.values()]})(t),n=[];let o=null;for(let t=0;t<e.length;t++)e[t].itemType!==r.ItemTypes.Slide?n.push(e[t]):(a(o,e[t])||n.push(e[t]),o=e[t]);return n},e.prepareItemTypesOrder=t=>t&&"object"==typeof t?Object.assign(Object.assign({},e.itemTypesOrder),t):e.itemTypesOrder,e.isEmptyObject=t=>0===Object.keys(t).length&&t.constructor===Object,e.isDataEqual=(t,n)=>{if(t.length!==n.length)return!1;if(t.length&&n.length){const o=t[0],i=n[0];if(o.id!==i.id)return!1;const a=(0,e.getLastItem)(t),s=(0,e.getLastItem)(n);if(a.id!==s.id)return!1;if(o.text&&i.text&&o.text!==i.text)return!1;if(a.text&&s.text&&a.text!==s.text)return!1;const c=t.filter((t=>t.itemType===r.ItemTypes.QuizQuestion)),p=n.filter((t=>t.itemType===r.ItemTypes.QuizQuestion));if(c.length&&p.length&&!l(c,p))return!1}return!0};const l=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n].quizState!==e[n].quizState)return!1;return!0};e.isMapsEqual=(t,e)=>{if(t.size!==e.size)return!1;for(let[n,r]of t){const t=e.get(n);if(t!==r||void 0===t&&!e.has(n))return!1}return!0},e.findCuepointType=(t,e)=>!!t.find((t=>t.itemType===e)),e.filterCuepointsByStartTime=(t,e)=>t.filter((t=>t.startTime>=e))},2052:function(t){"use strict";t.exports=KalturaPlayer},4522:function(t){"use strict";t.exports=KalturaPlayer.ui.preact}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var r={};!function(){"use strict";var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.NAME=t.VERSION=t.Plugin=void 0;const e=n(1434);Object.defineProperty(t,"Plugin",{enumerable:!0,get:function(){return e.NavigationPlugin}}),t.VERSION="3.3.1",t.NAME="@playkit-js/navigation",KalturaPlayer.core.registerPlugin("navigation",e.NavigationPlugin)}(),((KalturaPlayer=void 0===KalturaPlayer?{}:KalturaPlayer).plugins=KalturaPlayer.plugins||{}).navigation=r}();

var KalturaPlayer;(()=>{var t={979:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.A11yWrapper=e.isKeyboardEvent=void 0;var a=i(522),n=i(978).ui.utils.KeyMap,r=n.ENTER,l=n.SPACE,o=n.UP,s=n.DOWN,p=n.LEFT,c=n.RIGHT,_=function(t){t.preventDefault(),t.stopPropagation()};e.isKeyboardEvent=function(t){return t instanceof KeyboardEvent||[t.offsetX,t.offsetY].every((function(t){return 0===t}))},e.A11yWrapper=function(t){var i=t.children,n=t.onClick,u=t.onUpKeyPressed,y=t.onDownKeyPressed,A=t.onLeftKeyPressed,d=t.onRightKeyPressed,h=t.role,g=t.type,v={onKeyDown:function(t){t.keyCode===l||t.keyCode===r?(_(t),n(t,!0)):t.keyCode===o&&u?(_(t),u(t)):t.keyCode===s&&y?(_(t),y(t)):t.keyCode===p&&A?(_(t),A(t)):t.keyCode===c&&d&&(_(t),d(t))},onClick:function(t){t.stopPropagation(),n(t,(0,e.isKeyboardEvent)(t))},role:h};return"button"===i.type&&(v.type=g||"button"),(0,a.cloneElement)(i,v)},e.A11yWrapper.defaultProps={role:"button"}},605:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>o});var a=i(559),n=i.n(a),r=i(476),l=i.n(r)()(n());l.push([t.id,".playlist-header__playlistHeader___XnPRh{position:relative;display:flex;flex-direction:row;align-items:flex-start}.playlist-header__playlistHeader___XnPRh.playlist-header__vertical___q_vSN{height:48px}.playlist-header__playlistHeader___XnPRh.playlist-header__vertical___q_vSN .playlist-header__playlistMetadata___KDgoL{flex-direction:column}.playlist-header__playlistHeader___XnPRh.playlist-header__vertical___q_vSN .playlist-header__playlistMetadata___KDgoL .playlist-header__playlistDuration___A1xkZ{margin-top:3px}.playlist-header__playlistHeader___XnPRh.playlist-header__vertical___q_vSN .playlist-header__closeButtonWrapper___j_QCj{padding-right:4px}.playlist-header__playlistHeader___XnPRh.playlist-header__horizontal___miKPq{height:32px}.playlist-header__playlistHeader___XnPRh.playlist-header__horizontal___miKPq .playlist-header__playlistMetadata___KDgoL{flex-direction:row;align-items:center}.playlist-header__playlistHeader___XnPRh.playlist-header__horizontal___miKPq .playlist-header__playlistMetadata___KDgoL .playlist-header__playlistDuration___A1xkZ{flex-shrink:0;margin:0 8px}.playlist-header__playlistHeader___XnPRh.playlist-header__horizontal___miKPq .playlist-header__closeButtonWrapper___j_QCj{height:inherit}.playlist-header__playlistHeader___XnPRh .playlist-header__playlistMetadata___KDgoL{display:flex;flex-grow:1;height:inherit;overflow:hidden}.playlist-header__playlistHeader___XnPRh .playlist-header__playlistMetadata___KDgoL .playlist-header__playlistTitle___zUAeZ{font-weight:700;font-size:16px;line-height:21px;color:var(--playkit-tone-1-color);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.playlist-header__playlistHeader___XnPRh .playlist-header__playlistMetadata___KDgoL .playlist-header__playlistDuration___A1xkZ{font-weight:400;font-size:14px;line-height:18px;color:var(--playkit-tone-2-color)}.playlist-header__playlistHeader___XnPRh .playlist-header__closeButtonWrapper___j_QCj{padding-top:4px}.playlist-header__playlistHeader___XnPRh .playlist-header__closeButtonWrapper___j_QCj .playlist-header__closeButton___mRamP{display:flex;width:24px;height:24px;padding:0;background:rgba(0,0,0,0);border:none;cursor:pointer}.playkit-player.has-live-plugin-overlay .playlist-header__closeButtonWrapper___j_QCj{opacity:.3;pointer-events:none}","",{version:3,sources:["webpack://./components/playlist-header/playlist-header.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAEA,yCACE,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,2EACE,WAAA,CACA,sHACE,qBAAA,CACA,iKACE,cAAA,CAGJ,wHACE,iBAAA,CAGJ,6EACE,WAAA,CACA,wHACE,kBAAA,CACA,kBAAA,CACA,mKACE,aAAA,CACA,YAAA,CAGJ,0HACE,cAAA,CAGJ,oFACE,YAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CACA,4HACE,eAAA,CACA,cAAA,CACA,gBAAA,CACA,iCCZS,CDaT,kBAAA,CACA,sBAAA,CACA,eAAA,CAEF,+HACE,eAAA,CACA,cAAA,CACA,gBAAA,CACA,iCCpBS,CDuBb,sFACE,eAAA,CACA,4HACE,YAAA,CACA,UAAA,CACA,WAAA,CACA,SAAA,CACA,wBAAA,CACA,WAAA,CACA,cAAA,CAKJ,qFACE,UAAA,CACA,mBAAA",sourcesContent:["@import '../../theme.scss';\n\n.playlistHeader {\n  position: relative;\n  display: flex;\n  flex-direction: row;\n  align-items: flex-start;\n  &.vertical {\n    height: 48px;\n    .playlistMetadata {\n      flex-direction: column;\n      .playlistDuration {\n        margin-top: 3px;\n      }\n    }\n    .closeButtonWrapper {\n      padding-right: 4px;\n    }\n  }\n  &.horizontal {\n    height: 32px;\n    .playlistMetadata {\n      flex-direction: row;\n      align-items: center;\n      .playlistDuration {\n        flex-shrink: 0;\n        margin: 0 8px;\n      }\n    }\n    .closeButtonWrapper {\n      height: inherit;\n    }\n  }\n  .playlistMetadata {\n    display: flex;\n    flex-grow: 1;\n    height: inherit;\n    overflow: hidden;\n    .playlistTitle {\n      font-weight: 700;\n      font-size: 16px;\n      line-height: 21px;\n      color: $tone-1-color;\n      white-space: nowrap;\n      text-overflow: ellipsis;\n      overflow: hidden;\n    }\n    .playlistDuration {\n      font-weight: 400;\n      font-size: 14px;\n      line-height: 18px;\n      color: $tone-2-color;\n    }\n  }\n  .closeButtonWrapper {\n    padding-top: 4px;\n    .closeButton {\n      display: flex;\n      width: 24px;\n      height: 24px;\n      padding: 0;\n      background: transparent;\n      border: none;\n      cursor: pointer;\n    }\n  }\n}\n:global(.playkit-player.has-live-plugin-overlay) {\n  .closeButtonWrapper {\n    opacity: 0.3;\n    pointer-events: none;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),l.locals={playlistHeader:"playlist-header__playlistHeader___XnPRh",vertical:"playlist-header__vertical___q_vSN",playlistMetadata:"playlist-header__playlistMetadata___KDgoL",playlistDuration:"playlist-header__playlistDuration___A1xkZ",closeButtonWrapper:"playlist-header__closeButtonWrapper___j_QCj",horizontal:"playlist-header__horizontal___miKPq",playlistTitle:"playlist-header__playlistTitle___zUAeZ",closeButton:"playlist-header__closeButton___mRamP"};const o=l},675:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>o});var a=i(559),n=i.n(a),r=i(476),l=i.n(r)()(n());l.push([t.id,".playlist-item__playlistItem___i0DYl{display:flex;align-items:center;flex-shrink:0;border-radius:4px;cursor:pointer;overflow:hidden;border-left:2px solid rgba(0,0,0,0);outline-offset:-1px}.playlist-item__playlistItem___i0DYl:hover,.playlist-item__playlistItem___i0DYl.playlist-item__active___fa86I{background:rgba(255,255,255,.12)}.playlist-item__playlistItem___i0DYl.playlist-item__active___fa86I{border-color:var(--playkit-primary-color)}.playlist-item__playlistItem___i0DYl.playlist-item__vertical___vo2GO{flex-direction:row;width:100%;height:72px;padding:8px}.playlist-item__playlistItem___i0DYl.playlist-item__vertical___vo2GO .playlist-item__playlistItemThumbnailWrapper___xfRMl{width:99px;height:56px;margin:0 8px}.playlist-item__playlistItem___i0DYl.playlist-item__vertical___vo2GO .playlist-item__playlistItemMetadata___GlRuh .playlist-item__playlistItemTitle____LKxG{max-height:54px;-webkit-line-clamp:3}.playlist-item__playlistItem___i0DYl.playlist-item__vertical___vo2GO .playlist-item__playlistItemMetadata___GlRuh .playlist-item__playlistItemTitle____LKxG.playlist-item__hasDescription___AKX8b{max-height:36px;-webkit-line-clamp:2}.playlist-item__playlistItem___i0DYl.playlist-item__horizontal___Bbtg_{flex-direction:column;height:100%;padding:0 6px 4px 6px;border-right:2px solid rgba(0,0,0,0);align-items:flex-start;max-width:min-content}.playlist-item__playlistItem___i0DYl.playlist-item__horizontal___Bbtg_ .playlist-item__playlistItemThumbnailWrapper___xfRMl{margin-top:1px;height:calc(100% - 46px);background-size:cover;max-height:100%}.playlist-item__playlistItem___i0DYl.playlist-item__horizontal___Bbtg_ .playlist-item__playlistItemThumbnailWrapper___xfRMl img{max-width:fit-content}.playlist-item__playlistItem___i0DYl.playlist-item__horizontal___Bbtg_ .playlist-item__playlistItemMetadata___GlRuh{height:46px;justify-content:flex-start;margin-top:4px;max-width:fit-content}.playlist-item__playlistItem___i0DYl.playlist-item__horizontal___Bbtg_ .playlist-item__playlistItemMetadata___GlRuh .playlist-item__playlistItemTitle____LKxG{margin-top:4px;max-height:36px;-webkit-line-clamp:2;word-break:break-word}.playlist-item__playlistItem___i0DYl.playlist-item__horizontal___Bbtg_ .playlist-item__playlistItemMetadata___GlRuh .playlist-item__playlistItemTitle____LKxG.playlist-item__hasDescription___AKX8b{max-height:18px;-webkit-line-clamp:1}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemIndex___vf4NV{flex-shrink:0;display:flex;width:12px;height:inherit;font-size:12px;line-height:18px;font-weight:400;color:var(--playkit-tone-1-color);justify-content:flex-end;align-items:center}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemThumbnailWrapper___xfRMl{position:relative;flex-shrink:0;border-radius:4px;background-size:contain;background-position:center}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemThumbnailWrapper___xfRMl .playlist-item__playlistItemAddons___j4Edy{position:absolute;bottom:2px;left:2px;right:2px}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemThumbnailWrapper___xfRMl .playlist-item__playlistItemAddons___j4Edy .playlist-item__liveLabel___onRFI{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:2px;width:29px;height:18px;background:var(--playkit-live-color);border-radius:2px;font-size:12px;line-height:14px;color:var(--playkit-primary-text-contrast-color);text-transform:uppercase}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemThumbnailWrapper___xfRMl .playlist-item__playlistItemAddons___j4Edy .playlist-item__playlistItemDuration___Ts2OY{display:flex;flex-direction:row;justify-content:center;align-items:center;width:fit-content;margin-bottom:2px;padding:2px;height:18px;background-color:rgba(0,0,0,.6);border-radius:3px;font-size:12px;font-weight:700;line-height:14px;color:#fff}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemThumbnailWrapper___xfRMl .playlist-item__playlistItemAddons___j4Edy .playlist-item__playlistItemProgress___vhA3K{position:relative;width:100%;height:4px;background:var(--playkit-tone-6-color);border-radius:2px;overflow:hidden}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemThumbnailWrapper___xfRMl .playlist-item__playlistItemAddons___j4Edy .playlist-item__playlistItemProgress___vhA3K .playlist-item__lastProgress___cTzGp{position:absolute;height:inherit;left:0;background:var(--playkit-primary-color)}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemMetadata___GlRuh{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemMetadata___GlRuh .playlist-item__playlistItemTitle____LKxG{color:var(--playkit-tone-1-color);display:block;display:-webkit-box;max-width:100%;margin:0 auto;font-size:14px;line-height:18px;font-weight:400;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemMetadata___GlRuh .playlist-item__playlistItemDescription___h55Et{display:flex;align-items:center;font-size:12px;line-height:18px;font-weight:400;color:var(--playkit-tone-2-color)}.playlist-item__playlistItem___i0DYl .playlist-item__playlistItemMetadata___GlRuh .playlist-item__playlistItemDescription___h55Et .playlist-item__iconContainer___AAkvV{width:16px;height:16px;margin-right:4px}","",{version:3,sources:["webpack://./components/playlist-item/playlist-item.scss","webpack://./theme.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAKA,qCACE,YAAA,CACA,kBAAA,CACA,aAAA,CACA,iBCNY,CDOZ,cAAA,CACA,eAAA,CACA,mCAAA,CACA,mBAAA,CACA,8GAEE,gCAAA,CAEF,mEACE,yCEhBY,CFkBd,qEACE,kBAAA,CACA,UAAA,CACA,WAAA,CACA,WAAA,CACA,0HACE,UAAA,CACA,WAAA,CACA,YAAA,CAEF,4JACE,eAAA,CACA,oBAAA,CACA,kMACE,eAAA,CACA,oBAAA,CAIN,uEACE,qBAAA,CACA,WAAA,CACA,qBAAA,CACA,oCAAA,CACA,sBAAA,CACA,qBAAA,CACA,4HACE,cAAA,CACA,wBAAA,CACA,qBAAA,CACA,eAAA,CACA,gIACE,qBAAA,CAGJ,oHACE,WAtD0B,CAuD1B,0BAAA,CACA,cAAA,CACA,qBAAA,CACF,8JACE,cAAA,CACA,eAAA,CACA,oBAAA,CACA,qBAAA,CACA,oMACE,eAjEM,CAkEN,oBAAA,CAKN,+EACE,aAAA,CACA,YAAA,CACA,UAAA,CACA,cAAA,CACA,cAAA,CACA,gBA7EU,CA8EV,eAAA,CACA,iCEnDW,CFoDX,wBAAA,CACA,kBAAA,CAEF,0FACE,iBAAA,CACA,aAAA,CACA,iBCrFU,CDsFV,uBAAA,CACA,0BAAA,CACA,qIACE,iBAAA,CACA,UAAA,CACA,QAAA,CACA,SAAA,CACA,uKACE,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,WAAA,CACA,oCEjEK,CFkEL,iBAAA,CACA,cAAA,CACA,gBAAA,CACA,gDEtGsB,CFuGtB,wBAAA,CAEF,kLACE,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,kBAAA,CACA,iBAAA,CACA,iBAAA,CACA,WAAA,CACA,WAAA,CACA,+BAAA,CACA,iBAAA,CACA,cAAA,CACA,eAAA,CACA,gBAAA,CACA,UAAA,CAEF,kLACE,iBAAA,CACA,UAAA,CACA,UAAA,CACA,sCEhGO,CFiGP,iBAAA,CACA,eAAA,CACA,uNACE,iBAAA,CACA,cAAA,CACA,MAAA,CACA,uCEvIM,CF4Id,kFACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,eAAA,CACA,4HACE,iCEvHS,CFwHT,aAAA,CACA,mBAAA,CACA,cAAA,CACA,aAAA,CACA,cAAA,CACA,gBAzJQ,CA0JR,eAAA,CACA,2BAAA,CACA,eAAA,CACA,sBAAA,CAEF,kIACE,YAAA,CACA,kBAAA,CACA,cAAA,CACA,gBAnKQ,CAoKR,eAAA,CACA,iCExIS,CFyIT,wKACE,UAAA,CACA,WAAA,CACA,gBAAA",sourcesContent:["@import '../../theme.scss';\n\n$line-height: 18px;\n$playlist-item-metadata-height: 46px;\n\n.playlistItem {\n  display: flex;\n  align-items: center;\n  flex-shrink: 0;\n  border-radius: $roundness-1;\n  cursor: pointer;\n  overflow: hidden;\n  border-left: 2px solid transparent;\n  outline-offset: -1px;\n  &:hover,\n  &.active {\n    background: rgba(255, 255, 255, 0.12);\n  }\n  &.active {\n    border-color: $primary-color;\n  }\n  &.vertical {\n    flex-direction: row;\n    width: 100%;\n    height: 72px;\n    padding: 8px;\n    .playlistItemThumbnailWrapper {\n      width: 99px;\n      height: 56px;\n      margin: 0 8px;\n    }\n    .playlistItemMetadata .playlistItemTitle {\n      max-height: $line-height * 3;\n      -webkit-line-clamp: 3;\n      &.hasDescription {\n        max-height: $line-height * 2;\n        -webkit-line-clamp: 2;\n      }\n    }\n  }\n  &.horizontal {\n    flex-direction: column;\n    height: 100%;\n    padding: 0 6px 4px 6px;\n    border-right: 2px solid transparent;\n    align-items: flex-start;\n    max-width: min-content;\n    .playlistItemThumbnailWrapper {\n      margin-top: 1px;\n      height: calc(100% - $playlist-item-metadata-height);\n      background-size: cover;\n      max-height: 100%;\n      img {\n        max-width: fit-content; // override style from kms\n      }\n    }\n    .playlistItemMetadata {\n      height: $playlist-item-metadata-height;\n      justify-content: flex-start;\n      margin-top: 4px;\n      max-width: fit-content;\n    .playlistItemTitle {\n      margin-top: 4px;\n      max-height: $line-height * 2;\n      -webkit-line-clamp: 2;\n      word-break: break-word;\n      &.hasDescription {\n        max-height: $line-height;\n        -webkit-line-clamp: 1;\n      }\n    }\n    }\n  }\n  .playlistItemIndex {\n    flex-shrink: 0;\n    display: flex;\n    width: 12px;\n    height: inherit;\n    font-size: 12px;\n    line-height: $line-height;\n    font-weight: 400;\n    color: $tone-1-color;\n    justify-content: flex-end;\n    align-items: center;\n  }\n  .playlistItemThumbnailWrapper {\n    position: relative;\n    flex-shrink: 0;\n    border-radius: $roundness-1;\n    background-size: contain;\n    background-position: center;\n    .playlistItemAddons {\n      position: absolute;\n      bottom: 2px;\n      left: 2px;\n      right: 2px;\n      .liveLabel {\n        display: flex;\n        flex-direction: row;\n        justify-content: center;\n        align-items: center;\n        padding: 2px;\n        width: 29px;\n        height: 18px;\n        background: $live-color;\n        border-radius: 2px;\n        font-size: 12px;\n        line-height: 14px;\n        color: $primary-text-contrast-color;\n        text-transform: uppercase;\n      }\n      .playlistItemDuration {\n        display: flex;\n        flex-direction: row;\n        justify-content: center;\n        align-items: center;\n        width: fit-content;\n        margin-bottom: 2px;\n        padding: 2px;\n        height: 18px;\n        background-color: rgba(0, 0, 0, 0.6);\n        border-radius: 3px;\n        font-size: 12px;\n        font-weight: 700;\n        line-height: 14px;\n        color: white;\n      }\n      .playlistItemProgress {\n        position: relative;\n        width: 100%;\n        height: 4px;\n        background: $tone-6-color;\n        border-radius: 2px;\n        overflow: hidden;\n        .lastProgress {\n          position: absolute;\n          height: inherit;\n          left: 0;\n          background: $primary-color;\n        }\n      }\n    }\n  }\n  .playlistItemMetadata {\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    overflow: hidden;\n    .playlistItemTitle {\n      color: $tone-1-color;\n      display: block; /* Fallback for non-webkit */\n      display: -webkit-box;\n      max-width: 100%;\n      margin: 0 auto;\n      font-size: 14px;\n      line-height: $line-height;\n      font-weight: 400;\n      -webkit-box-orient: vertical;\n      overflow: hidden;\n      text-overflow: ellipsis;\n    }\n    .playlistItemDescription {\n      display: flex;\n      align-items: center;\n      font-size: 12px;\n      line-height: $line-height;\n      font-weight: 400;\n      color: $tone-2-color;\n      .iconContainer {\n        width: 16px;\n        height: 16px;\n        margin-right: 4px;\n      }\n    }\n  }\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n\n@mixin playlist-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n    height: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n    visibility: hidden;\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n    visibility: hidden;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),l.locals={playlistItem:"playlist-item__playlistItem___i0DYl",active:"playlist-item__active___fa86I",vertical:"playlist-item__vertical___vo2GO",playlistItemThumbnailWrapper:"playlist-item__playlistItemThumbnailWrapper___xfRMl",playlistItemMetadata:"playlist-item__playlistItemMetadata___GlRuh",playlistItemTitle:"playlist-item__playlistItemTitle____LKxG",hasDescription:"playlist-item__hasDescription___AKX8b",horizontal:"playlist-item__horizontal___Bbtg_",playlistItemIndex:"playlist-item__playlistItemIndex___vf4NV",playlistItemAddons:"playlist-item__playlistItemAddons___j4Edy",liveLabel:"playlist-item__liveLabel___onRFI",playlistItemDuration:"playlist-item__playlistItemDuration___Ts2OY",playlistItemProgress:"playlist-item__playlistItemProgress___vhA3K",lastProgress:"playlist-item__lastProgress___cTzGp",playlistItemDescription:"playlist-item__playlistItemDescription___h55Et",iconContainer:"playlist-item__iconContainer___AAkvV"};const o=l},560:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>o});var a=i(559),n=i.n(a),r=i(476),l=i.n(r)()(n());l.push([t.id,".playlist-wrapper__playlistWrapper___OKJ0_{display:flex;flex-direction:column;height:100%;background:rgba(0,0,0,.6);backdrop-filter:blur(8px)}.playlist-wrapper__playlistWrapper___OKJ0_.playlist-wrapper__vertical___CNtX9{padding:16px 4px 16px 16px}.playlist-wrapper__playlistWrapper___OKJ0_.playlist-wrapper__vertical___CNtX9 .playlist-wrapper__playlistContent___J5uT8{flex-direction:column;overflow:hidden auto}.playlist-wrapper__playlistWrapper___OKJ0_.playlist-wrapper__horizontal___M8wjx{padding:8px 16px 4px 16px}.playlist-wrapper__playlistWrapper___OKJ0_.playlist-wrapper__horizontal___M8wjx .playlist-wrapper__playlistContent___J5uT8{flex-direction:row;overflow:auto hidden;height:100%}.playlist-wrapper__playlistWrapper___OKJ0_ .playlist-wrapper__playlistContent___J5uT8{display:flex;width:100%}.playlist-wrapper__playlistWrapper___OKJ0_ .playlist-wrapper__playlistContent___J5uT8::-webkit-scrollbar{width:4px;height:4px}.playlist-wrapper__playlistWrapper___OKJ0_ .playlist-wrapper__playlistContent___J5uT8::-webkit-scrollbar-track{background:rgba(33,33,33,.9);visibility:hidden}.playlist-wrapper__playlistWrapper___OKJ0_ .playlist-wrapper__playlistContent___J5uT8::-webkit-scrollbar-thumb{border-radius:3px;background-color:rgba(255,255,255,.3);visibility:hidden}.playlist-wrapper__playlistWrapper___OKJ0_ .playlist-wrapper__playlistContent___J5uT8.playlist-wrapper__scrolling___J1MGg::-webkit-scrollbar-track,.playlist-wrapper__playlistWrapper___OKJ0_ .playlist-wrapper__playlistContent___J5uT8.playlist-wrapper__scrolling___J1MGg::-webkit-scrollbar-thumb{visibility:visible}.playlist-wrapper__playlistWrapper___OKJ0_ *{font-family:sans-serif;font-style:normal}.playkit-player.has-live-plugin-overlay .playkit-side-panel{z-index:6}","",{version:3,sources:["webpack://./components/playlist-wrapper/playlist-wrapper.scss","webpack://./theme.scss"],names:[],mappings:"AAEA,2CACE,YAAA,CACA,qBAAA,CACA,WAAA,CACA,yBAAA,CACA,yBAAA,CACA,8EACE,0BAAA,CACA,yHACE,qBAAA,CACA,oBAAA,CAGJ,gFACE,yBAAA,CACA,2HACE,kBAAA,CACA,oBAAA,CACA,WAAA,CAIJ,sFACE,YAAA,CACA,UAAA,CCnBF,yGACE,SAAA,CACA,UAAA,CAEF,+GACE,4BAAA,CACA,iBAAA,CAEF,+GACE,iBAAA,CACA,qCAAA,CACA,iBAAA,CDUA,sSAEE,kBAAA,CAKJ,6CACE,sBAAA,CACA,iBAAA,CAGJ,4DACE,SAAA",sourcesContent:["@import '../../theme.scss';\n\n.playlistWrapper {\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  background: rgba(0, 0, 0, 0.6);\n  backdrop-filter: blur(8px);\n  &.vertical {\n    padding: 16px 4px 16px 16px;\n    .playlistContent {\n      flex-direction: column;\n      overflow: hidden auto;\n    }\n  }\n  &.horizontal {\n    padding: 8px 16px 4px 16px;\n    .playlistContent {\n      flex-direction: row;\n      overflow: auto hidden;\n      height: 100%;\n    }\n  }\n\n  .playlistContent {\n    display: flex;\n    width: 100%;\n    @include playlist-scrollbar();\n    &.scrolling::-webkit-scrollbar-track,\n    &.scrolling::-webkit-scrollbar-thumb, {\n      visibility: visible;\n    }\n  }\n\n  // TODO: remove once player fix the font\n  * {\n    font-family: sans-serif;\n    font-style: normal;\n  }\n}\n:global(.playkit-player.has-live-plugin-overlay .playkit-side-panel) {\n  z-index: 6;\n}\n","@import '~@playkit-js/playkit-js-ui';\n\n// border radius\n$roundness-1: 4px;\n$roundness-2: 8px;\n\n@mixin playlist-scrollbar {\n  &::-webkit-scrollbar {\n    width: 4px;\n    height: 4px;\n  }\n  &::-webkit-scrollbar-track {\n    background: rgba(33, 33, 33, 0.9);\n    visibility: hidden;\n  }\n  &::-webkit-scrollbar-thumb {\n    border-radius: 3px;\n    background-color: rgba(255, 255, 255, 0.3);\n    visibility: hidden;\n  }\n}\n"],sourceRoot:""}]),l.locals={playlistWrapper:"playlist-wrapper__playlistWrapper___OKJ0_",vertical:"playlist-wrapper__vertical___CNtX9",playlistContent:"playlist-wrapper__playlistContent___J5uT8",horizontal:"playlist-wrapper__horizontal___M8wjx",scrolling:"playlist-wrapper__scrolling___J1MGg"};const o=l},958:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>o});var a=i(559),n=i.n(a),r=i(476),l=i.n(r)()(n());l.push([t.id,".plugin-button__pluginButton___hbzoA.plugin-button__active___pVKh2{background-color:var(--playkit-tone-6-color)}","",{version:3,sources:["webpack://./components/plugin-button/plugin-button.scss","webpack://./../node_modules/@playkit-js/playkit-js-ui/src/styles/exported.scss"],names:[],mappings:"AAGE,mEACE,4CC+BW",sourcesContent:["@import '../../theme.scss';\n\n.pluginButton {\n  &.active {\n    background-color: $tone-6-color;\n  }\n}\n","// Sass variables exported using the npm package for plugins usage\n\n// Accent Colors\n$primary-color: var(--playkit-primary-color);\n$primary-darker-color: var(--playkit-primary-darker-color);\n$primary-brighter-color: var(--playkit-primary-brighter-color);\n$primary-text-contrast-color: var(--playkit-primary-text-contrast-color);\n\n$secondary-color: var(--playkit-secondary-color);\n$secondary-darker-color: var(--playkit-secondary-darker-color);\n$secondary-brighter-color: var(--playkit-secondary-brighter-color);\n$secondary-text-contrast-color: var(--playkit-secondary-text-contrast-color);\n\n// Acknowledgement Colors\n$success-color: var(--playkit-success-color);\n$success-darker-color: var(--playkit-success-darker-color);\n$success-brighter-color: var(--playkit-success-brighter-color);\n$success-text-contrast-color: var(--playkit-success-text-contrast-color);\n\n$danger-color: var(--playkit-danger-color);\n$danger-darker-color: var(--playkit-danger-darker-color);\n$danger-brighter-color: var(--playkit-danger-brighter-color);\n$danger-text-contrast-color: var(--playkit-danger-text-contrast-color);\n\n$warning-color: var(--playkit-warning-color);\n$warning-darker-color: var(--playkit-warning-darker-color);\n$warning-brighter-color: var(--playkit-warning-brighter-color);\n$warning-text-contrast-color: var(--playkit-warning-text-contrast-color);\n\n// Tone Ramp\n$tone-1-color: var(--playkit-tone-1-color);\n$tone-2-color: var(--playkit-tone-2-color);\n$tone-3-color: var(--playkit-tone-3-color);\n$tone-4-color: var(--playkit-tone-4-color);\n$tone-5-color: var(--playkit-tone-5-color);\n$tone-6-color: var(--playkit-tone-6-color);\n$tone-7-color: var(--playkit-tone-7-color);\n$tone-8-color: var(--playkit-tone-8-color);\n\n$live-color: var(--playkit-live-color);\n$player-background-color: var(--playkit-player-background-color);\n$tab-focus-color: var(--playkit-tab-focus-color);\n$tooltip-background-color: var(--playkit-tooltip-background-color);\n$tooltip-color: var(--playkit-tooltip-color);\n$ads-color: var(--playkit-ads-color);\n"],sourceRoot:""}]),l.locals={pluginButton:"plugin-button__pluginButton___hbzoA",active:"plugin-button__active___pVKh2"};const o=l},476:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",a=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),a&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),a&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,a,n,r){"string"==typeof t&&(t=[[null,t,void 0]]);var l={};if(a)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(l[s]=!0)}for(var p=0;p<t.length;p++){var c=[].concat(t[p]);a&&l[c[0]]||(void 0!==r&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=r),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),n&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=n):c[4]="".concat(n)),e.push(c))}},e}},559:t=>{"use strict";t.exports=function(t){var e=t[1],i=t[3];if(!i)return e;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),r="/*# ".concat(n," */"),l=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[e].concat(l).concat([r]).join("\n")}return[e].join("\n")}},792:(t,e,i)=>{"use strict";i.r(e),i.d(e,{useCallback:()=>x,useContext:()=>k,useDebugValue:()=>w,useEffect:()=>v,useErrorBoundary:()=>P,useImperativeHandle:()=>C,useLayoutEffect:()=>m,useMemo:()=>b,useReducer:()=>g,useRef:()=>f,useState:()=>h});var a,n,r,l,o=i(522),s=0,p=[],c=o.options.__b,_=o.options.__r,u=o.options.diffed,y=o.options.__c,A=o.options.unmount;function d(t,e){o.options.__h&&o.options.__h(n,t,s||e),s=0;var i=n.__H||(n.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function h(t){return s=1,g(D,t)}function g(t,e,i){var r=d(a++,2);return r.t=t,r.__c||(r.__=[i?i(e):D(void 0,e),function(t){var e=r.t(r.__[0],t);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=n),r.__}function v(t,e){var i=d(a++,3);!o.options.__s&&O(i.__H,e)&&(i.__=t,i.u=e,n.__H.__h.push(i))}function m(t,e){var i=d(a++,4);!o.options.__s&&O(i.__H,e)&&(i.__=t,i.u=e,n.__h.push(i))}function f(t){return s=5,b((function(){return{current:t}}),[])}function C(t,e,i){s=6,m((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==i?i:i.concat(t))}function b(t,e){var i=d(a++,7);return O(i.__H,e)?(i.o=t(),i.u=e,i.__h=t,i.o):i.__}function x(t,e){return s=8,b((function(){return t}),e)}function k(t){var e=n.context[t.__c],i=d(a++,9);return i.c=t,e?(null==i.__&&(i.__=!0,e.sub(n)),e.props.value):t.__}function w(t,e){o.options.useDebugValue&&o.options.useDebugValue(e?e(t):t)}function P(t){var e=d(a++,10),i=h();return e.__=t,n.componentDidCatch||(n.componentDidCatch=function(t){e.__&&e.__(t),i[1](t)}),[i[0],function(){i[1](void 0)}]}function E(){for(var t;t=p.shift();)if(t.__P)try{t.__H.__h.forEach(B),t.__H.__h.forEach(M),t.__H.__h=[]}catch(e){t.__H.__h=[],o.options.__e(e,t.__v)}}o.options.__b=function(t){n=null,c&&c(t)},o.options.__r=function(t){_&&_(t),a=0;var e=(n=t.__c).__H;e&&(r===n?(e.__h=[],n.__h=[],e.__.forEach((function(t){t.o=t.u=void 0}))):(e.__.forEach((function(t){t.u&&(t.__H=t.u),t.o&&(t.__=t.o),t.o=t.u=void 0})),e.__h.forEach(B),e.__h.forEach(M),e.__h=[])),r=n},o.options.diffed=function(t){u&&u(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==p.push(e)&&l===o.options.requestAnimationFrame||((l=o.options.requestAnimationFrame)||function(t){var e,i=function(){clearTimeout(a),I&&cancelAnimationFrame(e),setTimeout(t)},a=setTimeout(i,100);I&&(e=requestAnimationFrame(i))})(E)),n=null,r=null},o.options.__c=function(t,e){e.some((function(t){try{t.__H&&t.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.o&&(t.__=t.o),t.o=t.u=void 0})),t.__h.forEach(B),t.__h=t.__h.filter((function(t){return!t.__||M(t)}))}catch(i){e.some((function(t){t.__h&&(t.__h=[])})),e=[],o.options.__e(i,t.__v)}})),y&&y(t,e)},o.options.unmount=function(t){A&&A(t);var e,i=t.__c;i&&i.__H&&(i.__H.__.forEach((function(t){try{B(t)}catch(t){e=t}})),e&&o.options.__e(e,i.__v))};var I="function"==typeof requestAnimationFrame;function B(t){var e=n,i=t.__c;"function"==typeof i&&(t.__c=void 0,i()),n=e}function M(t){var e=n;t.__c=t.__(),n=e}function O(t,e){return!t||t.length!==e.length||e.some((function(e,i){return e!==t[i]}))}function D(t,e){return"function"==typeof e?e(t):e}},168:(t,e,i)=>{var a=i(892),n=i(605);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.id,n,""]]);a(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},546:(t,e,i)=>{var a=i(892),n=i(675);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.id,n,""]]);a(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},900:(t,e,i)=>{var a=i(892),n=i(560);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.id,n,""]]);a(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},364:(t,e,i)=>{var a=i(892),n=i(958);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.id,n,""]]);a(n,{insert:"head",singleton:!1}),t.exports=n.locals||{}},892:(t,e,i)=>{"use strict";var a,n=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),r=[];function l(t){for(var e=-1,i=0;i<r.length;i++)if(r[i].identifier===t){e=i;break}return e}function o(t,e){for(var i={},a=[],n=0;n<t.length;n++){var o=t[n],s=e.base?o[0]+e.base:o[0],p=i[s]||0,c="".concat(s," ").concat(p);i[s]=p+1;var _=l(c),u={css:o[1],media:o[2],sourceMap:o[3]};-1!==_?(r[_].references++,r[_].updater(u)):r.push({identifier:c,updater:d(u,e),references:1}),a.push(c)}return a}function s(t){var e=document.createElement("style"),a=t.attributes||{};if(void 0===a.nonce){var r=i.nc;r&&(a.nonce=r)}if(Object.keys(a).forEach((function(t){e.setAttribute(t,a[t])})),"function"==typeof t.insert)t.insert(e);else{var l=n(t.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(e)}return e}var p,c=(p=[],function(t,e){return p[t]=e,p.filter(Boolean).join("\n")});function _(t,e,i,a){var n=i?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(t.styleSheet)t.styleSheet.cssText=c(e,n);else{var r=document.createTextNode(n),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(r,l[e]):t.appendChild(r)}}function u(t,e,i){var a=i.css,n=i.media,r=i.sourceMap;if(n?t.setAttribute("media",n):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var y=null,A=0;function d(t,e){var i,a,n;if(e.singleton){var r=A++;i=y||(y=s(e)),a=_.bind(null,i,r,!1),n=_.bind(null,i,r,!0)}else i=s(e),a=u.bind(null,i,e),n=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else n()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a));var i=o(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var a=0;a<i.length;a++){var n=l(i[a]);r[n].references--}for(var s=o(t,e),p=0;p<i.length;p++){var c=l(i[p]);0===r[c].references&&(r[c].updater(),r.splice(c,1))}i=s}}}},293:(t,e)=>{"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.icons=void 0,(i=e.icons||(e.icons={})).PLUGIN_ICON="M19.416 25.815a1.23 1.23 0 0 1-.6-1.095v-4.48a1.23 1.23 0 0 1 1.85-1.11l3.71 2.25a1.28 1.28 0 0 1 0 2.2l-3.71 2.24a1.23 1.23 0 0 1-1.25-.005zM8 20h8a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2zM24 16a1 1 0 1 0 0-2H8a1 1 0 1 0 0 2h16zM25 9a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h16a1 1 0 0 1 1 1z",i.CLOSE_ICON="M11.6592 10.245L6.70483 5.29061C6.31701 4.9028 5.68581 4.90476 5.29528 5.29528C4.90204 5.68853 4.90267 6.31688 5.29061 6.70483L10.245 11.6592L5.29061 16.6137C4.9028 17.0015 4.90476 17.6327 5.29528 18.0232C5.68853 18.4165 6.31688 18.4158 6.70483 18.0279L11.6592 13.0735L16.6137 18.0279C17.0015 18.4157 17.6327 18.4137 18.0232 18.0232C18.4165 17.63 18.4158 17.0016 18.0279 16.6137L13.0735 11.6592L18.0279 6.70483C18.4157 6.31701 18.4137 5.68581 18.0232 5.29528C17.63 4.90204 17.0016 4.90267 16.6137 5.29061L11.6592 10.245Z",i.QUIZ_ICON="M8.49861 2.11496L12.7442 4.20517C12.9162 4.28984 12.9813 4.48718 12.8896 4.64594C12.8595 4.69804 12.8146 4.74161 12.7597 4.77198L8.54488 7.10632C8.20957 7.29202 7.79067 7.29202 7.45536 7.10632L3.24055 4.772C3.0734 4.67942 3.0192 4.47931 3.11949 4.32502C3.1524 4.27439 3.1996 4.23296 3.25605 4.20518L7.50207 2.11495C7.81349 1.96164 8.1872 1.96165 8.49861 2.11496ZM14.0001 6.02875V10.7641C14.0001 11.1074 13.8049 11.4256 13.486 11.6022L9.24048 13.9535C9.07333 14.0461 8.85653 13.9961 8.75624 13.8418C8.72333 13.7912 8.70595 13.7332 8.70595 13.6742V8.9388C8.70595 8.59549 8.90109 8.27735 9.22001 8.10072L13.4655 5.74939C13.6327 5.65682 13.8495 5.70685 13.9498 5.86114C13.9827 5.91177 14.0001 5.9697 14.0001 6.02875ZM6.51454 8.3119L2.50488 6.04474C2.45307 6.01545 2.39379 5.99997 2.33338 5.99997C2.14928 5.99997 2.00005 6.14061 2.00005 6.3141V10.88C2.00005 11.211 2.18434 11.5177 2.48555 11.688L6.49521 13.9552C6.54702 13.9845 6.6063 14 6.66671 14C6.85081 14 7.00005 13.8593 7.00005 13.6858V9.11998C7.00005 8.78896 6.81575 8.48221 6.51454 8.3119Z",i.IMAGE_ICON="M12.3334 0.666668C13.0698 0.666668 13.6667 1.26362 13.6667 2V10C13.6667 10.7364 13.0698 11.3333 12.3334 11.3333H1.66671C0.930328 11.3333 0.333374 10.7364 0.333374 10V2C0.333374 1.26362 0.930328 0.666668 1.66671 0.666668H12.3334ZM7.97723 4.56553C8.15934 4.27635 8.45088 4.25694 8.64912 4.51192L8.6901 4.57076L11.1385 8.48825C11.4118 8.92548 11.24 9.29274 10.7521 9.33019L10.6679 9.33333H3.3322C2.81242 9.33333 2.60566 8.99864 2.84785 8.57226L2.8924 8.50039L4.62925 5.91248C4.81866 5.63026 5.17805 5.55539 5.45984 5.72896L5.52338 5.77344L6.1307 6.25323C6.40311 6.46843 6.75835 6.42214 6.96519 6.16436L7.01018 6.10114L7.97723 4.56553ZM5.00004 3.66667C5.00004 3.11467 4.55204 2.66667 4.00004 2.66667C3.44804 2.66667 3.00004 3.11467 3.00004 3.66667C3.00004 4.21933 3.44804 4.66667 4.00004 4.66667C4.55204 4.66667 5.00004 4.21933 5.00004 3.66667Z",i.BigSize=32,i.MediumSize=24,i.SmallSize=16},811:function(t,e,i){"use strict";var a=this&&this.__rest||function(t,e){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(i[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(i[a[n]]=t[a[n]])}return i};Object.defineProperty(e,"__esModule",{value:!0}),e.PlaylistHeader=void 0;var n=i(522),r=i(792),l=i(293),o=i(168),s=i(979),p=i(85),c=KalturaPlayer.ui.components,_=c.Tooltip,u=c.Icon,y=KalturaPlayer.ui.preacti18n,A=y.withText,d=y.Text;e.PlaylistHeader=A((function(t){return{closeButtonLabel:(0,n.h)(d,{id:"playlist.hide-plugin"},"Hide Playlist")}}))((function(t){var e=t.onClose,i=t.title,c=t.amount,y=t.duration,A=t.pluginMode,d=t.toggledByKeyboard,h=a(t,["onClose","title","amount","duration","pluginMode","toggledByKeyboard"]),g=(0,r.useRef)(null);(0,r.useEffect)((function(){var t;d&&(null===(t=g.current)||void 0===t||t.focus({preventScroll:!0}))}),[d]);var v="".concat(c,",").concat(y);return(0,n.h)("div",{className:[o.playlistHeader,A===p.PluginPositions.VERTICAL?o.vertical:o.horizontal].join(" ")},(0,n.h)("div",{className:o.playlistMetadata,tabIndex:0,ref:g,"aria-label":"".concat(i," ").concat(v)},(0,n.h)("div",{className:o.playlistTitle,title:i,"aria-hidden":"true"},i),(0,n.h)("div",{className:o.playlistDuration,"aria-hidden":"true"},v)),(0,n.h)("div",{className:o.closeButtonWrapper},(0,n.h)(_,{label:h.closeButtonLabel,type:"bottom"},(0,n.h)(s.A11yWrapper,{onClick:e},(0,n.h)("button",{"aria-label":h.closeButtonLabel,className:o.closeButton},(0,n.h)(u,{id:"close-playlist-button",height:l.icons.MediumSize,width:l.icons.MediumSize,viewBox:"0 0 ".concat(l.icons.MediumSize," ").concat(l.icons.MediumSize),path:l.icons.CLOSE_ICON}))))))}))},141:function(t,e,i){"use strict";var a=this&&this.__rest||function(t,e){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(i[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(i[a[n]]=t[a[n]])}return i};Object.defineProperty(e,"__esModule",{value:!0}),e.PlaylistItem=void 0;var n=i(522),r=i(792),l=i(978),o=i(546),s=i(979),p=i(293),c=i(85),_=i(294),u=KalturaPlayer.ui.preacti18n,y=u.withText,A=u.Text,d=KalturaPlayer.ui.components.Icon,h=KalturaPlayer.ui.utils.toHHMMSS;e.PlaylistItem=y((function(t){return{quiz:(0,n.h)(A,{id:"playlist.quiz_type"},"Quiz"),live:(0,n.h)(A,{id:"playlist.live_type"},"Live"),image:(0,n.h)(A,{id:"playlist.image_type"},"Image"),toPlayAreaLabel:(0,n.h)(A,{id:"playlist.play-item-area-label"},"Click to play:"),currentlyPlaying:(0,n.h)(A,{id:"playlist.currently-playing"},"Currently playing:"),playlistItemIndex:(0,n.h)(A,{id:"playlist.playlist-item-index"},"Playlist item #")}}))((function(t){var e,i=t.item,u=t.active,y=t.onSelect,A=t.pluginMode,g=t.viewHistory,v=t.baseEntry,m=a(t,["item","active","onSelect","pluginMode","viewHistory","baseEntry"]),f=i.sources,C=i.index,b=C+1,x=null===(e=f.metadata)||void 0===e?void 0:e.name,k=(0,r.useMemo)((function(){return(null==g?void 0:g.lastTimeReached)?((null==g?void 0:g.lastTimeReached)/f.duration*100).toFixed():0}),[f,g]),w=(0,r.useMemo)((function(){return f.type===l.core.MediaType.LIVE?(0,n.h)("div",{className:o.liveLabel},m.live):(0,n.h)(n.Fragment,null,(0,n.h)("div",{className:o.playlistItemDuration},h(f.duration)),k>0&&(0,n.h)("div",{className:o.playlistItemProgress},(0,n.h)("div",{className:o.lastProgress,style:{width:"".concat(k,"%")}})))}),[f,k]),P=(0,r.useMemo)((function(){return f.type===l.core.MediaType.LIVE?(0,n.h)("div",{className:o.playlistItemDescription}):f.type===l.core.MediaType.IMAGE?(0,n.h)("div",{className:o.playlistItemDescription},(0,n.h)("div",{className:o.iconContainer},(0,n.h)(d,{fillRule:"evenodd",id:"playlist-image-icon",height:p.icons.SmallSize,width:p.icons.SmallSize,viewBox:"0 0 14 12",path:p.icons.IMAGE_ICON,color:"#cccccc"})),m.image):(null==v?void 0:v.capabilities)===_.Capabilities.Quiz?(0,n.h)("div",{className:o.playlistItemDescription},(0,n.h)("div",{className:o.iconContainer},(0,n.h)(d,{id:"playlist-quiz-icon",height:p.icons.SmallSize,width:p.icons.SmallSize,viewBox:"0 0 ".concat(p.icons.SmallSize," ").concat(p.icons.SmallSize),path:p.icons.QUIZ_ICON,color:"#cccccc"})),m.quiz):null}),[f,v]),E=(0,r.useMemo)((function(){return(0,n.h)(n.Fragment,null,(0,n.h)("div",{className:[o.playlistItemTitle,P?o.hasDescription:""].join(" "),role:"text"},A===c.PluginPositions.VERTICAL?x:"".concat(b,". ").concat(x)),P)}),[x,A,b,P]);return(0,n.h)(s.A11yWrapper,{onClick:y,role:"listitem"},(0,n.h)("div",{title:"".concat(m.playlistItemIndex).concat(C+1,". ").concat(u?m.currentlyPlaying:m.toPlayAreaLabel," ").concat(x),className:[o.playlistItem,A===c.PluginPositions.VERTICAL?o.vertical:o.horizontal,u?o.active:""].join(" "),"aria-current":u,tabIndex:0},A===c.PluginPositions.VERTICAL&&(0,n.h)("div",{className:o.playlistItemIndex,"aria-hidden":"true"},i.index+1),(0,n.h)("div",{className:o.playlistItemThumbnailWrapper,style:{backgroundImage:"url('".concat(f.poster,"')")},"aria-hidden":"true"},A===c.PluginPositions.HORIZONTAL&&(0,n.h)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAYAAAA6yNxSAAAAJklEQVR42u3OMQEAAAgDoJnc6BpjDyRgLrcpGgEBAQEBAQGBduABaVYs3Q5APwQAAAAASUVORK5CYII=",style:{width:"auto",height:"100%",visibility:"hidden"}}),(0,n.h)("div",{className:o.playlistItemAddons},w)),(0,n.h)("div",{className:o.playlistItemMetadata},E)))}))},705:function(t,e,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},a.apply(this,arguments)},n=this&&this.__rest||function(t,e){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(i[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(i[a[n]]=t[a[n]])}return i};Object.defineProperty(e,"__esModule",{value:!0}),e.PlaylistWrapper=void 0;var r,l=i(522),o=i(792),s=i(900),p=i(811),c=i(141),_=i(85),u=KalturaPlayer.ui.utils,y=u.toHHMMSS,A=u.KeyMap,d=KalturaPlayer.ui.preacti18n,h=d.withText,g=d.Text;e.PlaylistWrapper=h((function(t){var e,i=null===(e=t.player.playlist)||void 0===e?void 0:e.items.length;return{amount:(0,l.h)(g,{id:"playlist.amount-items",plural:i,fields:{count:i}},"".concat(i," videos")),hour:(0,l.h)(g,{id:"playlist.hour"},"hr"),min:(0,l.h)(g,{id:"playlist.min"},"min"),sec:(0,l.h)(g,{id:"playlist.sec"},"sec")}}))((function(t){var e=t.onClose,i=t.player,u=t.pluginMode,d=t.playlistData,h=t.eventManager,g=t.toggledByKeyboard,v=n(t,["onClose","player","pluginMode","playlistData","eventManager","toggledByKeyboard"]),m=i.playlist,f=(0,o.useState)({}),C=f[0],b=f[1],x=(0,o.useState)(!1),k=x[0],w=x[1],P=(0,o.useState)(m.current.index),E=P[0],I=P[1],B=(0,o.useRef)(null);(0,o.useEffect)((function(){d.then((function(t){b(t)})),h.listen(i,i.Event.MEDIA_LOADED,(function(){I(m.current.index)}))}),[]);var M=(0,o.useCallback)((function(t){return function(){t===m.current.index?i.currentTime=0:m.playItem(t)}}),[m]),O=(0,o.useCallback)((function(){clearTimeout(r),w(!0),r=setTimeout((function(){w(!1)}),250)}),[]),D=(0,o.useCallback)((function(t){t.preventDefault(),(null==B?void 0:B.current)&&(B.current.scrollLeft+=t.deltaY,O())}),[]),S=(0,o.useCallback)((function(t){t.keyCode===A.ESC&&e(t,!0)}),[e]),j=(0,o.useMemo)((function(){var t=m.items.reduce((function(t,e){return t+e.sources.duration}),0),e=y(t).split(":");return 3===e.length?" ".concat(e[0]," ").concat(v.hour," ").concat(e[1]," ").concat(v.min):"00"!==e[0]?" ".concat(e[0]," ").concat(v.min," ").concat(e[1]," ").concat(v.sec):" ".concat(e[1]," ").concat(v.sec)}),[m]),K=(0,o.useMemo)((function(){var t;return(0,l.h)(p.PlaylistHeader,{onClose:e,title:null===(t=m.metadata)||void 0===t?void 0:t.name,amount:v.amount,duration:j,pluginMode:u,toggledByKeyboard:g})}),[u,j,g,e]),T=(0,o.useMemo)((function(){return u===_.PluginPositions.VERTICAL?{onScroll:O}:{onWheel:D,ref:B}}),[u]);return(0,l.h)("div",{className:[s.playlistWrapper,u===_.PluginPositions.VERTICAL?s.vertical:s.horizontal].join(" "),onKeyUp:S},K,(0,l.h)("div",a({className:[s.playlistContent,k?s.scrolling:""].join(" ")},T,{role:"list","aria-live":"polite"}),m.items.map((function(t){var e,i,a=t.index;return(0,l.h)(c.PlaylistItem,{item:t,onSelect:M(a),active:E===a,pluginMode:u,viewHistory:null===(e=null==C?void 0:C.viewHistory)||void 0===e?void 0:e[t.sources.id],baseEntry:null===(i=null==C?void 0:C.baseEntry)||void 0===i?void 0:i[t.sources.id]})}))))}))},996:function(t,e,i){"use strict";var a=this&&this.__rest||function(t,e){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(i[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(i[a[n]]=t[a[n]])}return i};Object.defineProperty(e,"__esModule",{value:!0}),e.PluginButton=void 0;var n=i(522),r=i(979),l=i(293),o=i(364),s=i(978),p=KalturaPlayer.ui.components,c=p.Tooltip,_=p.Icon,u=KalturaPlayer.ui.preacti18n,y=u.withText,A=u.Text;e.PluginButton=y((function(t){return{label:t.isActive?(0,n.h)(A,{id:"playlist.hide_plugin"},"Hide Playlist"):(0,n.h)(A,{id:"playlist.show_plugin"},"Show Playlist")}}))((function(t){var e=t.isActive,i=t.onClick,p=t.setRef,u=a(t,["isActive","onClick","setRef"]);return(0,n.h)(c,{label:u.label,type:"bottom"},(0,n.h)(r.A11yWrapper,{onClick:i},(0,n.h)("button",{"aria-label":u.label,className:[s.ui.style.upperBarIcon,o.pluginButton,e?o.active:""].join(" "),ref:function(t){p(t)}},(0,n.h)(_,{id:"playlist-plugin-button",height:l.icons.BigSize,width:l.icons.BigSize,viewBox:"0 0 ".concat(l.icons.BigSize," ").concat(l.icons.BigSize),path:l.icons.PLUGIN_ICON}))))}))},436:function(t,e,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.DataManager=void 0;var n=i(294);e.DataManager=function(t,e){var i=this;this._player=t,this._logger=e,this._playlistData=null,this._playlistExtraDataIsFetching=!1,this._makePlaylistExtraDataResolvePromise=function(){return new Promise((function(t){i._playlistExtraDataResolvePromise=t}))},this._playlistExtraDataResolvePromise=function(t){},this._playlistExtraDataPromise=this._makePlaylistExtraDataResolvePromise(),this.getPlaylistData=function(){return i._fetchPlaylistData(),i._playlistExtraDataPromise},this._fetchPlaylistData=function(){if(!i._playlistData&&!i._playlistExtraDataIsFetching){var t=i._player.playlist.items;return i._playlistExtraDataIsFetching=!0,i._player.provider.doRequest([{loader:n.PlaylistLoader,params:{playlistItems:t}}]).then((function(t){var e,r;if(t&&t.has(n.PlaylistLoader.id)){var l=t.get(n.PlaylistLoader.id),o=null===(e=null==l?void 0:l.response)||void 0===e?void 0:e.viewHistory,s=null===(r=null==l?void 0:l.response)||void 0===r?void 0:r.baseEntry;i._playlistData||(i._playlistData={}),o&&(i._playlistData.viewHistory=o.reduce((function(t,e){var i;return a(a({},t),((i={})[e.entryId]=e,i))}),{})),s&&(i._playlistData.baseEntry=s.reduce((function(t,e){var i;return a(a({},t),((i={})[e.id]=e,i))}),{})),i._playlistExtraDataResolvePromise(i._playlistData)}})).catch((function(t){i._logger.warn(t)})).finally((function(){i._playlistExtraDataIsFetching=!1}))}},this.destroy=function(){i._playlistData=null,i._playlistExtraDataPromise=i._makePlaylistExtraDataResolvePromise()}}},165:function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},a(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.Playlist=void 0;var r=i(522),l=i(978),o=i(85),s=i(996),p=i(705),c=i(436),_=i(293),u=l.ui.SidePanelModes,y=l.ui.SidePanelPositions,A=l.ui.ReservedPresetNames,d=function(t){function e(e,i,a){var n,r=this;return(r=t.call(this,e,i,a)||this)._playlistPanel=-1,r._playlistIcon=-1,r._pluginState=null,r._offlineSlateActive=!1,r._activePresetName="",r._unsubscribeStore=function(){},r._triggeredByKeyboard=!1,r._pluginButtonRef=null,r._setPluginButtonRef=function(t){r._pluginButtonRef=t},r._handleClickOnPluginIcon=function(t,e){r._isPluginActive()?r._deactivatePlugin():(r._triggeredByKeyboard=Boolean(e),r._activatePlugin())},r._isPlaylistValid=function(){var t,e;return r.sidePanelsManager&&r.upperBarManager?Math.max(r._playlistPanel,r._playlistIcon)>0?(r.logger.warn("playlist plugin already initialized"),!1):!!(null===(e=null===(t=r._player.playlist)||void 0===t?void 0:t.items)||void 0===e?void 0:e.length)||(r.logger.warn("playlist doesn't have playlist items"),!1):(r.logger.warn("sidePanelsManager or upperBarManager service not registered"),!1)},r._isPluginActive=function(){return r.sidePanelsManager.isItemActive(r._playlistPanel)},r._handleClose=function(t,e){var i;e&&(null===(i=r._pluginButtonRef)||void 0===i||i.focus()),r._deactivatePlugin()},r._activatePlugin=function(){r.ready.then((function(){var t,e;null===(t=r.sidePanelsManager)||void 0===t||t.activateItem(r._playlistPanel),r._pluginState,o.PluginStates.OPENED,null===(e=r.upperBarManager)||void 0===e||e.update(r._playlistIcon)}))},r._deactivatePlugin=function(){r.ready.then((function(){var t,e;r._triggeredByKeyboard=!1,null===(t=r.sidePanelsManager)||void 0===t||t.deactivateItem(r._playlistPanel),r._pluginState=o.PluginStates.CLOSED,null===(e=r.upperBarManager)||void 0===e||e.update(r._playlistIcon)}))},r._player=i,r._dataManager=new c.DataManager(r._player,r.logger),r._unsubscribeStore=null===(n=r._player.ui.store)||void 0===n?void 0:n.subscribe((function(){var t=r._player.ui.store.getState();t.shell.playerClasses.includes("has-live-plugin-overlay")&&!r._offlineSlateActive&&(r._offlineSlateActive=!0,r._activatePlugin()),""!==r._activePresetName&&r._activePresetName!==t.shell.activePresetName?(r._activePresetName=t.shell.activePresetName,r._deactivatePlugin(),r._activatePlugin()):""===r._activePresetName&&(r._activePresetName=t.shell.activePresetName)})),r}return n(e,t),Object.defineProperty(e.prototype,"sidePanelsManager",{get:function(){return this.player.getService("sidePanelsManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upperBarManager",{get:function(){return this.player.getService("upperBarManager")},enumerable:!1,configurable:!0}),e.prototype.loadMedia=function(){var t=this;if(this._offlineSlateActive=!1,this._isPlaylistValid()){var e=[y.RIGHT,y.LEFT].includes(this.config.position)?o.PluginPositions.VERTICAL:o.PluginPositions.HORIZONTAL;this._playlistPanel=this.sidePanelsManager.add({label:"Playlist",panelComponent:function(){return(0,r.h)(p.PlaylistWrapper,{eventManager:t.eventManager,onClose:t._handleClose,player:t._player,pluginMode:e,playlistData:t._dataManager.getPlaylistData(),toggledByKeyboard:t._triggeredByKeyboard})},presets:[A.Playback,A.Live,A.Ads],position:this.config.position,expandMode:this.config.expandMode===u.ALONGSIDE?u.ALONGSIDE:u.OVER,onDeactivate:this._deactivatePlugin}),this._playlistIcon=this.upperBarManager.add({label:"Playlist",svgIcon:{path:_.icons.PLUGIN_ICON,viewBox:"0 0 ".concat(_.icons.BigSize," ").concat(_.icons.BigSize)},onClick:this._handleClickOnPluginIcon,component:function(){return(0,r.h)(s.PluginButton,{isActive:t._isPluginActive(),onClick:t._handleClickOnPluginIcon,setRef:t._setPluginButtonRef})}}),(this.config.expandOnFirstPlay&&!this._pluginState||this._pluginState===o.PluginStates.OPENED)&&this._activatePlugin()}},e.isValid=function(){return!0},e.prototype.reset=function(){},e.prototype.destroy=function(){this.eventManager.removeAll(),this._playlistPanel=-1,this._playlistIcon=-1,this._pluginButtonRef=null,this._pluginState=null,this._triggeredByKeyboard=!1,this._unsubscribeStore(),this._dataManager.destroy()},e.defaultConfig={position:y.RIGHT,expandMode:u.ALONGSIDE,expandOnFirstPlay:!0},e}(KalturaPlayer.core.BasePlugin);e.Playlist=d},294:function(t,e,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(t,e,i,a){void 0===a&&(a=i);var n=Object.getOwnPropertyDescriptor(e,i);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,a,n)}:function(t,e,i,a){void 0===a&&(a=i),t[a]=e[i]}),n=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||a(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(i(4),e),n(i(937),e)},4:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlaylistLoader=void 0;var a=i(937),n=KalturaPlayer.providers.RequestBuilder,r=function(){function t(t){var e=t.playlistItems;this._playlistItems=[],this._requests=[],this._response={viewHistory:[],baseEntry:[]},this._playlistItems=e;var i=new Map,a=this._playlistItems.map((function(t){return t.sources.id})).join(","),r=new n(i);r.service="userEntry",r.action="list",r.params={filter:{entryIdIn:a,objectType:"KalturaViewHistoryUserEntryFilter",userIdEqualCurrent:1}},this.requests.push(r);var l=new n(i);l.service="baseEntry",l.action="list",l.params={filter:{idIn:a,objectType:"KalturaMediaEntryFilter"}},this.requests.push(l)}return Object.defineProperty(t,"id",{get:function(){return"playlist"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requests",{get:function(){return this._requests},set:function(t){this._requests=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"response",{get:function(){return this._response},set:function(t){var e,i,n=new a.KalturaViewHistoryUserEntryListResponse(null===(e=t[0])||void 0===e?void 0:e.data);n.totalCount&&(this._response.viewHistory=null==n?void 0:n.data);var r=new a.KalturaBaseEntryListResponse(null===(i=t[1])||void 0===i?void 0:i.data);r.totalCount&&(this._response.baseEntry=null==r?void 0:r.data)},enumerable:!1,configurable:!0}),t.prototype.isValid=function(){return this._playlistItems.length>0},t}();e.PlaylistLoader=r},937:function(t,e,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(t,e,i,a){void 0===a&&(a=i);var n=Object.getOwnPropertyDescriptor(e,i);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,a,n)}:function(t,e,i,a){void 0===a&&(a=i),t[a]=e[i]}),n=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||a(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(i(362),e),n(i(244),e),n(i(138),e),n(i(710),e)},710:function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},a(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.KalturaBaseEntryListResponse=void 0;var r=i(138),l=function(t){function e(e){var i=t.call(this,e)||this;return i.data=[],i.hasError||(i.totalCount=e.totalCount,i.totalCount>0&&(i.data=[],e.objects.map((function(t){return i.data.push(new r.KalturaBaseEntry(t))})))),i}return n(e,t),e}(KalturaPlayer.providers.ResponseTypes.BaseServiceResult);e.KalturaBaseEntryListResponse=l},138:(t,e)=>{"use strict";var i,a;Object.defineProperty(e,"__esModule",{value:!0}),e.KalturaBaseEntry=e.Capabilities=void 0,function(t){t.KalturaBaseEntry="KalturaBaseEntry",t.KalturaDataEntry="KalturaDataEntry",t.KalturaDocumentEntry="KalturaDocumentEntry",t.KalturaPlayableEntry="KalturaPlayableEntry",t.KalturaPlaylist="KalturaPlaylist",t.KalturaMediaEntry="KalturaMediaEntry",t.KalturaMixEntry="KalturaMixEntry",t.KalturaExternalMediaEntry="KalturaExternalMediaEntry",t.KalturaLiveChannel="KalturaLiveChannel",t.KalturaLiveStreamEntry="KalturaLiveStreamEntry",t.KalturaLiveStreamAdminEntry="KalturaLiveStreamAdminEntry"}(i||(i={})),(a=e.Capabilities||(e.Capabilities={})).Quiz="quiz.quiz",a.None="";e.KalturaBaseEntry=function(t){this.id=t.id,this.capabilities=t.capabilities,this.objectType=t.objectType}},244:function(t,e,i){"use strict";var a,n=this&&this.__extends||(a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},a(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.KalturaViewHistoryUserEntryListResponse=void 0;var r=i(362),l=function(t){function e(e){var i=t.call(this,e)||this;return i.data=[],i.hasError||(i.totalCount=e.totalCount,i.totalCount>0&&(i.data=[],e.objects.map((function(t){return i.data.push(new r.KalturaViewHistoryUserEntry(t))})))),i}return n(e,t),e}(KalturaPlayer.providers.ResponseTypes.BaseServiceResult);e.KalturaViewHistoryUserEntryListResponse=l},362:(t,e)=>{"use strict";var i,a,n;Object.defineProperty(e,"__esModule",{value:!0}),e.KalturaViewHistoryUserEntry=e.Type=e.Status=e.ViewHistory=void 0,(n=e.ViewHistory||(e.ViewHistory={})).PLAYBACK_COMPLETE="viewHistory.PLAYBACK_COMPLETE",n.PLAYBACK_STARTED="viewHistory.PLAYBACK_STARTED",n.VIEWED="viewHistory.VIEWED",(a=e.Status||(e.Status={})).QUIZ_SUBMITTED="quiz.3",a[a.ACTIVE=1]="ACTIVE",a[a.DELETED=2]="DELETED",(i=e.Type||(e.Type={})).QUIZ="quiz.QUIZ",i.REGISTRATION="registration.REGISTRATION",i.VIEW_HISTORY="viewHistory.VIEW_HISTORY",i.WATCH_LATER="watchLater.WATCH_LATER";e.KalturaViewHistoryUserEntry=function(t){this.entryId=t.entryId,this.extendedStatus=t.extendedStatus,this.id=t.id,this.lastTimeReached=t.lastTimeReached,this.objectType=t.objectType,this.status=t.status,this.type=t.type}},85:function(t,e,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(t,e,i,a){void 0===a&&(a=i);var n=Object.getOwnPropertyDescriptor(e,i);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,a,n)}:function(t,e,i,a){void 0===a&&(a=i),t[a]=e[i]}),n=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||a(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(i(481),e),n(i(770),e)},770:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},481:(t,e)=>{"use strict";var i,a;Object.defineProperty(e,"__esModule",{value:!0}),e.PluginStates=e.PluginPositions=void 0,(a=e.PluginPositions||(e.PluginPositions={})).HORIZONTAL="horizontal",a.VERTICAL="vertical",(i=e.PluginStates||(e.PluginStates={})).OPENED="opened",i.CLOSED="closed"},522:t=>{"use strict";t.exports=KalturaPlayer.ui.preact},978:t=>{"use strict";t.exports=KalturaPlayer}},e={};function i(a){var n=e[a];if(void 0!==n)return n.exports;var r=e[a]={id:a,exports:{}};return t[a].call(r.exports,r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var a in e)i.o(e,a)&&!i.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var a={};(()=>{"use strict";var t=a;Object.defineProperty(t,"__esModule",{value:!0}),t.NAME=t.VERSION=t.Plugin=void 0;var e=i(165);Object.defineProperty(t,"Plugin",{enumerable:!0,get:function(){return e.Playlist}}),t.VERSION="3.2.6",t.NAME="@playkit-js/playkit-js-playlist",KalturaPlayer.core.registerPlugin("playlist",e.Playlist)})(),((KalturaPlayer=void 0===KalturaPlayer?{}:KalturaPlayer).plugins=KalturaPlayer.plugins||{}).playlist=a})();

var KalturaPlayer="object"==typeof KalturaPlayer?KalturaPlayer:{};KalturaPlayer.plugins=KalturaPlayer.plugins||{},KalturaPlayer.plugins.share=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(e,t){e.exports=KalturaPlayer},function(e,t,r){var n=r(2),o=r(3);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={attributes:{id:"@playkit-js/share"},insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function l(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function c(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],s=r[c]||0,u="".concat(c," ").concat(s);r[c]=s+1;var p=l(u),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:u,updater:_(f,t),references:1}),n.push(u)}return n}function s(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,p=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function y(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var d=null,h=0;function _(e,t){var r,n,o;if(t.singleton){var i=h++;r=d||(d=s(t)),n=f.bind(null,r,i,!1),o=f.bind(null,r,i,!0)}else r=s(t),n=y.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=l(r[n]);a[o].references--}for(var i=c(e,t),s=0;s<r.length;s++){var u=l(r[s]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}r=i}}}},function(e,t,r){(t=r(4)(!1)).push([e.i,".playkit-overlay.playkit-share-overlay .playkit-control-button-container{margin:0 0}.playkit-overlay.playkit-share-overlay .playkit-share-icons{margin:40px 0 16px 0}.playkit-overlay.playkit-share-overlay .playkit-share-icons .playkit-btn-social-network{margin:0 8px}.playkit-overlay.playkit-share-overlay .playkit-link-options-container{width:auto;display:inline-block;max-width:100%;text-align:left;margin:0 auto}.playkit-overlay.playkit-share-overlay .playkit-link-options-container .playkit-copy-url-row{display:flex}.playkit-overlay.playkit-share-overlay .playkit-link-options-container .playkit-copy-url-row .playkit-input-copy-url{margin:0}.playkit-overlay.playkit-share-overlay .playkit-link-options-container .playkit-copy-url-row .playkit-btn-copy-url .playkit-icon{margin-top:0px;border:0px}.playkit-overlay.playkit-share-overlay .playkit-link-options-container .playkit-video-start-options-row{margin-top:16px;text-align:center}.playkit-overlay.playkit-share-overlay .playkit-link-options-container .playkit-video-start-options-row .playkit-checkbox{margin-right:15px}.playkit-overlay.playkit-share-overlay .playkit-link-options-container .playkit-video-start-options-row .playkit-form-group{margin:0}.playkit-share-main-container{width:300px;max-width:100%;margin:0 auto;text-align:center}.playkit-player.playkit-size-sm .playkit-overlay.playkit-share-overlay .playkit-share-icons,.playkit-player.playkit-size-xs .playkit-overlay.playkit-share-overlay .playkit-share-icons{margin:24px 0 8px 0}.playkit-player.playkit-size-sm .playkit-link-options-container .playkit-video-start-options-row,.playkit-player.playkit-size-xs .playkit-link-options-container .playkit-video-start-options-row{margin-top:8px}.playkit-startAtInput{text-align:center;border:1px solid rgba(255,255,255,.4)}.playkit-startAtInput.playkit-disabled{color:rgba(255,255,255,.4);background-color:rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.3)}",""]),t.locals={overlay:"playkit-overlay","share-overlay":"playkit-share-overlay",shareOverlay:"playkit-share-overlay","control-button-container":"playkit-control-button-container",controlButtonContainer:"playkit-control-button-container","share-icons":"playkit-share-icons",shareIcons:"playkit-share-icons","btn-social-network":"playkit-btn-social-network",btnSocialNetwork:"playkit-btn-social-network","link-options-container":"playkit-link-options-container",linkOptionsContainer:"playkit-link-options-container","copy-url-row":"playkit-copy-url-row",copyUrlRow:"playkit-copy-url-row","input-copy-url":"playkit-input-copy-url",inputCopyUrl:"playkit-input-copy-url","btn-copy-url":"playkit-btn-copy-url",btnCopyUrl:"playkit-btn-copy-url",icon:"playkit-icon","video-start-options-row":"playkit-video-start-options-row",videoStartOptionsRow:"playkit-video-start-options-row",checkbox:"playkit-checkbox","form-group":"playkit-form-group",formGroup:"playkit-form-group","share-main-container":"playkit-share-main-container",shareMainContainer:"playkit-share-main-container",player:"playkit-player","size-sm":"playkit-size-sm",sizeSm:"playkit-size-sm","size-xs":"playkit-size-xs",sizeXs:"playkit-size-xs",startAtInput:"playkit-startAtInput",disabled:"playkit-disabled"},e.exports=t},function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var o=(a=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(i).concat([o]).join("\n")}var a,l,c;return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);n&&o[c[0]]||(r&&(c[2]?c[2]="".concat(r," and ").concat(c[2]):c[2]=r),t.push(c))}},t}},function(e,t,r){"use strict";r.r(t),r.d(t,"VERSION",(function(){return Ft})),r.d(t,"NAME",(function(){return Dt})),r.d(t,"Plugin",(function(){return It})),r.d(t,"Share",(function(){return tt}));var n,o,i,a,l,c=r(0),s={},u=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var r in t)e[r]=t[r];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function d(e,t,r){var o,i,a,l={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:l[a]=t[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]);return h(e,l,o,i,null)}function h(e,t,r,n,a){var l={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(l),l}function _(e){return e.children}function v(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?b(e):null}function m(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return m(e)}}function g(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!k.__r++||l!==o.debounceRendering)&&((l=o.debounceRendering)||setTimeout)(k)}function k(){for(var e;k.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,r,n,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(r=[],(n=f({},o)).__v=o.__v+1,U(a,o,n,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,r,null==i?b(o):i,o.__h),N(r,o),o.__e!=i&&m(o)))}))}function w(e,t,r,n,o,i,a,l,c,p){var f,y,d,v,m,g,k,w=n&&n.__k||u,S=w.length;for(r.__k=[],f=0;f<t.length;f++)if(null!=(v=r.__k[f]=null==(v=t[f])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?h(null,v,null,null,v):Array.isArray(v)?h(_,{children:v},null,null,null):v.__b>0?h(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)){if(v.__=r,v.__b=r.__b+1,null===(d=w[f])||d&&v.key==d.key&&v.type===d.type)w[f]=void 0;else for(y=0;y<S;y++){if((d=w[y])&&v.key==d.key&&v.type===d.type){w[y]=void 0;break}d=null}U(e,v,d=d||s,o,i,a,l,c,p),m=v.__e,(y=v.ref)&&d.ref!=y&&(k||(k=[]),d.ref&&k.push(d.ref,null,v),k.push(y,v.__c||m,v)),null!=m?(null==g&&(g=m),"function"==typeof v.type&&v.__k===d.__k?v.__d=c=O(v,c,e):c=C(e,v,d,w,m,c),"function"==typeof r.type&&(r.__d=c)):c&&d.__e==c&&c.parentNode!=e&&(c=b(d))}for(r.__e=g,f=S;f--;)null!=w[f]&&R(w[f],w[f]);if(k)for(f=0;f<k.length;f++)T(k[f],k[++f],k[++f])}function O(e,t,r){for(var n,o=e.__k,i=0;o&&i<o.length;i++)(n=o[i])&&(n.__=e,t="function"==typeof n.type?O(n,t,r):C(r,n,n,o,n.__e,t));return t}function C(e,t,r,n,o,i){var a,l,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==r||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(l=i,c=0;(l=l.nextSibling)&&c<n.length;c+=1)if(l==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function S(e,t,r){"-"===t[0]?e.setProperty(t,r):e[t]=null==r?"":"number"!=typeof r||p.test(t)?r:r+"px"}function j(e,t,r,n,o){var i;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||S(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||S(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n||e.addEventListener(t,i?x:P,i):e.removeEventListener(t,i?x:P,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,r))}}function P(e){this.l[e.type+!1](o.event?o.event(e):e)}function x(e){this.l[e.type+!0](o.event?o.event(e):e)}function U(e,t,r,n,i,a,l,c,s){var u,p,y,d,h,b,m,g,k,O,C,S,j,P,x,U=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(s=r.__h,c=t.__e=r.__e,t.__h=null,a=[c]),(u=o.__b)&&u(t);try{e:if("function"==typeof U){if(g=t.props,k=(u=U.contextType)&&n[u.__c],O=u?k?k.props.value:u.__:n,r.__c?m=(p=t.__c=r.__c).__=p.__E:("prototype"in U&&U.prototype.render?t.__c=p=new U(g,O):(t.__c=p=new v(g,O),p.constructor=U,p.render=A),k&&k.sub(p),p.props=g,p.state||(p.state={}),p.context=O,p.__n=n,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=U.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=f({},p.__s)),f(p.__s,U.getDerivedStateFromProps(g,p.__s))),d=p.props,h=p.state,y)null==U.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==U.getDerivedStateFromProps&&g!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(g,O),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(g,p.__s,O)||t.__v===r.__v){for(p.props=g,p.state=p.__s,t.__v!==r.__v&&(p.__d=!1),p.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),C=0;C<p._sb.length;C++)p.__h.push(p._sb[C]);p._sb=[],p.__h.length&&l.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(g,p.__s,O),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(d,h,b)}))}if(p.context=O,p.props=g,p.__v=t,p.__P=e,S=o.__r,j=0,"prototype"in U&&U.prototype.render){for(p.state=p.__s,p.__d=!1,S&&S(t),u=p.render(p.props,p.state,p.context),P=0;P<p._sb.length;P++)p.__h.push(p._sb[P]);p._sb=[]}else do{p.__d=!1,S&&S(t),u=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++j<25);p.state=p.__s,null!=p.getChildContext&&(n=f(f({},n),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(b=p.getSnapshotBeforeUpdate(d,h)),x=null!=u&&u.type===_&&null==u.key?u.props.children:u,w(e,Array.isArray(x)?x:[x],t,r,n,i,a,l,c,s),p.base=t.__e,t.__h=null,p.__h.length&&l.push(p),m&&(p.__E=p.__=null),p.__e=!1}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=M(r.__e,t,r,n,i,a,l,s);(u=o.diffed)&&u(t)}catch(e){t.__v=null,(s||null!=a)&&(t.__e=c,t.__h=!!s,a[a.indexOf(c)]=null),o.__e(e,t,r)}}function N(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function M(e,t,r,o,i,a,l,c){var u,p,f,d=r.props,h=t.props,_=t.type,v=0;if("svg"===_&&(i=!0),null!=a)for(;v<a.length;v++)if((u=a[v])&&"setAttribute"in u==!!_&&(_?u.localName===_:3===u.nodeType)){e=u,a[v]=null;break}if(null==e){if(null===_)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,h.is&&h),a=null,c=!1}if(null===_)d===h||c&&e.data===h||(e.data=h);else{if(a=a&&n.call(e.childNodes),p=(d=r.props||s).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!c){if(null!=a)for(d={},v=0;v<e.attributes.length;v++)d[e.attributes[v].name]=e.attributes[v].value;(f||p)&&(f&&(p&&f.__html==p.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,r,n,o){var i;for(i in r)"children"===i||"key"===i||i in t||j(e,i,null,r[i],n);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||r[i]===t[i]||j(e,i,t[i],r[i],n)}(e,h,d,i,c),f)t.__k=[];else if(v=t.props.children,w(e,Array.isArray(v)?v:[v],t,r,o,i&&"foreignObject"!==_,a,l,a?a[0]:r.__k&&b(r,0),c),null!=a)for(v=a.length;v--;)null!=a[v]&&y(a[v]);c||("value"in h&&void 0!==(v=h.value)&&(v!==e.value||"progress"===_&&!v||"option"===_&&v!==d.value)&&j(e,"value",v,d.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==e.checked&&j(e,"checked",v,d.checked,!1))}return e}function T(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,r)}}function R(e,t,r){var n,i;if(o.unmount&&o.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||T(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){o.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&R(n[i],t,r||"function"!=typeof e.type);r||null==e.__e||y(e.__e),e.__=e.__e=e.__d=void 0}function A(e,t,r){return this.constructor(e,r)}n=u.slice,o={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,v.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},r),this.props)),e&&f(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),g(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},v.prototype.render=_,a=[],k.__r=0;var E,I=r(1),F=r.n(I);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function H(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$(n.key),n)}}function z(e,t){return(z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=G(e);if(t){var o=G(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Z(this,r)}}function Z(e,t){if(t&&("object"===D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return W(e)}function W(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function J(e,t,r){return(t=$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $(e){var t=function(e,t){if("object"!==D(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===D(t)?t:String(t)}function q(){return(q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var X,Q=c.ui.preact,Y=c.ui.preacti18n,ee=c.ui.Components,te=(c.ui.Event,c.ui.Utils),re=c.ui.style,ne=c.ui.redux,oe=c.ui.Reducers,ie=c.ui.preactHooks,ae=Q.h,le=Q.Component,ce=ie.useRef,se=Y.Text,ue=Y.Localizer,pe=ee.Overlay,fe=ee.Icon,ye=ee.CopyButton,de=ee.Button,he=ee.withLogger,_e=ee.Tooltip,ve=ee.ButtonControl,be=te.bindActions,me=te.KeyMap,ge=te.withKeyboardA11y,ke=te.toHHMMSS,we=te.toSecondsFromHHMMSS,Oe=te.formatOnlyNumbersInput,Ce=oe.shell.actions,Se=ne.connect,je="main",Pe="embed-options",xe=function(e){var t=e.updateShareOverlay;return ae(ue,null,ae(ve,{name:"ShareButton"},ae(_e,{label:ae(se,{id:e.config.title})},ae(ue,null,ae(de,{ref:function(t){e.addAccessibleChild(t)},role:"link","aria-label":ae(se,{id:e.config.title}),"aria-haspopup":"embed"===e.socialName,className:[re.btnBorderless,re.onlyIcon,F.a.btnSocialNetwork].join(" "),onClick:function(){return function(r){var n=e.config,o=n.templateUrl,i=n.shareUrl,a=n.embedUrl,l=o;l=l.replace(/{description}/g,encodeURIComponent(e.videoDesc));try{l=l.replace(/{shareUrl}/g,encodeURIComponent(i))}catch(e){l=l.replace(/{shareUrl}/g,i)}switch(r){case"email":location.href=l;break;case"embed":t(Pe,l,a);break;default:window.open(l,"_blank","width=580,height=580")}}(e.socialName)}},ae(fe,{id:e.socialName,color:"#fff",path:e.config.icon,width:"24",height:"24",viewBox:"0 0 24 24"}))))))},Ue=function(e){var t;return ae("div",{className:e.copy?re.copyUrlRow:""},ae("div",{className:[re.formGroup,re.inputCopyUrl].join(" "),style:"width: 350px;"},ae("input",{tabIndex:"-1",type:"text",ref:function(e){return e?t=e:void 0},className:re.formControl,value:e.shareUrl,readOnly:!0})),e.copy&&ae(ye,{addAccessibleChild:e.addAccessibleChild,copy:function(){t&&(e.isIos?t.setSelectionRange(0,9999):t.select(),document.execCommand("copy"),t.blur())}}))},Ne=function(e){var t=ce(),r={"aria-labelledby":"start-from-label","aria-disabled":e.startFrom?"false":"true",type:"text",value:ke(e.startFromValue),className:[re.formControl,F.a.startAtInput,e.startFrom?"":F.a.disabled].join(" "),style:e.videoHasHours?"width: 85px;":"width: 56px;",onChange:function(e){return function(e){for(var r=0;r<e.length;r++){var n=e.charAt(r);if(isNaN(n)&&":"!==n){t.value=e.replace(n,"");break}}}(e.target.value)},onBlur:function(t){var r,n=(r=t.target.value,isNaN(r)?r:Oe(r));e.handleStartFromChange(n)}};return e.startFrom||(r.disabled=!0),ae("div",{className:F.a.videoStartOptionsRow},ae("div",{role:"checkbox","aria-checked":e.startFrom?"true":"false",ref:function(t){e.addAccessibleChild(t)},tabIndex:"0",onClick:function(t){t.preventDefault(),e.toggleStartFrom()},onKeyDown:function(t){[me.ENTER,me.SPACE].includes(t.keyCode)&&(t.preventDefault(),e.toggleStartFrom())},className:[re.checkbox,re.dInlineBlock].join(" ")},ae("input",{type:"checkbox",id:"start-from",checked:e.startFrom}),ae("label",{id:"start-from-label",htmlFor:"start-from"},ae(se,{id:"share.start_video_at"}))),ae("div",{className:[re.formGroup,re.dInlineBlock].join(" ")},ae("input",q({ref:function(r){t=r,e.addAccessibleChild(r)}},r))))},Me=Se((function(e){return{isLive:e.engine.isLive}}),be(Ce))(E=he("ShareOverlay")(E=ge(E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z(e,t)}(i,e);var t,r,n,o=K(i);function i(){var e;H(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return J(W(e=o.call.apply(o,[this].concat(r))),"_toggleStartFrom",(function(){e.setState((function(e){return{startFrom:!e.startFrom}}))})),J(W(e),"_handleStartFromChange",(function(t){var r=we(t),n=r>=e.props.player.duration?e.props.player.duration:r;e.setState({startFromValue:n})})),J(W(e),"_updateOverlay",(function(t,r,n){e.setState({view:t,embedTemplate:r,embedUrl:n})})),e}return t=i,(r=[{key:"componentWillMount",value:function(){this.isIos="iOS"===this.props.player.env.os.name,this.setState({view:je,startFrom:!1,startFromValue:Math.floor(this.props.player.currentTime)})}},{key:"componentDidUpdate",value:function(e,t){t.view!=this.state.view&&this.props.focusOnDefault()}},{key:"componentDidMount",value:function(){this.props.setIsModal(!0)}},{key:"_addUrlKalturaStartTimeParam",value:function(e){var t="kalturaStartTime=".concat(this.state.startFromValue);return-1===e.indexOf("?")?"".concat(e,"?").concat(t):"".concat(e,"&").concat(t)}},{key:"getShareUrl",value:function(){var e=this.props.config.shareUrl;return this.state.startFrom&&(e=this._addUrlKalturaStartTimeParam(e)),e}},{key:"getEmbedCode",value:function(){var e=this.state.embedUrl,t=this.state.embedTemplate;return this.state.startFrom&&(e=this._addUrlKalturaStartTimeParam(e)),t.replace(/{embedUrl}/g,e)}},{key:"_createShareOptions",value:function(e){var t=this;return Object.keys(e).map((function(r){var n=t.props.config.shareUrl,o=t.props.config.embedUrl;if("embed"!==r||["embedBaseUrl","partnerId","uiConfId","entryId"].every((function(e){return!(o.indexOf("{".concat(e,"}"))>-1)||!!t.props.config[e]&&(o=o.replace(new RegExp("{".concat(e,"}"),"g"),t.props.config[e]),!0)}))&&o){var i=B(B({},e[r]),{},{shareUrl:n,embedUrl:o});return ae(xe,{key:r,socialName:r,videoDesc:t.props.videoDesc,config:i,addAccessibleChild:t.props.addAccessibleChild,updateShareOverlay:t._updateOverlay})}}))}},{key:"renderMainState",value:function(){return ae("div",{className:this.state.view===je?"overlay-screen active":"overlay-screen"},ae("div",{className:re.title},ae(se,{id:"share.title"})),ae("div",{className:F.a.shareMainContainer},ae("div",{className:F.a.shareIcons},this._createShareOptions(this.props.config.shareOptions)),ae("div",{className:F.a.linkOptionsContainer},ae(Ue,{addAccessibleChild:this.props.addAccessibleChild,shareUrl:this.getShareUrl(),copy:!0,isIos:this.isIos}),this.props.config.enableTimeOffset&&!this.props.isLive?ae(Ne,{addAccessibleChild:this.props.addAccessibleChild,startFrom:this.state.startFrom,startFromValue:this.state.startFromValue,handleStartFromChange:this._handleStartFromChange,toggleStartFrom:this._toggleStartFrom,videoHasHours:this.props.player.duration>=3600}):void 0)))}},{key:"renderOptionsState",value:function(e){return ae("div",{className:this.state.view===Pe?"overlay-screen active":"overlay-screen"},ae("div",{className:re.title},e.title),ae("div",{className:F.a.linkOptionsContainer},ae(Ue,{addAccessibleChild:this.props.addAccessibleChild,shareUrl:e.shareUrl,copy:!0,isIos:this.isIos}),this.props.config.enableTimeOffset&&!this.props.isLive?ae(Ne,{addAccessibleChild:this.props.addAccessibleChild,startFrom:this.state.startFrom,startFromValue:this.state.startFromValue,handleStartFromChange:this._handleStartFromChange,toggleStartFrom:this._toggleStartFrom}):void 0))}},{key:"renderStateContent",value:function(){switch(this.props.clearAccessibleChildren(),this.state.view){case Pe:return this.renderOptionsState({title:ae(se,{id:"share.embed_options"}),shareUrl:this.getEmbedCode()});case je:default:return this.renderMainState()}}},{key:"render",value:function(e){return ae(pe,{open:!0,addAccessibleChild:this.props.addAccessibleChild,handleKeyDown:this.props.handleKeyDown,onClose:e.onClose,type:"playkit-share"},this.renderStateContent())}}])&&V(t.prototype,r),n&&V(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(le))||E)||E)||E;function Te(e){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==Te(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Te(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Te(i)?i:String(i)),n)}var o,i}function Ee(e,t){return(Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=De(e);if(t){var o=De(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Fe(this,r)}}function Fe(e,t){if(t&&("object"===Te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Me.displayName="ShareOverlay";var Le=c.ui.preact,Be=c.ui.preacti18n,He=c.ui.Components,Ve=c.ui.Utils,ze=c.ui.redux,Ke=c.ui.Reducers,Ze=c.ui.createPortal,We=Le.h,Ge=Le.Component,Je=Be.withText,$e=He.withLogger,qe=He.withPlayer,Xe=Ve.bindActions,Qe=Ke.shell.actions,Ye=ze.connect,et=c.core.Utils,tt=Ye((function(e){return{isPlaying:e.engine.isPlaying}}),Xe(Qe))(X=qe(X=$e("Share")(X=Je({shareTxt:"controls.share"})(X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ee(e,t)}(i,e);var t,r,n,o=Ie(i);function i(){return Re(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"_getVideoDesc",value:function(){var e=et.Object.getPropertyPath(this.props.player.config,"sources.metadata.name")||"the video";return"".concat(e)}},{key:"render",value:function(){var e=this.props.config,t=e.shareUrl,r=e.shareOptions;if(t&&r){var n=document.getElementById(this.props.player.config.targetId)||document,o=this._getVideoDesc();return Ze(We(Me,{config:this.props.config,videoDesc:o,player:this.props.player,onClose:this.props.onClose}),n.querySelector(".overlay-portal"))}}}])&&Ae(t.prototype,r),n&&Ae(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(Ge))||X)||X)||X)||X;tt.displayName="Share";var rt,nt={facebook:{display:!0,templateUrl:"https://www.facebook.com/sharer/sharer.php?u={shareUrl}",title:"share.share-on-facebook",icon:"M8 9.63017H9.5003V8.22342C9.5003 7.60278 9.51651 6.64628 9.98306 6.05362C10.4752 5.42639 11.1499 5 12.3116 5C14.2034 5 15 5.26011 15 5.26011L14.6256 7.4044C14.6256 7.4044 14.0004 7.23072 13.417 7.23072C12.8336 7.23072 12.3116 7.43238 12.3116 7.99459V9.63017H14.7032L14.536 11.7242H12.3116V19H9.5003V11.7242H8V9.63017Z"},linkedin:{display:!0,templateUrl:"https://www.linkedin.com/shareArticle?mini=true&url={shareUrl}",title:"share.share-on-linkedin",icon:"M18 19H15.1268V14.43C15.1268 13.2338 14.6774 12.4172 13.6891 12.4172C12.9331 12.4172 12.5128 12.9682 12.3171 13.4993C12.2437 13.69 12.2552 13.9555 12.2552 14.221V19H9.40875C9.40875 19 9.44544 10.9047 9.40875 10.1688H12.2552V11.5548C12.4233 10.9488 13.3329 10.0839 14.7844 10.0839C16.5852 10.0839 18 11.3542 18 14.0895V19ZM6.53022 9.06416H6.51188C5.59466 9.06416 5 8.38906 5 7.53333C5 6.66095 5.61224 6 6.5478 6C7.4826 6 8.05738 6.65928 8.07573 7.53083C8.07573 8.38657 7.4826 9.06416 6.53022 9.06416ZM5.3279 19H7.86171V10.1688H5.3279V19Z"},twitter:{display:!0,templateUrl:"https://twitter.com/share?url={shareUrl}",title:"share.share-on-twitter",icon:"M17.3508 8.73918C17.9441 8.39596 18.3993 7.85172 18.6138 7.20339C18.0583 7.5212 17.4444 7.7524 16.7887 7.87635C16.2661 7.33687 15.5191 7 14.6924 7C13.1073 7 11.8213 8.24341 11.8213 9.77681C11.8213 9.99451 11.8459 10.2059 11.8952 10.4092C9.50807 10.2932 7.39209 9.18888 5.97458 7.5069C5.72724 7.91845 5.5859 8.39596 5.5859 8.90444C5.5859 9.86739 6.09292 10.7175 6.86371 11.2157C6.39367 11.2022 5.94993 11.0758 5.56207 10.8693V10.9034C5.56207 12.2493 6.55227 13.372 7.86705 13.6262C7.62628 13.6914 7.37237 13.7239 7.11023 13.7239C6.92534 13.7239 6.74456 13.7073 6.56953 13.6747C6.9352 14.7775 7.99525 15.5807 9.25251 15.6022C8.26971 16.3474 7.03052 16.7915 5.68533 16.7915C5.4536 16.7915 5.22434 16.7788 5 16.7534C6.27123 17.54 7.78159 18 9.40289 18C14.6867 18 17.5751 13.7692 17.5751 10.0994C17.5751 9.97862 17.5726 9.85785 17.5677 9.73947C18.129 9.34778 18.6162 8.85915 19 8.3022C18.4856 8.52308 17.9317 8.67244 17.3508 8.73918Z"},email:{display:!0,templateUrl:"mailto:?subject=Check out {description}&body=Check out {description} - {shareUrl}",title:"share.email",icon:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 6.75C21 5.7835 20.1941 5 19.2 5H4.8C3.80589 5 3 5.7835 3 6.75V17.25C3 18.2165 3.80589 19 4.8 19H19.2C20.1941 19 21 18.2165 21 17.25V6.75ZM18.8944 8.55276C18.6474 8.05878 18.0467 7.85856 17.5528 8.10555L12 10.881L6.44719 8.10555L6.33987 8.05941C5.8692 7.88866 5.33489 8.09407 5.10555 8.55276C4.85856 9.04674 5.05878 9.64741 5.55276 9.8944L11.5528 12.8944L11.6762 12.9461C11.9279 13.0323 12.2059 13.0151 12.4472 12.8944L18.4472 9.8944L18.5485 9.83623C18.9675 9.56215 19.1237 9.01146 18.8944 8.55276Z"}},embed:{display:!0,templateUrl:'<iframe src="{embedUrl}" style="width: 560px;height: 395px" allowfullscreen webkitallowfullscreen mozAllowFullScreen frameborder="0" allow="accelerometer *; autoplay *; encrypted-media *; gyroscope *; picture-in-picture *"/>',title:"share.embed",icon:"M13.9864 6.16443C14.0772 5.61966 13.7092 5.10444 13.1644 5.01364C12.6197 4.92285 12.1044 5.29086 12.0136 5.83564L10.0136 17.8356C9.92284 18.3804 10.2909 18.8956 10.8356 18.9864C11.3804 19.0772 11.8956 18.7092 11.9864 18.1644L13.9864 6.16443Z M15.2929 15.7071C14.9024 15.3166 14.9024 14.6834 15.2929 14.2929L17.5858 12L15.2929 9.70711C14.9024 9.31658 14.9024 8.68342 15.2929 8.29289C15.6834 7.90237 16.3166 7.90237 16.7071 8.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L16.7071 15.7071C16.3166 16.0976 15.6834 16.0976 15.2929 15.7071Z M8.70711 8.29289C9.09763 8.68342 9.09763 9.31658 8.70711 9.70711L6.41421 12L8.70711 14.2929C9.09763 14.6834 9.09763 15.3166 8.70711 15.7071C8.31658 16.0976 7.68342 16.0976 7.29289 15.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L7.29289 8.29289C7.68342 7.90237 8.31658 7.90237 8.70711 8.29289Z"}};function ot(e){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function at(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==ot(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===ot(i)?i:String(i)),n)}var o,i}function lt(e,t){return(lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ut(e);if(t){var o=ut(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return st(this,r)}}function st(e,t){if(t&&("object"===ot(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ut(e){return(ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pt=c.ui.preact,ft=c.ui.preacti18n,yt=c.ui.Components,dt=c.ui.style,ht=pt.h,_t=pt.Component,vt=ft.withText,bt=yt.Tooltip,mt=yt.Icon,gt=vt({shareTxt:"controls.share"})(rt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lt(e,t)}(i,e);var t,r,n,o=ct(i);function i(){return it(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this.props.config,t=e.shareUrl,r=e.shareOptions;if(t&&r)return ht(bt,{label:this.props.shareTxt},ht("button",{tabIndex:0,"aria-haspopup":"true",className:dt.upperBarIcon,"aria-label":this.props.shareTxt},ht(mt,{id:Et,path:"M318.641 446.219l236.155-142.257c-0.086-1.754-0.129-3.52-0.129-5.295 0-58.91 47.756-106.667 106.667-106.667s106.667 47.756 106.667 106.667c0 58.91-47.756 106.667-106.667 106.667-33.894 0-64.095-15.808-83.633-40.454l-236.467 142.445c-0.132-3.064-0.394-6.095-0.779-9.087l7.271-12.835-0.117 53.333-7.183-12.743c0.399-3.046 0.67-6.131 0.806-9.252l236.467 142.383c19.538-24.648 49.741-40.457 83.636-40.457 58.91 0 106.667 47.756 106.667 106.667s-47.756 106.667-106.667 106.667c-58.91 0-106.667-47.756-106.667-106.667 0-1.775 0.043-3.539 0.129-5.293l-236.19-142.216c-19.528 24.867-49.868 40.841-83.939 40.841-58.91 0-106.667-47.756-106.667-106.667s47.756-106.667 106.667-106.667c34.091 0 64.447 15.993 83.974 40.886zM234.667 554.667c23.564 0 42.667-19.103 42.667-42.667s-19.103-42.667-42.667-42.667c-23.564 0-42.667 19.103-42.667 42.667s19.103 42.667 42.667 42.667zM661.333 341.333c23.564 0 42.667-19.103 42.667-42.667s-19.103-42.667-42.667-42.667c-23.564 0-42.667 19.103-42.667 42.667s19.103 42.667 42.667 42.667zM661.333 768c23.564 0 42.667-19.103 42.667-42.667s-19.103-42.667-42.667-42.667c-23.564 0-42.667 19.103-42.667 42.667s19.103 42.667 42.667 42.667z"})))}}])&&at(t.prototype,r),n&&at(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(_t))||rt;function kt(e){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ut(n.key),n)}}function Ot(){return(Ot="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Ct(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Ct(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xt(e)););return e}function St(e,t){return(St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=xt(e);if(t){var o=xt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Pt(this,r)}}function Pt(e,t){if(t&&("object"===kt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xt(e){return(xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ut(e){var t=function(e,t){if("object"!==kt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kt(t)?t:String(t)}gt.displayName="ShareButton";var Nt,Mt,Tt,Rt=c.ui.ReservedPresetNames,At=c.core.Utils,Et="share",It=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&St(e,t)}(i,e);var t,r,n,o=jt(i);function i(e,t,r){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,e,t,r)).config.shareOptions){var a=Object.keys(n.config.shareOptions).filter((function(e){return nt[e]})).reduce((function(e,t){return e[t]=nt[t],e}),{});n.config.shareOptions=At.Object.mergeDeep({},a,n.config.shareOptions)}else n.config.shareOptions=nt;return n._filterNonDisplayShareOptions(),n.config.shareUrl||(n.config.shareUrl=window.location.href),n._wasPlayed=!1,n._addIcon(),n}return t=i,n=[{key:"isValid",value:function(){return!0}}],(r=[{key:"_addIcon",value:function(){var e=this;this.player.ready().then((function(){e.iconId=e.player.getService("upperBarManager").add({label:"Share",component:function(){return d(gt,{config:e.config})},svgIcon:{path:"M318.641 446.219l236.155-142.257c-0.086-1.754-0.129-3.52-0.129-5.295 0-58.91 47.756-106.667 106.667-106.667s106.667 47.756 106.667 106.667c0 58.91-47.756 106.667-106.667 106.667-33.894 0-64.095-15.808-83.633-40.454l-236.467 142.445c-0.132-3.064-0.394-6.095-0.779-9.087l7.271-12.835-0.117 53.333-7.183-12.743c0.399-3.046 0.67-6.131 0.806-9.252l236.467 142.383c19.538-24.648 49.741-40.457 83.636-40.457 58.91 0 106.667 47.756 106.667 106.667s-47.756 106.667-106.667 106.667c-58.91 0-106.667-47.756-106.667-106.667 0-1.775 0.043-3.539 0.129-5.293l-236.19-142.216c-19.528 24.867-49.868 40.841-83.939 40.841-58.91 0-106.667-47.756-106.667-106.667s47.756-106.667 106.667-106.667c34.091 0 64.447 15.993 83.974 40.886zM234.667 554.667c23.564 0 42.667-19.103 42.667-42.667s-19.103-42.667-42.667-42.667c-23.564 0-42.667 19.103-42.667 42.667s19.103 42.667 42.667 42.667zM661.333 341.333c23.564 0 42.667-19.103 42.667-42.667s-19.103-42.667-42.667-42.667c-23.564 0-42.667 19.103-42.667 42.667s19.103 42.667 42.667 42.667zM661.333 768c23.564 0 42.667-19.103 42.667-42.667s-19.103-42.667-42.667-42.667c-23.564 0-42.667 19.103-42.667 42.667s19.103 42.667 42.667 42.667z"},onClick:e._openShareOverlay.bind(e)})}))}},{key:"_openShareOverlay",value:function(){var e=this;if(this.player.paused||(this.player.pause(),this._wasPlayed=!0),this.config.useNative&&navigator.share){var t=this._getVideoDesc();navigator.share({title:"Check out ".concat(t),text:"Check out ".concat(t),url:this.config.shareUrl}).then((function(){return e.logger.debug("Successful sharing")})).catch((function(t){return e.logger.error("Failed sharing",t)}))}else this._setOverlay(this.player.ui.addComponent({label:"info-overlay",area:"GuiArea",presets:[Rt.Playback,Rt.Live],get:function(){return d(tt,{onClose:e._closeShareOverlay.bind(e),config:e.config})}}))}},{key:"_closeShareOverlay",value:function(){this._removeOverlay(),this._wasPlayed&&(this.player.play(),this._wasPlayed=!1)}},{key:"_setOverlay",value:function(e){this._removeOverlay(),this._removeActiveOverlay=e}},{key:"_removeOverlay",value:function(){this._removeActiveOverlay&&(this._removeActiveOverlay(),this._removeActiveOverlay=null)}},{key:"_filterNonDisplayShareOptions",value:function(){var e=this;this.config.shareOptions=Object.keys(this.config.shareOptions).filter((function(t){return e.config.shareOptions[t].display})).reduce((function(t,r){return t[r]=e.config.shareOptions[r],t}),{})}},{key:"updateConfig",value:function(e){Ot(xt(i.prototype),"updateConfig",this).call(this,e),this._filterNonDisplayShareOptions()}},{key:"reset",value:function(){this._closeShareOverlay()}},{key:"destroy",value:function(){this._removeOverlay(),this.player.getService("upperBarManager").remove(this.iconId)}}])&&wt(t.prototype,r),n&&wt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(c.BasePlugin);Nt=It,Tt={useNative:!1,embedUrl:"{embedBaseUrl}/p/{partnerId}/embedPlaykitJs/uiconf_id/{uiConfId}?iframeembed=true&entry_id={entryId}",enableTimeOffset:!0},(Mt=Ut(Mt="defaultConfig"))in Nt?Object.defineProperty(Nt,Mt,{value:Tt,enumerable:!0,configurable:!0,writable:!0}):Nt[Mt]=Tt;var Ft="1.1.10",Dt="@playkit-js/share";Object(c.registerPlugin)(Et,It)}]);

var KalturaPlayer="object"==typeof KalturaPlayer?KalturaPlayer:{};KalturaPlayer.plugins=KalturaPlayer.plugins||{},KalturaPlayer.plugins.timeline=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(e,t){e.exports=KalturaPlayer},function(e,t,r){var n=r(2),o=r(3);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};n(o,i);e.exports=o.locals||{}},function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function u(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function s(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],c=r[s]||0,l="".concat(s," ").concat(c);r[s]=c+1;var p=u(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:v(f,t),references:1}),n.push(l)}return n}function c(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,p=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var h=null,b=0;function v(e,t){var r,n,o;if(t.singleton){var i=b++;r=h||(h=c(t)),n=f.bind(null,r,i,!1),o=f.bind(null,r,i,!0)}else r=c(t),n=d.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=u(r[n]);a[o].references--}for(var i=s(e,t),c=0;c<r.length;c++){var l=u(r[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}r=i}}}},function(e,t,r){(t=r(4)(!1)).push([e.i,".playkit-cue-point-container {\n  position: absolute;\n  height: inherit;\n  padding: 12px 2px 16px 2px;\n  padding: 12px 2px calc(12px + var(--progress-bar-height)) 2px;\n  margin: -12px 0;\n}\n\n.playkit-cue-point-container:hover .playkit-cue-point-preview-container {\n  display: block;\n}\n\n.playkit-cue-point {\n  height: inherit;\n  width: 2px;\n  background-color: #ffffff;\n  background-color: var(--white);\n  transition: transform 100ms;\n}\n\n.playkit-cue-point.playkit-hover {\n  transform: scale(2);\n  border-radius: 1px;\n}\n\n\n.playkit-left-border-radius {\n  border-radius: 4px 0 0 4px;\n  border-radius: calc(2 * var(--progress-bar-border-radius)) 0 0 calc(2 * var(--progress-bar-border-radius));\n}\n\n.playkit-right-border-radius {\n  border-radius: 0 4px 4px 0;\n  border-radius: 0 calc(2 * var(--progress-bar-border-radius)) calc(2 * var(--progress-bar-border-radius)) 0;\n}\n\n.playkit-cue-point-preview-container {\n  display: none;\n  position: absolute;\n  bottom: 28px;\n  bottom: calc(24px + var(--progress-bar-height));\n}\n\n.playkit-seek-bar.playkit-resizing .playkit-cue-point-container {\n  display: none;\n}\n",""]),e.exports=t},function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var o=(a=n,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(s," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(i).concat([o]).join("\n")}var a,u,s;return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var u=0;u<e.length;u++){var s=[].concat(e[u]);n&&o[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),t.push(s))}},t}},function(e,t,r){"use strict";r.r(t),r.d(t,"Plugin",(function(){return G})),r.d(t,"VERSION",(function(){return Q})),r.d(t,"NAME",(function(){return X}));var n,o,i=r(0),a=(r(1),function(){if("boolean"!=typeof n){var e=document.createElement("div");e.style.setProperty("--var","none"),e.style.setProperty("display","var(--var)"),document.body.appendChild(e),n="none"===getComputedStyle(e).display,document.body.removeChild(e)}return n});function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=i.ui,g=m.preact,k=m.redux,w=m.reducers,P=m.utils,O=m.style,S=i.core.Utils,j="playkit-cue-point-preview-container",_=k.connect((function(e){return{config:e.config.components.seekbar,duration:e.engine.duration,seekbarClientRect:e.seekbar.clientRect,hideTimeBubble:e.seekbar.hideTimeBubble,virtualTime:e.seekbar.virtualTime}}),P.bindActions(w.seekbar.actions))(o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(u,e);var t,r,n,o=d(u);function u(){var e;l(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(b(e=o.call.apply(o,[this].concat(r))),"_setMarkerRef",(function(t){t&&(e._markerRef=t,e.setState((function(e){return{render:!e.render}})))})),e}return t=u,(r=[{key:"_getMarkerPositionStyle",value:function(){var e={left:"0",edge:"Left"};if(this._markerRef&&this.props.duration){var t=this._markerRef.getBoundingClientRect(),r=this.props.seekbarClientRect,n=t.width,o=r.width,i=(this.props.time<this.props.duration?this.props.time/this.props.duration:1)*o;i-n/2>0&&(i+n/2>o?(e.left="".concat(o-n,"px"),e.edge="Right"):(e.left="".concat(i-n/2,"px"),e.edge="none"))}return e}},{key:"_getPreviewPosition",value:function(e){var t=0;if(this._markerRef){var r=this._markerRef.getBoundingClientRect(),n=this.props.seekbarClientRect,o=r.left-n.left,i=r.width,a=o+i,u=n.width,s=(e-i)/2;t=o-s>0?a+s>u?-(e-(u-o)):-s:-o}return t}},{key:"onMarkerMouseOver",value:function(){this.setState({hover:!0}),this.props.preview.get&&this.props.updateHideSeekbarPreview(!0),!this.props.hideTimeBubble&&this.props.preview.hideTime&&(this._hideTimeBubble=!0,this.props.updateHideSeekbarTimeBubble(!0))}},{key:"onMarkerMouseLeave",value:function(){this.setState({hover:!1}),this.props.updateHideSeekbarPreview(!1),this._hideTimeBubble&&(this._hideTimeBubble=!1,this.props.updateHideSeekbarTimeBubble(!1))}},{key:"onPreviewMouseOver",value:function(){this.props.updateSeekbarPreviewHoverActive(!0)}},{key:"onPreviewMouseLeave",value:function(){this.props.updateSeekbarPreviewHoverActive(!1)}},{key:"componentDidMount",value:function(){this._hideTimeBubble=!1}},{key:"componentWillUnmount",value:function(){this.props.updateHideSeekbarPreview(!1),this._hideTimeBubble&&this.props.updateHideSeekbarTimeBubble(!1)}},{key:"render",value:function(e){var t=this,r=e.marker,n=e.preview,o=e.virtualTime,u=e.config,s=this._getMarkerPositionStyle(),l=s.edge,p={left:s.left};"none"!==l&&(p["padding".concat(l)]=0),a()&&S.Object.mergeDeep(p,{"--white":O.white,"--progress-bar-height":O.progressBarHeight,"--progress-bar-border-radius":O.progressBarBorderRadius});var f={backgroundColor:r.color,width:r.width},d=["playkit-cue-point",this.state.hover?O.hover:"","none"!==l?"playkit-".concat(l.toLowerCase(),"-border-radius"):""],h={className:(r.className?[].concat(d,[r.className]):d).join(" "),style:r.props?c(c({},f),r.props.style):f};h=c(c({},r.props),h);var b=n.width||r.width,v=n.height||r.height,y={width:"".concat(b,"px"),height:"".concat(v,"px")},m={style:n.props?c(c({},y),n.props.style):y};return n.className&&(m.className=n.className),m=c(c(c({},n.props),m),{},{defaultPreviewProps:{virtualTime:o,thumbsSlices:u.thumbsSlices,thumbsWidth:u.thumbsWidth,thumbsSprite:u.thumbsSprite}}),i.ui.h("div",{onMouseOver:function(){return t.onMarkerMouseOver()},onMouseLeave:function(){return t.onMarkerMouseLeave()},className:"playkit-cue-point-container",style:p,ref:this._setMarkerRef},r.get?g.h(r.get,h):i.ui.h("div",{style:f,className:[].concat(d,[r.className]).join(" ")}),this._markerRef&&n.get?i.ui.h("div",{onMouseOver:function(){return t.onPreviewMouseOver()},onMouseLeave:function(){return t.onPreviewMouseLeave()},className:!1===n.sticky?[j,O.nonSticky].join(" "):j,style:{left:"".concat(this._getPreviewPosition(b),"px")}},g.h(n.get,m)):void 0)}}])&&p(t.prototype,r),n&&p(t,n),u}(g.Component))||o;function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){R(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}_.displayName="CuePoint";var T=i.ui,B=T.preact,N=T.redux,E=T.reducers,H=T.style,D=E.seekbar.actions,L=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._uiManager=t.ui,this._logger=r,this._store=N.useStore(),this._cuePointsRemoveMap={},this._counter=0}var t,r,n;return t=e,(r=[{key:"addCuePoint",value:function(e){if(this._store.getState().engine.isLive)return this._logger.warn("Impossible to add cue points while LIVE playback"),null;if(!e||"number"!=typeof e.time)return this._logger.warn("Cue point time is missing"),null;var t=(this._counter++).toString();return this._cuePointsRemoveMap[t]=this._uiManager.addComponent({label:"Cue Point - ".concat(t),presets:e.presets||[this._store.getState().shell.activePresetName],area:"SeekBar",get:_,props:{time:e.time,marker:e.marker||{},preview:e.preview||{}}}),{id:t}}},{key:"removeCuePoint",value:function(e){var t=e.id;"function"==typeof this._cuePointsRemoveMap[t]&&this._cuePointsRemoveMap[t]()}},{key:"setSeekbarPreview",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.presets||[this._store.getState().shell.activePresetName],n={width:"".concat(t.width||H.framePreviewImgWidth,"px"),height:"".concat(t.height||H.framePreviewImgHeight,"px")},o=this._uiManager.addComponent({label:"SeekBar Preview",presets:r,area:"SeekBar",get:t.get?function(r){var o=x(x({},t.props),{},{className:t.className,style:t.props?x(x({},n),t.props.style):n});return"string"!=typeof t.get&&(o.defaultPreviewProps=r.replacedComponentProps),i.ui.h("div",{className:!1===t.sticky?H.nonSticky:void 0,onMouseOver:function(){e._store.dispatch(D.updateSeekbarPreviewHoverActive(!0))},onMouseLeave:function(){e._store.dispatch(D.updateSeekbarPreviewHoverActive(!1))}},B.h(t.get,o))}:void 0,replaceComponent:"SeekBarPreview"});return this._store.dispatch(D.updateHideSeekbarTimeBubble(!1)),t.hideTime&&this._store.dispatch(D.updateHideSeekbarTimeBubble(!0)),function(){o(),e._store.dispatch(D.updateHideSeekbarTimeBubble(!1))}}},{key:"reset",value:function(){this._removeAllCuePoints()}},{key:"destroy",value:function(){this._removeAllCuePoints()}},{key:"_removeAllCuePoints",value:function(){Object.values(this._cuePointsRemoveMap).forEach((function(e){return e()}))}}])&&C(t.prototype,r),n&&C(t,n),e}();function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function U(e,t,r){return t&&I(e.prototype,t),r&&I(e,r),e}function K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=F(e);if(t){var o=F(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return W(this,r)}}function W(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var J=i.ui.style,q=i.core.Utils,z=null,G=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&K(e,t)}(r,e);var t=V(r);function r(e,n,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(i=t.call(this,e,n,o)).player.registerService("timeline",new L(i.player,i.logger)),i}return U(r,null,[{key:"isValid",value:function(){return!0}}]),U(r,[{key:"ready",get:function(){var e=this;return a()?Promise.resolve():(z||(z=q.Dom.loadScriptAsync("https://cdn.jsdelivr.net/npm/css-vars-ponyfill").then((function(){cssVars({variables:{white:J.white,"progress-bar-height":J.progressBarHeight,"progress-bar-border-radius":J.progressBarBorderRadius}})})).catch((function(){e.logger.warn("Failed to load css-vars-ponyfill lib from ".concat("https://cdn.jsdelivr.net/npm/css-vars-ponyfill"))}))),z)}}]),r}(i.BasePlugin),Q="3.0.2",X="@playkit-js/playkit-js-timeline";Object(i.registerPlugin)("timeline",G)}]);

(()=>{"use strict";var e,t,n={720:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.A11yWrapper=t.isKeyboardEvent=void 0;var o=n(522),r=n(52).ui.utils.KeyMap,i=r.ENTER,a=r.SPACE,s=r.UP,p=r.DOWN,c=r.LEFT,l=r.RIGHT,u=function(e){e.preventDefault(),e.stopPropagation()};t.isKeyboardEvent=function(e){return e instanceof KeyboardEvent||[e.offsetX,e.offsetY].every((function(e){return 0===e}))},t.A11yWrapper=function(e){var n=e.children,r=e.onClick,d=e.onUpKeyPressed,f=e.onDownKeyPressed,h=e.onLeftKeyPressed,y=e.onRightKeyPressed,v=e.role,m=e.type,g={onKeyDown:function(e){e.keyCode===a||e.keyCode===i?(u(e),r(e,!0)):e.keyCode===s&&d?(u(e),d(e)):e.keyCode===p&&f?(u(e),f(e)):e.keyCode===c&&h?(u(e),h(e)):e.keyCode===l&&y&&(u(e),y(e))},onClick:function(e){e.stopPropagation(),r(e,(0,t.isKeyboardEvent)(e))},role:v};return"button"===n.type&&(g.type=m||"button"),(0,o.cloneElement)(n,g)},t.A11yWrapper.defaultProps={role:"button"}},499:(e,t,n)=>{n.d(t,{Mk:()=>s,ZP:()=>c,uj:()=>p});var o=n(537),r=n.n(o),i=n(645),a=n.n(i)()(r());a.push([e.id,".playkit-side-panel-wrapper_Wr{visibility:hidden;position:absolute;width:100%;height:100%}.playkit-active-state_vh{visibility:visible}","",{version:3,sources:["webpack://./src/services/side-panels-manager/ui/panel-item-wrapper/panel-item-wrapper.component.scss"],names:[],mappings:"AAAA,+BAAoB,iBAAiB,CAAC,iBAAiB,CAAC,UAAU,CAAC,WAAW,CAAC,yBAAc,kBAAkB",sourcesContent:[".side-panel-wrapper{visibility:hidden;position:absolute;width:100%;height:100%}.active-state{visibility:visible}"],sourceRoot:""}]);var s="playkit-side-panel-wrapper_Wr",p="playkit-active-state_vh";const c=a},477:(e,t,n)=>{n.d(t,{A:()=>s,Z:()=>p});var o=n(537),r=n.n(o),i=n(645),a=n.n(i)()(r());a.push([e.id,".playkit-right-upper-bar-wrapper-container_Vm{direction:ltr;display:flex}","",{version:3,sources:["webpack://./src/services/upper-bar-manager/ui/displayed-bar/displayed-bar.component.scss"],names:[],mappings:"AAAA,8CAAmC,aAAa,CAAC,YAAY",sourcesContent:[".right-upper-bar-wrapper-container{direction:ltr;display:flex}"],sourceRoot:""}]);var s="playkit-right-upper-bar-wrapper-container_Vm";const p=a},206:(e,t,n)=>{n.d(t,{ZP:()=>u,_h:()=>l,mB:()=>p,pU:()=>s,qv:()=>c});var o=n(537),r=n.n(o),i=n(645),a=n.n(i)()(r());a.push([e.id,".playkit-more-dropdown_SJ{position:absolute;padding:8px 4px;width:166px;background-color:var(--playkit-tone-7-color);border-radius:4px;top:44px;right:0}.playkit-more-dropdown_SJ .playkit-dropdown-item_Aq{border-radius:4px;padding:4px 12px 4px 15px;display:flex;margin:4px 0;cursor:pointer}.playkit-more-dropdown_SJ .playkit-dropdown-item_Aq .playkit-icon_h_{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.playkit-more-dropdown_SJ .playkit-dropdown-item_Aq:hover{background-color:var(--playkit-tone-6-color)}.playkit-more-dropdown_SJ .playkit-dropdown-item_Aq .playkit-dropdown-item-description_rC{display:flex;flex:1;font-size:14px;font-weight:700;align-items:center;padding-left:11px}","",{version:3,sources:["webpack://./src/services/upper-bar-manager/ui/dropdown-bar/dropdown-bar.component.scss"],names:[],mappings:"AAAA,0BAAe,iBAAiB,CAAC,eAAe,CAAC,WAAW,CAAC,4CAA4C,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,oDAA8B,iBAAiB,CAAC,yBAAyB,CAAC,YAAY,CAAC,YAAY,CAAC,cAAc,CAAC,qEAAoC,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,0DAAoC,4CAA4C,CAAC,0FAAyD,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,eAAe,CAAC,kBAAkB,CAAC,iBAAiB",sourcesContent:[".more-dropdown{position:absolute;padding:8px 4px;width:166px;background-color:var(--playkit-tone-7-color);border-radius:4px;top:44px;right:0}.more-dropdown .dropdown-item{border-radius:4px;padding:4px 12px 4px 15px;display:flex;margin:4px 0;cursor:pointer}.more-dropdown .dropdown-item .icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.more-dropdown .dropdown-item:hover{background-color:var(--playkit-tone-6-color)}.more-dropdown .dropdown-item .dropdown-item-description{display:flex;flex:1;font-size:14px;font-weight:700;align-items:center;padding-left:11px}"],sourceRoot:""}]);var s="playkit-more-dropdown_SJ",p="playkit-dropdown-item_Aq",c="playkit-icon_h_",l="playkit-dropdown-item-description_rC";const u=a},324:(e,t,n)=>{n.d(t,{W:()=>s,Z:()=>p});var o=n(537),r=n.n(o),i=n(645),a=n.n(i)()(r());a.push([e.id,".playkit-more-icon_fR{margin-right:0;z-index:2}","",{version:3,sources:["webpack://./src/services/upper-bar-manager/ui/more-icon/more-icon.component.scss"],names:[],mappings:"AAAA,sBAAW,cAAc,CAAC,SAAS",sourcesContent:[".more-icon{margin-right:0;z-index:2}"],sourceRoot:""}]);var s="playkit-more-icon_fR";const p=a},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var s=0;s<this.length;s++){var p=this[s][0];null!=p&&(a[p]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);o&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},537:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(r," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},767:(e,t,n)=>{n.r(t),n.d(t,{activeState:()=>y.uj,default:()=>m,sidePanelWrapper:()=>y.Mk});var o=n(379),r=n.n(o),i=n(795),a=n.n(i),s=n(569),p=n.n(s),c=n(565),l=n.n(c),u=n(216),d=n.n(u),f=n(589),h=n.n(f),y=n(499),v={};v.styleTagTransform=h(),v.setAttributes=l(),v.insert=p().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=d(),r()(y.ZP,v);const m=y.ZP&&y.ZP.locals?y.ZP.locals:void 0},611:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m,rightUpperBarWrapperContainer:()=>y.A});var o=n(379),r=n.n(o),i=n(795),a=n.n(i),s=n(569),p=n.n(s),c=n(565),l=n.n(c),u=n(216),d=n.n(u),f=n(589),h=n.n(f),y=n(477),v={};v.styleTagTransform=h(),v.setAttributes=l(),v.insert=p().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=d(),r()(y.Z,v);const m=y.Z&&y.Z.locals?y.Z.locals:void 0},23:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m,dropdownItem:()=>y.mB,dropdownItemDescription:()=>y._h,icon:()=>y.qv,moreDropdown:()=>y.pU});var o=n(379),r=n.n(o),i=n(795),a=n.n(i),s=n(569),p=n.n(s),c=n(565),l=n.n(c),u=n(216),d=n.n(u),f=n(589),h=n.n(f),y=n(206),v={};v.styleTagTransform=h(),v.setAttributes=l(),v.insert=p().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=d(),r()(y.ZP,v);const m=y.ZP&&y.ZP.locals?y.ZP.locals:void 0},781:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m,moreIcon:()=>y.W});var o=n(379),r=n.n(o),i=n(795),a=n.n(i),s=n(569),p=n.n(s),c=n(565),l=n.n(c),u=n(216),d=n.n(u),f=n(589),h=n.n(f),y=n(324),v={};v.styleTagTransform=h(),v.setAttributes=l(),v.insert=p().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=d(),r()(y.Z,v);const m=y.Z&&y.Z.locals?y.Z.locals:void 0},379:e=>{var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var i={},a=[],s=0;s<e.length;s++){var p=e[s],c=o.base?p[0]+o.base:p[0],l=i[c]||0,u="".concat(c," ").concat(l);i[c]=l+1;var d=n(u),f={css:p[1],media:p[2],sourceMap:p[3],supports:p[4],layer:p[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var h=r(f,o);o.byIndex=s,t.splice(s,0,{identifier:u,updater:h,references:1})}a.push(u)}return a}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var i=o(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var p=o(e,r),c=0;c<i.length;c++){var l=n(i[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=p}}},569:e=>{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},321:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ItemWrapper=void 0;var o=n(522),r=n(837),i=function(){function e(t,n,o){if(this.id=++e.nextId,this.item=t,this.player=n,this.upperBarManager=this.player.getService("upperBarManager"),this.isActive=!1,this.injectPanelComponent(),t.iconComponent){var r=this.id;this.iconId=this.upperBarManager.add({label:this.item.label,svgIcon:this.item.iconComponent.svgIcon,onClick:function(){return o(r)},component:this.item.iconComponent.component})}}return e.prototype.activate=function(){var e,t,n=this;this.panelItemComponentRef.current?(this.panelItemComponentRef.current.on(),null===(t=(e=this.item).onActivate)||void 0===t||t.call(e),this.isActive=!0):setTimeout((function(){return n.activate()}))},e.prototype.deactivate=function(e){var t,n;void 0===e&&(e=!1),this.panelItemComponentRef.current.off(e),null===(n=(t=this.item).onDeactivate)||void 0===n||n.call(t),this.isActive=!1},e.prototype.remove=function(){var e;this.removePanelComponentFn(),(null===(e=this.item.iconComponent)||void 0===e?void 0:e.component)&&this.upperBarManager.remove(this.iconId)},e.prototype.update=function(){this.panelItemComponentRef.current.forceUpdate()},e.prototype.injectPanelComponent=function(){var t=this,n=this.item,i=n.label,a=n.position,s=n.panelComponent,p=n.presets,c=s,l=(0,o.createRef)();this.panelItemComponentRef=l,this.removePanelComponentFn=this.player.ui.addComponent({label:"Side-panel-".concat(a,"-").concat(i),presets:p,area:e.getPanelArea(a),get:function(){return(0,o.h)(r.PanelItemWrapper,{ref:l},(0,o.h)(c,{isActive:t.isActive}))}})},e.getPanelArea=function(e){return"SidePanel".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))},e.nextId=0,e}();t.ItemWrapper=i},682:function(e,t,n){var o,r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.SidePanelsManager=void 0;var i=n(52),a=n(321),s=i.ui.SidePanelModes,p=i.ui.SidePanelPositions,c=i.ui.ReservedPresetNames,l=((o={})[p.TOP]=p.BOTTOM,o[p.BOTTOM]=p.TOP,o[p.RIGHT]=p.LEFT,o[p.LEFT]=p.RIGHT,o),u=function(){function e(e,t){this.player=e,this.activePanels={top:null,bottom:null,right:null,left:null},this.componentsRegistry=new Map,this.logger=t}return e.prototype.add=function(t){var n=this;if(e.validateItem(t)){var o=new a.ItemWrapper(t,this.player,(function(e){return n.toggle(e)}));return this.componentsRegistry.set(o.id,o),this.logger.debug("New Panel Item Added",t),o.id}this.logger.warn("Invalid SidePanelItem parameters",t)},e.prototype.remove=function(e){var t=this.componentsRegistry.get(e);t?(this.isItemActive(e)&&this.deactivateItem(e),t.remove(),this.componentsRegistry.delete(e)):this.logger.warn("".concat(e," is not registered"))},e.prototype.activateItem=function(t){var n=this.componentsRegistry.get(t);if(n){var o=n.item,r=o.position,i=o.expandMode;if(this.isItemActive(t))return;var a=this.activePanels[r];null!==a&&a.deactivate(!0);var s=e.getCounterPanelPosition(r);this.activePanels[s]&&this.deactivateItem(this.activePanels[s].id),n.activate(),this.expand(r,i),this.activePanels[r]=n}else this.logger.warn("".concat(t," is not registered"))},e.prototype.deactivateItem=function(e){var t=this.componentsRegistry.get(e);if(t){if(!this.isItemActive(e))return;var n=t.item.position;t.deactivate(),this.collapse(n),this.activePanels[n]=null}else this.logger.warn("".concat(e," is not registered"))},e.prototype.isItemActive=function(e){var t,n=this.componentsRegistry.get(e);return n?(null===(t=this.activePanels[n.item.position])||void 0===t?void 0:t.id)===e:(this.logger.warn("".concat(e," is not registered")),!1)},e.prototype.update=function(e){var t=this.componentsRegistry.get(e);t?t.update():this.logger.warn("".concat(e," is not registered"))},e.prototype.reset=function(){this.logger.debug("reset")},e.prototype.destroy=function(){this.logger.debug("destroy"),this.removeAllItems()},e.prototype.removeAllItems=function(){var e,t;try{for(var n=r(this.componentsRegistry.values()),o=n.next();!o.done;o=n.next()){var i=o.value;this.remove(i.id)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e.prototype.toggle=function(e){this.isItemActive(e)?this.deactivateItem(e):this.activateItem(e)},e.prototype.expand=function(e,t){this.player.ui.store.dispatch(i.ui.reducers.shell.actions.updateSidePanelMode(e,t))},e.prototype.collapse=function(e){this.player.ui.store.dispatch(i.ui.reducers.shell.actions.updateSidePanelMode(e,s.HIDDEN))},e.getCounterPanelPosition=function(e){return l[e]},e.validateItem=function(e){var t=e.label,n=e.panelComponent,o=e.iconComponent,r=e.position,i=e.expandMode,a=e.onActivate,l=e.onDeactivate,u=e.presets;return!(!(t&&Object.values(p).includes(r)&&Object.values(s).includes(i)&&u.every((function(e){return Object.values(c).includes(e)}))&&"function"==typeof n&&("function"==typeof(null==o?void 0:o.component)&&"string"==typeof(null==o?void 0:o.svgIcon.path)||void 0===o))||"function"!=typeof a&&void 0!==a||"function"!=typeof l&&void 0!==l)},e}();t.SidePanelsManager=u},837:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PanelItemWrapper=void 0;var i=n(522),a=n(767),s=n(52).ui.style.defaultTransitionTime,p=function(e){function t(){var t=e.call(this)||this;return t.state={on:!1},t.switchMode=!1,t}return r(t,e),t.prototype.on=function(){this.setState({on:!0})},t.prototype.off=function(e){this.switchMode=e,this.setState({on:!1})},t.prototype.render=function(){return(0,i.h)("div",{className:[a.sidePanelWrapper,this.state.on?a.activeState:""].join(" "),style:this.state.on||this.switchMode?"":{transition:"visibility ".concat(s,"ms")}},(0,i.cloneElement)(this.props.children))},t}(i.Component);t.PanelItemWrapper=p},183:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IconModel=void 0;var o=n(522),r=function(){function e(t){this.id=++e.nextId,this.label=t.label,this.component=t.component,this.svgIcon=t.svgIcon,this.onClick=t.onClick,this.componentRef=(0,o.createRef)()}return e.prototype.update=function(){this.componentRef.current.forceUpdate()},e.nextId=0,e}();t.IconModel=r},328:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayedBar=void 0;var a=n(522),s=n(883),p=n(611),c=n(52),l=n(951),u=c.ui.Components.PLAYER_SIZE,d=c.ui.redux.connect,f=function(e){return{playerSize:e.shell.playerSize}},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.update=function(){t.forceUpdate()},t}return r(t,e),t.prototype.splitControlsIntoDisplayedAndDropdown=function(){switch(this.props.playerSize){case u.TINY:return{displayedControls:[],dropdownControls:[]};case u.EXTRA_SMALL:case u.SMALL:return this.splitControls(2);default:return this.splitControls(4)}},t.prototype.splitControls=function(e){var t,n,o=this.props.getControls();return o.length>e+1?(t=o.slice(0,e),n=o.slice(e)):(t=o,n=[]),{displayedControls:t,dropdownControls:n}},t.prototype.render=function(){var e=this.splitControlsIntoDisplayedAndDropdown(),t=e.displayedControls,n=e.dropdownControls;return(0,a.h)("div",{className:p.rightUpperBarWrapperContainer},t.map((function(e){var t=e.id,n=e.component,o=e.onClick,r=e.componentRef,i=n;return(0,a.h)(s.IconWrapper,{key:t,onClick:o,ref:r},(0,a.h)(i,null))})),n.length>0&&(0,a.h)(l.MoreIcon,{icons:n}))},i([d(f,null,null,{forwardRef:!0})],t)}(a.Component);t.DisplayedBar=h},174:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownBar=void 0;var i=n(522),a=n(23),s=n(52),p=n(720),c=s.ui.Components.Icon,l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return(0,i.h)("div",{className:a.moreDropdown,role:"menu","aria-expanded":"true"},this.props.controls.map((function(e,t){var n=e.id,o=e.label,r=e.svgIcon,s=e.onClick;return(0,i.h)(i.Fragment,{key:n},(0,i.h)(p.A11yWrapper,{onClick:s,role:"menuitem"},(0,i.h)("div",{className:a.dropdownItem,tabIndex:0,"aria-label":o},(0,i.h)("div",{className:a.icon},(0,i.h)(c,{id:"icon".concat(t),path:r.path,viewBox:r.viewBox})),(0,i.h)("span",{className:a.dropdownItemDescription},o))))})))},t}(i.Component);t.DropdownBar=l},883:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.IconWrapper=void 0;var i=n(522),a=n(52).ui.utils.KeyMap,s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.handleOnKeyDown=function(e){e.keyCode!==a.ENTER&&e.keyCode!==a.SPACE||(e.preventDefault(),this.props.onClick(e))},t.prototype.render=function(){var e=this;return(0,i.h)("div",{onClick:this.props.onClick,onKeyDown:function(t){return e.handleOnKeyDown(t)}},(0,i.cloneElement)(this.props.children))},t}(i.Component);t.IconWrapper=s},951:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.MoreIcon=void 0;var a=n(522),s=n(720),p=n(52),c=n(781),l=n(174),u=n(562),d=p.ui.Components,f=d.Icon,h=d.Tooltip,y=p.ui.Event.withEventManager,v=p.ui.preacti18n,m=v.withText,g=v.Text,A=function(e){function t(){var t=e.call(this)||this;return t.handleOnClick=function(){t.setState((function(e){return{toggle:!e.toggle}}))},t.state={toggle:!1},t.moreButtonRef=(0,a.createRef)(),t}return r(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.eventManager.listen(document,"click",(function(t){return e.handleClickOutside(t)}))},t.prototype.handleClickOutside=function(e){this.moreButtonRef&&!this.moreButtonRef.current.contains(e.target)&&this.setState({toggle:!1})},t.prototype.render=function(){return(0,a.h)("div",{style:{position:"relative"}},(0,a.h)(h,{label:this.props.moreIconTxt},(0,a.h)(s.A11yWrapper,{onClick:this.handleOnClick},(0,a.h)("button",{ref:this.moreButtonRef,className:"".concat(p.ui.style.upperBarIcon," ").concat(c.moreIcon),tabIndex:0,"aria-label":this.props.moreIconTxt},(0,a.h)(f,{id:"".concat(u.pluginName,"-upper-bar-manager"),path:"M16 22a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm0-11a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm0-11a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",viewBox:"0 0 32 32"})))),this.state.toggle&&(0,a.h)("div",null,(0,a.h)(l.DropdownBar,{controls:this.props.icons})))},i([y,m({moreIconTxt:(0,a.h)(g,{id:"controls.moreIcon"},"More")})],t)}(a.Component);t.MoreIcon=A},765:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UpperBarManager=void 0;var o=n(52),r=n(183),i=n(522),a=n(328),s=o.ui.ReservedPresetAreas,p=o.ui.ReservedPresetNames,c=function(){function e(e,t,n){var o=this;this._getControls=function(e){return Array.from(o.componentsRegistry.values()).sort((function(t,n){return e[t.label]>e[n.label]?1:-1}))},this.player=e,this.componentsRegistry=new Map,this.logger=t,this.displayedBarComponentRef=(0,i.createRef)(),this.injectDisplayedBarComponentWrapper(n.pluginsIconsOrder)}return e.prototype.add=function(t){if(e.validateItem(t)){var n=new r.IconModel(t);return this.componentsRegistry.set(n.id,n),this.displayedBarComponentRef.current.update(),this.logger.debug("Icon Id: '".concat(n.id,"' '").concat(n.label,"' added")),n.id}this.logger.warn("Invalid Icon parameters",t)},e.prototype.remove=function(e){var t=this.componentsRegistry.get(e);t?(this.componentsRegistry.delete(e),this.displayedBarComponentRef.current.update(),this.logger.debug("Icon Id: '".concat(t.id,"' Label: '").concat(t.label,"' removed"))):this.logger.warn("".concat(e," is not registered"))},e.prototype.isActive=function(e){return!!this.componentsRegistry.get(e)},e.prototype.update=function(e){var t=this.componentsRegistry.get(e);t?t.update():this.logger.warn("".concat(e," is not registered"))},e.prototype.injectDisplayedBarComponentWrapper=function(e){var t=this;this.player.ui.addComponent({label:"Right-Upper-Bar-Wrapper",presets:[p.Playback,p.Live],area:s.TopBarRightControls,get:function(){return(0,i.h)(a.DisplayedBar,{ref:t.displayedBarComponentRef,getControls:function(){return t._getControls(e)}})}})},e.validateItem=function(e){return"function"==typeof e.onClick&&"function"==typeof e.component},e}();t.UpperBarManager=c},562:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UIManagers=t.pluginName=void 0;var i=n(52),a=n(682),s=n(765);t.pluginName="uiManagers";var p=function(e){function t(t,n,o){var r=e.call(this,t,n,o)||this;return n.registerService("sidePanelsManager",new a.SidePanelsManager(n,r.logger)),n.registerService("upperBarManager",new s.UpperBarManager(n,r.logger,r.config.upperBarManager)),r}return r(t,e),t.isValid=function(){return!0},t.defaultConfig={upperBarManager:{pluginsIconsOrder:{Navigation:10,"Q&A":20,Transcript:30,Download:40,Playlist:50,Related:60,Share:70,Info:80,Moderation:90}}},t}(i.BasePlugin);t.UIManagers=p},52:e=>{e.exports=KalturaPlayer},522:e=>{e.exports=KalturaPlayer.ui.preact}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0,e=r(52),t=r(562),(0,e.registerPlugin)(t.pluginName,t.UIManagers)})();

var playkit="object"==typeof playkit?playkit:{};playkit.youtube=function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=KalturaPlayer.core},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var a=(o=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([a]).join("\n")}var o,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(i)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);i&&a[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){var i=n(3),a=n(4);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var r={insert:"head",singleton:!1};i(a,r);e.exports=a.locals||{}},function(e,t,n){"use strict";var i,a=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},i=[],a=0;a<e.length;a++){var r=e[a],u=t.base?r[0]+t.base:r[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var d=s(l),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(o[d].references++,o[d].updater(p)):o.push({identifier:l,updater:g(p,t),references:1}),i.push(l)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var a=n.nc;a&&(i.nonce=a)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var o=r(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,n,i){var a=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var r=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(r,o[t]):e.appendChild(r)}}function f(e,t,n){var i=n.css,a=n.media,r=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),r&&btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,y=0;function g(e,t){var n,i,a;if(t.singleton){var r=y++;n=h||(h=c(t)),i=p.bind(null,n,r,!1),a=p.bind(null,n,r,!0)}else n=c(t),i=f.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var a=s(n[i]);o[a].references--}for(var r=u(e,t),c=0;c<n.length;c++){var l=s(n[c]);0===o[l].references&&(o[l].updater(),o.splice(l,1))}n=r}}}},function(e,t,n){"use strict";n.r(t);var i=n(1),a=n.n(i)()(!0);a.push([e.i,".playkit-iOS .playkit-engine-youtube,\n.playkit-Mac-OS .playkit-engine-youtube {\n  object-fit: fill;\n}\n","",{version:3,sources:["style.css"],names:[],mappings:"AAAA;;EAEE,gBAAgB;AAClB",file:"style.css",sourcesContent:[".playkit-iOS .playkit-engine-youtube,\n.playkit-Mac-OS .playkit-engine-youtube {\n  object-fit: fill;\n}\n"]}]),t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"Engine",(function(){return u})),n.d(t,"VERSION",(function(){return c})),n.d(t,"NAME",(function(){return l}));var i=n(0);function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={controls:0,autoplay:0,origin:window.location.origin,iv_load_policy:3,disablekb:1,modestbranding:1,playsinline:1,rel:0,fs:0},u=function(e){var t,n;function u(t,n){var a;return o(r(a=e.call(this)||this),"_isAdaptiveBitrate",!0),o(r(a),"_loaded",!1),o(r(a),"_isSeeking",!1),o(r(a),"_firstPlaying",!0),o(r(a),"_currentState",null),o(r(a),"_playerTracks",[]),a._eventManager=new i.EventManager,a._createVideoElement(),a._init(t,n),a}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,u.isSupported=function(){return!0},u.createEngine=function(e,t){return new this(e,t)},u.canPlaySource=function(e){var t="string"==typeof e.mimetype&&"video/youtube"===e.mimetype.toLowerCase();return u._logger.debug("canPlayType result for mimeType: "+e.mimetype+" is "+t.toString()),t},u.runCapabilities=function(){},u.getCapabilities=function(){var e,t=!1;"connection"in navigator&&navigator.connection&&(t=!!navigator.connection.saveData);var n=((e={})[u.id]={autoplay:!1,mutedAutoPlay:!t},e);return Promise.resolve(n)},u.prepareVideoElement=function(){u._logger.debug("Prepare the video element for playing not supported")};var c,l,d,p=u.prototype;return p.restore=function(e,t){this.reset(),this._init(e,t)},p._reset=function(){this._stopSeekTargetWatchDog(),this._stopPlayingWatchDog(),this.detach(),this._playerReady()&&this._api.stopVideo&&this._api.stopVideo(),this._loaded=!1,this._firstPlaying=!0,this._isSeeking=!1,this._isAdaptiveBitrate=!0,this._playerTracks=[],this._currentState=null},p.reset=function(){this._reset(),this._eventManager.removeAll()},p.destroy=function(){this._reset(),this._api&&this._api.destroy&&this._api.destroy(),this._eventManager.destroy()},p.attach=function(){},p.detach=function(){},p.getVideoElement=function(){return this._el},p.selectVideoTrack=function(e){this._api&&e instanceof i.VideoTrack&&(!e.active||this.isAdaptiveBitrateEnabled())&&(this.isAdaptiveBitrateEnabled()&&this.dispatchEvent(i.EventType.ABR_MODE_CHANGED,{mode:"manual"}),this._isAdaptiveBitrate=!1,this._api.setPlaybackQuality(e.label))},p.selectAudioTrack=function(e){u._logger.info("audio track switching not supported, cannot switch to "+e.language)},p.selectTextTrack=function(e){u._logger.info("text track switching not supported, cannot switch to "+e.language)},p.hideTextTrack=function(){},p.enableAdaptiveBitrate=function(){this._api&&(this._api.setPlaybackQuality("default"),this._isAdaptiveBitrate=!0)},p.isAdaptiveBitrateEnabled=function(){return this._isAdaptiveBitrate},p.seekToLiveEdge=function(){},p.attachMediaSource=function(){},p.detachMediaSource=function(){},p.getStartTimeOfDvrWindow=function(){return 0},p.isLive=function(){return!1},p.play=function(){this._api&&(this.currentTime===this.duration&&(this.currentTime=0),this._api.playVideo())},p.pause=function(){this._api&&this._api.pauseVideo&&this._api.pauseVideo()},p.load=function(e){var t=this;return this._sdkLoaded.then((function(){var n={videoId:t._source.url,startSeconds:e&&e>0?e:0};t._api.cueVideoById(n),t._loaded=!0})).catch((function(e){return Promise.reject(e)})),this._videoLoaded={},this._videoLoaded.promise=new Promise((function(e,n){t._videoLoaded.resolve=e,t._videoLoaded.reject=n})),this._videoLoaded.promise},p._playerReady=function(){return!(!this._api||!this._loaded)},p._parseVideoTracks=function(){var e=this._api.getAvailableQualityLevels(),t=this._api.getPlaybackQuality(),n=[];return e.forEach((function(e,a){var r={active:t===e,label:e,bandwidth:0,width:a+1,height:a+1,language:"",index:a};n.push(new i.VideoTrack(r))})),n},p._startSeekTargetWatchDog=function(){var e=this,t=this.currentTime;this._stopSeekTargetWatchDog(),this._seekTargetIntervalId=setInterval((function(){e.paused&&e._isSeeking?e.currentTime!==t&&(e.dispatchEvent(new i.FakeEvent(i.EventType.TIME_UPDATE)),e.dispatchEvent(new i.FakeEvent(i.EventType.SEEKED)),e._isSeeking=!1):e._stopSeekTargetWatchDog()}),250)},p._stopSeekTargetWatchDog=function(){this._seekTargetIntervalId&&(clearInterval(this._seekTargetIntervalId),this._seekTargetIntervalId=null)},p._init=function(e,t){var n=this;this._source=e,this._config=t,this._api=null,this._videoLoaded=null,this._playingIntervalId=null;var a=function(e){var t=new i.Error(i.Error.Severity.CRITICAL,i.Error.Category.PLAYER,i.Error.Code.LOAD_FAILED,e);n.dispatchEvent(new i.FakeEvent(i.EventType.ERROR,t))};this._sdkLoaded=new Promise((function(e,t){n._apiReady=function(){(n._config.playback.muted||n._config.playback.autoplay)&&(n._api.mute&&n._api.mute(),n._muted=!0),e()},n._apiError=function(e){var i=n._getYoutubeErrorCodeData(e.data);a(i),t(e.data)}})),this._loadYouTubeIframeAPI().then((function(){n._loadYouTubePlayer()})).catch((function(e){a(e)}))},p._createVideoElement=function(){var e=this._el=i.Utils.Dom.createElement("div");i.Utils.Dom.setAttribute(e,"id",i.Utils.Generator.uniqueId(5)),i.Utils.Dom.setAttribute(e,"tabindex","-1")},p._getYoutubeErrorCodeData=function(e){switch(e){case 2:return{code:e,message:"Invalid params"};case 5:return{code:e,message:"Error while trying to play the video"};case 100:return{code:e,message:"Video not found"};case 101:case 150:return{code:e,message:"The owner of the requested video does not allow it to be played in embedded players"};default:return{code:e,message:"Unknown error"}}},p._loadYouTubePlayer=function(){var e=this,t=function(){var t={playerVars:s,events:{onReady:e._apiReady,onError:e._apiError,onStateChange:function(t){return e._onPlayerStateChange(t)},onPlaybackQualityChange:function(t){return e._onPlaybackQualityChange(t)},onVolumeChange:function(){return e.dispatchEvent(new i.FakeEvent(i.EventType.VOLUME_CHANGE))}}};if(t.playerVars.playsinline=e._config.playback.playsinline?1:0,t.playerVars.autoplay=e._config.playback.autoplay?1:0,i.Utils.Object.hasPropertyPath(e._config,"playback.options.youtube")){var n=e._config.playback.options.youtube;i.Utils.Object.mergeDeep(t.playerVars,n.playerVars)}e._api=new window.YT.Player(e._el.id,t)};if(this._api)return this._apiReady();window&&window.YT&&window.YT.Player?t():window.onYouTubeIframeAPIReady=t},p._loadYouTubeIframeAPI=function(){var e=this;return new Promise((function(t,n){if(window&&window.YT&&window.YT.Player)return t();var a=i.Utils.Dom.createElement("script"),r="https://www.youtube.com/iframe_api";i.Utils.Object.hasPropertyPath(e._config,"playback.options.youtube")&&e._config.playback.options.youtube.iframeApi&&(r=e._config.playback.options.youtube.iframeApi),a.src=r,a.async=!0,a.onload=function(){t()},a.onerror=function(){n({message:"Youtube Iframe API loading failed: "+r})};var o=document.getElementsByTagName("script")[0];o&&o.parentNode&&o.parentNode.insertBefore(a,o)}))},p._getPlayerStateKey=function(e){var t=window.YT.PlayerState;return Object.keys(t).find((function(n){return t[n]===e}))||"UNKNOWN"},p._onPlayerStateChange=function(e){var t=window.YT.PlayerState,n=e.data;if(u._logger.info("player state changed from "+this._getPlayerStateKey(this._currentState)+" to "+this._getPlayerStateKey(n)),n!==this._currentState)switch(this._currentState=n,this._currentState){case t.UNSTARTED:this._handleLoaded();break;case t.ENDED:this._onEnded();break;case t.PLAYING:this._firstPlaying&&this._handleFirstPlaying(),this._onPlaying();break;case t.PAUSED:this._onPaused();break;case t.BUFFERING:this._onBuffering();break;case t.CUED:}},p._onPlaybackQualityChange=function(e){var t=this._playerTracks.find((function(t){return t instanceof i.VideoTrack&&t.label===e.data}));this.dispatchEvent(i.EventType.VIDEO_TRACK_CHANGED,{selectedVideoTrack:t})},p._onPlaying=function(){this.dispatchEvent(new i.FakeEvent(i.EventType.PLAY)),this.dispatchEvent(new i.FakeEvent(i.EventType.PLAYING)),this._startPlayingWatchDog(),this._isSeeking&&(this._isSeeking=!1,this.dispatchEvent(new i.FakeEvent(i.EventType.TIME_UPDATE)),this.dispatchEvent(new i.FakeEvent(i.EventType.SEEKED)))},p._handleLoaded=function(){this._loaded&&(this.dispatchEvent(new i.FakeEvent(i.EventType.LOADED_METADATA)),this.dispatchEvent(new i.FakeEvent(i.EventType.LOADED_DATA)),this._videoLoaded.resolve({tracks:this._playerTracks}))},p._handleFirstPlaying=function(){this._firstPlaying=!1,this.dispatchEvent(new i.FakeEvent(i.EventType.DURATION_CHANGE))},p._onBuffering=function(){this._stopPlayingWatchDog(),this.dispatchEvent(new i.FakeEvent(i.EventType.WAITING))},p._onPaused=function(){this._isSeeking&&(this._isSeeking=!1),this._stopPlayingWatchDog(),this.dispatchEvent(new i.FakeEvent(i.EventType.TIME_UPDATE)),this.dispatchEvent(new i.FakeEvent(i.EventType.PAUSE))},p._onEnded=function(){this._stopPlayingWatchDog(),this.dispatchEvent(new i.FakeEvent(i.EventType.TIME_UPDATE)),this.dispatchEvent(new i.FakeEvent(i.EventType.PAUSE)),this.dispatchEvent(new i.FakeEvent(i.EventType.ENDED))},p._startPlayingWatchDog=function(){var e=this;this._stopPlayingWatchDog(),this.dispatchEvent(new i.FakeEvent(i.EventType.TIME_UPDATE)),this._playingIntervalId=setInterval((function(){e._isSeeking||e.dispatchEvent(new i.FakeEvent(i.EventType.TIME_UPDATE))}),250)},p._stopPlayingWatchDog=function(){clearInterval(this._playingIntervalId),this._playingIntervalId=null},p.resetAllCues=function(){},p.enterPictureInPicture=function(){},p.exitPictureInPicture=function(){},p.isPictureInPictureSupported=function(){return!1},c=u,(l=[{key:"id",get:function(){return u.id}},{key:"src",set:function(e){this._source.url=e},get:function(){return this._loaded&&this._source?this._source.url:""}},{key:"currentTime",get:function(){return this._playerReady()?this._api.getCurrentTime():0},set:function(e){this._api&&this.currentTime!==e&&(this._isSeeking=!0,this._api.seekTo(e,!0),this.dispatchEvent(new i.FakeEvent(i.EventType.SEEKING)),this.paused&&this._startSeekTargetWatchDog())}},{key:"duration",get:function(){return this._playerReady()?this._api.getDuration():NaN}},{key:"volume",set:function(e){this._playerReady()&&this._api.setVolume(100*e)},get:function(){return this._playerReady()?this._api.getVolume()/100:1}},{key:"paused",get:function(){return!this._playerReady()||![window.YT.PlayerState.PLAYING,window.YT.PlayerState.BUFFERING].includes(this._api.getPlayerState())}},{key:"seeking",get:function(){return this._isSeeking}},{key:"seekable",get:function(){var e=this;return{length:1,start:function(){return 0},end:function(){return e._api?e.currentTime:0}}}},{key:"played",get:function(){var e=this;return{length:1,start:function(){return 0},end:function(){return e._api?e.currentTime:0}}}},{key:"buffered",get:function(){var e=this;return{length:1,start:function(){return 0},end:function(){return e._api&&e._api.getVideoLoadedFraction?e._api.getVideoLoadedFraction()*e.duration:0}}}},{key:"muted",set:function(e){this._playerReady()&&(e?this._api.mute():this._api.unMute(),this._muted=e)},get:function(){var e=!1;return this._playerReady()&&(e="boolean"==typeof this._muted?this._muted:this._api.isMuted()),e}},{key:"defaultMuted",get:function(){return!1}},{key:"poster",set:function(e){},get:function(){return""}},{key:"preload",set:function(e){},get:function(){return"none"}},{key:"autoplay",set:function(e){},get:function(){return!1}},{key:"loop",set:function(e){},get:function(){return!1}},{key:"controls",set:function(e){},get:function(){return!1}},{key:"playbackRate",set:function(e){this._api&&this._api.setPlaybackRate(e)},get:function(){return this._playerReady()?this._api.getPlaybackRate():1}},{key:"defaultPlaybackRate",set:function(e){},get:function(){return 1}},{key:"ended",get:function(){return!!this._playerReady()&&this._api.getPlayerState()===window.YT.PlayerState.ENDED}},{key:"error",get:function(){return null}},{key:"networkState",get:function(){if(!this._playerReady())return 0;var e=window.YT.PlayerState;switch(this._api.getPlayerState()){case e.UNSTARTED:return 0;case e.BUFFERING:return 2;default:return 1}}},{key:"readyState",get:function(){if(!this._api)return 0;var e=window.YT.PlayerState;switch(this._api.getPlayerState()){case e.UNSTARTED:return 0;case e.BUFFERING:return 2;default:return 4}}},{key:"videoHeight",get:function(){return-1}},{key:"videoWidth",get:function(){return-1}},{key:"playsinline",set:function(e){},get:function(){return this._config.playsinline}},{key:"crossOrigin",set:function(e){},get:function(){return null}},{key:"playbackRates",get:function(){var e=u.PLAYBACK_RATES;if(this._playerReady()){var t=this._api.getAvailablePlaybackRates();t&&Array.isArray(t)&&(e=t)}return e}},{key:"isInPictureInPicture",get:function(){return!1}},{key:"targetBuffer",get:function(){return NaN}},{key:"availableBuffer",get:function(){return NaN}}])&&a(c.prototype,l),d&&a(c,d),u}(i.FakeEventTarget);o(u,"_logger",Object(i.getLogger)("Youtube")),o(u,"id","youtube"),o(u,"PLAYBACK_RATES",[1]);n(2);var c="2.0.7",l="@playkit-js/playkit-js-youtube";u.isSupported()&&Object(i.registerEngine)(u.id,u)}]);

//# sourceMappingURL=https://api.cast.switch.ch/embedPlaykitJsSourceMaps/path/1_10255a17102132ae00e58c66f4f86a3f
		window.__kalturaplayerdata = (window.__kalturaplayerdata || {});
		window.__kalturaplayerdata={"plugins":{"kava":{},"share":{"shareUrl":"","embedUrl":"{embedBaseUrl}\/p\/{partnerId}\/embedPlaykitJs\/uiconf_id\/{uiConfId}?iframeembed=true&entry_id={entryId}","enableTimeOffset":true,"useNative":false,"shareOptions":{"email":{"display":false,"templateUrl":"mailto:?subject=Check out {description}&body=Check out {description} - {shareUrl}","title":"share.email","icon":{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M21 6.75C21 5.7835 20.1941 5 19.2 5H4.8C3.80589 5 3 5.7835 3 6.75V17.25C3 18.2165 3.80589 19 4.8 19H19.2C20.1941 19 21 18.2165 21 17.25V6.75ZM18.8944 8.55276C18.6474 8.05878 18.0467 7.85856 17.5528 8.10555L12 10.881L6.44719 8.10555L6.33987 8.05941C5.8692 7.88866 5.33489 8.09407 5.10555 8.55276C4.85856 9.04674 5.05878 9.64741 5.55276 9.8944L11.5528 12.8944L11.6762 12.9461C11.9279 13.0323 12.2059 13.0151 12.4472 12.8944L18.4472 9.8944L18.5485 9.83623C18.9675 9.56215 19.1237 9.01146 18.8944 8.55276Z"}},"embed":{"display":false,"templateUrl":"%3Ciframe%20src%3D%22%7BembedUrl%7D%22%20style%3D%22width%3A%20560px%3Bheight%3A%20395px%22%20allowfullscreen%20webkitallowfullscreen%20mozAllowFullScreen%20frameborder%3D%220%22%20allow%3D%22accelerometer%20*%3B%20autoplay%20*%3B%20encrypted-media%20*%3B%20gyroscope%20*%3B%20picture-in-picture%20*%22%2F%3E","title":"share.embed","icon":"M13.9864 6.16443C14.0772 5.61966 13.7092 5.10444 13.1644 5.01364C12.6197 4.92285 12.1044 5.29086 12.0136 5.83564L10.0136 17.8356C9.92284 18.3804 10.2909 18.8956 10.8356 18.9864C11.3804 19.0772 11.8956 18.7092 11.9864 18.1644L13.9864 6.16443Z M15.2929 15.7071C14.9024 15.3166 14.9024 14.6834 15.2929 14.2929L17.5858 12L15.2929 9.70711C14.9024 9.31658 14.9024 8.68342 15.2929 8.29289C15.6834 7.90237 16.3166 7.90237 16.7071 8.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L16.7071 15.7071C16.3166 16.0976 15.6834 16.0976 15.2929 15.7071Z M8.70711 8.29289C9.09763 8.68342 9.09763 9.31658 8.70711 9.70711L6.41421 12L8.70711 14.2929C9.09763 14.6834 9.09763 15.3166 8.70711 15.7071C8.31658 16.0976 7.68342 16.0976 7.29289 15.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L7.29289 8.29289C7.68342 7.90237 8.31658 7.90237 8.70711 8.29289Z"},"facebook":{"display":true,"templateUrl":"https:\/\/www.facebook.com\/sharer\/sharer.php?u={shareUrl}","title":"share.share-on-facebook","icon":"M8 9.63017H9.5003V8.22342C9.5003 7.60278 9.51651 6.64628 9.98306 6.05362C10.4752 5.42639 11.1499 5 12.3116 5C14.2034 5 15 5.26011 15 5.26011L14.6256 7.4044C14.6256 7.4044 14.0004 7.23072 13.417 7.23072C12.8336 7.23072 12.3116 7.43238 12.3116 7.99459V9.63017H14.7032L14.536 11.7242H12.3116V19H9.5003V11.7242H8V9.63017Z"},"linkedin":{"display":true,"templateUrl":"https:\/\/www.linkedin.com\/shareArticle?mini=true&url={shareUrl}","title":"share.share-on-linkedin","icon":"M18 19H15.1268V14.43C15.1268 13.2338 14.6774 12.4172 13.6891 12.4172C12.9331 12.4172 12.5128 12.9682 12.3171 13.4993C12.2437 13.69 12.2552 13.9555 12.2552 14.221V19H9.40875C9.40875 19 9.44544 10.9047 9.40875 10.1688H12.2552V11.5548C12.4233 10.9488 13.3329 10.0839 14.7844 10.0839C16.5852 10.0839 18 11.3542 18 14.0895V19ZM6.53022 9.06416H6.51188C5.59466 9.06416 5 8.38906 5 7.53333C5 6.66095 5.61224 6 6.5478 6C7.4826 6 8.05738 6.65928 8.07573 7.53083C8.07573 8.38657 7.4826 9.06416 6.53022 9.06416ZM5.3279 19H7.86171V10.1688H5.3279V19Z"},"twitter":{"display":true,"templateUrl":"https:\/\/twitter.com\/intent\/tweet?url={shareUrl}","title":"share.share-on-twitter","icon":"M17.3508 8.73918C17.9441 8.39596 18.3993 7.85172 18.6138 7.20339C18.0583 7.5212 17.4444 7.7524 16.7887 7.87635C16.2661 7.33687 15.5191 7 14.6924 7C13.1073 7 11.8213 8.24341 11.8213 9.77681C11.8213 9.99451 11.8459 10.2059 11.8952 10.4092C9.50807 10.2932 7.39209 9.18888 5.97458 7.5069C5.72724 7.91845 5.5859 8.39596 5.5859 8.90444C5.5859 9.86739 6.09292 10.7175 6.86371 11.2157C6.39367 11.2022 5.94993 11.0758 5.56207 10.8693V10.9034C5.56207 12.2493 6.55227 13.372 7.86705 13.6262C7.62628 13.6914 7.37237 13.7239 7.11023 13.7239C6.92534 13.7239 6.74456 13.7073 6.56953 13.6747C6.9352 14.7775 7.99525 15.5807 9.25251 15.6022C8.26971 16.3474 7.03052 16.7915 5.68533 16.7915C5.4536 16.7915 5.22434 16.7788 5 16.7534C6.27123 17.54 7.78159 18 9.40289 18C14.6867 18 17.5751 13.7692 17.5751 10.0994C17.5751 9.97862 17.5726 9.85785 17.5677 9.73947C18.129 9.34778 18.6162 8.85915 19 8.3022C18.4856 8.52308 17.9317 8.67244 17.3508 8.73918Z"}}},"kaltura-live":{"preOfflineEntryId":"","preOfflineSlateUrl":"","postOfflineEntryId":"","postOfflineSlateUrl":""},"playlist":{"position":"right","expandMode":"alongside","expandOnFirstPlay":true},"navigation":{"position":"right","expandMode":"alongside","expandOnFirstPlay":false},"download":{},"ivq":{},"playkit-js-hotspots":{},"dualscreen":{"layout":"PIP","position":"bottom-right"},"airplay":{},"uiManagers":{},"timeline":{},"kalturaCuepoints":{}},"playback":{"autoplay":"false","preload":"auto","textLanguage":"auto","captionsDisplay":true,"playbackRates":[0.5,1,1.5,2,1.3]},"provider":{"env":{"serviceUrl":"https:\/\/api.cast.switch.ch\/api_v3","cdnUrl":"https:\/\/dgtao5m4xh9pl.cloudfront.net","statsServiceUrl":"https:\/\/api.cast.switch.ch","liveStatsServiceUrl":"https:\/\/api.cast.switch.ch","analyticsServiceUrl":"https:\/\/analytics.cast.switch.ch","apiFeatures":{"entryRedirect":"1"}}},"ui":{"userTheme":{"colors":{"primary":"#ff0000","live":"#e10000","playerBackground":"#ffffff"}},"components":{"logo":{"img":"https:\/\/www.epfl.ch\/campus\/services\/website\/wp-content\/uploads\/2023\/11\/EPFLmediaspace.png","url":"https:\/\/www.epfl.ch","text":"EPFL Ecole polytechnique f\u00e9d\u00e9rale de Lausanne"}},"translations":{"en":{"controls":{"play":"Play","pause":"Pause","language":"Language","settings":"Settings","fullscreen":"Fullscreen","fullscreenExit":"Exit fullscreen","rewind":"Seek backwards","forward":"Seek forward","vrStereo":"vrStereo","closedCaptionsOn":"Disable Captions","closedCaptionsOff":"Enable Captions","live":"Live","mute":"Mute","unmute":"Unmute","next":"Next","prev":"Prev","startOver":"Start over","pictureInPicture":"Picture in picture","pictureInPictureExit":"Exit picture in picture","pictureInPictureExpand":"Expand","logo":"Logo","seekBarSlider":"Seek slider","share":"Share"},"unmute":{"unmute":"Unmute"},"volume":{"muted_click_to_unmute":"Muted. Click to unmute","volume_click_to_mute":"{{vol}}% volume. Click to mute","ten_percent":"ten percent","twenty_percent":"twenty percent","thirty_percent":"thirty percent","fourty_percent":"forty percent","fifty_percent":"fifty percent","sixty_percent":"sixty percent","seventy_percent":"seventy percent","eighty_percent":"eighty percent","ninety_percent":"ninety percent","one_hundred_percent":"one hundred percent"},"copy":{"button":"Copy URL"},"settings":{"title":"Settings","audio":"Audio","quality":"Quality","speed":"Speed","speedNormal":"Normal","qualityAuto":"Auto","advancedAudioDescription":"Advanced Audio Description"},"captions":{"captions":"Captions","advanced_captions_settings":"Advanced captions settings"},"overlay":{"close":"Close"},"error":{"default_error":"Something went wrong","default_session_text":"Session ID","retry":"Retry"},"ads":{"ad_notice":"Advertisement","learn_more":"Learn more","skip_ad":"Skip ad","skip_in":"Skip in"},"cvaa":{"title":"Advanced captions settings","sample_caption_tag":"Sample {{number}}","sample_custom_caption_tag":"Custom captions","set_custom_caption":"Set custom caption","edit_caption":"Edit caption","size_label":"Size","font_color_label":"Font color","font_family_label":"Font family","font_style_label":"Font style","font_opacity_label":"Font opacity","background_color_label":"Background color","background_opacity_label":"Background opacity","apply":"Apply","caption_preview":"This is your caption preview"},"cast":{"play_on_tv":"Play on TV","disconnect_from_tv":"Disconnect from TV","status":{"connecting_to":"Connecting to","connected_to":"Connected to","playing_on":"Playing on"}},"playlist":{"prev":"Previous","next":"Next","up_next":"Up Next","up_next_in":"Up next in","cancel":"Cancel","show_plugin":"Show Playlist","hide_plugin":"Hide Playlist","amount-items":{"one":"video","many":"{{count}} videos"},"hour":"hr","min":"min","sec":"sec","quiz_type":"Quiz","live_type":"Live","image_type":"Image","play-item-area-label":"Click to play:","currently-playing":"Currently playing:","playlist-item-index":"Playlist item #"},"pictureInPicture":{"overlay_text":"Playing in Picture In Picture mode"},"download":{"download":"Download","downloads":"Downloads","download_has_started":"Download has started","download_has_failed":"Download has failed","attachments":"Attachments"},"dualScreen":{"show":"Show","show_label":"Show dual screen","hide":"Hide","hide_label":"Hide dual screen","side_by_side":"Side by side screens","switch_to_primary_screen":"Switch to primary screen","switch_to_secondary_screen":"Switch to secondary screen","expand_primary_screen":"Expand primary screen","expand_secondary_screen":"Expand secondary screen"},"ivq":{"continue_button":"Continue","continue_button_area_label":"Continue quiz with the selected answer","skip_button":"Skip","skip_button_area_label":"Skip for now","question_counter":"Question {{current}} of {{total}}","next_question_area_label":"Next Question","prev_question_area_label":"Previous Question","open_question_placeholder":"Type your answer here...","question":"Question","reflection_point":"Reflection Point","welcome_title":"Start your video quiz!","welcome_download":"Download Pre-Test","start_quiz":"Start Quiz","submit_button":"Submit","submit_button_area_label":"Click to submit quiz","review_button":"Review","review_button_area_label":"Click to review quiz","review_title":"You are almost done","review_description":"It appears that some questions remained unanswered. Please complete the quiz to submit.","submit_title":"Quiz completed","submit_description":"Take a moment to review your answers or go ahead to submit your answers.","quiz_score":"Your score is {{quizScore}}","retake_button":"Retake","retake_button_area_label":"Click to retake the quiz","close_button":"Close","close_button_aria_label":"Click to close the review","quiz_completed":"You completed the quiz","back_button":"Back","correct_answer_is":"The correct answer is:","your_answer":"Your answer","correct_answer":"Correct answer","incorrect_answer":"Incorrect answer","wrong_answer":"Wrong answer","show_hint":"Show hint","hide_hint":"Hide hint","show_why":"Show why","hide_why":"Hide why","show_feedback":"Show feedback","hide_feedback":"Hide feedback","marker_area_label":"Jump to Question {{questionIndex}}","answer_number":"Answer number","review_question":"Click to review the question","tip":"All questions must be answered. The quiz will be submitted at the end.","available_attempts_message":"Total attempts available for this quiz: {{availableAttempts}}","quiz_almost_done_title":"You\u2019re almost done","quiz_almost_done_description":"It appears that some questions remained unanswered. Please complete the quiz to submit.","quiz_submit_description":"Take a moment to review your answers or go ahead to submit your answers.","quiz_completed_description":"Watch the video until the end to submit.","quiz_submitted_title":"Quiz submitted"},"kalturaLive":{"no_internet_title":"No Internet Connection","no_internet_body":"Check your network","offline_title":"Currently not broadcasting","offline_body":"Video will play once broadcasting starts","http_problem_title":"Something went wrong","http_problem_body":"Try refreshing the page","no_longer_live":"Broadcast is no longer live","live":"Live","offline":"Offline","preview":"Preview"},"navigation":{"hide_plugin":"Hide Navigation","show_plugin":"Show Navigation","read_less":"Less","read_more":"More","read_more_of":"Read more of","read_less_of":"Read less of","whoops":"Whoops!","error_message":"We couldn't retrieve your Data.","retry":"Retry","search_placeholder":"Search in video","clear_search":"Clear search","all_types":"All","aoa_type":{"one":"Answer On Air","many":"Answers On Air"},"chapter_type":{"one":"Chapter","many":"Chapters"},"slide_type":{"one":"Slide","many":"Slides"},"hotspot_type":{"one":"Hotspot","many":"Hotspots"},"caption_type":{"one":"Caption","many":"Captions"},"quiz_question_type":{"one":"Question","many":"Questions"},"reflection_point_title":"Reflection point {{index}}","question_title":"Question {{index}}","question_answered":"Answered","question_incorrect":"Incorrect","question_correct":"Correct","search_result_one_type":{"one":"{{totalResults}} result in {{type}}","many":"{{totalResults}} results in {{type}}"},"search_result_all_types":{"one":"{{totalResults}} result in all content","many":"{{totalResults}} results in all content"},"search_result_all_types_with_captions":{"one":"{{totalResults}} result in all content including captions","many":"{{totalResults}} results in all content including captions"},"search_no_results_title":"No Results Found","search_no_results_description":"Try a more general keyword","loading":"Loading","auto_scroll":"Resume AutoScroll","image_alt":"Slide Preview","list_type":"List","search_description":"You can search the video captions for specific words or phrases."},"share":{"title":"Share","embed_options":"Embed Options","start_video_at":"Start video at","email":"Share on Email","embed":"Get embed code","share-on-facebook":"Share on Facebook","share-on-linkedin":"Share on Linkedin","share-on-twitter":"Share on Twitter"}}}},"playlist":{"options":{"autoContinue":true,"loop":false},"countdown":{"showing":true,"duration":10}},"externals":{"playkit-image-player":{"active":{}}},"disableUserCache":false,"productVersion":"7.63"};